Writeups tagged linux
34 writeups
HTB: Nibbles
easy, Linux
A comment on the front page names a Nibbleblog install, a one-shot password guess opens its admin panel, the My image plugin stores a PHP file as given, and a sudo rule for a script under the web user's own home turns that user into root.
HTB: CrimeStoppers
hard, Linux
A PHP include that appends .php is fed a zip stored by the tip form for code as www-data, a world-readable Thunderbird profile gives up the mail password, SSH over IPv6 walks past the IPv4 firewall, and an Apache backdoor module with a renamed trigger hands over root.
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: Bashed
easy, Linux
A developer leaves a PHP web shell in a publicly accessible directory, then compounds the mistake with a sudo misconfiguration and a root cron job reading from a user-writable directory. Three independent failures chain into full system compromise.
HTB: Inception
medium, Linux
A layered exploitation chain through dompdf LFI, WebDAV file upload, LXC container escape via anonymous FTP reconnaissance, and apt pre-invoke hook injection through TFTP.
HTB: Fulcrum
insane, Linux
A blind XXE in a PHP API is used as SSRF to reach a loopback-only file include that runs a data: URI, and credentials left in a script, a web.config, a directory attribute and SYSVOL lead from the Linux host through three Windows guests to Domain Admin.
HTB: Ariekei
insane, Linux
ImageTragick in an image converter gives root in one container, a shared directory gives a bastion key, the bastion reaches a Shellshock CGI behind the WAF, and a cracked SSH key plus the docker group finish the host.
HTB: Enterprise
medium, Linux
A half-written WordPress plugin with an unquoted SQL parameter gives up a draft post full of passwords, one of them opens the Joomla administrator in a second container, a directory shared between that container and the host turns container code execution into host code execution, and a setuid menu program with an unbounded scanf returns into libc as root.
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: Shocker
easy, Linux
A CGI bash script on Apache 2.4.18 is vulnerable to Shellshock (CVE-2014-6271), yielding RCE via a crafted User-Agent header. A sudo NOPASSWD entry for Perl completes the path to root. The real challenge is handling stdout pollution in CGI context.
HTB: Kotarak
hard, Linux
A server-side request forgery reaches a loopback file viewer holding a Tomcat credential backup, a deployed WAR gives a shell, a forgotten NTDS dump yields a reused password, and disk group membership reads the root flag out of an LXC guest.
HTB: SolidState
medium, Linux
A default login on the Apache JAMES 2.3.2 administration console resets every mailbox password, a mailed SSH password gives a restricted shell that a non-login command walks out of, and a world-writable script in root's crontab finishes the job.
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: Shrek
hard, Linux
A hard Linux box where a leaked directory name leads to FTP credentials drawn in an audio spectrogram, an ECC-encrypted note unlocks an SSH key, and a root cron job running chown over a wildcard hands over a setuid shell.
HTB: Apocalyst
medium, Linux
A steganographic wordlist hidden in a WordPress uploads image provides the admin password through brute-force, then a world-readable .secret file and LXD group membership deliver root via container escape.
HTB: Nineveh
medium, Linux
A multi-stage chain through phpLiteAdmin, LFI with path filtering, steganographic SSH key extraction, and a chkrootkit privilege escalation on an Ubuntu 16.04 host.
HTB: Blocky
easy, Linux
A custom Minecraft plugin with hardcoded database credentials leads to SSH access via credential reuse, and sudo group membership completes the chain to root.
HTB: Jail
insane, Linux
A stack buffer overflow with socket-reuse shellcode, NFS SUID escalation via raw syscall assembly, an rvim Python escape, and PwnKit combine for a four-stage privilege escalation on CentOS 7.
HTB: Charon
hard, Linux
A multi-stage Linux box requiring two SQL injection points, a case-sensitive keyword filter bypass, a hidden base64 upload field, RSA key factorisation, and a SUID binary with a newline injection to reach root.
HTB: Calamity
hard, Linux
A 32-bit Linux box with hardcoded credentials, a PHP code injection endpoint, audio steganography for SSH credentials, and an LXD group membership that provides a container escape to root.
HTB: Europa
medium, Linux
An SQL injection bypass on a TLS-disclosed admin portal leads to PHP code execution via preg_replace's /e modifier, then a writable cron script grants root.
HTB: Bank
easy, Linux
A DNS zone transfer leaks the domain, a failed encryption process exposes plaintext credentials, a debug file extension bypass enables a webshell, and a custom SUID binary gives instant root.
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: Joker
hard, Linux
A TFTP daemon rooted in the Squid configuration directory gives up the proxy password file, the proxy reaches a Werkzeug debugger bound to localhost, a sudoedit wildcard follows a symlink into another user's authorized_keys, and a root cron job runs tar over a glob.
HTB: Sneaky
medium, Linux
A boolean SQL injection in a development login page hands over an SSH private key, SNMP with the public community leaks the IPv6 address where SSH actually listens, and a setuid binary with an unbounded strcpy on a host without ASLR gives root.
HTB: Lazy
medium, Linux
A padding oracle in a custom PHP authentication cookie enables CBC bit-flipping to forge admin access, exposing an SSH key. A SUID binary with a relative PATH call to cat completes the root chain.
HTB: Brainfuck
insane, Linux
A six-step attack chain across WordPress, SMTP, POP3, a Flarum forum with Vigenere encryption, SSH key cracking, and RSA cryptanalysis delivers the root flag without ever gaining a root shell.
HTB: October
medium, Linux
Default credentials on October CMS grant admin access, the code editor provides RCE as www-data, and a 32-bit SUID buffer overflow with ASLR brute-force delivers root in under ten seconds.
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: TenTen
medium, Linux
A WordPress Job Manager plugin leaks uploaded file names through predictable post IDs, revealing a steganographic image that hides an encrypted SSH key. A misconfigured sudo rule on /bin/fuckin completes the chain to root.
HTB: Beep
easy, Linux
An Elastix PBX system with 15 open ports, a universal password across every service, and a local file inclusion that discloses credentials from the configuration file.
HTB: Popcorn
medium, Linux
A torrent site with an injectable login and an upload that keeps the client's file extension gives a web shell, and a PAM login hook that runs chown through a symlink as root turns it into ownership of /etc/passwd.
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.