“Unearthing Digital Gold: A Practical Guide to Finding Bugs in
A client-side wallet access check was not enforced on the server, so an attacker could change the wallet ID in a request to read another user's financial details. The author found this by reading and deobfuscating a JavaScript file.
Published on infosecwriteups.com
In the world of web application security, we often focus on firing off scanners at endpoints and fuzzing parameters. But some of the most critical vulnerabilities — the kind that lead to serious data breaches and system compromises — are hiding in plain sight, buried within the JavaScript files your browser happily…
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 server relied on a client-side access check and did not verify that the authenticated user owned the requested wallet ID.
Impact
An attacker could read another user's full financial details.
What the attacker needed
A valid account with a wallet; ability to intercept and modify requests
How it was found
- Download and beautify the wallet logic JavaScript file.
- Deobfuscate the code to understand the access check.
- Intercept a legitimate request to your own wallet.
- Change the wallet ID to another user's ID and resend the request.
- Observe that the server returns the other user's financial details.
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's JavaScript code can show how it talks to the server. If the server trusts the browser to check who owns a wallet, someone can just edit the request and ask for someone else's wallet. This is called an IDOR: the server uses an ID from the request without checking that the requester owns it.
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.