Hijacking a Live Shopping Stream From a Plain Customer Account
The admin-only endpoint for updating the live stream configuration only checked that the caller was authenticated, not that they were an admin. A regular customer could read the stream configuration including the RTMP stream key and change the featured video shown to all visitors.
Published on medium.com
In this walkthrough you’ll take over the featured video on OopsSec Live, the live-shopping page of OopsSec Store, using nothing but a normal customer account.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
The server-side handler relied on the user interface to hide the admin controls and only verified that the user was logged in, without checking their role.
Impact
Any authenticated customer could change the featured live video seen by all visitors and read the RTMP ingest URL and stream key, though in this lab the RTMP credentials are illustrative and the hijack works through the video swap.
What the attacker needed
A free customer account; access to the lab instance
The fix
The endpoint should enforce admin role on the server using the existing withAdminAuth wrapper, validate the video ID format, and restrict sensitive fields like the RTMP URL and stream key to admin reads.
How it was found
- Log in as a regular customer and obtain a valid session cookie.
- Send a GET request to the stream configuration endpoint with the session cookie to read the configuration and stream key.
- Send a POST request to the same endpoint with a new liveVideoId value.
- Reload the live page to confirm the featured video has changed.
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 write-up has not been written yet. The Original tab links to the source.
A website has a special page for admins to manage a live video stream. The page hides the admin controls from normal users, but the server that actually saves changes never checked if the person making the request was an admin. So any logged-in user could send a request directly to the server and change the video or read secret stream credentials.
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.