Module 2 · Finding, Validating and Reporting Flaws · Lesson 5 of 9

Common vulnerability classes and real validation

Injection, XSS, IDOR and CSRF; their fixes; and why a scanner label is not a confirmed finding.

In this lesson · about 24 minutes

  • Describe injection, XSS, IDOR and CSRF in one sentence each
  • Match each class to its defensive fix
  • Validate a finding with minimal evidence and a clean comparison
ClassWhat goes wrongDefence
Injection (such as SQL injection)Untrusted data is treated as instructions, changing how a database query is interpretedParameterised queries, least-privilege database accounts
Cross-site scripting (XSS)Untrusted content runs as script in someone's browserContextual output encoding, a Content Security Policy as an extra layer
IDORObject access without an adequate permission checkServer-side object-level authorisation
CSRF (cross-site request forgery)Another site makes the victim's browser send an unwanted, authenticated requestAnti-CSRF tokens, SameSite cookies, re-authentication for sensitive actions

Match the fix to the actual failure. One security header can't fix every vulnerability, and HTTPS protects data in transit, not unsafe code on the server.

Validating a finding

Automated scanners are useful for coverage, but their output is a list of hypotheses. A confirmed finding needs:

  1. A harmless proof in scope (for XSS, something like alert(document.domain) in your own lab, not stealing cookies).
  2. An unaffected comparison: the same request with benign input behaves normally.
  3. Minimal evidence: the request, the response, and a screenshot. No more data than needed.
  4. An impact explanation: what could an attacker actually do?

Sorting drill

Name the vulnerability class

Each item describes something seen in a training app.

  • A search for ' OR 1=1-- returns every product, including hidden ones
  • A review containing <script> runs in other shoppers' browsers
  • Changing /api/orders/1001 to /1002 shows another customer's order
  • A page on another site silently submits a 'change email' form to the shop for logged-in visitors
  • A username field with ; ls returns a directory listing

0 of 5 sorted

Decision scenario

The scanner says 'critical'

You're a junior tester on an authorised assessment of a training app.

The automated scanner reports "SQL Injection (Critical)" on the q parameter of /search. The evidence shows it sent q=apple' and the response was 30 ms slower than usual. Your lead asks if this goes in the report as confirmed.

What do you recommend?

0 of 3 options explored. Try the others to see how each would play out.

Check your understanding0 of 4 correct

Question 1

1.Does HTTPS prevent SQL injection?

Question 2

2.How do XSS and SQL injection differ?

Question 3

3.What is a suitable SQL injection defence?

Question 4

4.Is a scanner result enough to claim a confirmed vulnerability?

Quiz score: 0 of 4

Tip: answer every quiz question correctly first.

Noviq Academy is free and for learning. Only test systems you own or have explicit written permission to test; unauthorised testing is illegal. Every lab here is simulated or runs locally on your own machine. OWASP, Juice Shop, Burp Suite and Nmap belong to their owners; this course is independent of them.