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
| Class | What goes wrong | Defence |
|---|---|---|
| Injection (such as SQL injection) | Untrusted data is treated as instructions, changing how a database query is interpreted | Parameterised queries, least-privilege database accounts |
| Cross-site scripting (XSS) | Untrusted content runs as script in someone's browser | Contextual output encoding, a Content Security Policy as an extra layer |
| IDOR | Object access without an adequate permission check | Server-side object-level authorisation |
| CSRF (cross-site request forgery) | Another site makes the victim's browser send an unwanted, authenticated request | Anti-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:
- A harmless proof in scope (for XSS, something like
alert(document.domain)in your own lab, not stealing cookies). - An unaffected comparison: the same request with benign input behaves normally.
- Minimal evidence: the request, the response, and a screenshot. No more data than needed.
- 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
Quiz score: 0 of 4
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.