I know Mag1k
D3v0o0Nu119/2/20261 min read
#cryptography#htb#easy
I know Mag1k
Platform: HackTheBox | Category: Cryptography | Difficulty: Easy | Author: D3v0o0Nu11 | Date: 2026-02-10
Description
Can you get to the profile page of the admin?
Solution Approach
Core idea: Identify the weakness from source review or fingerprinting first. Iterate with incremental payloads instead of guessing.
Steps
-
Open the host given.
-
Since we don't have any creds, let's try to register and login.
-
There's nothing interesting here, so i tried to check the cookies storage.
-
When i tried to decode the mag1k cookie, got random text.
-
Since i stuck here, i read the forum and found out the challenge related to
padding oracleattack. -
Hence, i tried to use padbuster.
padbuster http://188.166.148.162:32309/profile.php 9gH0dY2dcbIcTGya8Oe08osnxYExeoXx4ZnLS1hltFWNxYCJ2hWTdQ%3D%3D 8 -cookies iknowmag1k=9gH0dY2dcbIcTGya8Oe08osnxYExeoXx4ZnLS1hltFWNxYCJ2hWTdQ%3D%3D
Flag
(no flag captured)
Lessons Learned
- Identify the weakness from source review or fingerprinting first.
- Iterate with incremental payloads instead of guessing.
- Reuse the same pattern in future engagements.