Bitzu

CPSA ยท Web servers, architecture and protocols

IIS and Apache and their typical flaws

Differences between the servers, default content, modules and common misconfigurations.

Key points

  • Apache httpd: many platforms; text config (httpd.conf, per-directory .htaccess).
  • IIS: Microsoft's Windows server; applicationHost.config, web.config, IIS Manager.
  • Both extend via modules.
  • Typical flaws: default or sample content, directory listing, status or admin pages (e.g. mod_status) open to the internet, exact version banners, unneeded modules or handlers, risky methods, missing patches.

Source: https://learn.microsoft.com/en-us/iis/configuration/system.webserver/isapifilters/

Practice questions

Single choice

Which file type is the main place where an IIS site's own settings are usually stored?

  1. httpd.conf
  2. .htaccess
  3. web.config
  4. php.ini
Show answer

Answer: C. web.config

IIS site and application settings live in web.config (server-wide in applicationHost.config). httpd.conf and .htaccess are Apache files.

Select all that apply

Which items are common misconfigurations on a web server?

  1. Directory listing enabled on a content folder
  2. Sample or default pages left installed
  3. Redirecting all HTTP traffic to HTTPS
  4. Removing modules the site does not use
  5. Serving only the files the site needs
Show answer

Answer: A. Directory listing enabled on a content folder, B. Sample or default pages left installed

Directory listing and leftover sample content are classic leaks. Forcing HTTPS and removing unused modules are hardening steps, not flaws.

True or false

True or false: hiding the Server banner fully secures an unpatched web server.

Show answer

Answer: False

False. Hiding the banner only removes one clue; the vulnerable code is still there and can be found by behaviour or by trying exploits.

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 CPSA topics in this module