The Lock Icon That Lied: Bypassing an “Admins Only” Feature by Simply… Not Being One
A layout editor's lock control, described as admin-only, was rendered as fully interactive for non-admin roles such as Content & Device Manager. An attacker with such a role could lock or unlock layout elements, overriding a protection meant to be reserved for admins.
Published on medium.com
Bug Bounty Writeup
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.
Context
The target is a platform with a Layout Editor, where every element on a screen layout, such as a text box, a clock widget or an image, carries a small toolbar. One of the controls on that toolbar is a "Locked" toggle. Its purpose, as the product itself states in the tooltip shown to an account owner, is to let admins pin a layout element so that other, less-trusted staff cannot accidentally or deliberately move or resize it.
The tooltip reads:
"Only for admins. Lock items to prevent accidental changes. It can be used in conjunction with the 'Lock insert' feature."
The feature is therefore explicitly admin-only by design. The bug is not that the server forgot a check behind a hidden button. It is that the UI never gated the control at all: a non-admin role saw the lock control fully interactive and could use it.
Setup
The researcher logged in with an account holding the Content & Device Manager role. This is described as a real, documented, non-admin role on the platform, one tier below the account owner and admin roles.
No specific tooling, versions or other preconditions are given beyond an authenticated session in that role and access to the Layout Editor.
Finding it
Most access-control bugs the researcher had found on this platform lived at the API layer: the UI hid a feature cleanly for a role, but the server behind it did not check who was asking. The familiar shape was "the frontend gates it, the backend forgot to."
This case was different. The bug was not hidden behind the UI; it was in plain sight inside the UI, because the UI never gated the feature in the first place.
Exploitation
Step 1: open a layout as a non-admin
Logged in as Content & Device Manager, the researcher opened a layout in the editor and selected an element to inspect its toolbar.
The lock control was not hidden and was not greyed out. It was present and fully interactive, exactly as it appears for an admin.
Step 2: toggle the lock
The researcher clicked the control. The element locked. Clicking again unlocked it. The browser sent the following request underneath:
PUT /api/v1/show/show/<show_id>/
The payload set the element's "lock" field to "sizepos". The server responded:
HTTP/1.1 200 OK
The response contained the full, updated layout object, with the change persisted and the timestamp bumped. There was no rejection, no downgrade and no silent no-op: the change took effect.
Step 3: repeat with a more restricted role
During testing the researcher also observed what appeared to be the same behaviour on the Restricted Content Manager role, which the platform's own documentation describes as "same as Content Manager, but cannot publish content." If that holds up under the vendor's verification, a role explicitly denied even the ability to publish can still override a protection reserved for admins.
Root cause
The lock control's visibility logic does not distinguish admin from non-admin. Whatever logic decides "is this user an admin" for display purposes either does not exist for this control or is checking the wrong thing entirely, because Content & Device Manager, one step down from admin, sailed right through. If the Restricted Content Manager observation holds up under the vendor's verification, it would suggest the logic is not checking role tier at all.
The server side did not compensate: the PUT handler for the layout object accepted a change to the lock field from a non-admin session and returned 200 OK with the updated object.
This is worse than the usual broken access control pattern. In the typical case, someone somewhere in the stack remembered there was supposed to be a restriction, and a junior developer forgot the server-side check while the frontend did its job. Here the failure is at the layer that is supposed to be the first line of defence: the UI itself renders an admin-only control for a non-admin role.
Impact
The control is not cosmetic. It exists so an organisation can declare that certain layout elements are protected and that non-admin staff cannot touch their size or position. If a non-admin role can toggle that lock at will, the protective intent of the feature collapses. Any organisation relying on it to safeguard, for example, the position of a legally required disclaimer or the placement of a sponsor logo has no actual guarantee that only admins can override it.
The researcher notes that the same behaviour appeared to apply to Restricted Content Manager, a role deliberately denied even publishing rights. That would make the gap meaningfully larger than a single role misconfiguration, but the report presents it as an observation pending the vendor's own verification.
Fix
The UI needs to implement the promise in its own tooltip: before rendering the lock control as interactive, check whether the current session's role is genuinely admin-tier, and if not, render it disabled or omit it entirely, the way the rest of the platform's UI already does for dozens of other admin-only features.
Since UI gating has proven unreliable across this whole audit, the PUT handler for the layout object should independently verify admin status before accepting a change to the lock field, regardless of what the frontend did or did not show.
Variants to test
- Admin-only controls rendered for lower roles. Log in with each non-admin role and inspect toolbars and menus for controls whose tooltip or label claims an admin restriction. A positive result is a control that is present and interactive rather than hidden or disabled.
- Direct API calls to protective fields. Take the request the UI sends when an admin toggles a protective field, such as a lock, and replay it from a non-admin session. A positive result is a
200 OKwith the change persisted and the timestamp updated. - Role-tier boundaries. Test the role immediately below admin and the most restricted role available. A positive result on the most restricted role suggests the check is not looking at role tier at all.
- Protective features versus sensitive-data features. Apply the same scrutiny to controls whose value is the access boundary itself, such as locks, pins and freeze toggles, as to billing or personal-data pages. A positive result is any such control that a non-admin can change.
- UI gating versus server enforcement. For each admin-only affordance, verify both that it is absent or inert for every role it was not built for and that the underlying endpoint rejects the request when called directly.
What happened, in plain words
A website had a feature in its page editor called a lock. The idea was simple: an administrator could click a small padlock button on a piece of a page layout, and that piece would be pinned in place so that ordinary staff could not move it or resize it by accident. The button even had a tooltip, a little text box that appears when you hover over something, saying it was for admins only.
The problem was that the button was not actually restricted to admins. A person logged in with a lower-level staff account could see the button, click it, and lock or unlock things just as an admin could. The website's own server accepted the change and saved it. So the promise in the tooltip was never kept.
This is a beginner-friendly walkthrough of how that was found, what was sent to the server, and why it matters. It starts with the basic ideas you need, then follows the same steps as the technical report.
The ideas you need first
Before the steps, here are the concepts that come up. Each one is explained from zero.
- A web page and a server. When you use a website, your browser (Chrome, Firefox, Safari) shows you a page. Behind that page is a server, a computer somewhere else that stores the data and answers requests. Your browser asks, the server replies.
- An API. Think of a restaurant. The menu and the waiter are the interface you see; the kitchen is where the food is actually made. An API (Application Programming Interface) is the waiter between your browser and the server's kitchen. Your browser does not reach into the database itself; it sends a request to the API, and the API does the work and sends back an answer. Many modern websites are built this way: the page you see is drawn by your browser, and the data behind it comes from API requests.
- A request and a response. A request is a message your browser sends to the server, for example "please save this change". A response is the server's reply, for example "done" or "not allowed". Requests and responses have a method (a verb such as GET to read, PUT to update, POST to create) and a status code (a number such as 200 meaning success, or 403 meaning forbidden).
- A role. Most workplace software gives each user a role, a label that says what they are allowed to do. An admin (administrator) can usually do everything. A lower role, such as a content editor, can do less. The software is supposed to check the role before letting someone do something.
- Access control. Access control is the set of rules that decides who may do what. When those rules are missing or wrong, security people call it broken access control (sometimes shortened to BAC). It is one of the most common kinds of web security bug.
- Frontend and backend. The frontend is everything that runs in your browser: the buttons, the menus, the page you see. The backend is everything on the server: the API, the database, the checks. A safe design checks permissions in both places, because the frontend can be changed or bypassed by anyone who knows how.
- A tooltip. A tooltip is the small text that pops up when you hover your mouse over a button or icon. It is only a label; it does not enforce anything by itself.
- A payload. The payload is the actual data sent inside a request, for example the values you want to save. In the request below, the payload is the part that says which field to change and to what value.
- A timestamp. A timestamp is a record of when something happened, such as when a record was last changed. If a server updates the timestamp, it is a sign that the change was really saved.
- A no-op. Short for "no operation". A no-op is when a request is accepted but nothing actually changes. A real change, with the data saved and the timestamp updated, is the opposite of a no-op.
With those ideas in place, here is the story.
The setup
The platform in question has a Layout Editor. A layout is the arrangement of things on a screen: where a text box sits, where a clock widget sits, where an image sits. The editor lets staff drag these elements around and resize them.
Every element on a layout has a small toolbar. One of the controls on that toolbar is a "Locked" toggle. A toggle is a button that switches something on or off, like a light switch. When you turn the lock on, the element is pinned so that other staff cannot move or resize it.
The researcher hovered over the lock control while logged in as an account owner, and the tooltip said:
"Only for admins. Lock items to prevent accidental changes. It can be used in conjunction with the 'Lock insert' feature."
That sentence is the product telling its users, in plain words, that this control is reserved for admins. So the intent is clear: only an admin should be able to lock or unlock a layout element.
The bug is not that the server forgot a check behind a hidden button. It is that the button was never hidden in the first place. A non-admin role could see the lock control, fully working, and use it.
Logging in with a lower role
The researcher logged in with an account that held the Content & Device Manager role. This is described as a real, documented, non-admin role on the platform, one level below the account owner and admin roles. In other words, it is a normal staff account, not a special test account with extra powers.
The report does not mention any special tools, software versions or other conditions beyond being logged in with that role and having access to the Layout Editor.
Finding the bug
Most access-control bugs the researcher had found on this platform before lived at the API layer. In those cases, the frontend did its job: it hid a feature from a role that should not have it. But the backend, the server behind the feature, did not check who was asking. The familiar shape was "the frontend gates it, the backend forgot to."
This case was different. The bug was not hidden behind the frontend. It was sitting in plain sight inside the frontend, because the frontend never gated the feature at all. The button was simply there for everyone.
Step 1: open a layout as a non-admin
Logged in as Content & Device Manager, the researcher opened a layout in the editor and selected an element to look at its toolbar.
The lock control was not hidden. It was not greyed out. It was present and fully interactive, exactly as it appears for an admin. A greyed-out button is the usual way a website says "you can see this, but you cannot use it". Here there was no such signal: the button looked and behaved like a normal, usable control.
Why does this matter? Because the first line of defence for an admin-only feature is usually the frontend: if the button is not shown, a casual user cannot click it. Here that first line was missing entirely.
Step 2: toggle the lock
The researcher clicked the control. The element locked. Clicking again unlocked it. So the button worked, and it worked for a non-admin.
Underneath, the browser sent the following request to the server:
PUT /api/v1/show/show/<show_id>/
Line by line, in plain words:
PUTis the method. It means "update or replace this thing". It is the verb the browser uses when it wants to save a change./api/v1/show/show/<show_id>/is the address of the thing being changed. The/api/part tells you this is an API request, not a request for a web page. Thev1is a version number. Theshowparts are the name of the kind of record being edited.<show_id>is a placeholder for the identifier of the specific layout being edited; the real value is a number or code that the report does not show.
The payload set the element's "lock" field to "sizepos". In plain words: the data sent along with the request said "change the lock field of this element to the value sizepos". The value sizepos is the platform's internal name for the kind of lock being applied, presumably meaning that the size and position of the element are locked.
The server responded:
HTTP/1.1 200 OK
Line by line:
HTTP/1.1is the version of the protocol used to talk to the server. You do not need to do anything with it; it is just the format of the reply.200 OKis the status code. It means "success, I did what you asked". If the server had refused, you would expect a different code, such as403 Forbidden("you are not allowed") or401 Unauthorized("you are not logged in properly").
The response contained the full, updated layout object, with the change saved and the timestamp updated. There was no rejection, no downgrade and no silent no-op. In plain words: the server did not say no, did not quietly ignore the request, and did not save a lesser version. It saved exactly what was asked, and it recorded that the record had changed.
Why does this matter? Because the server accepted the request from a non-admin and saved the change, rather than rejecting it.
Step 3: repeat with a more restricted role
During testing, the researcher also saw what appeared to be the same behaviour on the Restricted Content Manager role. The platform's own documentation describes that role as "same as Content Manager, but cannot publish content." In plain words: it is a role that is deliberately denied even the ability to publish, one of the most restricted roles on the platform.
If that holds up when the vendor checks it, then a role that cannot even publish can still override a protection reserved for admins. That would make the gap bigger than a single role being misconfigured. The report presents this as an observation, not a confirmed result, pending the vendor's own verification.
Why the bug happened
The lock control's visibility logic does not tell admins apart from non-admins. Whatever logic decides "is this user an admin" for display purposes either does not exist for this control, or is checking the wrong thing entirely, because Content & Device Manager, one step down from admin, sailed right through. If the Restricted Content Manager observation holds up under the vendor's verification, it would suggest the logic is not checking role level at all.
The server side did not make up for it. The PUT handler, the piece of server code that deals with update requests for the layout object, accepted a change to the lock field from a non-admin session and returned 200 OK with the updated object. So the frontend's display logic did not enforce the restriction, and the server accepted the change anyway.
This is worse than the usual broken access control pattern. In the typical case, someone somewhere in the system remembered there was supposed to be a restriction, and a developer forgot the server-side check while the frontend did its job. Here the failure is at the layer that is supposed to be the first line of defence: the frontend itself shows an admin-only control to a non-admin role.
Why it matters
The control is not just decoration. It exists so an organisation can say that certain layout elements are protected and that non-admin staff cannot touch their size or position. If a non-admin role can toggle that lock at will, the protective purpose of the feature collapses. Any organisation relying on it to protect, for example, the position of a legally required disclaimer or the placement of a sponsor logo has no real guarantee that only admins can override it.
The researcher notes that the same behaviour appeared to apply to Restricted Content Manager, a role deliberately denied even publishing rights. That would make the gap meaningfully larger than a single role misconfiguration, but the report presents it as an observation pending the vendor's own verification.
The fix
The frontend needs to keep the promise in its own tooltip. Before showing the lock control as interactive, it should check whether the current session's role is genuinely admin-level, and if not, show it disabled or leave it out entirely, the way the rest of the platform's frontend already does for dozens of other admin-only features.
Because frontend gating has proven unreliable across this whole audit, the PUT handler for the layout object should independently verify admin status before accepting a change to the lock field, regardless of what the frontend did or did not show. In plain words: do not trust the browser to be the only guard. The server should check for itself.
Other things to test
These are the variants the report suggests testing on other products, written for someone new to this.
- Admin-only controls shown to lower roles. Log in with each non-admin role and look through toolbars and menus for controls whose tooltip or label claims an admin restriction. A positive result is a control that is present and interactive rather than hidden or disabled.
- Direct API calls to protective fields. Take the request the frontend sends when an admin toggles a protective field, such as a lock, and send it again from a non-admin session. A positive result is a
200 OKwith the change saved and the timestamp updated. - Role-level boundaries. Test the role immediately below admin and the most restricted role available. A positive result on the most restricted role suggests the check is not looking at role level at all.
- Protective features versus sensitive-data features. Apply the same scrutiny to controls whose whole value is the access boundary itself, such as locks, pins and freeze toggles, as to billing or personal-data pages. A positive result is any such control that a non-admin can change.
- Frontend gating versus server enforcement. For each admin-only feature, check both that it is absent or inert for every role it was not built for, and that the underlying endpoint rejects the request when called directly.
Glossary
- Access control: the rules that decide who is allowed to do what in a system.
- Admin: short for administrator; a user role with the highest level of permission.
- API: Application Programming Interface; the layer through which a browser or app asks a server to read or change data.
- Backend: the part of a system that runs on the server, including the API, the database and the permission checks.
- Broken access control (BAC): a security bug where the rules about who may do what are missing or wrong.
- Content & Device Manager: a documented, non-admin role on the platform, one level below admin.
- Endpoint: a specific address on a server that accepts requests, such as
/api/v1/show/show/<show_id>/. - Frontend: the part of a system that runs in the browser, including the buttons, menus and pages you see.
- GET: an HTTP method used to read data.
- HTTP: the protocol browsers and servers use to exchange requests and responses.
- Layout Editor: the part of the platform where staff arrange elements such as text boxes, clock widgets and images on a screen layout.
- Method: the verb of an HTTP request, such as GET, POST or PUT, saying what kind of action is wanted.
- No-op: short for "no operation"; a request that is accepted but changes nothing.
- Payload: the data carried inside a request, such as the values to save.
- POST: an HTTP method used to create data.
- PUT: an HTTP method used to update or replace data.
- Request: a message sent from a browser or app to a server asking it to do something.
- Response: the server's reply to a request, including a status code and usually some data.
- Restricted Content Manager: a role the platform's documentation describes as "same as Content Manager, but cannot publish content."
- Role: a label attached to a user account that says what that user is allowed to do.
- Status code: a number in a response saying what happened, such as 200 for success or 403 for forbidden.
- Timestamp: a record of when something happened, such as when a record was last changed.
- Toggle: a control that switches something on or off.
- Tooltip: the small text that appears when you hover over a button or icon.
- 200 OK: the HTTP status code meaning the request succeeded.
- 403 Forbidden: the HTTP status code meaning the server understood the request but refused to allow it.