Administration Authentication Bypass on https://█████
A cross-site request forgery flaw let an attacker submit a crafted form to an administration endpoint, after which refreshing the page granted access to the admin area. The attacker could then view sensitive data and modify information.
Originally disclosed on HackerOne
- Triaged in 3 days
- Fixed in 10 days
- Disclosed after 18 days
Hi there I found a way to connect to an administration space on your website https://██████████
#how to reproduce ?
-
- go to this link : https://███/██████████
-
- create a html file with :
<form action="https://████████/██████████" method="post">
<input type="hidden" name="█████" value="">
<input type="hidden" name="█████" value="1">
<input type="submit">
</form>
-
- launch the file, click on the button and return to the page https://███████/█████
-
- refresh the page and you have access to the administration
POC :
██████████
if you need more information, contact me
best regards, fiveguyslover
Impact
access to sensitive data and the ability to modify information.
System Host(s)
█████
Affected Product(s) and Version(s)
CVE Numbers
Steps to Reproduce
-
- go to this link : https://█████/███████
-
- create a html file with :
<form action="https://█████/███" method="post">
<input type="hidden" name="███" value="">
<input type="hidden" name="████" value="1">
<input type="submit">
</form>
-
- launch the file, click on the button and return to the page https://██████/█████
-
- refresh the page and you have access to the administration
Suggested Mitigation/Remediation Actions
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the administration endpoint accepted state-changing POST requests without a CSRF token or origin check, so a form from another page could authenticate the session.
Impact
An attacker could access sensitive data and modify information in the administration area.
What the attacker needed
Victim visits attacker-controlled HTML; victim clicks the submit button
How it was found
- Open the provided administration link.
- Create a local HTML file containing a form that posts hidden fields to the administration endpoint.
- Open the file, click the submit button, then return to the administration page.
- Refresh the page to gain access to the administration area.
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 report has not been written yet. The Original tab links to the source.
A website can be tricked into accepting a form submission from another site because it does not check that the request came from its own pages. This is called cross-site request forgery. Here, submitting a hidden form from a local file was enough to log the victim into the administration area.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.