The write-up for the Hack The Box machine "Cohort" provides a detailed walkthrough of exploiting a Linux system. Here's a summary and key points from the write-up:
Initial Reconnaissance
- Port Scanning: Identified open ports 22 (SSH), 80 (HTTP), and 443 (HTTPS).
- Web Application Discovery:
- Found a WebSocket endpoint at
ws://10.10.10.159:80/. - Discovered an API route
/api/v1/auththat accepts WebSocket connections.
- Found a WebSocket endpoint at
Exploitation
Unauthenticated Code Execution as Marimo
- WebSocket Handshake: The machine uses a custom WebSocket server with no authentication for the
/api/v1/authendpoint. - Exploit Development:
- Created a Python script to establish a WebSocket connection and send commands.
- Sent an unauthenticated command
id; whoami; hostnameto confirm that it executes as user "marimo".
Privilege Escalation (CVE-2026–41651)
- PackageKit Vulnerability: Identified PackageKit version 1.2.8,
Read the full article at InfoSec Write-ups - Medium
Want to create content about this topic? Use Nemati AI tools to generate articles, social posts, and more.



