Statutory Warning & Legal Disclaimer
Part 1: Denial-of-Service (DoS/DDoS) Attack Vectors
1. Volumetric Attacks
- UDP Floods: High volumes of UDP packets flood random ports. The target server inspects each packet for listening services and sends back ICMP destination unreachable responses, draining resources.
- ICMP Floods: Rapid ping requests without waiting for responses saturate network throughput.
- DNS Amplification: The attacker spoofs the target's IP and sends small queries to public DNS resolvers. The resolvers respond with much larger packets directed at the victim, amplifying the traffic.
2. Protocol Attacks
- SYN Floods: The attacker sends a flood of SYN packets but never returns the ACK. The server holds these connections half-open, exhausting its connection state table.
- Smurf Attacks: The attacker spoofs the victim's IP and broadcasts ICMP packets. Every device on the broadcast domain replies to the victim, flooding it with traffic.
3. Application Layer Attacks
- HTTP Floods: The server gets flooded with standard-looking HTTP GET/POST requests that force CPU-heavy operations like PDF generation or search queries.
- Slowloris: The attacker opens many connections and keeps them open by sending partial HTTP headers very slowly, eventually filling the server's maximum connection pool.
Defensive Mitigations
- Traffic Throttling: Deploy rate limiters at the load balancer or application gateway.
- CDN Integration: Use CDNs with Anycast routing to distribute and absorb traffic spikes.
- SYN Cookies: Enable SYN cookies on Linux hosts so memory is only allocated after the handshake completes.
Part 2: Token-Based Authentication Security
JWT Structure
- Header: Specifies the token type and the hashing algorithm used (e.g., HMAC SHA-256).
- Payload: Contains claims, such as user IDs, permissions, and expiry timestamps.
- Signature: Generated by signing the encoded header and payload with a secret key.
Common Authentication Vulnerabilities
Algorithm Confusion
- Remediation: Explicitly reject "none" algorithms in production. Hardcode the expected signature verification algorithm in your verification functions.
Weak Signature Secrets
- Remediation: Use cryptographically secure keys with at least 256 bits of entropy.
Insecure Client Storage
- Remediation: Store tokens in secure, httpOnly cookies with SameSite=Strict and the Secure flag enabled. This prevents both XSS reading and CSRF abuse.
Part 3: Rate Limiting and Common Bypasses
Related Article: IPv6 Address Space Abuse & Autocannon
Understanding DoS Attack Vectors: Autocannon and IPv6 Address Space Abuse
An educational deep dive into how high-performance HTTP tools like Autocannon combined with IPv6's massive address space create new distribu...1. Trusted Proxy Header Spoofing
- Vulnerability: An attacker appends arbitrary IP strings to the header:
- Remediation: Configure your backend to trust these headers only when the request comes from a designated local proxy subnet. Don't parse the header otherwise.
2. IPv6 Subnet Rotation
- Remediation: When applying rate limits to IPv6 traffic, aggregate requests and block at the /64 subnet level rather than matching individual IP addresses.
3. Fingerprinting & Behavioral Analysis
- Remediation: Implement multi-factor rate limiting. Track request frequency against user session keys, API tokens, and client TLS/JA3 fingerprints. Introduce CAPTCHA challenges when request behavior deviates from normal usage profiles.
Deep Dive: Advanced Security Vulnerabilities