Improper Authentication (Login without Registration with any user) at ████
The login endpoint accepted a 'signin' parameter that let anyone authenticate as any user without registering. An attacker could also force a victim to switch sessions by making them load a crafted GET link, and client credentials were exposed in the page source.
- Triaged in 2 hours
- Fixed in 6 days
- Disclosed after 57 days
Hi Team!
I found a security issue in ███████. An attacker could login as a any user without registration in the page and above all it can change the session of a victim and authenticate him as any user.
The problem is at the endpoint ██████████ which, thanks to the signin parameter, allows to authenticate anyone with any user.
Impact
Authentication bypass (Login as any user without authentication) Force a victim to change session with other user
System Host(s)
████
Affected Product(s) and Version(s)
CVE Numbers
Steps to Reproduce
- Go to ██████████
- To check the authentication bypass go to ████:
███
As the link corresponds to a GET request you can force any user to log out and authenticate to any other account.
Additional bonus: clientid and clientsecret are stored in the page source
███████
Suggested Mitigation/Remediation Actions
What the report shows
The researcher reported an authentication flaw in a U.S. Department of Defence asset, disclosed on HackerOne on 22 March 2024 and rated high severity under the generic improper authentication weakness. The affected host and endpoint are redacted in the public text, so the specific URL cannot be reproduced from this report.
The claim is that an attacker can log in as any user without registering, and can additionally force a victim's session to switch so that the victim is authenticated as a different account. The researcher attributes this to the endpoint accepting a signin parameter that lets anyone authenticate as any user.
The reproduction steps are short:
- Go to the redacted page.
- Follow the redacted link to check the authentication bypass.
The link itself is redacted in the report, but the researcher notes it corresponds to a GET request. Because of that, the same URL can be used to force any user to log out and be authenticated into another account: the victim only has to load the link.
As an additional finding, the researcher states that clientid and clientsecret are stored in the page source. The values are redacted.
The report lists two impacts: authentication bypass (logging in as any user without authentication) and forcing a victim to change session to another user. It does not include a bounty amount, a CVSS score, an affected version, a CVE number, or a description of the fix that was applied.
Root cause
The report attributes the flaw to the endpoint accepting a signin parameter that lets anyone authenticate as any user. The report does not explain the underlying mechanism.
The secondary finding is that clientid and clientsecret are stored in the page source. The report does not explain how those values relate to the signin flow.
Impact
Within the report's own framing, an attacker could authenticate as any user without registering, and could force a victim's session to be replaced with another account. The report lists the forced session switch as an impact but does not describe its consequences.
How this kind of bug works
Authentication should answer one question on the server: which principal does this request belong to? That answer must come from something the client cannot simply choose, such as a verified credential exchange, a signed token, or a server-side session identifier that was issued after a successful login.
This bug class appears when a parameter that names or selects an account is treated as proof of identity. Common shapes include a login handler that accepts a user identifier and issues a session for it, a callback that trusts a parameter to decide which account to attach, and single sign-on flows where the identity assertion is not validated. When the trigger is a GET request, the flaw also becomes cross-site request forgery-like: a link, an image tag or a redirect can carry the parameter, so a victim's browser performs the switch without any interaction beyond loading a page.
Two defences matter. First, bind identity to server-side state: the session record decides who the user is, and request parameters may only select among options the session is already entitled to. Second, for any state-changing authentication step, require a method and a token that a cross-site request cannot forge, and validate the origin of the request.
How to test for it
Look for endpoints whose names suggest session creation or account selection: sign-in, signin, login, sso, callback, switch, impersonate, and anything that takes a user, account, uid or similar parameter. Registration and login flows that redirect through several hosts are good candidates, as are endpoints that appear in page source or JavaScript bundles.
A practical method:
- Create two accounts you control, A and B, and record the session cookie or token for each.
- Walk the login flow for A with an intercepting proxy and note every parameter that carries an identity, a redirect target, or a client identifier.
- Replay the authentication request with A's parameters but B's identifier, using a fresh browser profile with no session. A positive result is a session issued for B without B's credentials.
- Repeat with the request method changed to GET, and with the parameters placed in the query string, to see whether the endpoint accepts them there.
- If a GET form works, load the URL in a browser profile that is logged in as A and check whether the session becomes B. That demonstrates the forced switch.
- Check page source and JavaScript for client identifiers and secrets, and test whether they are sufficient on their own to complete authentication.
Common false positives: the endpoint may only work when a valid session already exists, in which case it is a privilege or account-switching feature rather than a bypass; the response may set a cookie that is rejected on the next request; or the apparent success may be a redirect that lands on a login page. Confirm by making an authenticated request with the new session and checking which account's data comes back.
How it is fixed
Remove identity selection from request parameters. The server should issue a session only after verifying a credential, and any account reference in a request must be checked against the authenticated principal. Authentication endpoints should reject GET and require POST with a CSRF token, plus origin or referrer validation where appropriate. Client identifiers and secrets should not be shipped in page source; if a public client identifier is unavoidable, it must not be usable as a credential. Finally, rotate any secret that was exposed and review logs for sessions created through the parameter.
Hunting notes
This class tends to hide in older or auxiliary authentication paths: legacy login handlers, mobile or API variants of the web login, SSO callbacks, and endpoints left behind after a redesign. Recon signals include parameters named after users or accounts in URLs seen in JavaScript, redirect chains that pass an identity value between hosts, and page source containing client identifiers. When you find a candidate, demonstrate the full effect: a session for an account you do not control the credentials for, and, if the trigger is a GET, a short sequence showing a logged-in browser being moved to another account. Report the exact request and the resulting session state so the triager can reproduce it without guessing.
What happened, in plain words
A security researcher found a login problem on a website belonging to the U.S. Department of Defence. The report was published on HackerOne on 22 March 2024 and rated high severity. The affected host and the exact endpoint are blacked out in the public text, so the specific URL cannot be rebuilt from what is written here.
The claim is simple to state. An attacker could log in as any user without registering, and could also force a victim's session to switch so that the victim ends up signed in as a different account. The researcher says the cause is an endpoint that accepts a signin parameter, and that this parameter lets anyone authenticate as any user.
To follow this, you need a few everyday ideas. A session is what a website remembers about you after you log in, so it does not ask for your password on every page. A cookie is a small piece of data your browser stores and sends back to the site, and it is usually how the session is carried. A request is the message your browser sends to a server when you open a page or click a link, and a GET request is the ordinary kind used when you simply load a URL. A parameter is a named value attached to a URL, the part after a question mark, like ?signin=something.
The reproduction steps in the report are short:
- Go to the redacted page.
- Follow the redacted link to check the authentication bypass.
The link is redacted, but the researcher notes it corresponds to a GET request. That detail matters: because the trigger is a plain URL, anyone who can get a victim to load it can cause the switch. The victim does not have to type a password or click a button, just open the link.
As an additional finding, the researcher states that clientid and clientsecret are stored in the page source. Those values are redacted too. Page source is the HTML and code your browser receives to display a page, and anything placed there can be read by anyone who views it.
The report lists two impacts: authentication bypass, meaning logging in as any user without authentication, and forcing a victim to change session to another user. It does not give a bounty amount, a CVSS score, an affected version, a CVE number, or a description of the fix that was applied.
Why it works
The report points to the endpoint trusting a signin parameter to decide who is authenticated. In plain terms, the site asks the request who you are instead of checking a password or a session record kept on the server. That is the likely mistake: a value the visitor supplies is treated as proof of identity.
Because the endpoint answers to GET, the flaw also behaves like a cross-site request forgery: a link, an image tag or a redirect can carry the parameter, so a victim's browser performs the switch just by loading a page. The secondary finding is that clientid and clientsecret are stored in the page source. The report does not explain how those values relate to the signin flow.
Impact
Within the report's own framing, an attacker could authenticate as any user without registering, and could force a victim's session to be replaced with another account. The report lists the forced session switch as an impact but does not describe its consequences.
In general, how this kind of bug works
Authentication should answer one question on the server: which person does this request belong to? That answer must come from something the visitor cannot simply choose, such as a verified password exchange, a signed token, or a session identifier the server issued after a successful login. Think of a cloakroom ticket: the attendant checks the ticket against the coat, rather than believing whoever says "that coat is mine".
This bug class appears when a parameter that names or selects an account is treated as proof of identity. Common shapes include a login handler that accepts a user identifier and issues a session for it, a callback that trusts a parameter to decide which account to attach, and single sign-on flows where the identity assertion is not validated. When the trigger is a GET request, the flaw also becomes cross-site request forgery-like: a link, an image tag or a redirect can carry the parameter, so a victim's browser performs the switch without any interaction beyond loading a page.
Two defences matter. First, bind identity to server-side state: the session record decides who the user is, and request parameters may only select among options the session is already entitled to. Second, for any state-changing authentication step, require a method and a token that a cross-site request cannot forge, and validate the origin of the request.
In general, how to test for it
Look for endpoints whose names suggest session creation or account selection: sign-in, signin, login, sso, callback, switch, impersonate, and anything that takes a user, account, uid or similar parameter. Registration and login flows that redirect through several hosts are good candidates, as are endpoints that appear in page source or JavaScript bundles.
A practical method:
- Create two accounts you control, A and B, and record the session cookie or token for each.
- Walk the login flow for A with an intercepting proxy and note every parameter that carries an identity, a redirect target, or a client identifier.
- Replay the authentication request with A's parameters but B's identifier, using a fresh browser profile with no session. A positive result is a session issued for B without B's credentials.
- Repeat with the request method changed to GET, and with the parameters placed in the query string, to see whether the endpoint accepts them there.
- If a GET form works, load the URL in a browser profile that is logged in as A and check whether the session becomes B. That demonstrates the forced switch.
- Check page source and JavaScript for client identifiers and secrets, and test whether they are sufficient on their own to complete authentication.
Common false positives: the endpoint may only work when a valid session already exists, in which case it is a privilege or account-switching feature rather than a bypass; the response may set a cookie that is rejected on the next request; or the apparent success may be a redirect that lands on a login page. Confirm by making an authenticated request with the new session and checking which account's data comes back.
In general, how it is fixed
Remove identity selection from request parameters. The server should issue a session only after verifying a credential, and any account reference in a request must be checked against the authenticated principal. Authentication endpoints should reject GET and require POST with a CSRF token, plus origin or referrer validation where appropriate. Client identifiers and secrets should not be shipped in page source; if a public client identifier is unavoidable, it must not be usable as a credential. Finally, rotate any secret that was exposed and review logs for sessions created through the parameter.
In general, where to look
This class tends to hide in older or auxiliary authentication paths: legacy login handlers, mobile or API variants of the web login, SSO callbacks, and endpoints left behind after a redesign. Recon signals include parameters named after users or accounts in URLs seen in JavaScript, redirect chains that pass an identity value between hosts, and page source containing client identifiers. When you find a candidate, demonstrate the full effect: a session for an account you do not control the credentials for, and, if the trigger is a GET, a short sequence showing a logged-in browser being moved to another account. Report the exact request and the resulting session state so the triager can reproduce it without guessing.
Glossary
- Authentication: the process of proving who you are to a system, usually with a password or another credential.
- Session: the state a website keeps about you after you log in, so it does not ask for your password on every page.
- Cookie: a small piece of data stored by your browser and sent back to a site, often used to carry the session.
- Request: the message a browser sends to a server when it opens a page or loads a resource.
- GET request: the ordinary request type used when you load a URL; it can be triggered by a link, an image or a redirect.
- Parameter: a named value attached to a URL, usually after a question mark, such as
?signin=value. - Endpoint: a specific address on a server that handles a particular action.
- Authentication bypass: getting into an account or system without providing valid credentials.
- Cross-site request forgery (CSRF): making a victim's browser send a request to a site where they are logged in, without their intent.
- Page source: the HTML and code a browser receives to display a page, readable by anyone who views it.
- Client identifier / client secret: values a program uses to identify itself to a service; a secret is meant to stay private on the server.
- CVSS: a standard scoring system for rating the severity of a vulnerability.
- CVE number: a public identifier assigned to a specific known vulnerability.
- Intercepting proxy: a tool that sits between your browser and a server so you can read and change requests.
- False positive: a finding that looks like a bug but is not, once you check it properly.