How an Unchecked Server-Side Parameter Injection Earned a $6,500
The sort parameter of an employee directory API was passed unencoded into an internal microservice query, allowing an attacker to inject extra parameters. By injecting a second tenant_id parameter, the attacker could override the tenant filter and read another company's employee records, including social security numbers and salary details.
When testing web applications, we often treat backends like a unified black box. We send data, and it spits an answer back.
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 edge API concatenated the user-supplied sort value into an internal URL query string without URL-encoding, so injected delimiters created new parameters that overrode the legitimate tenant filter.
Impact
An attacker could read another company's employee records, including social security numbers, salary details, home addresses, and bank routing information, resulting in a full cross-tenant data leak.
What the attacker needed
Authenticated as an HR manager; knowledge of a target tenant identifier
The fix
The issue was fixed by URL-encoding all parameters before forwarding them to internal services and by making the internal gateway reject duplicate or conflicting structural parameters.
How it was found
- Send a request to the employee directory with an unexpected sort value and observe a 500 error revealing a downstream query failure.
- Inject a URL-encoded ampersand followed by a test parameter into the sort value and confirm the server returns 200 OK.
- Inject a second tenant_id parameter into the sort value using a known competitor tenant identifier.
- Observe the response containing another company's employee data, including sensitive personal and financial information.
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.
The website let users choose how to sort a list of employees. The server took that choice and stuck it directly into a request to another internal service without cleaning it up. By adding extra characters, the attacker could sneak in a new instruction that told the internal service to show data from a different company.
What is IDOR?
One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.