Grandmaster rank emblem

Lvl 99

Level XP3,807/5,718

3807 of 5718
Grandmaster dreadnaught
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.

0Reconnmap1FootholdSearchor 2.4.02Priv escsystem-checkup3Priv escrelative path
1Recon2Foothold3Priv escnmap1Searchor 2.4.02system-checkup3relative path4

How it went

  1. 0
    nmap

    An nmap scan redirects to searcher.htb.

  2. 1
    Searchor 2.4.0

    Searchor 2.4.0's eval-based query field injects Python for a reverse shell as svc, and the user flag.

  3. 2
    system-checkup

    svc has a sudo rule on a system-checkup.py script whose docker-inspect option leaks container and Gitea credentials.

  4. 3
    relative path

    A sibling script calls full-cleanup.sh by relative path, so running it from a controlled directory executes a planted script as root.