- Machine
- Busqueda
- OS
- Linux
- Difficulty
- Easy
- Steps
- 3
- Added
- 12 Aug 2023
An eval-based injection in Searchor gives a shell; leaked git creds and a sudo script with a relative-path call lead to root.
How it went
- 0nmap
An nmap scan redirects to searcher.htb.
- 1Searchor 2.4.0
Searchor 2.4.0's eval-based query field injects Python for a reverse shell as svc, and the user flag.
- 2system-checkup
svc has a sudo rule on a system-checkup.py script whose docker-inspect option leaks container and Gitea credentials.
- 3relative path
A sibling script calls full-cleanup.sh by relative path, so running it from a controlled directory executes a planted script as root.