Skip to content
Info disclosure Write-up Intermediate

How I Pwned 10 Admin Panels and got rewarded 8000$+?

An API configuration endpoint archived in the Wayback Machine exposed credentials for an admin login panel. Using these credentials, the attacker gained access to a production admin panel and nine other panels sharing the same token, and also accessed development and staging environments with the same credentials.

Inderjeet Singh Follow

Published on rashahacks.com

Bounty$8,000 View original

I am Inderjeet Singh aka encodedguy. Today, I will share one of my recent findings where I pwned 10 admin panels and the team rewarded me with $8000+.

Inderjeet Singh (@3nc0d3dGuY), on rashahacks.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.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 6 min read.

Context

This is a write-up of a private HackerOne challenge with a total bounty pool of $15K. The program cannot be named, so the author calls it "REDACTEDx1337", and the in-scope domain is referred to as *.redacted.com. The main target is called *.vulnerable.redacted.com. That host redirects to another hostname which serves a login panel for employees and has no registration page.

From the original on rashahacks.com

The weakness that made the chain work is information disclosure: credentials in a configuration endpoint archived by the Wayback Machine, combined with reuse of those credentials across environments.

Setup

The author started with deep recon on the program, following his own methodology for enumerating root domain names. The tools explicitly mentioned in the report are:

  • Custom wordlists and other wordlists for fuzzing the login host.
  • The Wayback Machine (Web Archive) for retrieving archived responses.
  • Autorize, used to crawl the admin panels for four hours looking for unauthenticated access.
  • For permutation subdomain enumeration, the author recommends gotator, regulator and dnsgen.

No versions are given. The precondition for the final step was knowledge of the subdomain labelling used by the target, which revealed that development and staging environments existed.

Finding it

The author began by fuzzing the main target with custom wordlists and many other wordlists, looking for registration access or any unauthenticated access. Nothing came out of it.

He then turned to the JavaScript files. After around eight hours he had found nothing reportable, but he had extracted 60+ API endpoints from the JS files of vulnerable.redacted.com. None of the endpoints was accessible without authorisation, and he concluded the API was pretty well secured.

From the original on rashahacks.com

One endpoint stood out: /api/v1/config, which returned 404 Not Found. The JS files (main.js, app.js and similar) were very large, in the range of 100k to 150k lines. After spending a large amount of time understanding the API endpoints, it was clear to him that these panels had something substantial behind them.

The reasoning that unlocked the case: if /api/v1/config is not accessible now, perhaps it was archived in the Wayback Machine some months ago. It had in fact been archived two years earlier.

From the original on rashahacks.com

The archived configuration contained a username and password required to gain access to the login panel. The path of that admin login panel was not obvious; after a few minutes he found it was /signin, different from the default login page. He tried to log in at /signin and had no access.

He reported the leaked credentials. The company confirmed they had already been reported to them through their VDP programme and that the credentials had been rotated. They still rewarded him with $100.

From the original on rashahacks.com

Exploitation

Step 1: Find the same endpoint on a subdomain

A day later, still with nothing further, he found the same API endpoint in the JS files of the subdomains of the target, but on a subdomain. He went back to the web archive for it:

Text
https://win.vulnerable.redacted.com/api/v1/config

The archived response for this host contained different credentials from the ones on the main host.

Step 2: Log in to the production admin panel

He used those credentials at the sign-in path of the same host:

Text
https://win.vulnerable.redacted.com/signin

This time the login succeeded and gave access to the whole admin panel. The panel existed in the production environment. This step earned a $5K bounty.

Production environment From the original on rashahacks.com

Production environment

Step 3: Pivot to the other panels through the App button

This admin panel had an App button from which he could reach nine more panels using the same authorisation token. The triager confirmed that this application is part of a group of applications, and that gaining access to one gives access to all of them. In total he had access to ten admin panels.

Step 4: Reuse the credentials on development and staging

From the labelling of the target's subdomains he already knew that development and staging environments existed. He accessed these hosts manually, and he stresses that he did no enumeration for them: the dev and prod keywords were present in his subdomains.txt file at the third level, but he inserted them at the second level.

The credentials used in the staging and development environments were the same as those of the production one. The hosts he reached were:

Text
https://win.dev-vulnerable.redacted.com/signin   (Dev Environment)
https://win.stg-vulnerable.redacted.com/signin   (Staging Environment)
Bonus - for staging one From the original on rashahacks.com

