Courses / HEC NSCT – National Skill Competency Test: Complete Preparation for Computing Graduates

10.3 Network and Web Application Security

Area 10 – Cyber Security (5%) · 45 min read · 14 MCQs to check yourself

Network attacks and defences

Web application security (OWASP Top 10 ideas)

Attack How it works Fix
SQL injection Input like ' OR '1'='1 changes the query Parameterised queries / prepared statements, input validation
XSS (cross-site scripting) Attacker's script runs in the victim's browser Output encoding/escaping, Content Security Policy
CSRF A forged request uses the victim's logged-in session Anti-CSRF tokens, SameSite cookies
Broken access control A user reaches others' data (e.g. by changing ?id=) Server-side authorisation checks
Broken authentication Weak passwords, no lockout MFA, rate limiting, secure sessions
Security misconfiguration Default passwords, debug mode on Hardening, patching
Sensitive data exposure No encryption HTTPS, encryption at rest
Other attacks: brute force and credential stuffing (reused passwords), session hijacking (stolen cookie – use HttpOnly and Secure flags), directory traversal (../../etc/passwd), buffer overflow (writing past an array – use safe languages and bounds checks).

What is SQL injection? (Hacksplaining)

This lesson ends with a quiz of 14 MCQs. Open the lesson on PrepOasis to take it and save your progress.

Previous: 10.2 Cryptography Made Simple · Next: 10.4 Incident Response, Forensics, Law and Ethics

All lessons in HEC NSCT – National Skill Competency Test: Complete Preparation for Computing Graduates