Tag Pickle

Hack The Box: Bedside Machine Walkthrough – Medium Difficulity

Completed another Medium-rated Bedside machine from Hack The Box.

The user-level stage involved investigating a research portal that processed uploaded files using pdfminer.six. Further enumeration uncovered a deserialization vulnerability that provided an initial foothold inside a Docker container. From there, internal service enumeration and a path traversal vulnerability exposed a developer's SSH private key, providing access to the host.

For the root-level stage, I investigated a privileged MONAI/PyTorch training script and its checkpoint-loading mechanism. Exploring how serialized model checkpoints were handled eventually led to root access.

This machine provided an interesting combination of web application vulnerabilities, container enumeration, Python deserialization, and machine learning framework security.

Another good exercise in understanding how seemingly legitimate application functionality can introduce security weaknesses.

#HackTheBox #HTB #CyberSecurity #PenetrationTesting #VulnerabilityResearch #Python #Deserialization #PyTorch #MONAI #LinuxPrivilegeEscalation #RedTeam