How I got $300 for Default Credential Login at Bugcrowd π
A login panel on a non-standard port was found to accept default credentials (admin/admin), allowing the attacker to log in. The attacker also found other directories with default logins and received a $300 bounty.
Published on medium.com
{{media:0}}
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 short account of a default credential finding that paid $300. The report does not name the programme or the organisation behind the target; it only describes a host that belonged to the target and a login panel exposed on a non-standard port. The feature involved is an administrative login panel: a web form that normally exists to let authorised staff authenticate before reaching administrative functionality. When such a panel accepts a well-known default pair, the authentication control is effectively absent.

Setup
The researcher used two tools:
- Shodan, described in the report as a search engine for internet-connected devices and systems that indexes information about devices rather than web content, and which the researcher uses to find vulnerabilities in a target.
- dirsearch, described in the report as a tool that performs directory brute forcing.
No accounts, roles or versions are given. The precondition is simply that the target has an internet-facing host indexed by Shodan, with a login panel reachable on a port that ordinary browsing of the main site would not reveal.
Finding it
The researcher started from Shodan rather than from the application itself, looking for hosts that pointed to the target. That produced an IP address, with a Shodan host page of the form:
www.shodan.io/host/xx.xx.xx.xx
A port scan of that IP followed. On port 8855 there was a login panel, reachable at:
https://xx.xx.xx.xx:8855/site
The panel looked like an administrative entry point, and the goal was to get past it. It was discovered through Shodan and a port scan rather than by browsing the application.
Exploitation
Step 1: try injection against the login form
The first attempt was to attack the login form itself with SQLMap. The report states that this failed, and gives no request, payload or output for the attempt.
Step 2: try the default credential pair
The next attempt was simply to submit the most common default pair, admin/admin. The report states that this logged the researcher in. No HTTP request or response is reproduced in the report, so the exact form fields, cookies or redirect behaviour are not documented here.
Step 3: look for the same weakness elsewhere on the host
Having got in with a default pair, the researcher wanted to find other places with default credential access. The tool used for this was dirsearch, run against the domain, which surfaced several directories. Among the paths found were two further login panels:
https://xx.xx.xx.xx/admin/adminx/login
https://xx.xx.xx.xx/loadtest/pcx/login
The report lists these as targets where default logins were found, but does not give the credential pairs used on them or the responses returned.
Step 4: report
The finding was submitted and paid $300.
Root cause
The report does not analyse the application code, so the underlying mistake is only implied. The most likely explanation is that the administrative panel was deployed with the vendor or installer default credentials left unchanged, and that no control forced a change on first use or blocked the well-known pair. The report does not say why the default pair was left in place. The SQLMap attempt failing is consistent with the weakness being configuration rather than injection: the form handled input safely enough to resist the tool, but still accepted a credential pair that should never have been valid.
Impact
An attacker who reaches the panel and submits the default pair obtains an authenticated administrative session. The researcher then used dirsearch to look for other places with default credential access and found two further login panels, which the report lists as targets where default logins were found. The precondition is important: the panel must be reachable from the internet, which here meant knowing the IP and the non-standard port.
Fix
The fix that follows from the finding is to remove or change the default credentials on every administrative panel, including the ones on /admin/adminx/login and /loadtest/pcx/login, and to require a credential change before first use so that a shipped default cannot survive deployment. Panels that do not need to be internet-facing should be restricted at the network level, and exposed administrative ports should be inventoried so that unlinked panels are not missed.
Variants to test
- Shodan-first host discovery. Query Shodan for hosts belonging to the target, then port scan the results. A positive result is any non-standard port serving a login form, especially one not linked from the main application.
- Default pair on every discovered panel. Submit
admin/adminand other vendor defaults to each panel found. A positive result is a successful login or a session cookie issued without an error. - Directory brute forcing after the first foothold. Run dirsearch against the host, as was done here, and check each discovered path for its own login form. A positive result is additional panels under paths such as
/admin/or/loadtest/. - Injection as a fallback check. Where a default pair fails, try SQLMap against the login form. A negative result here, as in this report, does not mean the panel is safe; it only means the weakness is elsewhere.
What happened, in plain words
A security researcher found a login page on a computer belonging to a company, typed the username admin and the password admin, and got in. That is the whole bug. The company paid a $300 bounty for the report.
The reason this is a real problem, and not just a lucky guess, is that a login page is supposed to stop people who are not allowed in. If the page still has the username and password it was shipped with, the lock is effectively open to anyone who knows the factory setting, and factory settings are public knowledge. Think of a new suitcase with a combination lock set to 0-0-0 at the factory: if the owner never changes it, anyone who has bought the same suitcase knows how to open it.
The report does not name the company or the bug bounty programme. It only describes a machine that belonged to the target and a login page reachable on an unusual port number. The researcher is Abhijit Dutta, and the write-up was published on 12 December 2023.

