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
  [MEGALEAK] HackTheBox ProLabs, Fortress, Endgame - Alchemy, 250 Flags, leak htb-bot htb-bot 166 34,825 1 hour ago
Last Post: meomeothantai
  CC,CVV,VBV,NON VBV ,DUMPS ,FULLZ,BANK LOGS (FULL INFO) BEST LINKABLES @RICKBUTLER Ballerwailer4G 0 69 5 hours ago
Last Post: Ballerwailer4G
  [FREE] HackTheBox Academy - CBBH CDSA CPTS All Modules Flags Techtom 110 14,307 10 hours ago
Last Post: Kazahk
Heart [FREE] HackTheBox All Cheatsheets Tamarisk 85 11,290 10 hours ago
Last Post: Kazahk
  Finding solutions/flags/writeups for challenges meomeothantai 0 202 Yesterday, 04:13 AM
Last Post: meomeothantai

Forum Jump:


 Users browsing this forum: 1 Guest(s)