Grandmaster rank emblem

Lvl 99

Level XP3,807/5,718

3807 of 5718
Grandmaster dreadnaught
Machine
Socket
OS
Linux
Difficulty
Medium
Steps
3
Added
15 Jul 2023

A WebSocket SQL injection dumps credentials for a user; a sudo PyInstaller build script gives root.

0Reconnmap1FootholdWebSocket SQLi2Lateraltkeller3Priv escsudo PyInstaller
1Recon2Foothold3Lateral4Priv escnmap1WebSocket SQLi2tkeller3sudo PyInstaller4

How it went

  1. 0
    nmap

    An all-ports nmap scan finds a web app and a WebSocket service on 5789.

  2. 1
    WebSocket SQLi

    The WebSocket's version query is injectable; a SQLmap proxy dumps the SQLite database and credentials.

  3. 2
    tkeller

    A cracked hash plus a known username logs in over SSH as tkeller for the user flag.

  4. 3
    sudo PyInstaller

    tkeller can sudo a PyInstaller build script; a malicious .spec file injects a subprocess call that runs as root.