Writeups tagged command-injection
8 writeups
HTB: FluxCapacitor
medium, Linux
A command injection behind a ModSecurity blocklist is reached by sending a quote and a space unencoded and a backslash before every letter, and a sudo rule for a script that runs base64 from its argument turns nobody into root.
HTB: Sense
easy, Other
A plaintext credential file and default password on a pfSense 2.1.3 appliance lead to authenticated command injection (CVE-2016-10709) running as root. Network appliances run as root by design, making management interface access the only real security boundary.
HTB: Node
medium, Linux
An Express API that returns its user collection to anyone gives up an admin password hash, the admin backup contains the application source and a database password that is also an SSH password, a scheduler runs database rows as shell commands for a second user, and a setuid backup binary with a deny-list filter runs a newline-injected command as root.
HTB: Mirai
easy, Linux
The Pi-hole admin panel is a deliberate distraction. Default Raspberry Pi credentials bypass the web surface entirely, passwordless sudo delivers root, and a deleted flag requires raw block device recovery with strings.
HTB: Holiday
hard, Linux
SQL injection in a Node.js login form, a stored XSS that survives an image-only filter and runs in a headless admin browser, command execution through an export parameter limited to lower case, digits, ampersand, space and slash, and a sudo rule on npm install for root.
HTB: Haircut
medium, Linux
A PHP page that hands a form field to curl through a shell, guarded by a blocklist that leaves command substitution open, gives a shell as www-data; a hand-installed setuid screen 4.5.0 that opens its log file as root gives the rest.
HTB: Cronos
medium, Linux
DNS zone transfer discloses a hidden admin subdomain, SQL injection bypasses authentication, command injection provides a shell, and a writable cron script escalates to root.
HTB: Lame
easy, Linux
A command injection flaw in Samba's username map script configuration gives unauthenticated root on a Linux host, and a lesson in why the obvious exploit is not always the right one.