#CodeTwo is a #Linux box hosting a developer sandbox where users can execute #JavaScript code
https://0xdf.gitlab.io/2026/01/31/htb-codetwo.html
HTB: CodeTwo

CodeTwo is a Linux box hosting a developer sandbox where users can execute JavaScript code. The site uses js2py, which I’ll exploit via CVE-2024-28397 to escape the sandbox and get remote code execution. From there, I’ll find MD5 password hashes in the SQLite database and crack one to pivot to marco. Marco can run npbackup-cli with sudo, and I’ll abuse this to read files from root’s backup, including the SSH private key, which I’ll use to get a shell as root.

0xdf hacks stuff