[ 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
  [FREE] HackTheBox Dante - complete writeup written by Tamarisk Tamarisk 602 91,590 32 minutes ago
Last Post: sabero_exe
  [FREE] CPTS 12 FLAGS pulsebreaker 68 1,944 9 hours ago
Last Post: VictorPipeau
  [FREE] 300+ Writeups PDF HackTheBox/HTB premium retired Tamarisk 371 92,799 10 hours ago
Last Post: phannguyenbaouy1
  [FREE] HackTheBox Academy - CBBH CDSA CPTS All Modules Flags Techtom 21 2,616 Today, 05:08 AM
Last Post: popoler
  Hack the box Pro Labs, VIP, VIP+ 1 month free Method RedBlock 23 2,269 Yesterday, 02:10 PM
Last Post: kkkato

Forum Jump:


 Users browsing this forum: 1 Guest(s)