HTTP/3 and QUIC Security Fundamentals
What You'll Learn
You'll understand how HTTP/3's QUIC transport protocol fundamentally changes web security by switching from TCP to UDP, introducing connection migration and 0-RTT handshakes.
The Shift from TCP to UDP
HTTP/3 represents a radical departure: it abandons TCP entirely in favor of QUIC (Quick UDP Internet Connections), which runs over UDP. Think of it like switching from registered mail (TCP) to express courier service (UDP) — but adding your own tracking and security on top.
Why This Matters for Security
Traditional model (HTTP/1.1, HTTP/2):
- TCP handles reliability and ordering
- TLS adds encryption on top
- Two separate handshakes = slower, more round trips
QUIC model (HTTP/3):
- Built-in encryption (TLS 1.3 mandatory)
- Single handshake combining transport + crypto
- UDP provides the bare transport layer
Connection Migration
QUIC connections aren't tied to IP addresses. When you switch from WiFi to cellular data, your connection seamlessly migrates. This creates new security considerations:
- Attack surface: Adversaries might attempt to hijack migrating connections
- Defense: QUIC uses connection IDs and cryptographic validation to prevent hijacking
0-RTT Handshakes
QUIC supports "zero round-trip time" resumption — sending data in the very first packet using cached keys from previous sessions.
The security trade-off: 0-RTT is vulnerable to replay attacks. An attacker capturing 0-RTT packets can resend them to trigger duplicate actions. This is why 0-RTT should only carry idempotent requests (safe to repeat).
The UDP Security Model
UDP lacks TCP's built-in protections. QUIC reimplements reliability, congestion control, and flow control at the application layer — giving developers more control but requiring careful implementation to avoid amplification attacks.
Key Takeaway: HTTP/3 with QUIC unifies transport and encryption into UDP, enabling faster connections and migration, but introduces new attack vectors around 0-RTT replay and connection migration that require cryptographic validation and careful request handling.