Skip to content
Access control Disclosed report Beginner

[h1-2102] [Oberlo] Least privileged user can cancel account owner's subscription via POST on /payments/subscribe

A user with only dashboard permissions could send a request to cancel the account owner's paid subscription. This would downgrade the account to the free tier at the end of the billing cycle.

archangel Follow

Originally disclosed on HackerOne

  • Disclosed after 3.0 years

Summary by the program

Please note, since this report was submitted and resolved, Oberlo has been removed from scope for our program. We are no longer accepting reports on Oberlo at the time of this disclosure.

Oberlo was an application that integrated with the Shopify platform. It was designed to simplify the process of sourcing and importing products from various suppliers into a Shopify store.

Due to missing access control checks on the backend, a user with limited permissions on an Oberlo account was able to modify the Oberlo subscription for the associated account.

The report

Summary:

Within Oberlo, it's possible to have a bare permission user with only access to the dashboard. This user can make an API call which will cancel the subscription.

Steps To Reproduce:

[add details for how we can reproduce the issue]

  1. Have a Boss subscription account on app.oberlo.com
  2. Within this account, have 2 users: userA is our admin, and userB is our attacker with only Dashboard permissions:
Screen_Shot_2021-01-21_at_9.59.05_PM.png
Screen_Shot_2021-01-21_at_9.59.05_PM.png From the original on HackerOne
  1. Log in as User B and make the following call:
POST /payments/subscribe HTTP/1.1
Host: app.oberlo.com
Connection: close
Content-Length: 19
sec-ch-ua: "Google Chrome";v="87", " Not;A Brand";v="99", "Chromium";v="87"
Accept: application/json, text/plain, */*
█████
X-Requested-With: XMLHttpRequest
sec-ch-ua-mobile: ?0
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36
Content-Type: application/json;charset=UTF-8
Origin: https://app.oberlo.com
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: cors
Sec-Fetch-Dest: empty
Referer: https://app.oberlo.com/settings/other
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9
Cookie: <REDACTED>


{
"planId":10
}

  1. You should get a 200 response
  2. Log back in as UserA and see that your subscription is set to the "Free Tier" as soon as the current billing cycle finishes.

Impact

Least privileged users can modify subscription tiers

The original report as published on HackerOne, by archangel. 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 missing access control checks on the backend endpoint that handles subscription changes.

Impact

Least privileged users could modify subscription tiers, potentially cancelling the paid plan.

What the attacker needed

Boss subscription account; Two users: admin and limited user; Limited user has only Dashboard permissions

How it was found

  1. Create a Boss subscription account with two users: an admin and a limited user with only Dashboard permissions.
  2. Log in as the limited user.
  3. Send a POST request to /payments/subscribe with a planId value.
  4. Receive a 200 response.
  5. Log back in as the admin and observe the subscription is set to Free Tier after the current billing cycle.

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.

In many apps, different users have different levels of access. Here, a user who should only be able to view a dashboard could also change the paid subscription plan. This means a low-privilege user could cancel the owner's paid plan without permission.

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 archangel

View all

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