Writeups tagged sql-injection
6 writeups
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: 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: 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: 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: 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: 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.