Broken Access Control: low-privilege user dapat Menghapus file/attachment Lampiran Melalui…
A user with the Finance role, meant to have read-only access, could delete sensitive payroll attachment files. The system hid the delete button in the interface but did not check permissions on the API, so a crafted request removed the file permanently.
Published on medium.com
Beberapa bulan lalu saya menemukan kerentanan Broken Access Control (IDOR) pada sebuah sistem Human Resource Information System (HRIS). Bug ini memungkinkan pengguna dengan peran Finance — yang seharusnya hanya memiliki hak akses read-only (melihat dan mengunduh) — untuk menghapus lampiran slip gaji yang bersifat…
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 delete endpoint performed no role or ownership check, relying only on the hidden UI button to prevent the action.
Impact
A read-only Finance user could permanently delete sensitive payroll attachments, breaking least-privilege and destroying records.
What the attacker needed
A Finance-role account; knowledge of the hidden delete path
The fix
The server should enforce role-based access control on every API request, checking authority against the target resource rather than relying on hidden UI.
How it was found
- Log in with an account that has the Finance role.
- Intercept the request used to download or view a payroll attachment.
- Send it to Repeater and change the method to DELETE, adding a hidden delete path before the file ID.
- Send the modified request and observe the server response.
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.
Some websites only hide buttons from users who should not have them, but the server behind the page still accepts the action if asked directly. Here a low-privilege user sent a delete request straight to the server and it removed a payroll file. The lesson is that hiding a button is not the same as blocking the action.
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.