Reversing and Tooling a Signed Request Hash in Obfuscated JavaScript
The website signed every request to prevent tampering, with signing logic in obfuscated client-side JavaScript. The author reverse engineered the code to understand how signatures were generated.
Published on buer.haus
Test out this concept with a lab I helped develop at https://app.hackinghub.io/surl
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 request signing mechanism was implemented entirely client-side, allowing an attacker to reverse engineer the algorithm and generate valid signatures for modified requests.
Impact
An attacker might be able to understand the request signing mechanism and potentially modify GET parameters.
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 tried to stop people changing parts of a request by adding a special code (a hash) the server checks. The code that creates this hash was in the browser, so someone could study how it works.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.