Skip to content
Access control Disclosed report Intermediate

Unauthenticated access to Checkout Blocks employee-only endpoints exposed merchant metadata

Employee-only Checkout Blocks pages were protected only by an edge rule matching the start of the URL, so the same routes could be reached anonymously through Next.js data URLs and returned merchant install metadata. The reporter also states that internal review found attackers could toggle Checkout Blocks features for stores without permission.

cafecito Follow

Originally disclosed on HackerOne

Bounty$3,100 Medium View original
  • Triaged in 6 days
  • Fixed in 35 days
  • Paid in 15 days
  • Disclosed after 3 months

Summary by the program

Missing authentication allowed unauthenticated visitors to access employee-only Checkout Blocks tools and see which stores had installed the app, when they installed it, and which features were enabled for them. Further internal review discovered that attackers could also turn Checkout Blocks features on or off for stores without permission.

Shopify added verified employee authentication, and production checks confirmed the anonymous bypass was blocked. The fix protects both the internal store information and the tools used to change store features.

The report

Summary:

checkout-blocks.shopifyapps.com has staff pages at /internal and /api/internal/. Ask for one without an employee session and you get redirected to minerva.shopifycloud.com, your employee login. That redirect is the only thing protecting them.

The rule matches on the text of the URL. This app runs on Next.js, which serves every page at a second URL too: /_next/data/<buildId>/<route>.json. That does not start with /internal, so the rule ignores it, and Next.js hands the request to the same code.

Those pages then answer 200 and JSON to a request with no cookie and no authorization header. All four staff routes behave this way. The build id is not a secret either; it is printed in the public /login page.

Shops Used to Test:

████████. I did not contact any other merchant's store.

Steps To Reproduce:

Run the attached poc.sh. No arguments, no credentials.

1 normal  /api/internal/shops      -> 302  https://minerva.shopifycloud.com/auth/minerva?...
2 bypass  /_next/data/ID/..shops   -> 200  628 bytes  application/json
3 ghost   /_next/data/NOPE/..      -> 404  (expect 404)
4 control /_next/data/ID/..admin   -> 302  .../login  (expect 302 login)
5 last page  -> {'total': 201520, 'pages': 40304, 'current': 40298} | shops returned: 5

Line 1 is the gate working, line 2 the same endpoint answering an anonymous client. Line 3 shows the second URL is not a catch all. Line 4 makes this a bypass rather than a public endpoint: at the same URL style, a route that checks its own session still refuses. Line 5 reaches page 40298 of 40304, and total is your server's own number.

Two things that make a re-test look like a false negative. The build id changes on every deploy, so a stale one returns 404 and looks fixed; read it from /login at run time as the script does. And test something under /api/internal/, because /api/admin/ is protected properly and will look like the boundary holding.

Remediation

Check the session in the route's own code, as /api/admin/* on this server already does at that same URL style. A rule at the edge matching the start of a URL cannot see a framework rewrite. If it stays at the edge, cover /_next/data/<buildId>/api/internal/* too.

Attached

poc.sh. Run with bash poc.sh. (Attachment on the original report: poc.sh)

Impact

Summary:

Anyone on the internet, with no Shopify account and without anyone clicking anything, accesses a console you protect with employee login.

What comes back is the app's merchant install list, which your server reports as 201,520 records across 40,304 pages, each with the shop domain, an internal shop id and the install date. It also returns which merchants have internal flags turned on, including checkout_blocks_allow_plus_features and allowPaidUpgrade. It includes non public staging stores belonging to identifiable brands, and it is live: the count rose four times while I tested.

I stopped deliberately. Every record in that list belongs to a merchant I have no relationship with, so the questions that would establish the real ceiling, how much can be pulled, whether anything can be written, what the other staff pages hold, all need handling of data that is not mine. I would rather send an under explored report than over explore other people's data.

For that same reason I am not proposing a severity and have left the field empty. Please rate it on what is actually reachable from this bypass, not on the little I was willing to demonstrate.

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

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 7 min read.

Context

