Shopify -- Access to Private Photos of Apps in App section(IDOR)

 Company Information : 



Shopify Inc. is a Canadian multinational e-commerce company headquartered in Ottawa, Ontario. Shopify is the name of its proprietary e-commerce platform for online stores and retail point-of-sale systems.



Public Report : 

https://hackerone.com/reports/318751



Bug Category : 
Insecure direct object reference(IDOR ) : 
Insecure direct object reference is a type of access control vulnerability in digital security. This can occur when a web application or application programming interface uses an identifier for direct access to an object in an internal database but does not check for access control or authentication.



Target  Information : 

https://[MyShop].myshopify.com/admin/apps


Technical Details of the Bug : 

Previewing the Photo In App section Request is vulnerable to IDOR attack where changing the ID leads to Disclose Link of Private photos. Also It discloses the Shop Domain details also. The request goes through exchange.shopify.com.

Vulnerable Request :

GET /listings/hackeronevg1110/shop_screenshots/85952 HTTP/1.1 Host: exchange.shopify.com User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:57.0) Gecko/20100101 Firefox/57.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Cookie: [Cookies] Connection: close Upgrade-Insecure-Requests: 1


Steps :

1.Create new shopify Account and create your development store. 2.Now go to https://exchange.shopify.com and Add new business with your shopify account. Link : https://exchange.shopify.com/create-a-listing ( Choose my business on shopify) 3.This will redirect you to your my shopify account where you can add new listing on exchange . 4.In the Detail Section you will find "Store screenshots" option where you can upload images which will be shown to your listing on exchange. 5.Upload new Image and you will see Preview option . 6.When you click to this preview option then the image will be Displayed. 7.If you intercept this request it would look something like above mentioned request. It gives response with Uploaded image on Shopify server. Ex: https://shopify-exchange.s3.amazonaws.com/screenshots/hackeronevg1110.myshopify.com-928eb3774d8ca27a.jpeg By this you can have access to the images and also it shows Shopify Domain of other users. 8.Here Shop "shop_screenshots" ID is vulnerable to IDOR attack. 9.If you change this to any other ShopID , you will get Photos and the my shopify domain name of users. I am attaching a screenshot for help.

Impact : 

Shopify -- Access to Private Photos of Apps in App section(IDOR)



Timeline : 

Feb 22th 2018: Report send to Shopify product Security Team through Hackerone.

Feb 23th 2018: Report Accepted and Triaged.

Feb 24th 2018: Complete issue was resolved and confirmed.

Feb 24th 2018: 500$ Bounty Rewarded




Comments

Popular posts from this blog

Account Takeover Apple App Store Connect Account of Any user and Steal Developer API/Subscription Keys of any user(CORS+XSS) worth 8500$

Amazon Web Services : Takeover Workbook and delete the Owner on https://builder.honeycode.aws by collaborator user (IDOR) worth 7200$

UnAuth Access to Twitter Private Tweets and messages Media Content Access(IDOR)