How I got a Bug At Apple that lead’s to takeover accounts of any user who view my profile
A community subdomain of Apple allowed users to set a profile location by supplying a Google Maps place name, which Apple Maps then rendered without sanitising it. An attacker could store a script in the place name so that any user viewing the attacker's profile had their session cookies sent to the attacker, enabling account takeover.
Published on hamzadzworm.medium.com
Hi Team Iam Abdelkader Mouaz my pseudo is Hamzadzworm today i will share with you a Bug That Lead To Takeover account of any user just if he view my profile
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 profile location field accepted a Google Maps place name and rendered it in the profile page without sanitising or encoding it, allowing stored cross-site scripting.
Impact
Any user who viewed the attacker's profile could have their session cookies stolen, allowing the attacker to take over their account, including accounts linked to iCloud.
What the attacker needed
An iCloud account; victim views attacker's profile
How it was found
- Find a community subdomain that uses iCloud login and has a profile location feature.
- Create a new place in Google Maps with a script in its name.
- Use the Apple Maps endpoint that accepts a place name and address to link the Google place to the profile location.
- Save the location on the attacker's profile.
- Open a second account and view the attacker's profile to trigger the stored script.
- Receive the victim's cookies at the attacker's collection service and use them to take over the account.
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 website let people put a location on their profile by typing a place name from Google Maps. The site then showed that place name on the profile page without cleaning it first. Because of that, someone could hide a small script in the place name, and when another person looked at the profile the script ran in their browser and stole their login cookies.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.