Grandmaster rank emblem

Lvl 99

Level XP3,807/5,718

3807 of 5718
Grandmaster dreadnaught
Machine
OpenKeys
OS
OpenBSD
Difficulty
Medium
Steps
3
Added
23 Mar 2023

An editor swap file and an OpenBSD auth bypass hand over an SSH key; a local OpenBSD CVE gives root.

0Reconnmap1Footholdauth.php.swp2Footholdauth bypass3Priv escOpenBSD CVE
1Recon2Foothold3Priv escnmap1auth.php.swp2auth bypass3OpenBSD CVE4

How it went

  1. 0
    nmap

    An nmap scan shows a login form on port 80.

  2. 1
    auth.php.swp

    Gobuster finds an auth.php.swp editor swap file exposing the login logic and a new hostname.

  3. 2
    auth bypass

    CVE-2019-19521 bypasses OpenBSD auth with a -schallenge username, and sshkey.php hands over Jennifer's SSH key for the user flag.

  4. 3
    OpenBSD CVE

    The box is also vulnerable to CVE-2019-19520; compiling the local privilege-escalation exploit on-box gives root.