Stored self-XSS in mercantile.wordpress.org checkout
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
- open https://mercantile.wordpress.org and sign up for account.
- after finish sign up navigate to
https://mercantile.wordpress.org/my-account/edit-account/to field your first and last name - now navigate again to
https://mercantile.wordpress.org/my-account/edit-address/ - field all form for Billing Address with
{{1+1}}except thezip codeand field all form with{{1==1}}for the Shipping Address. and press save.

- now try to make an order by select any product till process or step to
https://mercantile.wordpress.org/checkout/ - there you will see, the code
{{1+1}}that we have field in the form for address bellow is execute as2automaticly there. and the{{1==1}}in shipping address will be execute astrue.

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:
- https://nvisium.com/blog/2016/03/09/exploring-ssti-in-flask-jinja2/
- https://nvisium.com/blog/2016/03/11/exploring-ssti-in-flask-jinja2-part-ii/
- http://blog.portswigger.net/2016/01/xss-without-html-client-side-template.html
Best Regards,
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.