Grandmaster rank emblem

Lvl 99

Level XP3,807/5,718

3807 of 5718
Grandmaster dreadnaught
Machine
Agile
OS
Linux
Difficulty
Medium
Steps
4
Added
5 Aug 2023

A path traversal leaks a Flask secret for cookie forgery; a debug port and a sudoedit CVE lead to root.

0Reconnmap1Footholdconfig leak2FootholdFlask cookie3Lateraledwards4Priv escsudoedit CVE
1Recon2Foothold3Lateral4Priv escnmap1config leak2Flask cookie3edwards4sudoedit CVE5

How it went

  1. 0
    nmap

    An nmap scan redirects to the superpass.htb Flask app.

  2. 1
    config leak

    A download endpoint is path-traversable, leaking config_prod.json with SQL credentials and the Flask SECRET_KEY.

  3. 2
    Flask cookie

    The secret key forges session cookies; cycling the user_id harvests other vault passwords, including Corum's SSH login for the user flag.

  4. 3
    edwards

    An exposed chromedriver debug port, tunnelled in, reveals Edwards's credentials for a second SSH login.

  5. 4
    sudoedit CVE

    A dev_admin cron runs a file editable via sudoedit; CVE-2023-22809 abuses the EDITOR to write it and land root.