Shopify Stocky App OAuth Misconfiguration
A bug in Stocky's OAuth authentication code granted access to the app at the start of the OAuth process rather than the end, allowing a staff member without Apps permission to access Stocky. This resulted in a full authentication bypass.
Originally disclosed on HackerOne
- Triaged in 33 hours
- Fixed in 6 days
- Paid in 6 days
- Disclosed after 22 days
Summary by the program
@vulnh0lic noticed that a staff member without Apps permission was able to access the Stocky app. We determined that this was because of a bug in Stocky's OAuth authentication code, which allowed the user to be granted access to Stocky at the start of the OAuth process rather than the end. This resulted in a full authentication bypass. Within an hour of validating the report, we deployed a fix for this vulnerability.
After fixing the vulnerability, we analyzed our server logs and did not find any evidence that the authentication bypass had been exploited.
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 OAuth flow granted access before the authorisation step completed, instead of only after a successful callback.
Impact
A staff member without Apps permission could access the Stocky app, resulting in a full authentication bypass; logs showed no evidence it was exploited.
What the attacker needed
Staff account without Apps permission
The fix
The vulnerability was fixed by deploying a change within an hour of validating the report.
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.
OAuth is a way for apps to ask permission to access your account without sharing your password. Normally, the app should only get access after you approve it at the end of a flow. Here, the app gave access too early, so someone who should not have had permission could get in.
What is OAuth / SSO?
Mistakes in OAuth, OpenID Connect, SAML or token handling that leak codes and tokens or link an attacker's identity to a victim's account.