Access to Private Photos of Apps in App section(IDOR)
Screenshot IDs for app listings on the Exchange service could be changed in a request to retrieve a publicly accessible URL for any shop's screenshots, including those belonging to private listings. An attacker could iterate over these IDs to enumerate screenshots and also learn shop domain details.
Originally disclosed on HackerOne
- Triaged in 2 hours
- Fixed in 20 hours
- Paid in 18 hours
- Disclosed after 11 days
Summary by the program
@vijay_kumar1110 reported an Insecure Direct Object Reference vulnerability on our Exchange app. This issue could have allowed an attacker to iterate over the shops' screenshot IDs in order to enumerate them and obtain a public accessible URL for all the shop screenshots hosted on Exchange, regardless of whether the listings were public or private.
We have fixed the issue by checking whether the shop accessing the screenshots is the owner of them.
The report
##Bug location : https://[MyShop].myshopify.com/admin/apps
##Description : 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
Let me know if you need more info.
Regards, Vijay Kumar
Impact
Information disclosure.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the screenshot endpoint looked up a screenshot by its ID and returned a link without verifying that the requesting shop owned the listing.
Impact
An attacker could enumerate screenshot IDs and obtain publicly accessible URLs for screenshots of private listings, along with shop domain details.
What the attacker needed
A Shopify shop account; access to the admin apps section
How it was found
- Open the app section in the shop admin where screenshots are previewed.
- Capture the request that fetches a shop screenshot from the Exchange host.
- Change the screenshot ID in the request to another value.
- Observe that a link to another shop's private screenshot and its shop domain are returned.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
Every screenshot has a number (an ID) in its web address. The site never checked that the person asking for a screenshot actually owned that listing, so anyone could change the number and see other shops' private screenshots. This kind of flaw is called an IDOR: the app trusts an identifier from the user instead of checking permission.
What is IDOR?
One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.