- 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.
How it went
- 0nmap
An nmap scan shows a login form on port 80.
- 1auth.php.swp
Gobuster finds an auth.php.swp editor swap file exposing the login logic and a new hostname.
- 2auth bypass
CVE-2019-19521 bypasses OpenBSD auth with a -schallenge username, and sshkey.php hands over Jennifer's SSH key for the user flag.
- 3OpenBSD CVE
The box is also vulnerable to CVE-2019-19520; compiling the local privilege-escalation exploit on-box gives root.