Skip to content
XSS Disclosed report Intermediate

Stored self-XSS in mercantile.wordpress.org checkout

eidelweiss Follow

Originally disclosed on HackerOne

  • Triaged in 3 hours
  • Fixed in 25 days
  • Paid in 60 days
  • Disclosed after 55 days

Summary by the researcher

thanks to WordPress team and sir Iandunn, really fast on response and take action. kudos to Portswigger Web Security regarding the payload also thanks to codertom for his report at https://hackerone.com/reports/221893, and here #222224 You made me think that more could be done.

I owe you a beer :)

The report

Hello Team,

Summary after i read this #221893 report, i try to find more security issue there, and i was surprise i found an RCE Via Template Injection. Since on that report i see ng-bindable word, its possible the site also effect by RCE.

Step To Reproduce

  1. open https://mercantile.wordpress.org and sign up for account.
  2. after finish sign up navigate to https://mercantile.wordpress.org/my-account/edit-account/ to field your first and last name
  3. now navigate again to https://mercantile.wordpress.org/my-account/edit-address/
  4. field all form for Billing Address with {{1+1}} except the zip code and field all form with {{1==1}} for the Shipping Address. and press save.
merchantile_saved_address.jpg
merchantile_saved_address.jpg From the original on HackerOne
  1. now try to make an order by select any product till process or step to https://mercantile.wordpress.org/checkout/
  2. there you will see, the code {{1+1}} that we have field in the form for address bellow is execute as 2 automaticly there. and the {{1==1}} in shipping address will be execute as true .
merchantile_saved_address_changes_when_check_out.jpg
merchantile_saved_address_changes_when_check_out.jpg From the original on HackerOne

This is a vulnerability about Flask Template Engine(Jinja2) Injection or Angular JS Template Injection , more detail can be seen in these blogs for your Reference:

  1. https://nvisium.com/blog/2016/03/09/exploring-ssti-in-flask-jinja2/
  2. https://nvisium.com/blog/2016/03/11/exploring-ssti-in-flask-jinja2-part-ii/
  3. http://blog.portswigger.net/2016/01/xss-without-html-client-side-template.html

Best Regards,

The original report as published on HackerOne, by eidelweiss. 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 low-severity XSS bug in WordPress. HackerOne made it public on 14 July 2017.

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 eidelweiss

View all

2 more disclosed reports, best first.

More from WordPress

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.