![]() |
|
[Tutorial] Web Application Firewall [WAF] - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Hacks, Exploits, and Various Discussions (https://hackforums.net/forumdisplay.php?fid=45) +--- Forum: Grayhat • Purple Team • Hybrid Security (https://hackforums.net/forumdisplay.php?fid=449) +---- Forum: Website Hacking (https://hackforums.net/forumdisplay.php?fid=43) +----- Forum: SQL Injection Attacks (https://hackforums.net/forumdisplay.php?fid=103) +----- Thread: [Tutorial] Web Application Firewall [WAF] (/showthread.php?tid=4545257) |
[Tutorial] Web Application Firewall [WAF] - -zERAiT - Nov 19, 2014 Web Application Firewall Bypassing What is WAF? A web application firewall (WAF) is an appliance, server plugin, or filter that applies a set of rules to an HTTP conversation. Generally, these rules cover common attacks such as cross-site scripting (XSS) and SQL injection. By customizing the rules to your application, many attacks can be identified and blocked. The effort to perform this customization can be significant and needs to be maintained as the application is modified. Example: PHP Code If we do that with a WAF protected website will we get throw out a "403 forbidden" error or the "404 not found" error. Analyzing WAF In the example above, we we're blocked from executing our query and therefore not able to retrieve user information. We'll have to bypass the WAF and in order to do that we'll have to find out what WAF is exactly blocking. For example: PHP Code Add a "'" at the end in order to see if it's vulnerable for SQL Injection. PHP Code Add a "+" at the end in order to see if WAF is blocking spaces. Error means that it does block spaces, no error means that it's allowed. PHP Code Add "union" at the end in order to see if WAF blocks the word. Error means that it does block union, no error means that it's allowed. PHP Code Add "union select" at the end in order to see if WAF blocks the words. Error means that it does block union select, no error means that it's allowed. PHP Code Just move on till you came to an end of your query, I think you get my point. How to bypass WAF Comments used to bypass:
Now for bypassing WAFs, the exploiting is quite similar to an Union Based SQL Injection. However, you have filters that you have to bypass now, below a few queries the can by bypassed. NOTE: Depending on how WAF is configured these will work or not. PHP Code PHP Code PHP Code PHP Code PHP Code Tips & Tricks PHP Code PHP Code PHP Code PHP Code PHP Code PHP Code PHP Code PHP Code I hope this tutorial will learn members alot more regarding SQL Injections and how to bypass them properly. Thanks for viewing my thread.🤝 * - iHacker-n00b - Nov 19, 2014 Nice one xD , These ones are Wrong :| Code PHP Code:* - Tirus - Nov 19, 2014 Nice little guide you got here. I can see the Specialist making a name out of themselves. If you need my help with anything, contact me. * - -zERAiT - Nov 20, 2014 Thanks for the feedback guys, much appriciated.🤝 * - 01234567890 - Nov 21, 2014 (Nov 19, 2014 01:58 PM)iHacker-n00b Wrote: Nice one xD , Why is it so?😧 Could you please explain me? * - iHacker-n00b - Nov 21, 2014 (Nov 21, 2014 01:48 AM)01234567890 Wrote: Why is it so?😧In MySQL 1st You cant use parenthesis on union 2nd U can't use parenthesis anywhere you want in the middle 3rd one o.O how could u use union and select keyword in quotes... * - 01234567890 - Nov 21, 2014 (Nov 21, 2014 01:50 AM)iHacker-n00b Wrote: In MySQL Thank you for an instant reply!🤝 By the way I know the reason for 3rd one!🙂 * - Aakash Choudhary - Nov 29, 2014 Very nice tutorial mate. You are doing great job 👍 |