Exploiting Admin Panel Like a Boss
Published on medium.com
#### Shivam Kamboj Dattana
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.
Context
This is a write-up of a quick finding on a HackerOne private program, published on Medium on 8 October 2020. The target was one of the program's assets, and the feature in question is the administrative panel behind the /admin path on that asset. In this case the path was protected by a rule that returned 403 Forbidden, and the login page behind it accepted a trivial credential pair.
Two separate weaknesses combined here: an authorisation bypass on the path (the 403 could be avoided by changing the Host header) and weak credentials on the panel itself (admin / admin).
Setup
The researcher worked against a single asset of a private HackerOne program. The hostname is redacted in the write-up. The only tool named is Burp Suite, used to intercept and modify the request. No versions, accounts or roles are given.
Finding it
The researcher appended /admin to the asset's URL and received a 403 Forbidden. Several standard techniques for bypassing a 403 were tried without success. The next idea was to change the Host header value of the request. With the header changed, the 403 disappeared and the admin panel login page was returned with 200 OK.
The original request and response looked like this:
GET /admin HTTP/1.1
Host: redacted.com
HTTP/1.1 403 Forbidden
Access Denied
The screenshot shows the forbidden page returned for the original request.
The modified request and its response:
GET /admin HTTP/1.1
Host: google.com
HTTP/1.1 200 Ok
Admin Panel Login Page(Source Code)

The screenshot shows the 200 OK response with the admin panel login page source, obtained with the altered Host header.
What matters in the modified request is the Host header: the path stays /admin, but the value is changed from the real hostname to google.com. The server answered with the login page instead of the access-denied page.
Exploitation
Step 1: request the admin path
Navigate to https://redacted.com/admin. The server responds with 403 Forbidden.
Step 2: intercept the request
Capture that request in Burp Suite so the headers can be edited before it is forwarded.
Step 3: change the Host header
Change the Host header value from redacted.com to google.com and send the request. The server does not validate the request properly and returns the admin panel login page. The status changes from 403 Forbidden to 200 OK, which completes the bypass.
Step 4: log in with weak credentials
At this point the researcher had no valid credentials. The first thing tried on any admin panel was admin as both username and password, and that pair worked, giving access to the admin panel.

