Skip to content
Access control Disclosed report Intermediate

Ability to see password protected content by bypassing the password page of shopify preview URL for new development stores (as of August 17, 2020)

A preview URL for a new development store could be opened without the store password by appending a token query parameter taken from a different store's own storefront link. An attacker holding a preview URL but not the password could then view the store's content.

saltymermaid Follow

Originally disclosed on HackerOne

Bounty$1,500 Medium 6.4 View original
  • Triaged in 19 hours
  • Fixed in 6 days
  • Paid in 47 hours
  • Disclosed after 7 days

Hi,

Description

I have found a way to bypass the password page of a shopify preview URL for new development stores created as of August 17, 2020. Currenty, with older development stores, when we share a preview url with someone, we are able to see the content of the store without having to enter a password even if the password protectection is on. For newly created development stores, if you share a preview url with someone, you are asked to enter a password before you can go any further, so I believe that as of august 17, 2020, when sharing a preview url of a development store, we also have to provide the store password for someone to preview the content.

As cited in https://help.shopify.com/en/partners/dashboard/managing-stores/development-stores#the-development-store-password-page :

 All newly created development stores are password protected. This means that visitors to development stores can access your development store in the following ways only:

    1. By entering a password on the development store password page
    2. By logging into the development store's admin
    3. Through a Shopify Theme Store or Shopify App Store demo link
       Unlike the customizable password page for a store that's on a free trial or paid plan, the development store password page isn't linked to the online 
       store's theme and can't be customized.

 You can remove the password page only after you transfer the store to a merchant or switch the store to a paid plan.

Steps to reproduce

  1. Create a new development store that meets the new standard (August 17, 2020)
  2. Go to Sales channels > Online Store > Themes
  3. At the top of the page, under the Themes title, click the View your store link button
  4. Look at the url in the address bar and copy the ?_bt=<some-long-token> query parameter
  5. Open a preview url that was generated from another store and that also meets the new standard (August 17, 2020).
  6. Paste the ?_bt=<some-long-token> query parameter you copied from step #4 at the end of the preview url in the address bar and send it
  7. You should have bypassed the password authentication and be able to see the store content

I will be attaching a POC video, but if you need extra details just let me know.

Impact

Even if unlikely to happen, if someone had the preview url in hand, but did not have the store password, this method could be used to bypass the password authentication and have access to the store content. This would lead to information disclosure.

The original report as published on HackerOne, by saltymermaid. 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

Likely the password check on preview URLs trusted a token query parameter without tying it to the specific store it was issued for.

Impact

If someone had a preview URL but not the store password, they could bypass the password check and view the store content, leading to information disclosure; the report calls this unlikely.

What the attacker needed

A development store created after 17 Aug 2020; a preview URL for another such store; a token from a store you control

How it was found

  1. Create a new development store under the new standard.
  2. Open the online store themes page in the admin.
  3. Click the link to view the store.
  4. Copy the token query parameter from the address bar.
  5. Open a preview URL generated from a different store.
  6. Append the copied token to the preview URL and load it to see the content without the password.

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 development store is a practice shop that Shopify keeps locked behind a password so only its owner can see it. The researcher found that a special code added to the end of a preview web address let the password check be skipped, so the shop's pages could be viewed without the password.

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 saltymermaid

View all

6 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.