← Back to Writeups
HTBN/AWeb

SpookTastic

XESXOR8/23/20261 min read
#web#htb#n/a

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

  1. In this challenge, the source codes are disclosed.

  2. Upon checking the functionalities in the web application, found no other endpoints or features which is interesting.

  3. But the web application seems accept user input from the Newsletter section.

  4. Let us review the source code at the Newsletter section.

  5. Noticed the "Book Now" button shall executes --> javascript:void() every time users click the button to submit their input.

  6. BUT, there is a certain condition to trigger this, because there is no direct calls for this function.

  7. Reviewing the app.py script, found LOC that reflect the flag to the user desktop if an alert is happen.

  8. Let us just send simple XSS payload then.

  9. I start by sending <script>alert('1')</script> but nothing happened.

  10. Seems the web application filters it, but after sent another simple xss payload --> ``, we got the flag!

Flag

REDACTED

Lessons Learned

  1. Source code review.