$500 BAC Bug: Unauthorized Removal of Private Pension Schemes
An accountant role that the user interface prevented from managing pension schemes could still remove all private pension schemes by calling the pension configuration API endpoint directly. This bypassed role-based access control and allowed unauthorised modification of high-risk payroll data.
medium.com
Published on medium.com
While testing the FinManageHub platform, I discovered a critical Broken Access Control vulnerability. An accountant role, which is restricted in the UI from managing pension schemes, was still able to remove all private pension schemes directly through an API call.
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
Likely the API endpoint performed no server-side role check, relying on the front end to hide pension management from accountants.
Impact
An accountant could modify or remove high-risk pension data, which could cause compliance failures, financial misconfiguration and loss of employee benefits, and may escape audit logs.
What the attacker needed
An accountant-level account
The fix
Role-based authorisation should be enforced server-side on the pension configuration endpoint, not only in the UI.
How it was found
- Log in as an accountant and note that pension management is greyed out in the UI.
- Send a crafted POST request to the pension configuration endpoint with the accountant's token.
- Observe that all private pension schemes are removed despite the missing UI permission.
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 often hides buttons or greys out options for users who should not be allowed to do something. But hiding a button does not stop someone from sending the same request by hand, and here the server accepted it anyway. This is called broken access control: the server should check permissions itself, not trust the screen.
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.