Skip to content
Access control Disclosed report Intermediate

Shopify admin authentication bypass using partners.shopify.com

A logic flaw in Shopify's partner account conversion allowed a partner to automatically approve their own pending collaborator request, granting full access to any store without merchant interaction. An attacker could log in to any store with full permissions.

rockrzhackr9z Follow

Originally disclosed on HackerOne

Critical 10.0 View original
  • Triaged in 2 hours
  • Fixed in 4 hours
  • Paid in 5 days
  • Disclosed after 6 days

Summary by the program

@uzsunny reported that by creating two partner accounts sharing the same business email, it was possible to be granted "collaborator" access to any store without any merchant interaction.

We tracked down the bug to incorrect logic in a piece of code that was meant to automatically convert an existing normal user account into a collaborator account. The intention was that, when a partner already had a valid user account on the store, their collaborator account request could be accepted automatically, with the user account converted into a collaborator account.

The code did not properly check what type the existing account was, and therefore an existing collaborator account in the "pending" state (not yet accepted by the store owner) would be converted into an active collaborator account, effectively allowing the partner to approve their own request without interaction from the store owner.

We fixed this issue by properly verifying that the exisiting account is in fact a user account.

Summary by the researcher

##Impact:

This bug allowed me to login to any store with full permissions.

First of all Thanks to shopify security Team for 20k bounty.

This bug was found on sep 23rd 2017 and within 1 hour the bug has been patched.

Thanks to shopify security Team for 20k bounty.

Thanks once again

The original report as published on HackerOne, by rockrzhackr9z. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

The code that converted an existing account into a collaborator did not check the account type, so a pending collaborator account was treated as a normal user account and activated automatically.

Impact

An attacker could gain full permissions on any store without any action from the store owner.

What the attacker needed

Two partner accounts with same business email; target store exists

The fix

The issue was fixed by properly verifying that the existing account is a user account.

How it was found

  1. Create two partner accounts that share the same business email.
  2. Request collaborator access to a target store, leaving the request pending.
  3. The system automatically converts the pending collaborator account into an active one without the store owner's approval.

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.

Shopify lets store owners invite partners as 'collaborators' to help manage the store. Normally the store owner must accept the request. Here, a mistake in the code let a partner skip that approval and give themselves full access to any store.

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.

More by rockrzhackr9z

View all

2 more disclosed reports, best first.

More from Shopify

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.