Breaking Down Two Simple Vulnerabilities That Exposed A School’s Admission Records
The admission registration form's print endpoint used an application number from the URL without checking whether the requester was authorised, so anyone could view other applicants' personal data. The same parameter was also vulnerable to SQL injection, allowing the whole admission database to be dumped.
infosecwriteups.com
Published on infosecwriteups.com
Recently, while conducting reconnaissance on a school website, our team of security researchers at Avyukt Security found data-exposure vulnerabilities that revealed sensitive admission records containing PII (Personally Identifiable Information) such as names, emails, phone numbers, addresses, profession-related info…
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 trusted a user-supplied identifier for authorisation and also built a database query from it without proper parameterisation.
Impact
An attacker could view other applicants' personal information and could dump the entire admission database, though the report states no sensitive data was actually accessed during testing.
What the attacker needed
Access to the admission form; ability to change the app_number parameter
How it was found
- Fill in and submit the kindergarten admission form.
- Note the application number in the thank-you page URL.
- Change the application number and click the print registration button.
- Observe another applicant's registration form being displayed.
- Test the same parameter with SQLMap and find UNION-based SQL injection.
- Dump the admission database tables.
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 web page used a number in its address to decide which student's admission form to show, but it never checked whether the person asking was allowed to see that form. By changing the number, anyone could read other families' private details. The same number was also passed into a database query in an unsafe way, letting an attacker ask the database to return all records.
What is IDOR?
One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.