// htb writeup HackTheBox 2026-06-21
Nimbus
HackTheBox Hard HackTheBox
seasonal
root obtained // PWNED

⚛️ Nimbus

Difficulty: Hard OS: Linux Release: HTB Season 11

Nimbus is a cloud-themed Linux box that simulates a misconfigured AWS-style environment. The path starts with an SSRF vulnerability in a job preview endpoint — bypassing IP restrictions with a decimal-encoded address to reach the instance metadata service and steal IAM role credentials. Those credentials allow injection into an SQS job queue whose worker deserializes untrusted YAML with an unsafe loader, giving RCE and the user flag. From there, an internal LocalStack endpoint exposes a CodeBuild project running in privileged mode. A clever environment variable trick bypasses the container’s UID-drop entrypoint, and the resulting root-level container context is used to write a payload into the kernel’s modprobe usermode-helper — escaping to the real host and reading the root flag.


📸 Proof


🧠 Concepts Covered


💡 Hints (No Spoilers)

Foothold

User

Root


📚 Useful Reading


This box is part of HTB Season 11.