Skip to content
IDOR Disclosed report Intermediate

[h1-2102] Improper Access Control at https://shopify.plus/[id]/users/api in operation UpdateOrganizationUserTfaEnforcement

An access control flaw in the UpdateOrganizationUserTfaEnforcement mutation allowed a Shopify Plus user to trigger an email containing another organisation's user's 2FA status, name, email, and shop ID. The attacker could retrieve this information despite an error response.

ramsexy Follow with smsecurity, archangel and 1 other

Originally disclosed on HackerOne

Medium 4.3 View original
  • Triaged in 6 days
  • Fixed in 2 months
  • Paid in 10 days
  • Disclosed after 18 months

Summary:

There is an access control issue that happens when a Shopify Plus user tries to update the 2FA requirement of a user in another organisation. While the response shows an error message, an email is sent to the user with the 2FA status, first name, last name, email address, and shop id from the victim.

Steps To Reproduce:

  1. Log in to your Shopify Plus account https://shopify.plus/login

  2. Go to Administration -> Users then go in one of the user page

  3. In the Security section, edit the 2FA setting

    Screen_Shot_2021-01-22_at_10.19.06_PM.png
    Screen_Shot_2021-01-22_at_10.19.06_PM.png From the original on HackerOne
  4. Notice the following request:

    HTTP

POST /34808573/users/api HTTP/1.1 Host: shopify.plus [...]

{
    "operationName": "UpdateOrganizationUserTfaEnforcement",
    "variables": {
        "id": "Z2lkOi8vb3JnYW5pemF0aW9uL09yZ2FuaXphdGlvblVzZXIvMzQwNTc5Mzg=",
        "enforced": false
    },
    "query": "mutation UpdateOrganizationUserTfaEnforcement($id: OrganizationUserID!, $enforced: Boolean!) {\n  updateOrganizationUserTfaEnforcement(id: $id, enforced: $enforced) {\n    organizationUser {\n      id\n      tfaEnforced\n      __typename\n    }\n    userErrors {\n      field\n      message\n      __typename\n    }\n    operationStatus\n    message\n    __typename\n  }\n}\n"
}
5. In Burp Repeater, edit the `id` with `Z2lkOi8vb3JnYW5pemF0aW9uL09yZ2FuaXphdGlvblVzZXIvMzQwNzE2MzI=`
6. You will receive an email containing Anatoly information :
{{media:1}}

## Impact

A Shopify Plus user can retrieve information (2FA status, first name, last name, email address, shop ip) from a user in another organisation.

The original report as published on HackerOne, by ramsexy. 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 mutation did not verify that the organisation user ID belonged to the attacker's organisation before sending a notification email.

Impact

A Shopify Plus user could retrieve another organisation user's 2FA status, first name, last name, email address, and shop ID.

What the attacker needed

A Shopify Plus account; knowledge of another organisation user's id

How it was found

  1. Log in to a Shopify Plus account.
  2. Navigate to Administration > Users and open a user page.
  3. In the Security section, edit the 2FA setting and capture the request.
  4. In Burp Repeater, replace the id with another organisation user's id.
  5. Observe that an email is received with the victim's information.

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.

This is a bug where one user can make the system send them information about a user in a different company. The system should check that you only act on users in your own organisation, but it didn't, so private details leaked.

What is IDOR?

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.

More by ramsexy

View all

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