Skip to content
XSS Write-up Beginner

Stored XSS in icloud.com — $5000

A stored cross-site scripting flaw existed on an iCloud settings page, where user-supplied strings were reflected back into the response. An attacker could inject script that would run in the browser of anyone viewing the affected page.

Vishal Bharad Follow

Published on vbharad.medium.com

Bounty$5,000 View original

Hello, I am Vishal Bharad, from Indiaand working as Penetration Tester, Now today I am going to share how I found Stored Cross-Site Scripting (XSS) in icloud.com.

Vishal Bharad, on vbharad.medium.com

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 settings page echoed user-supplied input into the response without properly encoding it, so script was stored and executed.

Impact

Script injected by an attacker could run in the browser of a user who viewed the affected settings page, though the text gives no further detail on what it could do.

What the attacker needed

An iCloud account; victim views the affected settings page

How it was found

  1. Log in to icloud.com with a valid account.
  2. Insert test payloads into input fields across the site.
  3. Watch responses for pages that reflect the submitted strings.
  4. Find the settings page under Browser All Versions where the payload executes.

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.

Cross-site scripting, or XSS, is when a website takes text you typed and puts it back on a page without cleaning it, so a malicious snippet can run as code in someone else's browser. Here the author logged in, typed test strings into many places, and watched which pages echoed them back. One settings page did, and the injected script ran.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More by Vishal Bharad

View all

5 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.