# Web Vulnerabilities Methodology

{% hint style="success" %}
Learn & practice AWS Hacking:<img src="https://4053168017-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbkAZDoSuRHGdNlWHdyKs%2Fuploads%2Fgit-blob-ce8af1068db7be4ad9003f8ddb02fea8f943f1a4%2Farte.png?alt=media" alt="" data-size="line">[**HackTricks Training AWS Red Team Expert (ARTE)**](https://training.hacktricks.xyz/courses/arte)<img src="https://4053168017-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbkAZDoSuRHGdNlWHdyKs%2Fuploads%2Fgit-blob-ce8af1068db7be4ad9003f8ddb02fea8f943f1a4%2Farte.png?alt=media" alt="" data-size="line">\
Learn & practice GCP Hacking: <img src="https://4053168017-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbkAZDoSuRHGdNlWHdyKs%2Fuploads%2Fgit-blob-54ee1fb931f39d1e6f50150361b6aa1927f4ee88%2Fgrte.png?alt=media" alt="" data-size="line">[**HackTricks Training GCP Red Team Expert (GRTE)**<img src="https://4053168017-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbkAZDoSuRHGdNlWHdyKs%2Fuploads%2Fgit-blob-54ee1fb931f39d1e6f50150361b6aa1927f4ee88%2Fgrte.png?alt=media" alt="" data-size="line">](https://training.hacktricks.xyz/courses/grte)

<details>

<summary>Support HackTricks</summary>

* Check the [**subscription plans**](https://github.com/sponsors/carlospolop)!
* **Join the** 💬 [**Discord group**](https://discord.gg/hRep4RUj7f) or the [**telegram group**](https://t.me/peass) or **follow** us on **Twitter** 🐦 [**@hacktricks\_live**](https://twitter.com/hacktricks_live)**.**
* **Share hacking tricks by submitting PRs to the** [**HackTricks**](https://github.com/carlospolop/hacktricks) and [**HackTricks Cloud**](https://github.com/carlospolop/hacktricks-cloud) github repos.

</details>
{% endhint %}

<figure><img src="https://4053168017-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbkAZDoSuRHGdNlWHdyKs%2Fuploads%2Fgit-blob-ffd918256b0d7a6e898e6b0380662a7903701da7%2Fpentest-tools.svg?alt=media" alt=""><figcaption></figcaption></figure>

**Get a hacker's perspective on your web apps, network, and cloud**

**Find and report critical, exploitable vulnerabilities with real business impact.** Use our 20+ custom tools to map the attack surface, find security issues that let you escalate privileges, and use automated exploits to collect essential evidence, turning your hard work into persuasive reports.

{% embed url="https://pentest-tools.com/?utm_term=jul2024&utm_medium=link&utm_source=hacktricks&utm_campaign=spons" %}

In every Web Pentest, there are **several hidden and obvious places that might be vulnerable**. This post is meant to be a checklist to confirm that you have searched for vulnerabilities in all the possible places.

## Proxies

{% hint style="info" %}
Nowadays **web** **applications** usually **uses** some kind of **intermediary** **proxies**, those may be (ab)used to exploit vulnerabilities. These vulnerabilities need a vulnerable proxy to be in place, but they usually also need some extra vulnerability in the backend.
{% endhint %}

* [ ] [**Abusing hop-by-hop headers**](abusing-hop-by-hop-headers)
* [ ] [**Cache Poisoning/Cache Deception**](cache-deception)
* [ ] [**HTTP Request Smuggling**](http-request-smuggling)
* [ ] [**H2C Smuggling**](h2c-smuggling)
* [ ] [**Server Side Inclusion/Edge Side Inclusion**](server-side-inclusion-edge-side-inclusion-injection)
* [ ] [**Uncovering Cloudflare**](../network-services-pentesting/pentesting-web/uncovering-cloudflare)
* [ ] [**XSLT Server Side Injection**](xslt-server-side-injection-extensible-stylesheet-language-transformations)
* [ ] [**Proxy / WAF Protections Bypass**](proxy-waf-protections-bypass)

## **User input**

{% hint style="info" %}
Most of the web applications will **allow users to input some data that will be processed later.**\
Depending on the structure of the data the server is expecting some vulnerabilities may or may not apply.
{% endhint %}

### **Reflected Values**

If the introduced data may somehow be reflected in the response, the page might be vulnerable to several issues.

* [ ] [**Client Side Template Injection**](client-side-template-injection-csti)
* [ ] [**Command Injection**](command-injection)
* [ ] [**CRLF**](crlf-0d-0a)
* [ ] [**Dangling Markup**](dangling-markup-html-scriptless-injection)
* [ ] [**File Inclusion/Path Traversal**](file-inclusion)
* [ ] [**Open Redirect**](open-redirect)
* [ ] [**Prototype Pollution to XSS**](../deserialization/nodejs-proto-prototype-pollution#client-side-prototype-pollution-to-xss)
* [ ] [**Server Side Inclusion/Edge Side Inclusion**](server-side-inclusion-edge-side-inclusion-injection)
* [ ] [**Server Side Request Forgery**](ssrf-server-side-request-forgery)
* [ ] [**Server Side Template Injection**](ssti-server-side-template-injection)
* [ ] [**Reverse Tab Nabbing**](reverse-tab-nabbing)
* [ ] [**XSLT Server Side Injection**](xslt-server-side-injection-extensible-stylesheet-language-transformations)
* [ ] [**XSS**](xss-cross-site-scripting)
* [ ] [**XSSI**](xssi-cross-site-script-inclusion)
* [ ] [**XS-Search**](xs-search)

Some of the mentioned vulnerabilities require special conditions, others just require the content to be reflected. You can find some interesting polygloths to test quickly the vulnerabilities in:

{% content-ref url="pocs-and-polygloths-cheatsheet" %}
[pocs-and-polygloths-cheatsheet](pocs-and-polygloths-cheatsheet)
{% endcontent-ref %}

### **Search functionalities**

If the functionality may be used to search some kind of data inside the backend, maybe you can (ab)use it to search arbitrary data.

* [ ] [**File Inclusion/Path Traversal**](file-inclusion)
* [ ] [**NoSQL Injection**](nosql-injection)
* [ ] [**LDAP Injection**](ldap-injection)
* [ ] [**ReDoS**](regular-expression-denial-of-service-redos)
* [ ] [**SQL Injection**](sql-injection)
* [ ] [**XPATH Injection**](xpath-injection)

### **Forms, WebSockets and PostMsgs**

When a websocket posts a message or a form allowing users to perform actions vulnerabilities may arise.

* [ ] [**Cross Site Request Forgery**](csrf-cross-site-request-forgery)
* [ ] [**Cross-site WebSocket hijacking (CSWSH)**](websocket-attacks)
* [ ] [**PostMessage Vulnerabilities**](postmessage-vulnerabilities)

### **HTTP Headers**

Depending on the HTTP headers given by the web server some vulnerabilities might be present.

* [ ] [**Clickjacking**](clickjacking)
* [ ] [**Content Security Policy bypass**](content-security-policy-csp-bypass)
* [ ] [**Cookies Hacking**](hacking-with-cookies)
* [ ] [**CORS - Misconfigurations & Bypass**](cors-bypass)

### **Bypasses**

There are several specific functionalities where some workarounds might be useful to bypass them

* [ ] [**2FA/OTP Bypass**](2fa-bypass)
* [ ] [**Bypass Payment Process**](bypass-payment-process)
* [ ] [**Captcha Bypass**](captcha-bypass)
* [ ] [**Login Bypass**](login-bypass)
* [ ] [**Race Condition**](race-condition)
* [ ] [**Rate Limit Bypass**](rate-limit-bypass)
* [ ] [**Reset Forgotten Password Bypass**](reset-password)
* [ ] [**Registration Vulnerabilities**](registration-vulnerabilities)

### **Structured objects / Specific functionalities**

Some functionalities will require the **data to be structured in a very specific format** (like a language serialized object or XML). Therefore, it's easier to identify if the application might be vulnerable as it needs to be processing that kind of data.\
Some **specific functionalities** may be also vulnerable if a **specific format of the input is used** (like Email Header Injections).

* [ ] [**Deserialization**](deserialization)
* [ ] [**Email Header Injection**](email-injections)
* [ ] [**JWT Vulnerabilities**](hacking-jwt-json-web-tokens)
* [ ] [**XML External Entity**](xxe-xee-xml-external-entity)

### Files

Functionalities that allow uploading files might be vulnerable to several issues.\
Functionalities that generate files including user input might execute unexpected code.\
Users that open files uploaded by users or automatically generated including user input might be compromised.

* [ ] [**File Upload**](file-upload)
* [ ] [**Formula Injection**](formula-csv-doc-latex-ghostscript-injection)
* [ ] [**PDF Injection**](xss-cross-site-scripting/pdf-injection)
* [ ] [**Server Side XSS**](xss-cross-site-scripting/server-side-xss-dynamic-pdf)

### **External Identity Management**

* [ ] [**OAUTH to Account takeover**](oauth-to-account-takeover)
* [ ] [**SAML Attacks**](saml-attacks)

### **Other Helpful Vulnerabilities**

These vulnerabilities might help to exploit other vulnerabilities.

* [ ] [**Domain/Subdomain takeover**](domain-subdomain-takeover)
* [ ] [**IDOR**](idor)
* [ ] [**Parameter Pollution**](parameter-pollution)
* [ ] [**Unicode Normalization vulnerability**](unicode-injection)

<figure><img src="https://4053168017-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbkAZDoSuRHGdNlWHdyKs%2Fuploads%2Fgit-blob-ffd918256b0d7a6e898e6b0380662a7903701da7%2Fpentest-tools.svg?alt=media" alt=""><figcaption></figcaption></figure>

**Get a hacker's perspective on your web apps, network, and cloud**

**Find and report critical, exploitable vulnerabilities with real business impact.** Use our 20+ custom tools to map the attack surface, find security issues that let you escalate privileges, and use automated exploits to collect essential evidence, turning your hard work into persuasive reports.

{% embed url="https://pentest-tools.com/?utm_term=jul2024&utm_medium=link&utm_source=hacktricks&utm_campaign=spons" %}

{% hint style="success" %}
Learn & practice AWS Hacking:<img src="https://4053168017-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbkAZDoSuRHGdNlWHdyKs%2Fuploads%2Fgit-blob-ce8af1068db7be4ad9003f8ddb02fea8f943f1a4%2Farte.png?alt=media" alt="" data-size="line">[**HackTricks Training AWS Red Team Expert (ARTE)**](https://training.hacktricks.xyz/courses/arte)<img src="https://4053168017-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbkAZDoSuRHGdNlWHdyKs%2Fuploads%2Fgit-blob-ce8af1068db7be4ad9003f8ddb02fea8f943f1a4%2Farte.png?alt=media" alt="" data-size="line">\
Learn & practice GCP Hacking: <img src="https://4053168017-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbkAZDoSuRHGdNlWHdyKs%2Fuploads%2Fgit-blob-54ee1fb931f39d1e6f50150361b6aa1927f4ee88%2Fgrte.png?alt=media" alt="" data-size="line">[**HackTricks Training GCP Red Team Expert (GRTE)**<img src="https://4053168017-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbkAZDoSuRHGdNlWHdyKs%2Fuploads%2Fgit-blob-54ee1fb931f39d1e6f50150361b6aa1927f4ee88%2Fgrte.png?alt=media" alt="" data-size="line">](https://training.hacktricks.xyz/courses/grte)

<details>

<summary>Support HackTricks</summary>

* Check the [**subscription plans**](https://github.com/sponsors/carlospolop)!
* **Join the** 💬 [**Discord group**](https://discord.gg/hRep4RUj7f) or the [**telegram group**](https://t.me/peass) or **follow** us on **Twitter** 🐦 [**@hacktricks\_live**](https://twitter.com/hacktricks_live)**.**
* **Share hacking tricks by submitting PRs to the** [**HackTricks**](https://github.com/carlospolop/hacktricks) and [**HackTricks Cloud**](https://github.com/carlospolop/hacktricks-cloud) github repos.

</details>
{% endhint %}