Checkout Blocks is a Shopify app served from checkout-blocks.shopifyapps.com. It has staff-only pages under /internal and /api/internal/, which are meant to be reachable only by Shopify employees. The program's summary describes these as employee-only tools: a console that lists which stores have installed the app, when they installed it, and which features are enabled for them, plus tools that can turn Checkout Blocks features on or off for a store.

The app runs on Next.js. The only protection in front of the staff routes was a redirect to the employee login at minerva.shopifycloud.com. The researcher's finding is that this redirect could be skipped entirely, giving anonymous internet users the same JSON the staff pages return.

Setup

No account, no credentials and no special tooling were needed. The proof of concept is a shell script, poc.sh, run with bash poc.sh, with no arguments. The researcher states that no other merchant's store was contacted.

Two preconditions matter for reproducing the result:

  1. The build id used in the bypass URL changes on every deploy, so it has to be read at run time from the public /login page.
  2. The test has to target something under /api/internal/, because /api/admin/ is protected properly and will make the boundary look intact.

Finding it

Requesting a staff page without an employee session returns a redirect to the employee login:

Text
/api/internal/shops -> 302 https://minerva.shopifycloud.com/auth/minerva?...

The researcher's observation is that this redirect is the only thing protecting the pages, and that the rule producing it matches on the text of the URL. Because the app is built on Next.js, every page is also served at a second URL of the form /_next/data/<buildId>/<route>.json. That path does not start with /internal, so the edge rule ignores it, and Next.js routes the request to the same page code. The build id is not secret: it is printed in the public /login page.

Exploitation

Step 1: Confirm the gate works

Text
1 normal  /api/internal/shops      -> 302  https://minerva.shopifycloud.com/auth/minerva?...

A plain request to the staff API route is redirected to the employee login. This is the intended behaviour and establishes the baseline.

Step 2: Request the same endpoint through the Next.js data URL

Text
2 bypass  /_next/data/ID/..shops   -> 200  628 bytes  application/json

With no cookie and no authorization header, the same endpoint answers 200 with a JSON body of 628 bytes. The ID placeholder stands for the build id read from /login. The request never touches the /internal prefix that the edge rule inspects, so the redirect never fires, and Next.js hands the request to the same handler that serves the staff page.

Step 3: Show the second URL is not a catch-all

Text
3 ghost   /_next/data/NOPE/..      -> 404  (expect 404)

Using a build id that does not exist returns 404, as expected. This rules out the idea that /_next/data/ answers everything regardless of path.

Step 4: Show that a route with its own session check still refuses

Text
4 control /_next/data/ID/..admin   -> 302  .../login  (expect 302 login)

At the same URL style, a route that checks its own session still redirects to the login. This is what makes the issue a bypass rather than a public endpoint: the framework rewrite is not inherently unauthenticated, it simply reaches handlers that do not check the session themselves.

Step 5: Walk to the end of the merchant list

Text
5 last page  -> {'total': 201520, 'pages': 40304, 'current': 40298} | shops returned: 5

The response reports 201,520 records across 40,304 pages, and the researcher reached page 40,298, with five shops returned on that page. The total value is the server's own count, not an estimate.

All four staff routes behaved this way. The researcher stopped deliberately rather than exploring further.

Root cause

The access control was implemented as a rule at the edge that matches the start of the URL. Next.js serves each page at a second URL, /_next/data/<buildId>/<route>.json, which does not begin with /internal, so the rule does not apply to it, and the framework rewrites the request to the same page code. That page code does not check the session itself, so it answers anonymous clients.