The screenshot shows the admin panel after logging in.
Root cause
Changing the Host header value made the 403 disappear and the admin panel login page appear with 200 OK. The exact server configuration is not described in the report, so the mechanism behind the check is likely a host-based rule (virtual host routing or a host-conditional access rule) rather than a check on the authenticated user.
The panel accepted admin as both username and password.
Impact
The combination gave the researcher full access to the administrative panel of the asset. The report does not describe what actions or data the panel exposes, so the impact beyond panel access is not stated. The finding was on a private program and the hostname is redacted.
Fix
The report records that the vulnerability was fixed on 5 July 2018, five days after it was triaged. It does not describe the change that was made.
Variants to test
- Send the protected path with a
Hostheader set to a different domain and compare the status code and body with the original request. A positive result is a200(or any non-403) response that returns the protected content. - Try the same header change on other restricted paths found during enumeration, not just
/admin. A positive result is any restricted path that becomes reachable. - Try default credential pairs such as
admin/adminon any login page reached this way. A positive result is a successful login into the panel.
Timeline
The screenshot shows the bounty reward.
- 30 June 2018: reported to the private program
- 30 June 2018: report triaged
- 5 July 2018: vulnerability fixed
- 22 July 2018: bounty of $1500 USD awarded
What happened, in plain words
A security researcher found a hidden administration area on a website that belonged to a private bug bounty program on HackerOne. When the researcher asked for it, the server returned a 403 Forbidden error. The researcher discovered that by changing one small piece of the request, called the Host header, the server stopped saying no and instead showed the login page for the admin area. Then, when trying to log in, the researcher guessed the username admin and the password admin, and that worked. The researcher got into the admin panel. The report was triaged the same day it was submitted, the problem was fixed five days later, and the researcher was paid a $1500 bounty.
This article explains every step from scratch, assuming you only know how to use a browser and a computer. We will look at what an admin panel is, what a 403 error means, what a Host header is, why changing it could bypass a restriction, and why default credentials like admin / admin are dangerous.
Background: what is an admin panel and why protect it?
Many websites have a public side that anyone can see, and a private side used by staff to manage the site. That private side is often called the admin panel or administration area. From there, staff can add or remove users, change content, view orders, and so on. Because it gives so much power, it should only be reachable by authorised people.
There are two common ways to protect it:
- Hide it or block it at the network level so that outsiders cannot even load the page. The server might answer with a
403 Forbiddenstatus code, which means "I understood your request, but you are not allowed to see this." - Put a login page in front of it so that only people with the right username and password can get in.
The block could be avoided by changing a request header, and the login page accepted admin / admin.
Key concepts you need to know
Before we walk through the steps, here are the ideas that appear in the report, explained in plain language.
- HTTP request: When you type a web address into your browser and press Enter, your browser sends a message to a web server asking for a page. That message is an HTTP request. It contains a method (like
GET, meaning "give me this"), a path (like/admin), and a set of headers (extra information about the request). - HTTP response: The server sends back a message. It starts with a status code, such as
200 OK(success) or403 Forbidden(you are not allowed). Then it may include the content of the page. - Status code: A three-digit number that tells the browser what happened.
200means OK,403means forbidden,404means not found, and so on. - Header: A line of extra information in a request or response. For example,
Hosttells the server which website name the browser is trying to reach.User-Agenttells the server what browser you are using. Headers are like the label on an envelope: they help the server route and handle the request. - Host header: When one server hosts many websites (this is common), the
Hostheader tells the server which website the request is for. For example,Host: example.commeans "I want the site called example.com." The server uses this to decide which site's content to serve. - Burp Suite: A tool used by security testers to intercept HTTP requests and responses. It sits between your browser and the server, letting you pause a request, edit it, and then send it on. Think of it as a pause button and an editor for web traffic.
- Intercept: To catch a request before it reaches the server, so you can inspect or change it.
- Authorization bypass: A situation where a user is not supposed to have access to something, but finds a way to get it anyway. Here, the
403was supposed to stop access, but changing theHostheader bypassed that check. - Weak credentials: A username and password that are easy to guess, such as
admin/adminorpassword/password. Attackers often try these first because many systems never change the defaults. - Bug bounty program: A program run by an organisation that rewards security researchers for finding and reporting vulnerabilities. A private program is one where only invited researchers can participate, and the details are not public.
- Triaged: When a report is reviewed by the program and confirmed to be a valid vulnerability.
- Bounty: The reward paid to the researcher, often money.
The setup
The researcher was working on a private program on HackerOne. The program had several assets, and the researcher picked one. The hostname of the asset is redacted in the write-up, so we will call it redacted.com. The only tool mentioned is Burp Suite, used to intercept and modify the request. No specific software versions, accounts, or roles are given.
Finding the admin path and the 403 error
The researcher started by taking the asset's URL and adding /admin to the end. For example, if the asset was https://redacted.com, the researcher navigated to https://redacted.com/admin. The server responded with a 403 Forbidden error. That means the server recognised the request but refused to serve the page.
The original request and response looked like this:
GET /admin HTTP/1.1
Host: redacted.com
HTTP/1.1 403 Forbidden
Access Denied
Let's break this down line by line:
GET /admin HTTP/1.1: This is the request line.GETis the method (asking to retrieve something)./adminis the path being requested.HTTP/1.1is the version of the HTTP protocol.Host: redacted.com: This header tells the server which website the request is for. Here it is the real hostname of the asset.- The blank line separates the request headers from the body (there is no body in a
GETrequest). HTTP/1.1 403 Forbidden: This is the response status line. It says the server is using HTTP/1.1 and the status code is403, meaning access is denied.Access Denied: This is the body of the response, a short message telling the user they are not allowed.
The screenshot shows the forbidden page returned for the original request.
At this point, the researcher tried several standard techniques to bypass the 403 error, but none worked. The report does not list which techniques were tried. The next idea was to change the Host header value.
The bypass: changing the Host header
The researcher modified the request so that the Host header was no longer redacted.com but google.com. The path stayed /admin. The modified request and response looked like this:
GET /admin HTTP/1.1
Host: google.com
HTTP/1.1 200 Ok
Admin Panel Login Page(Source Code)

