Threats and Vulnerabilities
Every attack on this page exploits either a technical weakness (software that trusts input it shouldn't) or a human one (people who trust messages they shouldn't). Understanding both is the entire point of this topic: you can't defend against a threat you can't recognise.
Malware: not all the same thing
"Malware" is a catch-all term. Exam questions usually want the specific type, because they behave, and spread, in genuinely different ways.
Denial of Service: winning by overwhelming, not breaking in
A DoS attack doesn't need to find a clever vulnerability at all. It just needs to send more requests than the server can possibly handle, so genuine users can't get through. Watch the server's capacity fill up.
Controls
Exam tips
- DoS: one attacking machine. DDoS (Distributed DoS): many machines, often an unwitting "botnet" of infected devices, attacking at once, making it much harder to block by simply banning one source address.
- The goal isn't theft, it's denying legitimate users access, which is exactly why it's named what it is.
SQL injection: when input is trusted too much
This is a conceptual, illustrative walkthrough of the classic textbook example, showing why unsanitised input is dangerous and how it's actually prevented, not a working attack against any real system.
A login form's query, built by joining text directly
What does the user type?
The defence: parameterised queries
The actual fix isn't "block certain words", it's never building a query by joining raw text together at all. A parameterised query keeps the structure and the data completely separate, so user input can never be interpreted as part of the query's logic, no matter what characters it contains.
Data interception: reading traffic that isn't yours
Data travelling across a network can, in principle, be read by anyone positioned along its route, using tools called packet sniffers. Whether that's a problem depends entirely on one thing.
| Unencrypted (e.g. HTTP) | Encrypted (e.g. HTTPS) | |
|---|---|---|
| If intercepted | The intercepted data is readable exactly as sent, including passwords typed into a form | The intercepted data is scrambled ciphertext, useless without the decryption key |
| Where this matters | Public WiFi is the classic risk, anyone else on that network can potentially capture unencrypted traffic | The padlock icon in a browser is confirming this protection is active for that specific connection |
This connects directly to the earlier networking work: encryption doesn't stop interception from being possible, it makes the intercepted data useless, which is a completely different and far more practical defence.