> For the complete documentation index, see [llms.txt](https://vulp3cula.gitbook.io/hackers-grimoire/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://vulp3cula.gitbook.io/hackers-grimoire/exploitation/web-application.md).

# Web application attacks

Nowadays, organizations are moving key assets to the cloud and using web-based services (thin clients) instead of desktop software. Cloud and commodity software can improve patch compliance and reduce complexity, but can also increase an organization's attack surface by making important assets directly accessible from the public internet. This extends beyond websites to the codebase and code deployment tools, which may be far less secure compared to the production platform, and can be used to inject malicious code into it. Organizations are also adopting cloud-based email and productivity tools (e.g. Office365) which can expose sensitive internal data through phishing attacks. APIs are also another point of exposure if they are designed with weak security controls.

Exploiting web application vulnerabilities is a very common way to get a foothold into a system, or an organization. This is why understanding web application security is so important, even if it's really boring parsing GET and POST requests all day using Burp.

A good place to start if you're totally new to web application security is the [Damn Vulnerable Web Application](http://www.dvwa.co.uk/). If you don't want to set it up yourself, you can sign up for [Virtual Hacking Labs](https://www.virtualhackinglabs.com/) and use their Metasploitable 2 + DVWA practice machine.

## **Further reading**

* [PortSwigger: Web Security Academy](https://portswigger.net/web-security)
* [Web application penetration tester's cheatsheet](https://jdow.io/blog/2018/03/18/web-application-penetration-testing-methodology/)
* [Web Application Hacker's Handbook, 2nd Edition](https://www.amazon.com/Web-Application-Hackers-Handbook-Exploiting-ebook/dp/B005LVQA9S)
* [OWASP Top 10 - 2017](https://www.owasp.org/index.php/Top_10-2017_Top_10)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://vulp3cula.gitbook.io/hackers-grimoire/exploitation/web-application.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
