HexBrain

Shopify · Report #601192

HTML injection in https://interviewing.shopify.com/index.php?candidate=

Validstatus
lowseverity
17upvotes
4 Jul 2019disclosed

Summary

@pklfpklf reported to us that it was possible to inject HTML into our Interviewing at Shopify site in a parameter meant for the user's name. After changing the site to properly insert this text, we closed the report as resolved. This issue was in a domain on *.shopify.com and did not impact our core product, so a bounty was not awarded.

How it was found

https://interviewing.shopify.com/index.php?candidate= is inserting the value of candidate into the DOM without any filtering (except that the equal sign can't appear in the payload), this allows attacker to injection any html in the DOM. Of course reflected XSS payloads like <script>[...something...]</script> will be blocked by browsers' protection, but we can still play with CSS injection:

https://interviewing.shopify.com/index.php?candidate=z%3Cstyle%3E%20*%20{%20background:%20url(https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png);%20}

{F503108}

Impact

HTML injection, mostly CSS injection.

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original