Automattic · Report #733248
Stored XSS in wordpress.com
Validstatus
highseverity
356upvotes
17 Feb 2020disclosed
How it was found
Summary:
Stored XSS as a comment or as a post (body or title) at
https://wordpress.com/read/feeds/{blog_id}/posts/{post_id}
https://yoursubdomain.wordpress.com
using the payload:
<iframe <><a href=javascript:alert(document.cookie)>Click Here</a>=></iframe>
Steps To Reproduce:
- As a comment
- Log in to wordpress.com
- Choose a post from the feeds
- Add a comment with the payload:
<iframe <><a href=javascript:alert(document.cookie)>Click Here</a>=></iframe>
- By clicking on
Click Here, an alert will fire with cookies of the domainwordpress.com
- As a post
- Log in to wordpress.com
- Create a new post or site.
- Add the payload
<iframe <><a href=javascript:alert(document.cookie)>Click Here</a>=></iframe>to the body or the title of the blog post - preview or publish your new blog post
- By clicking on
Click Here, an alert will fire with cookies of the domainyoursubdomain.wordpress.comorwordpress.comif the post is previewed from the WordPress feed.
- If you add comments to your blog post and using the payload mentioned above as a comment an Stored XSS alert will fire when you click on the link.
Impact
- Perform arbitrary requests on the behalf of other users with security context of wordpress.com or blogsubdomain.wordpress.com
- Read any data the attacked user has access to.