Bonus - for staging one

From the original on rashahacks.com

Step 5: Crawl for unauthenticated access

Separately, he spent four hours crawling these admin panels with Autorize and found unauthenticated points that were accessible. For these he received $500 more. He finished in Top 1 rank on the leaderboard for the challenge.

Root cause

A configuration endpoint, /api/v1/config, exposed a username and password for the login panel. The endpoint returned 404 on the live host at the time of testing, but an archived copy from two years earlier was still retrievable from the Wayback Machine, so the secret remained available even though the live route was gone. The same pattern existed on the win subdomain, with a different set of credentials.

Two design mistakes amplified the disclosure. First, the same credentials were reused across production, staging and development, so one leaked pair opened every environment. Second, the applications were grouped so that gaining access to one gives access to all of them, and the same token reached nine further panels. The report does not describe how the configuration endpoint was protected or why the archived response was not scrubbed; the exposure through the archive is the observable fact.

Impact

With the archived credentials an attacker could log in to the production admin panel at https://win.vulnerable.redacted.com/signin and, through the App button and the shared authorisation token, reach nine further panels. The credentials used in the development and staging environments were the same as production. The triager confirmed that access to one application in the group gives access to all of them. The author also found unauthenticated points by crawling the panels with Autorize, which were rewarded separately. The report does not enumerate what data or actions those panels expose.

Fix

The report states that the credentials found on the main host had already been reported through the VDP programme and were rotated. It does not describe any other remediation. From the chain shown, the measures that would break it are: removing credentials from any endpoint response, including archived copies where the operator can request removal, and not reusing credentials between production, staging and development.

Variants to test

  1. Look for endpoints that return 404, 403 or are otherwise inaccessible in the live application, then query the Wayback Machine for older responses. A positive result is an archived response containing configuration, credentials, internal hostnames or API keys.
  2. Extract API endpoints from large JS bundles (main.js, app.js and similar) and check each one both live and in the archive. A positive result is any endpoint that behaves differently in the archive than it does now.
  3. When a login panel is found, try the same credentials on staging, development and other environments. A positive result is a successful login on an environment that was not the one the credentials were found on.
  4. Take the keywords already present in your subdomain list and move them between levels, for example dev and stg at the second level rather than the third. A positive result is a resolving host that serves the same application. Use gotator, regulator and dnsgen for permutation enumeration.
  5. After gaining access to one panel, look for an application switcher or shared token that reaches sibling panels. A positive result is access to further panels with the same authorisation token.
  6. Crawl authenticated areas with Autorize to find endpoints that respond without authorisation. A positive result is a request that returns data or performs an action when the session is removed.
From the original on rashahacks.com

The author credits Nahamsec, GodfatherOrwa, InsiderPhd, StokFredrick, Bugcrowd University, Pentesterlab, Google, Stackoverflow, the Web Archive Project and many mentors.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 15 min read.

What happened, in plain words

A security researcher found a way into ten administrator control panels belonging to one company, and was paid more than $8,000 for it. He did not break any encryption and he did not guess passwords one by one. Instead, he found a file on an old copy of the company's website that still contained a username and a password, and those same details opened the door to the company's most important systems.

The company had run a private challenge on HackerOne, a platform where companies invite researchers to test their systems and pay for what they find. The total prize pool for the challenge was $15K. The researcher is not allowed to name the company, so throughout his write-up he calls the programme "REDACTEDx1337" and refers to the domain in scope as *.redacted.com. The main target he worked on is called *.vulnerable.redacted.com.

From the original on rashahacks.com

That main host redirects visitors to another hostname. That second hostname shows a login page for employees and has no page where a stranger can create an account. So the researcher could see the front door, but he had no key and no way to ask for one.

The weakness at the heart of the whole story is called information disclosure: secret information that should stay private ends up somewhere a stranger can read it. Here the secret was a username and password sitting inside a configuration response, and an old copy of that response had been saved by the Wayback Machine, a free service that archives snapshots of web pages over time. The same password was then reused across several environments, and the applications were grouped so one login reached ten panels.

The starting point: looking around first

Before touching anything, the researcher did what he calls deep recon. Recon, short for reconnaissance, means gathering information about a target before attacking it: which machines exist, which pages they serve, which names they answer to. He followed his own published method for enumerating root domain names, which means listing the domain names that belong to the organisation.

