
HackTheBox - DevHub
Source: YouTube · IppSec · published Oct 10, 2026 · 20:16
BLUF: This video demonstrates rooting the "DevHub" HackTheBox machine by exploiting an RCE vulnerability in MCP Jam to gain initial access, then leveraging a local Jupyter Notebook token for lateral movement, and finally abusing a custom web server's SSH key reading feature to obtain root access 0:00-0:34.
Key Takeaways:
• Initial enumeration reveals an MCP Jam instance on port 6274, which is identified as version 1.4.2 and exploited using a known CVE to achieve remote code execution and gain a shell as the mcpdev user 2:15-5:01.
• Process enumeration reveals a Jupyter Notebook running locally on port 8888 with a token leaked in the command line, allowing the attacker to authenticate and execute code as the analyst user via port forwarding 7:50-12:53.
• The analyst user can access a custom Flask web server on localhost:5000 that requires an API key to read SSH keys, enabling the retrieval of the root private key 13:31-19:42.
• Using the obtained root SSH key, the attacker logs in as root and completes the box 19:42-20:07.
The machine highlights the importance of checking local services and process arguments for leaked credentials after gaining initial foothold.
Sources:
- 2:15 Identification of MCP Jam version 1.4.2 and discovery of the RCE exploit.
- 5:01 Successful exploitation of the CVE to gain initial shell access.
- 7:50 Discovery of the Jupyter Notebook process and leaked authentication token.
- 12:53 Lateral movement to the
analystuser via Jupyter Notebook. - 13:31 Analysis of the custom web server and its SSH key reading functionality.
- 19:42 Retrieval of the root SSH key and final access to the machine.
Generate CPE Credits
Generate a professional CPE document from this video's transcript.
Estimated credit: 0.5 CPE hours
Estimate uses the video runtime (1 hour ≈ 1 CPE, rounded to the nearest 0.5, minimum 0.5, maximum 2.0). The final amount can be lower after review, never higher.
Topic: Penetration Testing. Commonly maps to: Security Assessment and Testing, Security Operations. Exact CISSP domains are assigned during generation.
Free account. One generation at a time, with a daily limit.
CPEBuddy is independent and not affiliated with or endorsed by ISC2, ISACA, or any certification body. Exports are formatted for common CPE submissions; acceptance is at your certification body's discretion.
Transcript Preview
First 800 characters of the transcript
What's going on YouTube? This is IPSAC and today we're doing DevHub which is definitely on the easier side of Medium. It starts out finding a vulnerable version of MCP Jam and we can just use a CVE to get a shell and from here we discovered the Jupyter notebook is listening on the local host and running a process listing leaks the token used to authenticate against Jupyter notebooks. So we just set up a port forward connect to Jupiter and we can run a command to get a shell. As this user, we can read a custom web server that has a simple way just to read SSH keys as long as we can figure out how to authenticate to the server, which is somewhat straightforward. So, with all that being said, let's just jump in. As always, we're going to start off with an end map. So, - SC for default scripts…