The web
HTTP
The web's request and response protocol: plain text over TCP unless wrapped in TLS.
HTTP is the web's protocol: a client sends a request over TCP and the server sends back one response. A request is
a line such as GET /account, headers and an optional body; the response is a status (200, 404, 502),
headers and a body. Over plain HTTP, without TLS, anyone on the path can read and change all of it.
Read next
- TLS and certificates Encryption plus proof of identity: the server shows a certificate for the name, signed by a trusted authority.
- Load balancer One address in front of many servers, spreading connections between them and skipping the unhealthy.
- TCP Reliable, ordered byte streams between programs: handshake, acknowledgements, retransmission.
- Virtual host Many sites on one address and port, told apart by the Host header in each request.
- HTTP keep-alive Several HTTP requests over one TCP connection instead of a new handshake for each.
- HTTP/2 HTTP's meaning in binary frames: many requests as streams over one TCP connection, headers compressed.
- HTTP/3 and QUIC HTTP over QUIC: a transport on UDP port 443 with TLS 1.3 built in and streams that do not block each other.
- HTTP cookie A short piece of text a server gives a client, which the client sends back on every later request.
- HTTP cache A stored copy of a reply, reused until it expires and then checked with the server.
- WebSocket One connection kept open after an HTTP upgrade, where either side can send a message at any moment.
- SIP The signaling that sets up a VoIP call on port 5060: INVITE, ringing, 200 OK, ACK — then the audio flows separately over RTP.
- REST API An HTTP interface where every thing is a URL and the methods are the verbs: GET reads, POST creates, PUT and PATCH change, DELETE removes.
- Forward proxy A server that makes web requests on its users' behalf, and so can allow or refuse them by name and URL.
- Web application firewall A reverse proxy in front of a web application that refuses requests matching its rules before they reach it.
- Encoding and decoding Rewriting bytes as safe text by a public, keyless recipe — so it always decodes straight back and protects nothing.
- Packet forensics Reconstructing an incident after the fact from a saved packet capture of the traffic.
- Banner grabbing Reading the greeting a service sends on connect, to learn the real software and version behind a port.
- Content discovery Finding the pages and files a web server holds but links to nowhere, by guessing common paths from a wordlist.
- SQL injection Changing what a database query does by sending input that is pasted into the query as code, not data.
- Parameterised query Sending a database the fixed query and the values separately, so input is always data and never code.
- Command injection Running your own operating-system commands by sending input a web app pastes into a shell command line.
- Unrestricted file upload Letting a user upload any file with no check on its type, so attacker code can be stored on the server.
- Path traversal Reading files outside the intended folder by putting `../` in a filename the server joins onto a path.
- Insecure direct object reference Reaching another user's data by changing an id, filename or key in a request the server never checks you own.
- Broken access control An access check that rests on something the client controls, so an attacker simply sets it and walks past.
- CMS enumeration Reading a known content-management system's exact version, users, themes and plugins, to find its weak spot.
- Cross-site scripting Getting a web app to serve your JavaScript to other users, so it runs in their browser as the site itself.
- Output encoding Escaping untrusted data for the exact place it is written, so it is shown as text and never run as code.
- Cross-site request forgery Making a victim's browser send a state-changing request to a site they are logged in to, from a page the attacker controls.