The tools he mentions in the report are:

  • Custom wordlists and other wordlists, used for fuzzing the login host.
  • The Wayback Machine (Web Archive), for retrieving archived responses.
  • Autorize, used to crawl the admin panels for four hours looking for unauthenticated access.
  • For permutation subdomain enumeration, he recommends gotator, regulator and dnsgen.

A wordlist is simply a long text file of words. Fuzzing means taking a web address and trying many words in place of one part of it, very quickly, to see whether any of them produce a page that was not meant to be found. Think of it as trying every key on a large keyring in a lock, one after another, instead of picking the lock. Permutation subdomain enumeration means generating variations of a known name, for example putting dev or stg in front of a domain, and checking which variations actually exist. The report gives no version numbers for any of these tools.

The last step of the story depended on something he had noticed earlier: the way the company named its subdomains told him that development and staging environments existed. An environment is a separate copy of the same application used for a different purpose. Production is the real one that customers and staff use. Staging is a rehearsal copy, used to test changes before they go live. Development is where programmers build and try things. Companies often run all three, and they often look identical from the outside.

Finding it

He began by fuzzing the main target with his custom wordlists and many other wordlists. He was looking for a registration page, or any page that could be reached without logging in. Nothing came out of it.

So he turned to the JavaScript files. JavaScript is the programming language that runs inside your browser and makes a web page interactive. When you open a modern site, the browser downloads one or more .js files, and those files contain the instructions for everything the page does, including the addresses of the services the page talks to. Those services are called APIs. An API is the part of a website that answers requests for data rather than sending you a page to look at: your browser asks a specific address for a specific piece of information, and the API replies with data. A useful comparison is a restaurant: the menu and the dining room are the website you see, and the kitchen is the API. You never walk into the kitchen, but the menu tells you what it can produce.

After around eight hours of reading JavaScript he had found nothing worth reporting, but he had pulled out more than 60 API endpoints from the JS files of vulnerable.redacted.com. An endpoint is one specific address an API answers on, like one specific counter in a large office. None of those 60+ endpoints could be reached without authorisation, meaning every one of them refused to answer unless the request carried proof that the person was logged in. He concluded the API was pretty well secured.

From the original on rashahacks.com

One endpoint stood out: /api/v1/config, which returned 404 Not Found. A 404 is the standard reply a web server gives when the address you asked for does not exist. In everyday terms, you knocked on a door and were told there is no such room. The JavaScript files he was reading, named things like main.js and app.js, were enormous, in the range of 100,000 to 150,000 lines each. After spending a large amount of time understanding the API endpoints, it was clear to him that these panels had something substantial behind them.

Then came the thought that unlocked the case. If /api/v1/config cannot be reached now, perhaps an older copy of it was saved by the Wayback Machine some months ago. The Wayback Machine regularly visits websites and stores what it sees, like a library that keeps old newspapers. A page that has been deleted from the live site can still sit in that library for years. In this case the endpoint had in fact been archived two years earlier.

From the original on rashahacks.com

The archived configuration contained a username and password required to gain access to the login panel. So the old snapshot held exactly the kind of secret the live site no longer showed. The path of that admin login panel was not obvious. After a few minutes he found it was /signin, which is different from the default login page. A path is the part of a web address after the domain name, the bit that says which page you want. He tried to log in at /signin and had no access, which means the credentials from the main host did not work there.

He reported the leaked credentials anyway. The company confirmed they had already been reported to them through their VDP programme and that the credentials had been rotated. A VDP, or vulnerability disclosure programme, is a standing invitation for anyone to report security problems, usually without a reward. Rotated means the old password was replaced with a new one, so the leaked one no longer works. Even so, the company still rewarded him with $100.

From the original on rashahacks.com

Getting in

Step 1: Find the same endpoint on a subdomain

A day later, still with nothing further, he found the same API endpoint in the JavaScript files of the subdomains of the target, but this time on a subdomain. A subdomain is a name that sits in front of the main domain, for example shop.example.com next to example.com. Companies use them to run separate services under one umbrella. He went back to the web archive for it:

Text
https://win.vulnerable.redacted.com/api/v1/config

