HTB: Bedside
Bedside is a medical clinic bringing AI into healthcare, with a research portal that accepts image and PDF uploads. The uploaded PDFs are processed by pdfminer.six, and I’ll exploit a deserialization vulnerability in how it loads font mappings to get execution in a container. That container shares the host’s network, which gives me access to an esm.sh development server that’s blocked from the outside. I’ll abuse a directory traversal in it to read an SSH key from the host. For root, I’ll abuse a sudo rule on a MONAI model training script, using the container’s write access to a shared directory to plant a malicious PyTorch checkpoint that’s deserialized when the script runs