# Bypassing Technique

## Special character: `, . .. / \ ; % $ ? ' + - < > .,/ .., ., ./ /,/ /;/`

## Technique:

1. URL Encoding &#x20;
2. double / triple encoding
3. different encoding system :  %u2215 %u2216 %u2026
4. non Printable character:   %0a %0d %03 %08 %10 %83 %1c
5. null byte  %00
6. changing HTTP method (HTTP verb temparing)
7. http parameter polution :  ?parm1=value1\&parm1=value2\&parm1=value3
8. Host header: `X-Forwarder-For: X-Fordarded: X-Forwarded-By: X-Forwarded-For-Original:`&#x20;
9. &#x20;

## String Terminators:

```
%00
0x00
//
;
%
!
?
[]
%5B%5D
%09
%0a
%0b
%0c
%0e
```

## Case Switching:

```
POST /api/myProfile 
POST /api/MyProfile 
POST /aPi/MypRoFiLe
```

## Encoding Payloads:

#### demo with wfuzz:

```
wfuzz -z file,wordlist/api/common.txt,base64 http://hapihacker.com/FUZZ
```

```
wfuzz -z list,a-b-c,base64-md5-none -u http://hapihacker.com/api/v2/FUZZ
```

```
wfuzz -d '{"email":"test@example.com", "otp":"FUZZ"}' -H 'content-Type: application/json' -z list,Test1,base64@base64@md5 -u http://domain.com/end-point
```

## Origin Header Spoofing:

```
X-Forwarded-For
X-Forwarded-Host
X-Host
X-Originating-IP
X-Remote-IP
X-Client-IP
X-Remote-Addr
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://shahidulandshamim.gitbook.io/web-application/api-testing/bypassing-technique.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
