Hidden Form Fields Reveal Test Answers for Easy Perfect Score
A test page contained a hidden form field that, when removed via browser developer tools, revealed whether each answer was correct or incorrect before submission. An attacker could use this to achieve a perfect score without studying.
osintteam.blog
Published on osintteam.blog
While taking a test for a major automotive company, I decided to take a look under the hood to see how my grading was being performed. I didn’t use any tools like burp suite, I just used the Developer Tools and took a look at the javascript that was loading dynamically and I noticed something interesting.
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 application sent the correct answer to the client in a hidden field instead of keeping it server-side.
Impact
An attacker could see which answers are correct and achieve a perfect score without studying.
What the attacker needed
Access to the test page; ability to use browser developer tools
How it was found
- Open the test page and use browser developer tools to inspect the page source.
- Locate the hidden form field in the source code.
- Delete the hidden field.
- Observe that the correct answer is now displayed on the page.
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 hidden form field is a piece of data in a web page that is not shown to the user but is still sent to the server. Here, the page included the correct answer in a hidden field, so anyone who looked at the page's code could see it. By deleting the hidden field, the answer became visible on screen.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.