My Encounter with an Admin Panel in a Gas Agency Website
A gas agency website exposed directory listings and an unauthenticated admin panel that showed consumer details including names, mobile numbers, email addresses and OTPs. An attacker could browse these pages to harvest personal data and one-time passwords.
Published on medium.com
Hello, everyone! My name is Parth Rana , a core CS Student and I’m excited to share my very first blog post on Medium.
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 web server had directory listing enabled and the admin interface lacked any authentication check.
Impact
Anyone could read customer names, phone numbers, email addresses and OTPs, which could enable account takeover, though the author stopped before testing further.
What the attacker needed
No login needed; knowledge of the site address
The fix
The site owners deleted the exposed page rather than fixing the underlying access control, so directory listing and authentication should still be disabled and enforced properly.
How it was found
- Open an image from the site in a new tab and note its path.
- Remove the file name from the URL to request the folder itself.
- See the directory listing appear.
- Add /admin/ to the site address and open it.
- Click Home to reach the admin page without logging in.
- Look up a consumer number to see personal details and the OTP.
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.
A directory listing is when a web server shows a plain list of files in a folder instead of a normal page, so anyone can see what is stored there. Here the same site also had an admin page that did not ask for a login, so a visitor could open it and read customer records. The records included one-time passwords, which are short codes meant to prove identity, so leaking them is serious.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.