The control that did work, on /api/admin/*, is a session check inside the route's own code, and it holds even when reached through the /_next/data/ URL style. The gap is therefore the absence of an in-route check on the /api/internal/ handlers, combined with an edge rule that cannot see framework rewrites. The build id being printed on the public /login page removes any obscurity that might otherwise have slowed an attacker down.

Impact

Anyone on the internet, with no Shopify account and without any user interaction, could reach a console that is meant to be behind employee login. The response contains the app's merchant install list: the server reports 201,520 records across 40,304 pages, each with the shop domain, an internal shop id and the install date. It also returns which merchants have internal flags enabled, including checkout_blocks_allow_plus_features and allowPaidUpgrade. The list includes non-public staging stores belonging to identifiable brands, and it is live: the count rose four times during testing.

The program's own summary adds that further internal review found attackers could also turn Checkout Blocks features on or off for stores without permission, so the exposure covered both the store information and the tools used to change store features.

The researcher deliberately did not establish the full ceiling: how much can be pulled, whether anything can be written, and what the other staff pages hold would all have required handling data belonging to merchants they have no relationship with. For that reason no severity was proposed in the report; the program rated it medium and awarded a 3,100 USD bounty.

Fix

Shopify added verified employee authentication, and production checks confirmed the anonymous bypass was blocked. The fix protects both the internal store information and the tools used to change store features.

The researcher's recommendation was to check the session in the route's own code, as /api/admin/* on the same server already does at the same URL style, because a rule at the edge matching the start of a URL cannot see a framework rewrite. If the control stays at the edge, it should also cover /_next/data/<buildId>/api/internal/*.

Variants to test

  • Other Next.js apps with path-prefix edge rules. Look for staff or admin routes protected only by a redirect on a URL prefix. A positive result is the same route returning 200 with data through /_next/data/<buildId>/<route>.json while the plain path redirects.
  • Build id discovery. Check whether the build id is exposed on a public page such as /login. A positive result is a build id readable without authentication that produces a 200 on the data URL.
  • Framework rewrite paths in general. Any framework that serves a second URL for the same handler is worth testing against prefix-based rules. A positive result is a handler that answers through the alternate URL but redirects on its canonical path.
  • Routes that do check their own session. Use one as a control, as the researcher did with /api/admin/. A positive result is the control still redirecting through the data URL, which shows the bypass is specific to handlers without their own check.
  • Stale build ids. A 404 on the data URL after a deploy can look like a fix. Re-read the build id at run time before concluding anything.

Hunting notes

This kind of bug tends to hide wherever access control is expressed as a URL prefix at a proxy or edge layer while the application framework can reach the same handler through a different path. Next.js data URLs are one example; the general signal is any route that is protected by where it lives rather than by what it checks.

During recon, the useful signals are staff or internal paths that redirect to a central login, a public page that leaks a build id, and sibling paths such as /api/admin/ that behave differently from /api/internal/. Comparing the two tells you whether the boundary is enforced in code or only at the edge.

The researcher demonstrated the bypass on a real endpoint, including a control route that still refused, and reported the server's own record and page counts together with the fields returned (shop domain, internal shop id, install date, internal feature flags). The researcher deliberately stopped rather than explore data belonging to merchants they have no relationship with.

One practical note for re-tests: the build id changes on every deploy, so a stale one returns 404 and looks fixed. Read it from /login at run time, and test something under /api/internal/ rather than /api/admin/, which is protected properly and will look like the boundary holding.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 18 min read.

What happened, in plain words

Shopify makes an app called Checkout Blocks. It is a tool that online shops install to change how their checkout page looks and behaves. The app has a private area for Shopify's own employees: a console that lists which shops have installed the app, when they installed it, and which optional features are switched on for each of them. There are also tools there that can switch those features on or off for a shop.

That private area was supposed to be reachable only by employees. In practice, anyone on the internet could reach it. No account, no password, no trickery needed. The person who found this (a security researcher going by the name cafecito) showed that a plain web request, sent with no login information at all, came back with the app's merchant install data.

The reason is a mismatch between two layers of the system. One layer, sitting at the front door, was told: "if the address starts with /internal, send the visitor to the employee login page." The other layer, the app itself, happens to serve every page at a second address as well, and that second address does not start with /internal. So the front door let it through, and the app answered.

The data that came back was a list of shops using the app: the server itself reported 201,520 records spread over 40,304 pages. Each record had the shop's web address, an internal shop number and the date the app was installed. It also showed which shops had particular internal switches turned on. Some of the shops in the list were staging stores, meaning test versions of shops that are not meant to be public, belonging to brands you would recognise.

Shopify fixed it by adding a real employee login check, and confirmed in production that the anonymous route no longer works. The program rated the issue medium severity and paid a 3,100 USD bounty.

Below is the whole story, step by step, with every term explained as it comes up.

Context

What the product is

Checkout Blocks is a Shopify app. An "app" here means a piece of software that a shop owner adds to their online store to get extra features. This one lets a shop customise its checkout, the final page where a customer pays. The app lives at a web address: checkout-blocks.shopifyapps.com.

What the private area is

Inside that app there are pages meant only for Shopify staff. They sit under two address prefixes:

  • /internal, which serves human-facing pages.
  • /api/internal/, which serves an API.

An API (Application Programming Interface) is the part of a website that returns raw data rather than a pretty page. Think of a restaurant: the dining room is the website you see, and the kitchen door where waiters collect plates is the API. You do not look at the kitchen, but the food comes from there. When a web page needs to show a list of shops, it asks the API for that list, and the API answers with data, usually in a format called JSON (JavaScript Object Notation), which is just structured text that looks like {"name": "value"}.

These staff pages are the console described above: which stores installed the app, when, which features are enabled, plus the tools to switch features on or off.

What was protecting it

A redirect is what happens when a web server tells your browser "not here, go over there instead". If you type an address and the server answers with a redirect, your browser automatically loads the new address. The staff pages were protected by a redirect: ask for one without being logged in as an employee, and you were sent to minerva.shopifycloud.com, which is Shopify's employee login page.

That redirect was the only protection. There was no second check behind it.

The framework and its second address

The app is built with Next.js. Next.js is a framework: a ready-made toolkit that developers use to build websites, so they do not have to write everything from scratch. One of the things Next.js does automatically is serve every page at a second address as well, of the form:

Text
/_next/data/<buildId>/<route>.json

This second address exists so that the page can load its data quickly when you navigate around the site. The <buildId> part is an identifier for the particular version of the app that is currently deployed. A deploy is when developers publish a new version of the software to the live servers.

The researcher's finding: the redirect rule only looked at the text of the address. The second address does not start with /internal, so the rule did not apply to it, and Next.js passed the request to the same code that serves the staff page. That code did not check who was asking.

Setup

No account, no credentials and no special tools were needed. Credentials means anything that proves who you are: a username and password, a login cookie, an API key. The proof of concept is a shell script called poc.sh, run with:

Bash
bash poc.sh

A shell script is a text file containing a list of commands for the computer to run in order. bash is the program that reads and executes such scripts. Running it with no arguments means the script needs no input from you.

The researcher states that no other merchant's store was contacted.

Two preconditions matter for reproducing the result:

  1. The build id used in the bypass address changes on every deploy, so it has to be read at run time from the public /login page.
  2. The test has to target something under /api/internal/, because /api/admin/ is protected properly and will make the boundary look intact.

Why these two matter: if you use an old build id, the server will not recognise it and will answer "not found", which looks like the bug is fixed when it is not. And if you test the wrong path, you will see a redirect and wrongly conclude that everything is locked down.

Finding it

Requesting a staff page without an employee session returns a redirect to the employee login:

Text
/api/internal/shops -> 302 https://minerva.shopifycloud.com/auth/minerva?...

Line by line:

  • /api/internal/shops is the address being requested. It is the API route that returns the list of shops.
  • -> means "the server answered with".
  • 302 is an HTTP status code. Status codes are three-digit numbers a server uses to say what happened. 200 means "here is your content, all good". 302 means "this content has moved, go to another address". 404 means "no such thing here".
  • https://minerva.shopifycloud.com/auth/minerva?... is where the browser is told to go: the employee login. The ?... stands for extra parameters that were trimmed from the quote.

The researcher's observation is that this redirect is the only thing protecting the pages, and that the rule producing it matches on the text of the address. Because the app is built on Next.js, every page is also served at the second address of the form /_next/data/<buildId>/<route>.json. That path does not start with /internal, so the front-door rule ignores it, and Next.js routes the request to the same page code. The build id is not secret: it is printed in the public /login page.

Exploitation

Step 1: Confirm the gate works

Text
1 normal  /api/internal/shops      -> 302  https://minerva.shopifycloud.com/auth/minerva?...

Line by line:

  • 1 normal is a label: this is the first test, the normal, expected request.
  • /api/internal/shops is the staff API address.
  • -> 302 means the server answered with a redirect.
  • The address after it is the employee login page.

Why this step: before claiming a lock is broken, you first show that the lock works when used normally. A plain request to the staff API route is redirected to the employee login. This is the intended behaviour and establishes the baseline, the "before" picture to compare against.

Step 2: Request the same endpoint through the Next.js data URL

Text
2 bypass  /_next/data/ID/..shops   -> 200  628 bytes  application/json

Line by line:

  • 2 bypass is the label: this is the second test, the one that skips the gate.
  • /_next/data/ID/..shops is the second address for the same shops page. ID is a placeholder standing for the build id read from /login. The .. is shorthand in the researcher's notes for the rest of the route path.
  • -> 200 means the server answered "here is your content".
  • 628 bytes is the size of the answer.
  • application/json is the content type, a label the server puts on its answer to say what kind of data it is. JSON means structured data, not a web page.

Why this step: this is the actual bypass. With no cookie and no authorization header, the same endpoint answers 200 with a JSON body of 628 bytes. A cookie is a small piece of data your browser stores for a website and sends back with every request, often used to remember that you are logged in. An authorization header is a line attached to a request that carries proof of who you are. Sending neither means the request is completely anonymous, like a stranger walking in with no badge. The request never touches the /internal prefix that the front-door rule inspects, so the redirect never fires, and Next.js hands the request to the same handler that serves the staff page. A handler is the piece of code that actually produces the answer for a given address.

Step 3: Show the second URL is not a catch-all

Text
3 ghost   /_next/data/NOPE/..      -> 404  (expect 404)

Line by line:

  • 3 ghost is the label: a test with a made-up build id, a "ghost".
  • /_next/data/NOPE/.. uses NOPE in place of a real build id.
  • -> 404 means "no such thing here".
  • (expect 404) records that this is the answer the researcher predicted.

Why this step: a sceptic could say "maybe /_next/data/ just answers everything, and that is not a security problem, it is how the site works". Using a build id that does not exist returns 404, as expected. This rules out the idea that /_next/data/ answers everything regardless of path. It shows the second address only works when it points at something real.

Step 4: Show that a route with its own session check still refuses

Text
4 control /_next/data/ID/..admin   -> 302  .../login  (expect 302 login)

Line by line:

  • 4 control is the label: this is the control test, a comparison case. In experiments, a control is a case where you already know the answer, used to check that your method is sound.
  • /_next/data/ID/..admin is the second address for the admin route, using the real build id.
  • -> 302 means a redirect.
  • .../login is the login page it redirects to.
  • (expect 302 login) records the prediction.

Why this step: at the same address style, a route that checks its own session still redirects to the login. This is what makes the issue a bypass rather than a public endpoint. In other words, the second address is not automatically open to everyone; it simply reaches handlers that do not check the session themselves. The admin route does check, so it refuses. The internal route does not check, so it answers. That difference is the whole bug.

Step 5: Walk to the end of the merchant list

Text
5 last page  -> {'total': 201520, 'pages': 40304, 'current': 40298} | shops returned: 5

Line by line:

  • 5 last page is the label: the researcher paged through the list until near the end.
  • {'total': 201520, 'pages': 40304, 'current': 40298} is the JSON the server sent back. total is the number of records: 201,520. pages is how many pages the list is split into: 40,304. current is which page this answer is for: page 40,298.
  • | shops returned: 5 means this particular page contained five shop records.

Why this step: it shows the scale. The response reports 201,520 records across 40,304 pages, and the researcher reached page 40,298, with five shops returned on that page. The total value is the server's own count, not an estimate. Paging means asking for the list in chunks, the way a long web page is split into numbered pages; each chunk is requested separately.

All four staff routes behaved this way. The researcher stopped deliberately rather than exploring further. Enumerating means going through a list item by item, here pulling every shop record one page at a time.

Root cause

A root cause is the underlying reason a bug exists, as opposed to its symptoms.

The access control was implemented as a rule at the edge. The edge means the outer layer of the system, the proxy or front door that sees requests before they reach the application. The rule matches the start of the address. Next.js serves each page at a second address, /_next/data/<buildId>/<route>.json, which does not begin with /internal, so the rule does not apply to it, and the framework rewrites the request to the same page code. A rewrite is when the server quietly maps one address to another piece of code without telling the visitor. That page code does not check the session itself, so it answers anonymous clients.

The control that did work, on /api/admin/*, is a session check inside the route's own code, and it holds even when reached through the /_next/data/ address style. The gap is therefore the absence of an in-route check on the /api/internal/ handlers, combined with an edge rule that cannot see framework rewrites. The build id being printed on the public /login page removes any obscurity that might otherwise have slowed an attacker down. Obscurity here means relying on something being hard to guess, such as a hidden address, rather than on a real check.

A useful comparison: a nightclub with a bouncer who only checks the front door, while the building has a second entrance round the back that leads to the same room. The bouncer is doing his job at the front. The problem is that nobody is standing in the room itself.

Impact

Impact means what harm the bug could actually cause, which is what determines how serious it is.

Anyone on the internet, with no Shopify account and without any user interaction, could reach a console that is meant to be behind employee login. "No user interaction" means nobody has to click a link or open a file; the attacker just sends requests.

The response contains the app's merchant install list: the server reports 201,520 records across 40,304 pages, each with the shop domain, an internal shop id and the install date. A domain is a shop's web address, like example.com. An internal shop id is a number Shopify uses to identify the shop in its own systems. It also returns which merchants have internal flags enabled, including checkout_blocks_allow_plus_features and allowPaidUpgrade. A flag is an on/off switch in the software that enables a feature for a particular shop.

The list includes non-public staging stores belonging to identifiable brands. Staging stores are test copies of a shop used before changes go live; they are not meant for public eyes. And the list is live: the count rose four times during testing, meaning the data was changing in real time as new shops installed the app.

The program's own summary adds that further internal review found attackers could also turn Checkout Blocks features on or off for stores without permission, so the exposure covered both the store information and the tools used to change store features.

The researcher deliberately did not establish the full ceiling: how much can be pulled, whether anything can be written, and what the other staff pages hold would all have required handling data belonging to merchants they have no relationship with. "Whether anything can be written" means whether an attacker could change data, not just read it. For that reason no severity was proposed in the report; the program rated it medium and awarded a 3,100 USD bounty. Severity is the seriousness rating a security program gives a report, often low, medium, high or critical.

Fix

Shopify added verified employee authentication, and production checks confirmed the anonymous bypass was blocked. Authentication is the process of proving who you are, such as logging in. "Verified" means the check actually confirms the person is an employee, not just that they reached a login page. The fix protects both the internal store information and the tools used to change store features.

The researcher's recommendation was to check the session in the route's own code, as /api/admin/* on the same server already does at the same address style, because a rule at the edge matching the start of an address cannot see a framework rewrite. A session is the server's memory of who you are across multiple requests, usually tracked with a cookie. If the control stays at the edge, it should also cover /_next/data/<buildId>/api/internal/*.

Variants to test

These are the same bug pattern in other places, written as things to look for. Each has a "positive result", meaning the sign that you have found something real.

  • Other Next.js apps with path-prefix edge rules. Look for staff or admin routes protected only by a redirect on an address prefix. A positive result is the same route returning 200 with data through /_next/data/<buildId>/<route>.json while the plain path redirects.
  • Build id discovery. Check whether the build id is exposed on a public page such as /login. A positive result is a build id readable without authentication that produces a 200 on the data address.
  • Framework rewrite paths in general. Any framework that serves a second address for the same handler is worth testing against prefix-based rules. A positive result is a handler that answers through the alternate address but redirects on its canonical path. The canonical path is the normal, official address for that page.
  • Routes that do check their own session. Use one as a control, as the researcher did with /api/admin/. A positive result is the control still redirecting through the data address, which shows the bypass is specific to handlers without their own check.
  • Stale build ids. A 404 on the data address after a deploy can look like a fix. A stale build id is one from an older version of the app. Re-read the build id at run time before concluding anything.

Hunting notes

This kind of bug tends to hide wherever access control is expressed as an address prefix at a proxy or edge layer while the application framework can reach the same handler through a different path. Next.js data addresses are one example; the general signal is any route that is protected by where it lives rather than by what it checks.

During recon (reconnaissance, the early stage of looking around a target to understand how it is built), the useful signals are staff or internal paths that redirect to a central login, a public page that leaks a build id, and sibling paths such as /api/admin/ that behave differently from /api/internal/. Comparing the two tells you whether the boundary is enforced in code or only at the edge.

The researcher demonstrated the bypass on a real endpoint, including a control route that still refused, and reported the server's own record and page counts together with the fields returned (shop domain, internal shop id, install date, internal feature flags). The researcher deliberately stopped rather than explore data belonging to merchants they have no relationship with.

One practical note for re-tests: the build id changes on every deploy, so a stale one returns 404 and looks fixed. Read it from /login at run time, and test something under /api/internal/ rather than /api/admin/, which is protected properly and will look like the boundary holding.

Glossary

  • API: the part of a website that returns raw data rather than a web page, used by pages and other software to fetch information.
  • Authentication: the process of proving who you are, such as logging in with a password.
  • Authorization header: a line attached to a web request that carries proof of identity, such as a token.
  • Bash: the program on a computer that reads and runs shell scripts.
  • Build id: an identifier for the particular version of a Next.js app currently deployed; it changes on every deploy.
  • Canonical path: the normal, official address of a page, as opposed to an alternate address that serves the same content.
  • Content type: a label on a server's answer saying what kind of data it is, such as application/json for structured data.
  • Control test: a comparison case in an experiment where you already know the answer, used to check your method is sound.
  • Cookie: a small piece of data a browser stores for a website and sends back with each request, often used to remember a login.
  • Credentials: anything that proves who you are, such as a password, cookie or key.
  • Deploy: publishing a new version of software to live servers.
  • Domain: a website's address, such as example.com.
  • Edge: the outer layer of a system, such as a proxy or front door, that sees requests before they reach the application.
  • Enumerating: going through a list item by item, for example pulling every record one page at a time.
  • Flag: an on/off switch in software that enables a feature for a particular user or shop.
  • Framework: a ready-made toolkit developers use to build software, so they do not write everything from scratch.
  • Handler: the piece of code that produces the answer for a given address.
  • HTTP status code: a three-digit number a server uses to say what happened, such as 200 (here is your content), 302 (go to another address) or 404 (no such thing here).
  • Impact: what harm a bug could actually cause, which drives how serious it is.
  • Internal shop id: a number Shopify uses to identify a shop inside its own systems.
  • JSON: JavaScript Object Notation, a structured text format for data, looking like {"name": "value"}.
  • Next.js: a framework for building websites, which among other things serves every page at a second data address.
  • Obscurity: relying on something being hard to guess, such as a hidden address, instead of a real check.
  • Paging: asking for a long list in chunks, like numbered pages.
  • Recon: reconnaissance, the early stage of looking around a target to understand how it is built.
  • Redirect: a server telling the browser "not here, go to another address instead".
  • Rewrite: the server quietly mapping one address to another piece of code without telling the visitor.
  • Root cause: the underlying reason a bug exists, as opposed to its visible symptoms.
  • Session: the server's memory of who you are across multiple requests, usually tracked with a cookie.
  • Severity: the seriousness rating a security program gives a report, often low, medium, high or critical.
  • Shell script: a text file containing a list of commands for the computer to run in order.
  • Staging store: a test copy of a shop used before changes go live, not meant for public eyes.
  • Stale: out of date, such as a build id from an older version of the app.
  • Verified employee authentication: a login check that actually confirms the person is an employee, not just that they reached a login page.

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.