Non-owner user can remove online store channel and re-add it.
A non-owner staff member with full access permissions could remove the online store channel by sending a crafted POST request, even though the UI only allows the store owner to do so. The attacker could also re-add the channel, causing an error with the plan.
Originally disclosed on HackerOne
- Triaged in 4 days
- Fixed in 15 days
- Disclosed after 28 days
Summary by the program
An issue where a channel could be removed when the UI interface did not allow the channel to be removed. This discrepency was not a security issue but we added a server side check nonetheless.
The report
Hi , I have found an issue that allows a non-owner user with full access permissions or access to /channels to remove the online store channel while only the store owner can remove it!
#Steps to reproduce:
- Login with a non-owner user who has full access permissions
- Send this request:
POST /admin/channels/<Online_store_channel_id> HTTP/1.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Origin: https://<your_shop>.myshopify.com
User-Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.8
Cookie: <Staff_Member_cookies>
_method=delete&authenticity_token=<Your_token>
Then go to *yourstore.myshopify.com/admin/channels and you'll see that the channel was removed causing an error with the plan.
The staff member can also re-add the channel by submitting the following form:
<form method="post" action="/admin/channels?channel%5Bprovider_id%5D=1&resolve_redirect_url=%2Fadmin%2Fchannels">
<input type="submit" value="Re-add channel">
<input name="authenticity_token" value="<yout_token>">
</form>
This is clearly a privilege escalation issue , since when you go to channels with a non-owner account , it says that you have to contact the owner to remove the online store channel which means that only the owner should be able to remove it.
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 server-side endpoint for deleting a channel did not verify that the requesting user was the store owner, only that they had general access permissions.
Impact
A non-owner staff member could remove the online store channel, causing an error with the plan, and could also re-add it; the program stated this was not a security issue but added a server-side check.
What the attacker needed
A non-owner staff account with full access; access to the /channels endpoint
The fix
A server-side check was added after the discrepancy was reported.
How it was found
- Log in as a non-owner user with full access permissions.
- Send a POST request to the channel deletion endpoint with the delete method and a valid authenticity token.
- Visit the channels admin page to confirm the channel was removed.
- Optionally, submit a form to re-add the channel.
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 web apps, some actions are only meant for certain users, like the store owner. Here, the website's buttons hid the remove option from staff, but the server still accepted a direct request to delete the channel. This is like finding a locked door but the key works for anyone who knows the shape.
What is Account takeover?
Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.