Target IP: 10.0.2.176. Next, we scan for services:
Found: FTP (Anonymous), Port 80 (HTTP), and Port 5000 (Python Web Server).
After downloading url from the FTP server, we analyze it using objdump. We find hex values being moved into registers:
The decoded string is a hidden URL path: /sh4d0w$s.
Fuzzing the hidden path reveals a parameter. Testing for SSTI (Server-Side Template Injection) with {{7*7}} returns 49, confirming the vulnerability. We use a Jinja2 payload to trigger a reverse shell on port 9001.
We find we can run a PHP script as user kori. The script is restricted (no slashes, no 'nc'), so we use socat to bypass the filter and gain a shell.
We find irida.apk. Using dex2jar and JD-GUI, we decompile the app and find credentials in LoginDataSource.class:
Irida can run a root-owned Python script oras.py. The script uses exec() on hex-decoded input. We inject a Python one-liner to spawn a root shell:
Root Flag obtained!