HexBrain

Shopify · Report #409701

SSRF in hatchful.shopify.com

Validstatus
lowseverity
$500bounty
56upvotes
4 Apr 2019disclosed

Summary

@zhurig reported an SSRF issue in our logo generation on hatchful.shopify.com. This occurred because raw SVG data was being passed from the client via WebSockets, and then used when generating the logos. We have refactored this process to send only generic parameters about the customizations made by the user, rather than sending the SVG itself.

How it was found

This vulnerability similar to https://hackerone.com/reports/156877 , that I found in your old version of your logo-creator. During logo-creating process the user can select logo in wysiwyg editor, then enter email address and wait. In this moment server send to user's browser large amount of data through websockets. Among these data there are svg files (with escaped characters ",quotation mark ) . Then, this svg-files browser send to server to convert in png, and png-files send to user through link in email.

User can change svg-files that browser send to server, and can insert own xlink:href object and :

Link to local image files, to fingerprint versions of libraries installed on server; "Billion laughs" attack, possible DoS attack to converter server; Try to change protocol to ftp and connect to ftp-servers; Try to exploit vulnerabilities like "Imagetragic", or XXE

Impact

Read files from the server Abuse the trust relationship between the vulnerable server and others Retrieve sensitive information from server

Try to : Scan the internal network to which the server is connected to Use other image-converter vulnerabilities

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