Login Register
The stories and information posted here are artistic works of fiction and falsehood. Only a fool would take anything posted here as fact.


Analyzing WAF before applying WAF Bypass Methods filter_list
Author
Message
RE: Analyzing WAF before applying WAF Bypass Methods #11
Brawler sir i am reading those sites which you mentioned and now i am understanding what i did earlier. So sorry And thank you so much for give me those sites Smile Sir just a little request as i am noob in this field and still learning so if i need help then you help me in this web hacking and security fields. Because you expert guys are here for give us right direction Smile

Reply

RE: Analyzing WAF before applying WAF Bypass Methods #12
@Brawler I wasn't criticising you. I was criticising the OP. If you are serious about avoiding a filter that looks specifically for "UNION SELECT", then you will not use "UNION SELECT" at all.

Oversimplified example: some.php?query=1&&(some_condition_for_boolean_enumeration)like(1)
Of course, you should URL-encode the &s (%26%26)

A nice read on the subject, since we're only talking about SQL injection here: https://websec.wordpress.com/2010/03/19/...njections/
The same author has more posts on the same subject. I'm not going to link them. If you want to read them, you can find them really easily on the same site.
PGP
Sign: F202 79C9 76F7 40BB 54EC 494F 5DEF 1D70 14C1 C4CC
Encrypt: A5B3 1B21 55E1 80AF 4C6E DE83 467B 8EFC 3DEE 681C
Auth: CD55 E8A5 1A08 2933 8BA6 BC88 D81F 1943 739A 3C47

Reply

RE: Analyzing WAF before applying WAF Bypass Methods #13
Any sane WAF is preg_match'ing group_replace. Same thing with concat_ws and concat. If people have a brain, they learn SQL, if they learn SQL they understand you can concentrate columns off a table using more than one function. EXPORT_SET and REPLACE() for a start, stop being depended on concat

To understand how a WAF works, download mod_security throughout it's ages and years and see how it progressed. The lower the state of the IDS/WAF is from the website, the less effective it is. If, say, you make a PHP based WAF, you can usually rest peacefully. But the more layers, services and turns the input goes the more you can play and twist with it. Don't learn how to bypass from tutorials, learn SQL throughtly, website tiers, SQL engine and such.

"http://www.site.com/php?id=3+ ----> We use + to check is spaces is block or not by WAF. If you see error by using + it means spaces is block & if no error means spaces is not block Smile "

This shows you don't grasp the concepts. Spaces are spaces. What translates these signs into spaces isn't the SQL engine, isn't the PHP interpreter, isn't the CGI nor PHP interpreter, it's your browser. Browsers follow RFC's, rules that are being shared by all of them in order to make the web not as diverted as it is (Although they failed at that, html interpretations..) a plus sign from a space is your usual URL Encoding. Not SQL. It's + and not %20 to be an alternative soley for the URL parameters of the URL which are usually relating to a form (application/x-www-form-urlencoded)

If spacing is problematic at a WAF, use /**/ or whitespaces such %0d.

(03-16-2015, 04:37 PM)Reiko Wrote: @Brawler I wasn't criticising you. I was criticising the OP. If you are serious about avoiding a filter that looks specifically for "UNION SELECT", then you will not use "UNION SELECT" at all.

Oversimplified example: some.php?query=1&&(some_condition_for_boolean_enumeration)like(1)
Of course, you should URL-encode the &s (%26%26)

A nice read on the subject, since we're only talking about SQL injection here: https://websec.wordpress.com/2010/03/19/...njections/
The same author has more posts on the same subject. I'm not going to link them. If you want to read them, you can find them really easily on the same site.
That scenario is only plausible in certain cases.
(This post was last modified: 05-13-2015, 10:56 PM by Th3PonyWizard.)

Reply

RE: Analyzing WAF before applying WAF Bypass Methods #14
(05-13-2015, 10:54 PM)Th3PonyWizard Wrote: That scenario is only plausible in certain cases.

Uh.. yeah. That's implied throughout my entire post, but alright.
PGP
Sign: F202 79C9 76F7 40BB 54EC 494F 5DEF 1D70 14C1 C4CC
Encrypt: A5B3 1B21 55E1 80AF 4C6E DE83 467B 8EFC 3DEE 681C
Auth: CD55 E8A5 1A08 2933 8BA6 BC88 D81F 1943 739A 3C47

Reply

RE: Analyzing WAF before applying WAF Bypass Methods #15
Thanks for this guide! Very informative. Thank you Smile

And for all the comments I've read too Smile

Reply







Users browsing this thread: 1 Guest(s)