Front-end JavaScript reverse engineering
When it applies
An in-scope web app computes something in JavaScript that you need to understand or reproduce:
a request signature, an encrypted body, anti-bot / risk-control fields, or a hidden WebSocket
protocol. web-client-side-signing-bypass covers the fast attack-side path (prove the guard is
client-side, get one replayable request); load this skill when you need the full algorithm
recovered and running locally in Node — for sustained fuzzing, logic audit, or documentation.
Target must be in scope.txt (tradecraft-scope-roe); observe only your own session.
Why it works
The page must run the algorithm in the browser before the request leaves, so both the code and
every input to it are observable at runtime — minification only slows you down, it can't hide
execution. Break on the outgoing request, walk the call stack to the signing function, lift it
into Node, and the only thing left is the handful of browser globals it touches — which you
shim strictly from observed errors, never from imagination.
Method
Principles: observe first · hook before you breakpoint, breakpoint last · rebuild from page
evidence · one minimal patch at a time.
- Observe. Open the page with DevTools Network recording (Burp/mitmproxy upstream for the
raw view). Identify the target request and its computed params, then read the request's
Initiator stack to find the calling scripts. Global-search all loaded sources
(Ctrl+Shift+F in DevTools) for the param name and the usual suspects: sign, encrypt,
md5, sha256, hmac, CryptoJS.
- Capture. Set an XHR/fetch breakpoint on a unique URL substring (Sources panel).
When it pauses, walk up the call stack out of library frames into app code and read
locals/arguments — you want the signing function, the raw input string, and any key/secret
in scope. Lighter hooks (console overrides of fetch, XMLHttpRequest.prototype.send,
JSON.stringify) often yield the same evidence with less noise — snippets in