Bitzu

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

Single choice

Injecting carriage-return and line-feed characters into a value that ends up in a response header is known as:

  1. Directory traversal
  2. HTTP response splitting
  3. Server-side request forgery
  4. 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.

Select all that apply

Which findings are typical web server misconfigurations an attacker can exploit?

  1. Directory listing enabled on upload folders
  2. HTTPS enforced with modern TLS
  3. Default administrator credentials left in place
  4. Service running as a low-privilege account
  5. 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

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.

Download on the App StoreGet it on Google Play

More 312-50 topics in this module