Skip to content
Misconfiguration Write-up Beginner

Host Header Magic: Unlocking Hidden Portals by Just Changing ONE

The web server's virtual host configuration routes requests based on the Host header, and a misconfiguration allows an attacker to access an internal admin panel by changing the Host value to admin.target.com. This exposes a login form for the admin console that is not intended to be publicly accessible.

zoningxtr Follow

Published on medium.com

Bug bounty hunters often dream of finding that one tiny change that flips the switch from “normal user” to “inside the admin’s living room.” One of the simplest — yet deadliest — tricks? Varying theHostvalue in your HTTP request.

Zoningxtr, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the virtual host configuration lacks access restrictions, allowing requests with a specific Host header to reach an internal admin interface.

Impact

An attacker could access an internal admin panel that is not intended to be publicly accessible, potentially leading to unauthorised access to administrative functions.

What the attacker needed

Knowledge of internal hostname; ability to send custom HTTP requests

The fix

The server should be configured to restrict access to internal admin interfaces, for example by using firewall rules or authentication, so that they are not reachable from the public internet.

How it was found

  1. Send a normal request to target.com with Host: target.com.
  2. Modify the Host header to admin.target.com while keeping the rest of the request the same.
  3. Observe the response, which shows an admin console login form.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

Web servers can host multiple websites on the same IP address, using the Host header to decide which site to show. If the server is not configured securely, changing the Host header to a different name (like admin.target.com) can make the server show a hidden admin page instead of the normal site. This means anyone who guesses the right name can see the admin login form.

What is Misconfiguration?

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.

More by zoningxtr

View all

7 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.