Cenzic 232 Patent
Paid Advertising
sla.ckers.org is
ha.ckers sla.cking
Sla.ckers.org
How do you completely compromise a machine given a text box or badly validated input box? This is a place to talk about code issues (PHP includes, null byte injection, backticks, pipe, etc...) as well as how to properly construct an SQL injection attack. 
Go to Topic: PreviousNext
Go to: Forum ListMessage ListNew TopicSearchLog In
custom WAF bypass
Posted by: deh1dra
Date: August 14, 2012 10:52AM

So basically the website has got WAF. I cannot put UNION in query but i can put SELECT ALL.Mixed chars doesnt help also.I tried error based and blind sqli but i cannot dump anything becaue the WAF also blocks CONCAT.
Any suggestions ?

Options: ReplyQuote
Re: custom WAF bypass
Posted by: ripper
Date: August 14, 2012 11:35AM

first can u PM me the site
Second if it is blocking concat()
Then you could try
concat/**/() or /*!Concat*/() or concat+() or concat_ws(seperator,whatyouwant)...Am not sure if all those work but you might as well PM me the site which I might be able to bypass its WAF..Cheers.

Skype:ripperhf1
twitter:@RIPPER38

You cannot fathom the immensity of the f*** I do not give,

Options: ReplyQuote
Re: custom WAF bypass
Posted by: deh1dra
Date: August 15, 2012 10:25AM

WAF detects every possible concat as a single word , so no /*!concat*/ or concat_ws.
I need to find some SQLi that i can exploit without concat or UNION

Options: ReplyQuote
Re: custom WAF bypass
Posted by: cr101
Date: August 15, 2012 10:38AM

No chance the server supports multiple queries, I assume?

Options: ReplyQuote
Re: custom WAF bypass
Posted by: ripper
Date: August 15, 2012 01:47PM

I think if you gave me the site I might be able to help u.. :D

Options: ReplyQuote
Re: custom WAF bypass
Posted by: deh1dra
Date: August 16, 2012 07:41AM

cr101 Wrote:
-------------------------------------------------------
> No chance the server supports multiple queries, I
> assume?


How can i check that ? Did you mean SQLi with double query ?

Options: ReplyQuote
Re: custom WAF bypass
Posted by: cr101
Date: August 16, 2012 08:31AM

Well I assume that the query being passed to the database is something along the lines of

SELECT column FROM table WHERE value= '$YOURINPUT';

What happens if you try to make $YOURINPUT something like
x'; SELECT * FROM INFORMATION_SCHEMA.tables;--

So that the final query is:

SELECT column FROM table WHERE value= 'x'; SELECT * FROM INFORMATION_SCHEMA.tables;--';

It's pretty rare to find databases that support this, though.

Options: ReplyQuote
Re: custom WAF bypass
Posted by: firestorm
Date: September 17, 2012 07:06PM

I may help if you can give the link..or pm it .

Options: ReplyQuote


Sorry, only registered users may post in this forum.