Discovering a security vulnerability in a major grocery delivery platform
The Gorillas grocery delivery platform exposed sensitive data through publicly listable cloud storage buckets and an unprotected GraphQL API. An attacker could access over 1,000,000 orders and 200,000 customer records, including names, addresses, and partial credit card details, and use leaked API keys to send emails on behalf of Gorillas.
zerforschung.org
Published on zerforschung.org
Dieser Artikel ist auch auf deutsch erschienen.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely, the cloud storage buckets allowed public listing and the GraphQL API lacked proper authorization checks, so any authenticated user could query all data.
Impact
An attacker could access over 1,000,000 orders and 200,000 customer records, including names, addresses, and partial credit card details, and use leaked API keys to send emails on behalf of Gorillas, enabling convincing phishing attacks.
What the attacker needed
A free account in the app; ability to intercept app traffic; knowledge of the GraphQL endpoint
The fix
Gorillas closed the vulnerabilities and revoked leaked API keys, according to its own statement.
How it was found
- Install the app and capture its network traffic with a proxy.
- Notice that the app loads data from two Google Cloud Storage buckets.
- Access the buckets and see that public listing is enabled, revealing all files.
- Find the admin portal and inspect its JavaScript to discover a GraphQL endpoint.
- Use GraphQL introspection to learn available queries and find that tenantConfig is accessible without credentials.
- Use an access token from the app to query order data and retrieve all orders and customer details.
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 write-up has not been written yet. The Original tab links to the source.
Cloud storage buckets are like online folders; if they are misconfigured, anyone can list and download files. GraphQL is a way for apps to ask a server for data; if it does not check who is asking, it can return everything. Here, both mistakes let outsiders see private customer and order information.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.