DML School of Technology
Menu

Open to everyone Reading, lesson 53 of 100, 2 min read

The OWASP Top 10

A shared list of the biggest risks

OWASP (the Open Worldwide Application Security Project) is a non-profit community that publishes free guidance on web security. Its best-known document is the OWASP Top 10, a list of the most important web application risks, updated every few years from real-world data.

The 2021 edition lists:

#RiskIn short
A01Broken access controlUsers can do or see things they should not
A02Cryptographic failuresSensitive data not encrypted, or encrypted badly
A03InjectionUntrusted input treated as code or commands (SQL, OS commands)
A04Insecure designSecurity missing from the design itself
A05Security misconfigurationDefault settings, verbose errors, unneeded features switched on
A06Vulnerable and outdated componentsOld libraries and frameworks with known flaws
A07Identification and authentication failuresWeak sign-in, no MFA, poor session handling
A08Software and data integrity failuresUpdates or code loaded without checking they are genuine
A09Security logging and monitoring failuresAttacks happen and nobody notices
A10Server-side request forgery (SSRF)The server can be tricked into fetching internal addresses

OWASP revises the list periodically; check its website for the latest edition. The ideas behind it change slowly.

Broken access control comes first

Notice that the top risk is not a clever technical trick but a simple failure to check permissions. Examples:

  • changing /results/1043 to /results/1044 shows another student's results (an insecure direct object reference);
  • a normal user reaching /admin because the page only hid the link;
  • an API that returns every user's email when it should return only yours.

The fix is the same each time: on the server, for every request, check that this user may do this action on this item.

Tip

OWASP also publishes the free Cheat Sheet Series: short, practical guides for developers on each topic. Bookmark it.