Follow Button XSS
The WordPress.com follow button inserted unsanitised URL parameters into the page, allowing an attacker to inject a script that executes when a user clicks the follow button. An attacker could craft a link that runs arbitrary JavaScript in the victim's browser on any WordPress site using the button.
- Triaged in 2 hours
- Fixed in 5 hours
- Paid in 6 hours
- Disclosed after 30 days
PoC
- Open link
- Click "Follow" in the bottom right-hand corner
XSS Should work on any wordpress site with this Follow button. fbd.isLoggedIn must be equal to false.
https://apps.wordpress.com/support/"><script>alert(document.domain)</script>
https://labs.spotify.com/"><script>alert(document.domain)</script>
https://news.spotify.com/tr/"><script>alert(document.domain)</script>
Vulnerable Code apps.wordpress.com
<script type='text/javascript'>
/* <
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
What the attacker needed
Victim clicks a crafted link; victim clicks the Follow button; fbd.isLoggedIn must be false
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.
A cross-site scripting (XSS) bug lets an attacker run their own JavaScript in someone else's browser. Here, the follow button took parts of the web address and put them into the page without cleaning them, so a crafted link could make the button run malicious code when clicked.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.