The two tools used
Before the steps, two tools need explaining, because the whole finding depends on them.
- Shodan. The report describes Shodan as a search engine for internet-connected devices and systems. A normal search engine such as Google reads web pages and indexes their words. Shodan instead scans the internet and records what kind of machine answers on each address and which services it offers. The report calls it a "search engine for hackers", because you can ask it for machines of a certain kind and then look at them. The researcher uses it to find weaknesses in the target.
- dirsearch. The report describes dirsearch as a tool that performs directory brute forcing. A website is made of pages, and each page lives at a path, the part of the address after the domain name, such as
/loginor/admin. Many pages are never linked from anywhere, so you cannot click your way to them. Directory brute forcing means taking a long list of common path names and asking the server, one after another, whether each one exists. The ones that answer differently from the rest are the interesting ones.
No accounts, roles or software versions are given in the report. The only precondition is that the target had a machine reachable from the internet, indexed by Shodan, with a login page on a port that normal browsing of the main website would never show you.
Step 1: finding a machine that belongs to the target
The researcher did not start from the company's website. Starting from the website means you only see what the company chose to show you. Starting from Shodan means you see machines that answer on the internet whether or not anyone links to them.
The search produced an IP address. An IP address is the numeric address of a machine on the internet, the equivalent of a street address for a computer; domain names like example.com are just easier-to-remember labels that point to one. The Shodan page for that address looked like this:
www.shodan.io/host/xx.xx.xx.xx
Line by line: www.shodan.io is the Shodan website, host is the section of the site that shows everything known about one machine, and xx.xx.xx.xx stands in for the IP address of the machine that was found. Opening that page tells you what Shodan has seen on that address: which ports are open and which services answered.
Step 2: scanning the ports
A port is a numbered doorway on a machine. One machine can run many services at once, and each service listens on its own port number, the way one building can have many doors with different numbers. A port scan means knocking on a range of doorways to see which ones answer.
The researcher ran a port scan against the IP address. On port 8855 there was a login page, reachable at:
https://xx.xx.xx.xx:8855/site
Line by line: https:// means the connection is encrypted, so what travels between your browser and the server cannot be read by someone in the middle. xx.xx.xx.xx is the IP address of the machine. :8855 is the port number, written after a colon; without it a browser assumes the standard port for the scheme, so this is the part that says "knock on doorway 8855 instead". /site is the path of the page on that service.
The login page was found through Shodan and a port scan rather than by browsing the company's website. It was found through Shodan and a port scan, which is exactly the kind of exposure that tends to escape review, because reviewers look at what is linked and monitored.
Step 3: trying to break the login form with SQL injection
The page looked like an administrative entry point, meaning a place where staff log in to manage the system. The goal was to get past it.
The first attempt was to attack the login form itself with a tool called SQLMap. To understand why, you need to know what SQL injection is. Most websites store their data in a database, and the website talks to the database in a language called SQL. When you type your username into a login form, the website builds a database query that includes what you typed. If it builds that query carelessly, a specially crafted username can change the meaning of the query, for example by making the condition that checks the password always true. That is SQL injection: putting database instructions into an input field so the database does something the developer did not intend. SQLMap is a tool that automates trying such inputs.
The report states that this attempt failed, and gives no request, payload or output for it. That failure is useful information, though: it suggests the form handled the typed input safely enough to resist the tool. The weakness was somewhere else.
Step 4: typing the default username and password
The next attempt was the simplest possible one: submit the most common default pair, admin/admin. The report says this logged the researcher in.
A default credential is the username and password a product ships with so that the first person to install it can get in. The idea is that the installer changes it immediately. In practice, many installations never do, and the defaults are documented in manuals and known to everyone. When a login page accepts a well-known default pair, the authentication control, the check that is supposed to prove who you are, is effectively absent.
The report does not reproduce the HTTP request or response, so the exact form fields, the cookies set and any redirect after login are not documented. A cookie is a small piece of data a website asks your browser to store and send back with every later request, which is how a site remembers that you already logged in; a session cookie is the one that carries that logged-in state. The report does not show one here.
Step 5: looking for the same weakness elsewhere
Having got in with a default pair, the researcher wanted to find other places with default credential access. The tool used was dirsearch, run against the domain, and it surfaced several directories. A directory is a folder on the web server; a path like /admin/ is a directory, and pages live inside it.
Among the paths found were two more login pages:
https://xx.xx.xx.xx/admin/adminx/login
https://xx.xx.xx.xx/loadtest/pcx/login
Line by line: both use https:// on the same IP address, so they are on the same machine. The first path, /admin/adminx/login, sits under an admin directory, which strongly suggests an administrative area, and then a subdirectory adminx, and finally the login page. The second, /loadtest/pcx/login, sits under loadtest, which suggests a testing or load-testing area, then pcx, then login. Neither path is something a normal visitor would be given a link to; they were found by guessing common names.
The report lists these as targets where default logins were found, but does not say which username and password worked on them, or what the server answered.
Step 6: the report and the reward
The finding was submitted and paid $300.
Why it worked
The report does not analyse the application code, so the underlying mistake is only implied. The most likely explanation is that the administrative page was deployed with the vendor or installer default credentials left unchanged, and that nothing forced a change on first use or blocked the well-known pair. The SQLMap attempt failing fits this: the form handled input safely enough to resist the tool, but still accepted a username and password that should never have been valid.
What an attacker could do
Anyone who reaches the page and submits the default pair gets a logged-in administrative session. The researcher then used dirsearch to look for other places with default credential access and found two more login pages, which the report lists as targets where default logins were found. The precondition matters: the page has to be reachable from the internet, which here meant knowing the IP address and the unusual port number.
How to fix it
The fix that follows from the finding is to remove or change the default credentials on every administrative page, including the ones at /admin/adminx/login and /loadtest/pcx/login, and to require a credential change before first use so that a shipped default cannot survive deployment. Pages that do not need to be reachable from the internet should be restricted at the network level, and exposed administrative ports should be inventoried so that unlinked pages are not missed.
Variants to test
- Shodan-first host discovery. Search Shodan for machines belonging to the target, then port scan the results. A positive result is any unusual port serving a login form, especially one not linked from the main application.
- Default pair on every page found. Submit
admin/adminand other vendor defaults to each login page found. A positive result is a successful login, or a session cookie issued without an error. - Directory brute forcing after the first foothold. Run dirsearch against the machine, as was done here, and check each path found for its own login form. A positive result is more pages under paths such as
/admin/or/loadtest/. - Injection as a fallback check. Where a default pair fails, try SQLMap against the login form. A negative result here, as in this report, does not mean the page is safe; it only means the weakness is somewhere else.
Glossary
- IP address: the numeric address of a machine on the internet, like a street address for a computer.
- Port: a numbered doorway on a machine; each service listens on its own number.
- Port scan: knocking on a range of ports to see which ones answer.
- Shodan: a search engine that indexes internet-connected devices and the services they offer, rather than web page content.
- dirsearch: a tool that performs directory brute forcing.
- Directory brute forcing: asking a server, one after another, whether a long list of common path names exists.
- Directory: a folder on a web server; pages live inside it.
- Path: the part of a web address after the domain name, such as
/admin/login. - HTTPS: an encrypted connection between browser and server, so what travels cannot be read in the middle.
- Login panel: a web form where a user types a username and password to prove who they are.
- Administrative panel: a login page that leads to management functions for staff.
- Default credential: the username and password a product ships with, meant to be changed on first use.
- Authentication: the check that proves who you are.
- SQL injection: putting database instructions into an input field so the database does something the developer did not intend.
- SQLMap: a tool that automates trying SQL injection.
- Database: where a website stores its data, queried in a language called SQL.
- Cookie: a small piece of data a website asks your browser to store and send back with later requests.
- Session cookie: the cookie that carries your logged-in state.
- Bounty: a reward a company pays for a valid security report.