Juggling facts
Juggling facts
Platform: HackTheBox | Category: Web | Difficulty: N/A | Author: D3v0o0Nu11 | Date: 2026-02-10
Description
An organization seems to possess knowledge of the true nature of pumpkins. Can you find out what they honestly know and uncover this centuries-long secret once and for all?
Solution Approach
Core idea: Identify the weakness from source review or fingerprinting first. Iterate with incremental payloads instead of guessing.
Steps
-
First, open the host given.
-
Click the
secretbutton. -
Now let us check the source code given.
-
Looks like the flag is in the
secretspage. -
Then when i analyzed the
IndexController.phpfile. -
What comes to my mind is, the vuln here is
type juggling. Notice there's 3 equal signs, which means not only the value must be the same but the type also. Not only that, we know that in PHP , the switch-case statement doesloose comparison.
SOURCE
https://www.php.net/manual/en/control-structures.switch.php
-
Based of the documentation from the link above. We can't send the type value at json as
true. Hence we got the false bool, then we can get the flag. -
Let us implement this using Burp Suite and set the intercept to on when entering the
secretspage. -
Choose send to repeater, click send.
-
Change the type value as
true, without the quote, otherwise the web application shall think that we request a type. -
Got the flag!
Flag
REDACTED
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.