[sub.wordpress.com] - XSS when adjust block Poll - Confirmation Message - On submission:Redirect to another webpage - Redirect address:[xss_payload]
Originally disclosed on HackerOne
- Triaged in 3 days
- Fixed in 39 days
- Paid in 12 days
- Disclosed after 2 months
Summary:
Dear Wordpress Team,
Today when I tried to create a post with block "Poll" and I have found at Poll Block -> Confirmation Message -> On submission:Redirect to another webpage and Redirect address:[xss_payload]
At Redirect address line, I can save the javascript:alert(document.cookie) as an URL webpage after submit a poll. And when an authenticated wordpress user submitted a poll, their cookies may stolen by attacker
Platform(s) Affected:
https://subdomain.wordpress.com
Steps To Reproduce:
1- Logged in your wordpress website and create a post with block Poll, fill question and some choices

2- Adjust Poll Block, Confirmation Message -> On submission:Redirect to another webpage and Redirect address:javascript:alert(document.cookie) then click Update/Publish your post

3- Go to your created poll and Submit, you will see xss popup

You can see video PoC below for the steps:
Impact
Steal cookies
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
What is known
A medium-severity XSS bug in wordpress.com. HackerOne made it public on 11 February 2021.
About XSS
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.