BolEnglishLearn · Play · Win
Login

🛡️ Testing & Quality · Testing & Quality

🛡️

Security Testing

Test TypeAdvancedModule 7

Look for vulnerabilities and incorrect access.

Functional success does not prove security.

💡 In practice

Verify one customer cannot retrieve another customer's private record.

🖼️ CONCEPT PICTURE
A picture to help remember Security Testing
Verify one customer cannot retrieve another customer's private record.

💡 Like hiring someone to try the locks and windows of your house, instead of only checking that the front door opens for you.

💡 Learn🛠️ Apply🎯 Check

💡 Why it matters

A feature can work perfectly for the intended user and still leak data to the wrong one. Security testing probes for the weaknesses attackers look for, like broken access and injectable input. Finding them in testing is far cheaper than finding out after a breach.

🛠️ How to achieve it

1
Test access boundaries
Try to reach another user's data to confirm authorization actually blocks it.
2
Probe untrusted input
Feed malicious input to check for injection and other input-handling flaws.
3
Scan dependencies
Automatically check libraries for known vulnerabilities and keep them updated.
4
Think like an attacker
Test the paths a misuser would take, not just the intended happy path.

⚠️ Signs of trouble

  • •One user can read or change another user's data.
  • •Dependencies are never checked for known vulnerabilities.
  • •Only the intended, well-behaved path is ever tested.
  • •Security is assumed because the feature 'works'.
⚠️ Common mistake: Equating 'the feature works' with 'the feature is secure'. Explicitly test misuse, such as reaching data you should not be allowed to see.

🎯 Quick check

Score: 0/3

Three questions to test the idea.

  1. 1. Why is 'the feature works' not proof it is secure?

    Answer: It may still leak data or allow wrong access

    A feature can behave correctly for the intended user and still expose data to someone who should not see it.

  2. 2. Which check is a classic security test?

    Answer: Confirming one customer cannot read another's private record

    Verifying access boundaries hold is core security testing, catching broken access control before attackers do.

  3. 3. Why scan third-party dependencies?

    Answer: They may contain known vulnerabilities you inherit

    Libraries can carry known flaws, so scanning and updating them closes holes you would otherwise ship.

🔑 Key terms

Vulnerability
A weakness an attacker can exploit.
Access control
Rules that decide who may see or change what.
Injection
Slipping commands into input that the system then runs.
Dependency scan
Checking third-party libraries for known flaws.

✅ Review checklist

📊 Your progress

0%
Mark this topic learned to track it.
Saved in this browser.
🚀 Got it?
Mark it learned and move to the next topic.
Next topic →