> For the complete documentation index, see [llms.txt](https://book.larswaechter.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://book.larswaechter.dev/cheatsheets/web-security.md).

# Web Security

Security plays a major role when developing software. Make sure that the one you create is safe. Below you'll find the OWASP Top Ten list that contains the most critical security risks to web applications.

<table><thead><tr><th width="102.33333333333331">Rank</th><th>Title</th><th>Description</th></tr></thead><tbody><tr><td>1</td><td>Broken Access Control</td><td></td></tr><tr><td>2</td><td>Cryptographic Failures</td><td></td></tr><tr><td>3</td><td>Injection</td><td></td></tr><tr><td>4</td><td>Insecure Design</td><td></td></tr><tr><td>5</td><td>Security Misconfiguration</td><td></td></tr><tr><td>6</td><td>Vulnerable and Outdated Components</td><td></td></tr><tr><td>7</td><td>Identification and Authentication Failures</td><td></td></tr><tr><td>8</td><td>Software and Data Integrity Failures</td><td></td></tr><tr><td>9</td><td>Security Logging and Monitoring Failures</td><td></td></tr><tr><td>10</td><td>Server-Side Request Forgery</td><td></td></tr></tbody></table>

Don't forget to write automated tests for verifying your application's security.

## Further Resources

* [OWASP Top 10](https://owasp.org/www-project-top-ten/)


---

# 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:

```
GET https://book.larswaechter.dev/cheatsheets/web-security.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.
