How I Made Vertical Privilege Escalation Through Request Manipulation
A leave-request API accepted a client-supplied status field, so a low-privilege employee could set their own leave request to approved. This let a reportee bypass their reporting manager's approval.
Before demonstrating the vulnerability i would like to explain what is Vertical Privilege Escalation
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 backend accepted and acted on a client-supplied status value without checking that the user was allowed to set it.
Impact
A reportee could approve their own leave request without the reporting manager's knowledge, bypassing the intended approval workflow.
What the attacker needed
A low-privilege employee account; ability to intercept HTTP requests
The fix
The platform started to fix it; the backend should validate the status field and enforce authorization so only a manager can approve a request.
How it was found
- Log in as the reportee account.
- Open the Leave Request feature and fill in the form.
- Turn on interception in Burp Suite.
- Add a status value of Approved to the POST request.
- Forward the request and observe the 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.
When you submit a form, your browser sends data to the server. This app trusted a field called status that the browser sent, so a user could change it from pending to approved. That meant an employee could approve their own holiday request without the manager agreeing.
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.