Unauthorized access to employee panel with default credentials.
The login page relied on a client-side JavaScript check to decide whether a login attempt was allowed, and the form field controlling the selected centre could be edited in the browser console. An attacker could set that field to an administrative value and log in to the employee panel.
- Triaged in 7 days
- Fixed in 14 days
- Disclosed after 11 months
Summary:
Hello, When hunting for your web application.
I have managed to go https://cars.fas.gsa.gov/cars/cars and get displayed with a form. I have already tried to login to Cars and without success. However i've noticed the loginChk() function and change the value of the form hence bypassing it and logging in succesfuly.
Steps To Reproduce:
- go to https://cars.fas.gsa.gov/cars/cars
- type loginChk() function in console.
- It would return false.
- Now type in console ( can be opened using F12). document.forms[0].scSelCen.value = "admin"
- Now try to login by clicking on CARS button.
Supporting Material/References:
Navigator used : google chrome.
If you need any additional information. feel free to ask me.
PS : I think the website went for a maintenance right now. Even though i didn't use anything of that panel.
Impact
Any attacker would have the access to admin panel and do whatever he wants. As i can see , it's a platform for reporting accidents.
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 server trusted a client-side check and a client-supplied form field to decide the user's role or centre, instead of enforcing authorisation on the server.
Impact
An attacker could potentially gain access to the admin panel of a platform for reporting accidents.
What the attacker needed
Access to the login page; a browser with a developer console
How it was found
- Open the CARS login page in a browser.
- Call the login check function in the browser console and see it return false.
- Change the centre selection field in the page's form to an administrative value.
- Submit the login form using the CARS button.
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.
The page used a JavaScript check in the browser, and the form values could be changed in the developer console, which let the person log in.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.