Skip to content
IDOR Disclosed report Beginner

Ability to add address without being an admin or staff in the store via wholesale store

A wholesale store registration form allowed an attacker to add a default address to any existing customer by entering that customer's email. This could let an attacker replace a victim's default shipping address without admin or staff access.

urfavenemy01 Follow

Originally disclosed on HackerOne

Bounty$500 Low 2.4 View original
  • Triaged in 14 days
  • Fixed in 4 months
  • Paid in 21 days
  • Disclosed after 4 months

Customers in the shopify store can be added manually or automatically, an example is added automatically when you want to checkout (here we don't need to checkout) just by proceeding to "Continue to shipping" information will be sent directly to the customer such as email address and other things but when we do this again by filling in the same email with a different address then the address on the customer overview admin will not change or be added maybe this is the behavior expected by shopify because to avoid someone without access to change and add an address on existing customer but I found a vulnerability here that causes attackers to add addresses to customers even though they do not have admin rights or staff

Step to reproduce :

  1. Setting your shopify wholesale store and activate "Customers must provide an address" then save
  2. Register and add business address at wholesale store and using another customers email then click sign up
  3. Now on the shopify store, check on the customer whose email we used to register at wholesale, there will be an address that we just added via wholesale registration.

It will be dangerous if the shopify wholesale store activates the "Customers must provide an address" feature because attackers can add default addresses to customers without having any admin acces or staff and this maybe idor because we can add other customer addresses without having access but you can decide for yourself

Impact

Vulnerabilities that cause attackers to add customer default addresses without having admin/staff rights should be only admins and staff can change and add customer default addresses, but here attackers who have no access admin/staff can add default addresses to customers, this can have an impact takeover default addresses that attackers can use to replace the default addresses of other customers

The original report as published on HackerOne, by urfavenemy01. 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. 5 min read.

Context

Shopify stores can hold customer records that are created in two ways: manually by the merchant, or automatically when a visitor goes through checkout. The report focuses on a third path, the wholesale store registration flow, and on the customer address that Shopify stores against each customer record.

The feature at the centre of the report is the wholesale store setting "Customers must provide an address". When that setting is active, a person registering at the wholesale store has to supply a business address as part of sign-up. The researcher found that this address is written to the customer record that matches the email used at registration, even when the person registering is not that customer and has no admin or staff access to the store.

The report was submitted to the Shopify program on HackerOne, concerns a Shopify developed app (the wholesale store), and was rated low severity with a CVSS score of 2.4. A bounty of 500.00 USD was paid and the report was disclosed on 2021-12-03.

Setup

To reproduce, the researcher needed:

  1. A Shopify wholesale store with the setting "Customers must provide an address" enabled and saved.
  2. The email address of an existing customer of that store, which the researcher did not own.
  3. No admin or staff account on the store. The whole point of the finding is that the action works without those rights.

No tools, versions or specific endpoints are given in the report.

Finding it

The researcher started from how customer records normally come into existence. A customer can be added manually by the merchant, or automatically, for example when a visitor proceeds through checkout. In the automatic case, simply continuing to the shipping step sends information such as the email address to the customer record.

The researcher then tried the same idea again, filling in the same email but a different address. The address shown on the customer overview in the admin did not change and was not added. That looked like deliberate behaviour: Shopify avoiding the situation where someone without access could change or add an address on an existing customer.

That expectation is what made the wholesale registration path interesting. If the normal flow refuses to touch the address of an existing customer, a second flow that does write it is worth testing. The report states that the wholesale registration adds the address to the existing customer record, which is the vulnerability described.

Exploitation

Step 1: enable the address requirement

In the Shopify wholesale store settings, activate "Customers must provide an address" and save. This is the precondition that makes the registration form collect a business address.

Step 2: register with someone else's email

Go to the wholesale store registration, register, and add a business address. Use the email address of another customer, then click sign up. The form accepts the registration and the address supplied during it.

Step 3: check the victim's customer record

Back in the Shopify store, open the customer whose email was used at wholesale registration. The address that was just entered through the wholesale sign-up is present on that customer record.

No request, response, parameter or endpoint is shown in the report, so the exact traffic behind these steps is not documented here.

Root cause

The report does not describe the code or the design decision behind the behaviour. What it establishes is the observable difference between two flows: the checkout path does not add or change the address of an existing customer when the same email is submitted again, while the wholesale registration path does write the address to the customer record matching the submitted email.

The researcher suggests the issue may be an IDOR, since an address can be added to another customer without access to that customer, while leaving the classification open. The report does not describe how the lookup or the write is implemented.

Impact

When a wholesale store has "Customers must provide an address" enabled, an attacker with no admin or staff access can add a default address to another customer's record. The researcher notes that only admins and staff should be able to change and add customer default addresses.

The stated consequence is that an attacker can replace the default addresses of other customers. The report frames this as dangerous specifically for stores that activate the address requirement, and does not describe any further effect beyond the address itself.

Fix

Based on the finding, the wholesale registration flow should not write an address to an existing customer record on the strength of an email address alone; it should verify that the person registering controls that email before the address is attached, or refuse to modify the address of an existing customer in the same way the checkout flow does.

Variants to test

  1. Other registration and sign-up forms tied to a customer record. Submit an existing customer's email with a new address and check whether the record changes. A positive result is the new address appearing on the victim's customer overview.
  2. Other optional profile fields collected at sign-up. Try names, phone numbers or similar fields with a victim's email. A positive result is any of those values being written to the victim's record.
  3. Stores with the address requirement disabled. Repeat the registration to see whether the write still happens when the setting is off. A positive result is the address landing on the record regardless of the setting.
  4. The checkout path as a control. Submit the same email with a different address through checkout and confirm the address is not changed, which is the behaviour the researcher observed and the baseline against which the wholesale flow stood out.

Hunting notes

This kind of bug hides in secondary account-creation flows: wholesale registration, B2B sign-up, guest checkout, newsletter or loyalty enrolment, and any form that collects an email plus profile data and then reconciles it with an existing customer record. The signal during recon is a store setting that makes an address mandatory at sign-up, combined with a registration form that accepts an email without proving control of it.

The comparison that produced the finding is cheap and worth repeating: perform the same action through two different flows with the same email and a different value, and see which flow writes to the record. A flow that silently updates an existing customer where another flow refuses to is the candidate.

The report names the precondition (the address requirement enabled), the missing authorisation (no admin or staff access), and the result on the customer record.

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. 10 min read.

What happened, in plain words

An online shop built on Shopify keeps a record for every customer. That record can hold things like an email address and a postal address. Normally, only the shop owner (the merchant) or the merchant's staff can change what is inside a customer record.

The researcher found a way for a person with no special access at all, no admin account and no staff account, to add a postal address to somebody else's customer record. The route was the shop's wholesale registration form, a sign-up page meant for business buyers. When a particular setting is switched on, that form asks for a business address. The researcher filled in the form using another customer's email address and a business address, and the address ended up attached to that other customer's record.

To understand why this matters, imagine a hotel reception desk. Guests can fill in a form to update their own contact details, but the form is supposed to check that you really are that guest. Here, the form accepted a name badge (the email address) without checking that the person wearing it owned it, and wrote the new details onto the guest's file.

The report was sent to Shopify's bug bounty programme on HackerOne. A bug bounty programme is a scheme where companies pay people who report security problems responsibly instead of exploiting them. The report was rated low severity, with a CVSS score of 2.4. CVSS is a standard scoring system for how serious a security flaw is; 2.4 is on the low end. A bounty of 500.00 USD was paid, and the report was made public on 2021-12-03.

Background you need first

A few ideas come up again and again below, so here they are from scratch.

  • Shopify is a platform that lets anyone run an online shop. The merchant logs into an admin area to manage products, orders and customers. Shoppers see a public storefront.
  • A customer record is the shop's file on one shopper. It is keyed by email address, so the shop can recognise the same person across visits.
  • The admin area is the private management screen. Only the merchant and people the merchant invites (staff) can log in there. Everyone else, including ordinary shoppers, has no access.
  • A wholesale store is a version of the shop aimed at businesses buying in bulk. It has its own registration page where a business signs up and, optionally, supplies a business address.
  • A setting is an on/off switch in the admin area that changes how the shop behaves. The one at the centre of this report is called "Customers must provide an address". When it is on, anyone registering at the wholesale store has to type a business address before they can finish signing up.
  • IDOR stands for Insecure Direct Object Reference. It is a class of bug where a website lets you reach or change a specific record (a customer, an order, a file) just by naming it, without checking that the record belongs to you. A simple comparison: a cloakroom that hands out coats to anyone who reads the ticket number aloud, without checking the ticket is theirs. The researcher suggests this bug may be an IDOR but leaves the final label open.

The setup

To reproduce the finding, the researcher needed three things:

  1. A Shopify wholesale store with the setting "Customers must provide an address" switched on and saved. This is what makes the registration form collect an address at all.
  2. The email address of an existing customer of that store, one the researcher did not own. This is the target, the person whose record should not be touched.
  3. No admin or staff account on the store. This is the whole point: the action has to work for an outsider, otherwise there is no bug.

The report does not name any tools, software versions or web addresses (endpoints) used.

Finding it

The researcher began by thinking about how customer records normally appear. There are two usual ways:

  • The merchant adds a customer by hand in the admin area.
  • The record is created automatically when a visitor goes through checkout. Even before paying, simply continuing to the shipping step sends details such as the email address into a customer record.

That second path is interesting because it is automatic and happens without any login. The researcher tried it again, this time entering the same email as before but a different postal address. The address shown on the customer overview in the admin did not change and was not added.

The researcher suggests this may be the behaviour Shopify expects, to avoid someone without access changing an existing customer's address. That is sensible behaviour, the same way a bank will not change your address because a stranger filled in a form with your account number.

That expectation is exactly what made the wholesale registration page worth a look. If the normal checkout flow refuses to touch an existing customer's address, then a second flow that does write it is suspicious. The report states that the wholesale registration does add the address to the existing customer record. That is the vulnerability.

Exploitation, step by step

Step 1: switch on the address requirement

In the Shopify wholesale store settings, turn on "Customers must provide an address" and save. Why this step: without the setting, the registration form may not ask for an address at all, and there would be nothing to write into the customer record. The setting is the precondition that makes the rest possible.

Step 2: register using someone else's email

Go to the wholesale store registration page, fill it in, and add a business address. Use the email address of another customer, then click sign up. Why this step: the email is the key that ties a registration to an existing customer record. By using a victim's email, the researcher is testing whether the form checks that the person signing up actually controls that email. The form accepted the registration and the address supplied with it.

Step 3: check the victim's customer record

Back in the Shopify admin, open the customer whose email was used at wholesale registration. The address entered during the wholesale sign-up is now present on that customer record. Why this step: this is the proof. Seeing the address on the victim's record shows the write actually happened, not just that the form accepted input.

The report shows no web request, response, parameter or endpoint, so the exact network traffic behind these steps is not documented.

Why it works

The report does not describe the code or the design decision behind the behaviour. What it does establish is a difference between two flows:

  • The checkout path does not add or change the address of an existing customer when the same email is submitted again.
  • The wholesale registration path does write the address to the customer record matching the submitted email.

The researcher suggests the issue may be an IDOR, since an address can be added to another customer without access to that customer, but leaves the classification open.

Impact

When a wholesale store has "Customers must provide an address" enabled, an attacker with no admin or staff access can add a default address to another customer's record. The researcher notes that only admins and staff should be able to change and add customer default addresses.

The stated consequence is that an attacker can replace the default addresses of other customers. The report frames this as dangerous specifically for stores that switch the address requirement on, and does not describe any further effect beyond the address itself.

Fix

Based on the finding, the wholesale registration flow should not write an address to an existing customer record on the strength of an email address alone. It should verify that the person registering controls that email before the address is attached, or refuse to modify the address of an existing customer in the same way the checkout flow does.

Variants to test

If you want to look for similar problems, these are the directions the write-up suggests. Each one is a small experiment: change one thing, repeat the steps, and watch the victim's customer overview.

  1. Other registration and sign-up forms tied to a customer record. Submit an existing customer's email with a new address and check whether the record changes. A positive result is the new address appearing on the victim's customer overview.
  2. Other optional profile fields collected at sign-up. Try names, phone numbers or similar fields with a victim's email. A positive result is any of those values being written to the victim's record.
  3. Stores with the address requirement disabled. Repeat the registration to see whether the write still happens when the setting is off. A positive result is the address landing on the record regardless of the setting.
  4. The checkout path as a control. Submit the same email with a different address through checkout and confirm the address is not changed. This is the behaviour the researcher observed, and it is the baseline against which the wholesale flow stood out.

Hunting notes

This kind of bug hides in secondary account-creation flows: wholesale registration, business-to-business sign-up, guest checkout, newsletter or loyalty enrolment, and any form that collects an email plus profile data and then reconciles it with an existing customer record. During recon (the early stage of looking around a target), the signal is a store setting that makes an address mandatory at sign-up, combined with a registration form that accepts an email without proving control of it.

The comparison that produced the finding is cheap and worth repeating: perform the same action through two different flows with the same email and a different value, and see which flow writes to the record. A flow that silently updates an existing customer where another flow refuses to is the candidate.

The report names the precondition (the address requirement enabled), the missing authorisation (no admin or staff access), and the result on the customer record.

Glossary

  • Admin: the merchant's private management area, and the person who owns the shop and can log into it.
  • Authorisation: the check that decides whether a person is allowed to do a particular action.
  • Bug bounty programme: a scheme where a company pays researchers who report security flaws responsibly.
  • Checkout: the sequence of pages a shopper goes through to buy something, including a shipping step.
  • Control (in testing): a known-good case you repeat to compare against, so you can tell what changed.
  • Customer record: the shop's stored file on one shopper, usually keyed by email address.
  • CVSS: a standard scoring system for the severity of a security flaw; higher numbers mean more serious.
  • Default address: the postal address a customer record uses unless another is chosen.
  • Endpoint: a specific web address on a server that a browser or program sends requests to.
  • Flow: one particular path through a website, such as checkout or wholesale registration.
  • HackerOne: a platform where security researchers report bugs to companies and companies manage those reports.
  • IDOR (Insecure Direct Object Reference): a bug where a site lets you reach or change a specific record just by naming it, without checking it belongs to you.
  • Merchant: the person or business that runs the Shopify store.
  • Parameter: a named value sent with a web request, such as an email or an address.
  • Precondition: something that must be true before an attack can work, such as a setting being switched on.
  • Recon: the early stage of exploring a target to find features and settings worth testing.
  • Request / response: a request is what a browser sends to a server; the response is what the server sends back.
  • Severity: how serious a flaw is judged to be, often expressed with a CVSS score.
  • Setting: an on/off or configurable option in the admin area that changes how the shop behaves.
  • Shopify: a platform for running an online shop.
  • Staff: people the merchant invites to help manage the shop, with limited access to the admin area.
  • Storefront: the public, shopper-facing side of the shop.
  • Vulnerability: a weakness in software that lets someone do something they should not be able to do.
  • Wholesale store: a version of the shop aimed at businesses buying in bulk, with its own registration page.
  • Write (to a record): to save or change a value inside a stored record.

More by urfavenemy01

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.

Insecure direct object reference (IDOR)

The lesson behind this report.

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.