Temporary Advertisements:
Ad
Ad
Ad
[ Web ] ApacheBlaze
by lego - Friday November 3, 2023 at 12:26 AM
#1
hello guys any 1 finished this challenge: https://app.hackthebox.com/challenges/apacheblaze

so this is the snipet code but i feel something weird 
```
elif game == 'click_topia':
        print(request.headers.get('X-Forwarded-Host'))
        if request.headers.get('X-Forwarded-Host') == 'dev.apacheblaze.local':
            return jsonify({
                'message': f'{app.config["FLAG"]}'
            }), 200
        else:
            return jsonify({
                'message': 'This game is currently available only from dev.apacheblaze.local.'
            }), 200
```

so basicly the solve should be curl $ip/api/games/click_topia -H "X-Forwarded-Host: dev.apacheblaze.local" but it's not work
Reply
#2
Look into: https://github.com/dhmosfunk/CVE-2023-25...-injection , read the whole thing for your own benefit, everything is explained.

The answer is practicly allready there, you have to just tweak it a little bit. In order to understand what is happening, you should add  "print(request.headers)" somewhere in your own code copy and run it locally, once you understand how things work it is a straight forward job Big Grin . Also, learning how Apache HTTP server works might be benefitial for further challenges. Best of luck, feel free to DM me if you need further help.
Reply
#3
(Nov 18, 2023, 02:10 PM)ChromaD4rkn3ss Wrote: Look into: https://github.com/dhmosfunk/CVE-2023-25...-injection, read the whole thing for your own benefit, everything suika game is explained.

The answer is practicly allready there, you have to just tweak it a little bit. In order to understand [url=https://suikagameonline.io][/url] what is happening, you should add  "print(request.headers)" somewhere in your own code copy and run it locally, once you understand how things work it is a straight forward job Big Grin . Also, learning how Apache HTTP server works might be benefitial for further challenges. Best of luck, feel free to DM me if you need further help.


Thx. Exactly what I was looking for.
Reply
#4
thanks for sharing i was looking for this
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  HTB - ALL Challenges you Stuck in osamy7593 5 1,162 9 hours ago
Last Post: axiom4
  [FREE] HackTheBox Academy - CBBH CDSA CPTS All Modules Flags Techtom 109 13,879 Yesterday, 04:02 AM
Last Post: shia
  [FREE] HackTheBox Academy - CAPE Path Study Techtom 67 11,419 Oct 15, 2026, 12:09 PM
Last Post: ploufmeuhmeuh
  [FREE] CPTS 12 FLAGS pulsebreaker 167 19,053 Oct 15, 2026, 12:07 PM
Last Post: ploufmeuhmeuh
  [UPDATED] APT-Labs Prolabs Writeup z1ne99 52 9,153 Oct 15, 2026, 07:36 AM
Last Post: Neurotic

Forum Jump:


 Users browsing this forum: 1 Guest(s)