CORS misconfiguration leads to users information disclosure at https://studyroom.line.me
The StudyRoom API server had a CORS misconfiguration that let a malicious page bypass the same-origin policy, and a profile endpoint returned more personal data than needed. An attacker could obtain a user's personal information if the user clicked a crafted link.
Originally disclosed on HackerOne
- Triaged in 8 days
- Fixed in 13 days
- Paid in 4 months
- Disclosed after 4 months
Summary by the program
Due to the CORS(Cross-Origin Resource Sharing) misconfiguration in the StudyRoom API server, SOP(Same Origin Policy) can be bypassed, and the API that retrieves one's profile information was returning more personal information than necessary. Combining the issues allows an attacker to obtain user information when a user clicks an URL of a maliciously crafted web page. This vulnerability could lead to a PII leak, so we paid an additional PII bonus. We would like to thank @dhbd88 for his clear proof of concept using his own test accounts.
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 API's CORS policy trusted arbitrary origins while the profile endpoint returned more personal fields than the application needed.
Impact
A user's personal information could be leaked if they clicked a maliciously crafted URL, and the program paid an extra PII bonus.
What the attacker needed
Victim clicks a crafted link; attacker hosts a malicious web 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 report has not been written yet. The Original tab links to the source.
Websites normally stop one site from reading another site's data in your browser, using rules called the same-origin policy. CORS is a way for a site to relax that rule for trusted sites, but here it was set too loosely. Because a profile page also gave out extra personal details, a booby-trapped link could make your browser hand your information to an attacker.
What is CORS?
A permissive cross-origin policy lets another site read responses with the user's credentials.