Security Testing for QA Engineers

Security Testing for QA Engineers: Where Your Job Starts and Stops

0 Comments

You are not a penetration tester, and nobody is asking you to be. But a tester who knows the OWASP Top 10 catches more real defects than one who does not – and knows when to hand it over.

In this article

  • The OWASP Top 10, as a tester's checklist
  • The three checks that find the most, fastest
  • Input testing that is not just a script tag
  • Where your job stops
  • What to automate

The OWASP Top 10, as a tester's checklist

Risk What to try as a tester
Broken access control Log in as A, change an id in the URL to B's record
Cryptographic failures Is the session cookie Secure and HttpOnly? Is anything sensitive in the URL?
Injection Put a quote, a semicolon and a script tag into every field that reaches a store
Insecure design Can you skip a step in a flow that is supposed to be sequential?
Security misconfiguration Default credentials, directory listing, stack traces in a response
Vulnerable components Does the build scan its dependencies at all?
Auth failures Does the account lock? Does the session expire? Does logout really log out?
Data integrity failures Is an update accepted without a check on who sent it?
Logging failures Is a failed login logged? Is a password ever logged?
Server-side request forgery Does a field that takes a URL fetch it server-side?

The three checks that find the most, fastest

If you only have an hour, spend it here.

  • Horizontal access control. Two accounts, A and B. Do everything as A, note every id you see, then request each one while logged in as B. Any success is a serious defect.
  • Vertical access control. Find an admin-only endpoint. Call it as a normal user. A UI that hides a button is not access control.
  • Session handling. Log in, copy the cookie, log out, replay the cookie. If it still works, the session was never invalidated server-side.

Broken access control is the number one risk in the OWASP list and the easiest for a functional tester to find, because it needs no tool – only two accounts.

Input testing that is not just a script tag

'                      -- a lone quote: does the error mention SQL?
' OR '1'='1            -- classic, still worth one try
<script>alert(1)</script>   -- reflected? stored? neither?
../../etc/passwd       -- path traversal in anything that takes a filename
{{7*7}}                -- template injection: does the page come back with 49?
%00                    -- null byte, in anything that handles uploads

You are not trying to exploit anything. You are looking for the response that says the input reached somewhere it should not have – a database error, a reflected payload, a stack trace.

Where your job stops

Stop and hand over when you find something that works. Do not escalate it, do not pull data out, do not test it in production. Write it up with the exact request, the account you used and the response, and give it to whoever owns security.

And get permission in writing before you start. Scanning a system you are not authorised to scan is not testing.

What to automate

  • Dependency scanning on every build – it is free and it catches real CVEs.
  • A ZAP baseline scan in the pipeline, which is passive and safe against a test environment.
  • Static analysis on your own test code too, not only on the product.
  • An access-control test in your functional suite: the B-requests-A's-record case, asserted automatically, forever.

Key points

  • Two accounts and an hour will find more than most scanners.
  • A hidden button is not access control; test the endpoint, not the UI.
  • Get authorisation in writing before any security testing.
  • Stop at proof. Finding it is your job; exploiting it is not.

Practise this on the free applications at jstestingacademy.co.in/qa-apps – no account needed.