Reading that address from left to right: https is the secure version of the protocol browsers use to fetch pages; win.vulnerable.redacted.com is the specific host, a subdomain called win; /api/v1/config is the endpoint he had already seen on the main host. He was asking the archive whether it had ever saved a response from that exact address. The archived response for this host contained different credentials from the ones on the main host. That difference is the whole point: the same endpoint on a different machine had been configured with a different username and password.

Step 2: Log in to the production admin panel

He used those credentials at the sign-in path of the same host:

Text
https://win.vulnerable.redacted.com/signin

This is the same host as before, with /signin instead of the API path. In plain terms, he took the username and password he had just read out of the archive and typed them into the login form of the machine they belonged to. This time the login succeeded and gave access to the whole admin panel. An admin panel is the private control room of a website, where staff manage users, content and settings. The panel existed in the production environment, meaning it was the real live system, not a test copy. This step earned a $5K bounty.

Production environment From the original on rashahacks.com

Production environment

Step 3: Move sideways to the other panels through the App button

This admin panel had an App button. Pressing it let him reach nine more panels using the same authorisation token. A token is a short piece of text that the server gives you when you log in, and that your browser sends with every later request to prove who you are. It works like a wristband at an event: you show it once at the entrance, and after that staff glance at the wristband instead of asking for your ticket again. Because all ten panels trusted the same wristband, one login was enough for all of them.

The triager confirmed that this application is part of a group of applications, and that gaining access to one gives access to all of them. A triager is the person at the bug bounty platform who reads a report first and decides whether it is valid before passing it to the company. In total the researcher had access to ten admin panels.

Step 4: Reuse the credentials on development and staging

From the labelling of the target's subdomains he already knew that development and staging environments existed. He accessed these hosts manually, and he stresses that he did no enumeration for them. What he means is this: the dev and prod keywords were already present in his subdomains.txt file, a plain text file where he kept the subdomain names he had collected, but they sat at the third level of the name. He moved them to the second level and tried the result by hand. In other words, he did not run a scanner; he edited a name he already had and typed the new address into his browser.

The credentials used in the staging and development environments were the same as those of the production one. That is the second design mistake in the story: the credentials used in staging and development were the same as production. The hosts he reached were:

Text
https://win.dev-vulnerable.redacted.com/signin   (Dev Environment)
https://win.stg-vulnerable.redacted.com/signin   (Staging Environment)

Both lines follow the same shape as the production address. The only change is the extra label in front of vulnerable.redacted.com: dev for development and stg for staging. The win part and the /signin path stay the same, which is why the same username and password worked. The text in brackets on each line is just a note saying which environment that address belongs to.

Bonus - for staging one From the original on rashahacks.com

Bonus - for staging one

From the original on rashahacks.com

Step 5: Crawl for pages that answer without a login

Separately, he spent four hours crawling these admin panels with Autorize and found unauthenticated points that were accessible. Crawling means letting a tool visit every link it can find, the way you might click through every page of a site by hand but far faster. Autorize is a browser extension that watches the requests your browser makes while you are logged in, then repeats each one without your session, to see whether the server still answers. If it does, that endpoint is leaking data to people who never logged in. For these findings he received $500 more. He finished in Top 1 rank on the leaderboard for the challenge.

Why it worked

A configuration endpoint, /api/v1/config, exposed a username and password for the login panel. A configuration endpoint is an address that hands the application its settings, and settings sometimes include secrets that were never meant to leave the server. The endpoint returned 404 on the live host at the time of testing, so the live route was gone. But an archived copy from two years earlier was still retrievable from the Wayback Machine, so the secret remained available even though the live route had disappeared. The same pattern existed on the win subdomain, with a different set of credentials.

Two design mistakes amplified the disclosure. First, the credentials used in staging and development were the same as those of production. Second, the applications were grouped so that gaining access to one gives access to all of them, and the same token reached nine further panels. The report does not describe how the configuration endpoint was protected or why the archived response was not scrubbed. The exposure through the archive is the observable fact.

What an attacker could have done

With the archived credentials an attacker could log in to the production admin panel at https://win.vulnerable.redacted.com/signin and, through the App button and the shared authorisation token, reach nine further panels. The credentials used in the development and staging environments were the same as production. The triager confirmed that access to one application in the group gives access to all of them. The researcher also found unauthenticated points by crawling the panels with Autorize, which were rewarded separately. The report does not enumerate what data or actions those panels expose.

How to stop it

