← back to write ups

Write Up

MakeSense

HackTheBox Hard Linux

Overview

MakeSense is a hard Linux box themed around client-side AI (speech-to-text and handwriting OCR). The foothold chains a custom WordPress theme's voice feature into a stored XSS: the theme encrypts submissions client-side with a hard-coded AES key, so a forged payload can be decrypted and stored server-side, then rendered unescaped in the admin review panel — an admin bot executes it and creates an attacker admin. Admin access leads to RCE via a malicious plugin. Credentials from wp-config.php pivot to the user walter. Root is an internal handwriting-OCR service that saves recognised text to attacker-named files in a web-served directory while running as root — an arbitrary PHP write for code execution.

Enumeration

Nmap Scan

nmap -sC -sV -oN makesense_initial.txt makesense.htb

Relevant ports:

WordPress Recon

wpscan --url https://makesense.htb --disable-tls-checks \
  --enumerate u,t --plugins-detection passive -t 50

Findings: WordPress 7.0, XML-RPC enabled, directory listing on wp-content/uploads/, users walter, jake, admin, and a custom theme webagency. A stray voice-message.wav in the uploads directory is a red herring (a demo of the transcription feature) — the real attack surface is the theme's JavaScript.