312-50 ยท Web servers and web applications
Web server attacks
Misconfiguration, directory traversal, HTTP response splitting, web cache poisoning, SSRF, DNS hijacking of servers, web defacement.
Key points
- Misconfiguration: directory listing, default accounts, verbose errors.
- Directory traversal: ../ leaves the web root.
- HTTP response splitting: CRLF injected into headers.
- Web cache poisoning: a shared cache stores a malicious response.
- SSRF: the server is tricked into making requests.
- Also DNS hijacking, defacement.
- Most succeed through weak configuration or missing input validation.
Practice questions
Injecting carriage-return and line-feed characters into a value that ends up in a response header is known as:
- Directory traversal
- HTTP response splitting
- Server-side request forgery
- Web defacement
Show answer
Answer: B. HTTP response splitting
CRLF injection into headers lets an attacker end the header block and add headers or a body: HTTP response splitting. Directory traversal targets file paths, and SSRF targets outbound requests.
Which findings are typical web server misconfigurations an attacker can exploit?
- Directory listing enabled on upload folders
- HTTPS enforced with modern TLS
- Default administrator credentials left in place
- Service running as a low-privilege account
- Verbose stack traces shown to visitors
Show answer
Answer: A. Directory listing enabled on upload folders, C. Default administrator credentials left in place, E. Verbose stack traces shown to visitors
Directory listing, default credentials and verbose error pages leak or grant access. HTTPS with current TLS and a least-privilege service account are good practice.
True or false: web cache poisoning requires the attacker to first gain a shell on the cache server.
Show answer
Answer: False
False. The attacker only sends crafted requests (for example with unkeyed headers) so the cache stores a harmful response that is then served to other users.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.

More 312-50 topics in this module
- Web server hardening and patch management
- Web application architecture and OWASP Top 10
- Authentication, authorization and access control attacks
- XSS, CSRF and client-side attacks
- Injection, parameter tampering and logic flaws
- Web services, APIs, webhooks and web shells
- Web application hacking methodology and security