Skip to content
XSS Disclosed report Beginner

[sub.wordpress.com] - XSS when adjust block Poll - Confirmation Message - On submission:Redirect to another webpage - Redirect address:[xss_payload]

superman85 Follow

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

p1.png
p1.png From the original on HackerOne

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

p2.png
p2.png From the original on HackerOne

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

p3.png
p3.png From the original on HackerOne

You can see video PoC below for the steps:

recording-1607103274750.webm From the original on HackerOne

Impact

Steal cookies

The original report as published on HackerOne, by superman85. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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.

More by superman85

View all

6 more disclosed reports, best first.

More from Automattic

View all

The newest disclosed reports for this program.

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.