███ on https://████ enable ███ scraping, injection, stored XSS
An open set of debug endpoints allowed unauthenticated access to data and database operations, enabling scraping of student information and stored XSS via a crafted profile field.
- Triaged in 13 hours
- Fixed in 5 months
- Disclosed after 5 months
Summary: An open ████████ at the ████████ system enables quick and easy scraping of ███ without authentication nor authorization.
Description: The █████ includes an open set of ██████endpoints at https://██████████. Any individual can execute requests on these endpoints without authorization nor authentication. These include the ability to view ████
Some of these endpoints are legitimately used in the ██████████ of the website, such as the one to ███████.
Impact
An external, unauthorized, and unauthenticated attacker can scrape data of █████ by date on the ██████.
An external actor may also be able to perform injections against the database service through maliciously crafted attacks.
An external, unauthorized, and unauthenticated attacker can perform a stored XSS attack using on an ████████.
Step-by-step Reproduction Instructions
Data Extraction: ███████. Navigate to https://█████████. ████. Navigate to the "██████" ████ (https://████?████████████) 3. Enter the year ███████████████████████████████, the month █████████████, and the day █████████████, then press Invoke. 4. Success (█████████). 5. For further extraction, take one of the user IDs present in the JSON reply and paste it into the ███ ███████ (https://██████████?███████████). 6. For further extraction, take one of the profile IDs present in the JSON reply and paste it into the █████████ ██████ (also set "dbName" to "███") (https://█████████?███████).
Stored XSS/Information Modification:
███. Navigate to the ███████ █████████ (https://█████████?███).
██████. Parameters: dbName = ██████████, OUid = █████████, lngDesc = ████████, modDesc = ███████, wrkPLid = ███████, clngPLid = ██████, prfDate = ████████████/█████████/██████████████████████ ███████████████████:█████████████:███████████████████, timeString = Tue Dec ████████████ ██████████8:█████9:56 ███████████████████████████, prfLink = demofromskarsom, CData = <iframe onload="alert(██████)" style="display:none"></iframe>, sessionID = ██████
3. Click "Invoke".
4. Navigate to the following page, replacing (GENSTRING) with the integer that was returned from invoking the █████ request: https://█████(GENSTRING)&B=███████&C=████████&D=demofromskarsom&view=true
5. Success.
Supporting Material
Navigate to████?A=███9█████98&B=██████&C=██████████&D=dodvdpdemo&view=true to see a stored XSS POC that I uploaded. #███ #█████████ #████ #███████
Suggested Mitigation/Remediation Actions
All endpoints unused by the frontend UI (based on a cursory search, this appears to be all but ███Plink) should be removed or guarded by authorization checks.
Impact
Third-party actors can easily scrape language proficiency, testing, and student information through the ODA's debug UI and endpoints.
Third-party actors may also be able to perform injections against the database service through maliciously crafted strings within the INSERT and UPDATE ███s on the WS endpoints (did not attempt to prevent damage).
Third-party actors can further generate a page with a stored XSS attack within the "██████" of an inserted profile through█████.
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 debug endpoints were not protected by authentication or authorization checks, and user-supplied input was not sanitised before being stored and later rendered.
Impact
An unauthenticated attacker could scrape student data and may be able to perform database injections, and could store a cross-site scripting payload that executes when a crafted page is visited.
What the attacker needed
No authentication required; network access to the endpoints
The fix
Endpoints not used by the frontend should be removed or protected by authorization checks.
How it was found
- Navigate to the debug endpoint URL.
- Enter a year, month, and day, then invoke the request to retrieve data.
- Use a user ID from the JSON response in another endpoint to extract more data.
- Use a profile ID from the response in a further endpoint, setting the database name, to extract more data.
- For stored XSS, navigate to a specific endpoint and supply parameters including a malicious iframe payload in the CData field.
- Invoke the request, then visit a constructed URL using the returned integer to trigger the stored XSS.
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 website had hidden debugging tools left open to anyone on the internet. An attacker could use them to read private student data and to insert malicious code that runs in other users' browsers.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.