The report states that the credentials found on the main host had already been reported through the VDP programme and were rotated. It does not describe any other remediation. From the chain shown, the measures that would break it are: removing credentials from any endpoint response, including archived copies where the operator can request removal, and not reusing credentials between production, staging and development.

Things you can try yourself

  1. Look for endpoints that return 404, 403 or are otherwise inaccessible in the live application, then query the Wayback Machine for older responses. A 403 Forbidden means the server understood your request and refused it, which is different from a 404 but equally interesting: both tell you something exists that you are not meant to see. A positive result is an archived response containing configuration, credentials, internal hostnames or API keys.
  2. Extract API endpoints from large JavaScript bundles (main.js, app.js and similar) and check each one both live and in the archive. A positive result is any endpoint that behaves differently in the archive than it does now.
  3. When you find a login panel, try the same credentials on staging, development and other environments. A positive result is a successful login on an environment that was not the one the credentials were found on.
  4. Take the keywords already present in your subdomain list and move them between levels, for example dev and stg at the second level rather than the third. A positive result is a resolving host that serves the same application. Use gotator, regulator and dnsgen for permutation enumeration.
  5. After gaining access to one panel, look for an application switcher or shared token that reaches sibling panels. A positive result is access to further panels with the same authorisation token.
  6. Crawl authenticated areas with Autorize to find endpoints that respond without authorisation. A positive result is a request that returns data or performs an action when the session is removed.
From the original on rashahacks.com

The researcher credits Nahamsec, GodfatherOrwa, InsiderPhd, StokFredrick, Bugcrowd University, Pentesterlab, Google, Stackoverflow, the Web Archive Project and many mentors.

Glossary

  • API: the part of a website that answers requests for data rather than sending a page to look at; the kitchen behind the restaurant.
  • API endpoint: one specific address an API answers on, like one counter in an office.
  • Admin panel: the private control room of a website where staff manage users, content and settings.
  • Archived response: a saved copy of what a website returned at some moment in the past, kept by a service such as the Wayback Machine.
  • Autorize: a browser extension that repeats your logged-in requests without your session to see whether the server still answers.
  • Authorisation: the proof a request carries that the person making it is allowed to do so.
  • Authorisation token: a short piece of text given to you at login and sent with later requests to prove who you are; the wristband at an event.
  • Bounty: money a company pays a researcher for reporting a valid security problem.
  • Bug bounty platform: a service such as HackerOne where companies publish programmes and receive reports.
  • Configuration endpoint: an address that hands the application its settings, sometimes including secrets.
  • Crawling: letting a tool visit every link it can find, far faster than clicking by hand.
  • Credentials: a username and password pair used to log in.
  • Development environment: a copy of the application where programmers build and try things.
  • Endpoint: see API endpoint.
  • Environment: a separate copy of the same application used for a different purpose, such as production, staging or development.
  • Fuzzing: trying many words from a list in one part of a web address, quickly, to find pages that were not meant to be found.
  • HackerOne: a bug bounty platform where companies invite researchers to test their systems.
  • Information disclosure: secret information that should stay private ending up somewhere a stranger can read it.
  • JavaScript: the programming language that runs in your browser and makes pages interactive; its files also reveal the addresses of APIs.
  • Leaderboard: the ranking of researchers on a challenge by points or findings.
  • Path: the part of a web address after the domain name that says which page you want, such as /signin.
  • Permutation subdomain enumeration: generating variations of a known name, such as adding dev in front, and checking which ones exist.
  • Production environment: the real live system that customers and staff use.
  • Recon: reconnaissance, gathering information about a target before attacking it.
  • Rotated: a password was replaced with a new one, so the old one no longer works.
  • Staging environment: a rehearsal copy used to test changes before they go live.
  • Subdomain: a name that sits in front of the main domain, such as win in win.example.com.
  • Token: see authorisation token.
  • Triager: the person at the bug bounty platform who first reads a report and decides whether it is valid.
  • Unauthenticated: reachable without logging in.
  • VDP (vulnerability disclosure programme): a standing invitation for anyone to report security problems, usually without a reward.
  • Wayback Machine (Web Archive): a free service that stores snapshots of web pages over time, like a library of old newspapers.
  • Wordlist: a long text file of words used for fuzzing or for generating name variations.
  • 404 Not Found: the standard reply when the address you asked for does not exist.
  • 403 Forbidden: the standard reply when the server understood your request and refused it.

More by Inderjeet Singh

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.