[ 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] CPTS 12 FLAGS pulsebreaker 66 1,760 1 hour ago
Last Post: vlka
  [FREE] 300+ Writeups PDF HackTheBox/HTB premium retired Tamarisk 370 92,456 6 hours ago
Last Post: lifolifo007
  Hack the box Pro Labs, VIP, VIP+ 1 month free Method RedBlock 23 2,207 9 hours ago
Last Post: kkkato
  [FREE] HackTheBox Academy - CBBH CDSA CPTS All Modules Flags Techtom 20 2,521 Yesterday, 11:06 PM
Last Post: op334
Heart [FREE] HackTheBox All Cheatsheets Tamarisk 3 413 Yesterday, 10:36 PM
Last Post: op334

Forum Jump:


 Users browsing this forum: 1 Guest(s)