SpookTastic
SpookTastic
Platform: HackTheBox | Category: Web | Difficulty: N/A | Author: D3v0o0Nu11 | Date: 2026-02-10
Description
On a moonless night, you delve into the dark web to uncover the hacker group "The Cryptic Shadows." You find an encrypted message guiding you to a web challenge. They claim a cursed amulet, the 'Amulet of Samhain,' can unveil their treasures location
Solution Approach
Core idea: Source code review.
Steps
-
In this challenge, the source codes are disclosed.
-
Upon checking the functionalities in the web application, found no other endpoints or features which is interesting.
-
But the web application seems accept user input from the Newsletter section.
-
Let us review the source code at the Newsletter section.
-
Noticed the "Book Now" button shall executes -->
javascript:void()every time users click the button to submit their input. -
BUT, there is a certain condition to trigger this, because there is no direct calls for this function.
-
Reviewing the
app.pyscript, found LOC that reflect the flag to the user desktop if an alert is happen. -
Let us just send simple XSS payload then.
-
I start by sending
<script>alert('1')</script>but nothing happened. -
Seems the web application filters it, but after sent another simple xss payload --> ``, we got the flag!
Flag
REDACTED
Lessons Learned
- Source code review.