Web SecurityWeb Security · Lesson 02
How The Web Works (Attack Surface)
HTTP, requests, cookies, sessions and where bugs actually live.
Video tutorialTrack course · freeCodeCamp
Speed
Transcript & captions
5/5
Every web attack is ultimately a crafted HTTP request. Understanding the request/response cycle - method, path, headers, body, status, cookies - is what turns guessing into methodical testing.
| Surface | Typical bugs |
|---|---|
| URL / query params | IDOR, open redirect, reflected XSS |
| Form and JSON bodies | Injection, mass assignment |
| Headers and cookies | Session fixation, host header injection |
| File uploads | Remote code execution, stored XSS, path traversal |
| Client-side JS | DOM XSS, exposed keys, weak logic |
| APIs | Broken access control, rate limit bypass |
Anything the client sends can be modified: parameters, headers, cookies, hidden fields and JavaScript validation. Never trust it.
Knowledge check
0/2 answeredWhich part of a request can an attacker control?
Client-side validation is...