Ketika Finance Bisa Jadi Admin: Privilege Escalation di Sistem Pa
A payroll platform let a user with the lower-privileged finance role change the payment status of salary slips, an action that should be reserved for admins. By replaying the admin's status-change request with a finance session, the server accepted it and returned success.
Published on medium.com
Sistem payroll menyimpan data sensitif dan memiliki alur bisnis penting. Saat menguji fitur penggajian pada sebuah platform Payroll & HR, saya menemukan celah kontrol akses yang memungkinkan akun dengan hak lebih rendah (finance) mengubah status pembayaran gaji yang seharusnya hanya bisa dilakukan oleh admin.
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 relied on the user interface to restrict the action and did not enforce role authorisation on the status-change endpoint.
Impact
A finance user could change salary payment statuses without permission, potentially disrupting payroll processing and the associated audit records.
What the attacker needed
A finance-role account; ability to send crafted API requests
The fix
The server should enforce role authorisation on the status-change endpoint and reject actions the user's role is not permitted to perform.
How it was found
- Observe that an admin changing a payment status triggers a notification, while the finance role does not get one.
- Capture the request the admin sends when changing the payment status.
- Replay a similar request using the finance session.
- See the server respond with success and the status change applied.
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.
In many apps, some buttons are only shown to certain users, such as admins. Here the app hid the action from finance users in the screen, but the server behind it never checked who was asking. So a finance user could send the same request directly and the server happily changed the payment status.
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.