Line by line:
GET /admin HTTP/1.1: Same as before; the path is still/admin.Host: google.com: This is the key change. TheHostheader now says the request is forgoogle.com, even though the request is actually being sent to the original server (the one that hostsredacted.com).- The blank line again separates headers from body.
HTTP/1.1 200 Ok: The server now responds with200 OK, meaning success. The403is gone.Admin Panel Login Page(Source Code): The body of the response is the source code of the admin panel login page. The server is now serving the login page instead of the access-denied page.
The screenshot shows the 200 OK response with the admin panel login page source, obtained with the altered Host header.
Changing the Host header value made the 403 disappear and the login page appear with 200 OK.
Exploitation: step by step
The report gives a numbered list of steps to reproduce. Here they are, with explanations.
Step 1: request the admin path
Navigate to https://redacted.com/admin. The server responds with 403 Forbidden.
Why: to confirm that the path exists and is protected.
Step 2: intercept the request
Capture that request in Burp Suite so the headers can be edited before it is forwarded.
Why: Burp lets you pause the request, change it, and then send it. Without a tool like Burp, you cannot easily modify headers in a normal browser.
Step 3: change the Host header
Change the Host header value from redacted.com to google.com and send the request. The server does not validate the request properly and returns the admin panel login page. The status changes from 403 Forbidden to 200 OK, which completes the bypass.
Why: changing the Host header value made the 403 disappear and the login page appear.
Step 4: log in with weak credentials
At this point the researcher had no valid credentials. The first thing tried on any admin panel was admin as both username and password, and that pair worked, giving access to the admin panel.

Why: the researcher tried admin / admin and it worked.
The screenshot shows the admin panel after logging in.
Root cause
Changing the Host header value made the 403 disappear and the admin panel login page appear with 200 OK. The exact server configuration is not described in the report, so the mechanism behind the check is likely a host-based rule (virtual host routing or a host-conditional access rule) rather than a check on the authenticated user.
The panel accepted admin as both username and password.
Impact
The combination gave the researcher full access to the administrative panel of the asset. The report does not describe what actions or data the panel exposes, so the impact beyond panel access is not stated. The finding was on a private program and the hostname is redacted.
Fix
The report records that the vulnerability was fixed on 5 July 2018, five days after it was triaged. It does not describe the change that was made.
Variants to test
If you are testing a similar setup, here are some variations to try. These are general ideas, not steps from the report.
- Send the protected path with a
Hostheader set to a different domain and compare the status code and body with the original request. A positive result is a200(or any non-403) response that returns the protected content. - Try the same header change on other restricted paths found during enumeration, not just
/admin. A positive result is any restricted path that becomes reachable. - Try default credential pairs such as
admin/adminon any login page reached this way. A positive result is a successful login into the panel.
Timeline
The screenshot shows the bounty reward.
- 30 June 2018: reported to the private program
- 30 June 2018: report triaged
- 5 July 2018: vulnerability fixed
- 22 July 2018: bounty of $1500 USD awarded
Glossary
- HTTP request: A message sent by a browser or tool to a server asking for a resource, containing a method, path, headers, and sometimes a body.
- HTTP response: The server's reply, containing a status code, headers, and usually a body.
- Status code: A three-digit number indicating the result of a request, such as
200 OKor403 Forbidden. - Header: Extra information in a request or response, like
HostorUser-Agent. - Host header: The part of an HTTP request that tells the server which website name the client is trying to reach.
- Burp Suite: A tool for intercepting and modifying HTTP traffic between a browser and a server.
- Intercept: To capture a request or response before it reaches its destination, so it can be inspected or changed.
- Authorization bypass: Gaining access to something you are not authorised to access, often by manipulating a request.
- Weak credentials: A username and password that are easy to guess, such as default or common values.
- Admin panel: A private area of a website used by staff to manage the site.
- Bug bounty program: A program that rewards researchers for finding and reporting security vulnerabilities.
- Private program: A bug bounty program that is not open to the public; only invited researchers can participate.
- Triaged: The process of reviewing a vulnerability report and confirming its validity.
- Bounty: The reward, often monetary, given to a researcher for a valid report.
- 403 Forbidden: An HTTP status code meaning the server understood the request but refuses to authorise it.
- 200 OK: An HTTP status code meaning the request succeeded.
- Virtual host: A configuration where one server hosts multiple websites, using the
Hostheader to distinguish them. - Default credentials: The username and password that come pre-set on a system, often
admin/admin, which should be changed after installation.