HOST HEADER
INJECTION
Presenter : Amit Dubey
What are
HTTP HEADER?
• Request and Response
• Carries Information
• Browser Request
• Server Response
• HTTP Header : HOST
What is Host Header Injection ?
■ But what happens if we specify an invalid Host Header ?
■ Original Request –
■ Edited Request –
Impacts -
SEVERITY : HIGH
■ Web Cache Poisoning
■ Password Reset Poisoning
■ Cross Site Scripting
■ Access to internal hosts
Bypasses-
■ Multiple Host Headers
■ X-Forwarded-Host
Mitigation -
■ Reject any request that doesn’t match target domain
■ Validating Host header to ensure that the request is originating from that
target host or not.
■ Creating an dummy virtual host that catches all requests with unrecognized
Host headers.
■ By creating a whitelist of trusted domains.
■ Disable support for X-Forwarded-Host
QUESTION ?
~~~~~~~~~Thank you ~~~~~~~~~

Host Header injection - Slides

  • 1.
  • 2.
    What are HTTP HEADER? •Request and Response • Carries Information • Browser Request • Server Response • HTTP Header : HOST
  • 3.
    What is HostHeader Injection ? ■ But what happens if we specify an invalid Host Header ? ■ Original Request – ■ Edited Request –
  • 4.
    Impacts - SEVERITY :HIGH ■ Web Cache Poisoning ■ Password Reset Poisoning ■ Cross Site Scripting ■ Access to internal hosts
  • 5.
    Bypasses- ■ Multiple HostHeaders ■ X-Forwarded-Host
  • 6.
    Mitigation - ■ Rejectany request that doesn’t match target domain ■ Validating Host header to ensure that the request is originating from that target host or not. ■ Creating an dummy virtual host that catches all requests with unrecognized Host headers. ■ By creating a whitelist of trusted domains. ■ Disable support for X-Forwarded-Host
  • 7.