HackTheBox Canvas Writeup
Explore the basics of cybersecurity in the Canvas Challenge on Hack The Box. This easy-level Challenge introduces encryption reversal and file handling concepts in a clear and accessible way, perfect for beginners.
https://app.hackthebox.com/challenges/156
Description
We want to update our website but we are unable to because the developer who coded this left today. Can you take a look?
Exploitation
Deobfuscated JavaScript
1
var res = String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](0x48, 0x54, 0x42, 0x7b, 0x57, 0x33, 0x4c, 0x63, 0x30, 0x6d, 0x33, 0x5f, 0x37, 0x30, 0x5f, 0x4a, 0x34, 0x56, 0x34, 0x35, 0x43, 0x52, 0x31, 0x70, 0x37, 0x5f, 0x64, 0x33, 0x30, 0x62, 0x46, 0x75, 0x35, 0x43, 0x34, 0x37, 0x31, 0x30, 0x4e, 0x7d, 0xa);
Open the browser console and type res
.
Summary
The Canvas Challenge on Hack The Box is an easy-level challenge that helps beginners understand encryption reversal and file handling. By deobfuscating the provided JavaScript, the hidden flag can be revealed, providing insight into the basics of cryptography and reverse engineering in a simple context.
This post is licensed under CC BY 4.0 by the author.