Module 2. Advanced testing · Lesson 14 of 41 · 13 min

Security for QA: the OWASP Top 10 in practice

What every tester can check from the OWASP Top 10: access control, injection, authentication, configuration.

QA is the first line of security

Penetration tests are done by specialists, but most real vulnerabilities are found with ordinary checks — if you know where to look. The OWASP Top 10 lists the most common categories of web application vulnerabilities.

OWASP Top 10 (2021)A01Broken access controlA02Cryptographic failuresA03Injection (SQL, XSS…)A04Insecure designA05Security misconfigurationA06Vulnerable componentsA07Authentication failuresA08Software and data integrityA09Logging and monitoringA10SSRF
OWASP Top 10 (2021). The ten most common web application vulnerability categories according to OWASP. The first ones are the most practical for QA: access control, injection, authentication.

A01. Broken access control

The most common category. Checks:

  • change the ID in the URL or the request body (/invoices/105 → /invoices/104) — other people's data must stay inaccessible;
  • open an admin page as a regular user;
  • call an action that the UI hides for this role directly through the API;
  • after logging out, the Back button doesn't show protected data.

A03. Injection

  • In a search field: ' OR 1=1 -- must not return every record or an SQL error.
  • In text fields: <script>alert(1)</script> must render as text, not execute (XSS).
  • File names on upload: ../../etc/passwd, very long names, Unicode.

A07. Authentication failures

  • Login attempts are limited: after N failures, a delay or a CAPTCHA.
  • The same message for "no such email" and "wrong password" — otherwise attackers can enumerate accounts.
  • Password reset: the link is single-use and expires.
  • The session ends after logout and after a password change.

A05. Security misconfiguration

  • Stack traces and server versions in error messages.
  • /admin, /.git or /swagger exposed in production.
  • Missing security headers: Content-Security-Policy, X-Frame-Options.

Sensitive data

Passwords, tokens and personal data (PII) shouldn't end up in URLs, logs, localStorage or error messages. Take test SSNs and card numbers from the test data generator, never real ones — in the US, leaking real PII can trigger breach-notification laws.

How to file a finding

A security bug is filed like any other, but with restricted visibility: steps, the request and the response, the impact ("any user can see other users' invoices"). Don't post a working exploit in a shared channel. Use the bug report template.

Key takeaways

  • The most common vulnerability is broken access control: try other users' IDs as a different role.
  • Check input fields for SQL injection and XSS.
  • Sensitive data must not end up in URLs, logs or error messages.

Check yourself

  1. 1. After changing /orders/15 to /orders/14 you see someone else's order. Which OWASP category?

  2. 2. Which failed-login message is safer?

  3. 3. What indicates XSS?