RCE due to Dependency Confusion — $5000 bounty!
The author reconstructed the front-end source code of a custom authentication portal from its JavaScript source maps and found import statements that suggested a dependency confusion weakness. The text does not describe how the dependency was abused or what the attacker could actually do beyond the title claiming remote code execution.
Published on chevonphillip.medium.com
Chevon Phillip
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
Impact
The title claims remote code execution, but the text itself does not describe the exploitation or its effect, and the author notes that only company employees could log in to the portal.
What the attacker needed
Publicly reachable auth portal; source maps exposed
How it was found
- Open the authentication portal and inspect the JavaScript files it loads in the browser network tab.
- Note the bundled app JavaScript file with random characters in its name.
- Use a source map reconstruction tool to recover the front-end source code.
- Review the recovered code and identify the import statements of interest.
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.
Websites often ship JavaScript files that include a map back to the original source code, so anyone can rebuild the developer's files. The author did that, read the code, and spotted that the app pulled in a software package that might be fetched from a public repository an outsider could publish to. The write-up stops there and never explains the actual attack or result.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.