challenges ProxyAsAService
by h2m0nRe-d0b1e - Tuesday October 24, 2023 at 12:20 PM
#1
hello! some any hints
Reply
#2
Actually, the challenge is to get a private url through the vuln of the ssrf type, on a running docker it looks like this:
```
/app # curl localhost:1337/debug/environment
{"Environment variables":{"FLAG":"HTB{f4k3_fl4g_f0r_t3st1ng}"
```
But trust only local ip, ofcourse XFF don't work/

I think exploitation proxy redirect in this variable `target_url = f'http://{SITE_NAME}{url}'`. And this need tricks.
Reply
#3
Oh, I see log got it ?url=@ , but response block this rules RESTRICTED_URLS = ['localhost', '127.', '192.168.', '10.', '172.']
Upd\ get local address some else and done
Reply
#4
Any updates, did you manage to do it?
Reply
#5
(Oct 29, 2023, 09:11 PM)nighteliteace Wrote: Any updates, did you manage to do it?

Yes, I did. There is already practically a solution here, there are tips and tricks.
Reply
#6
(Oct 30, 2023, 11:44 AM)h2m0nRe-d0b1e Wrote:
(Oct 29, 2023, 09:11 PM)nighteliteace Wrote: Any updates, did you manage to do it?

Yes, I did. There is already practically a solution here, there are tips and tricks.

Can you give me any hints oh now to bypass SITE_NAME prefix?
Reply
#7
(Oct 30, 2023, 06:05 PM)nighteliteace Wrote:
(Oct 30, 2023, 11:44 AM)h2m0nRe-d0b1e Wrote:
(Oct 29, 2023, 09:11 PM)nighteliteace Wrote: Any updates, did you manage to do it?

Yes, I did. There is already practically a solution here, there are tips and tricks.

Can you give me any hints oh now to bypass SITE_NAME prefix?

check this out: https://github.com/swisskyrepo/PayloadsA...ombination
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Hack the box Pro Labs, VIP, VIP+ 1 month free Method RedBlock 23 2,167 1 hour ago
Last Post: kkkato
  [FREE] HackTheBox Academy - CBBH CDSA CPTS All Modules Flags Techtom 20 2,491 Yesterday, 11:06 PM
Last Post: op334
Heart [FREE] HackTheBox All Cheatsheets Tamarisk 3 396 Yesterday, 10:36 PM
Last Post: op334
  [FREE] 300+ Writeups PDF HackTheBox/HTB premium retired Tamarisk 369 92,002 Yesterday, 04:10 PM
Last Post: sabbyahmed
  CBBH Write Ups hiddenhacker 22 6,226 Yesterday, 06:39 AM
Last Post: Usercomplex

Forum Jump:


 Users browsing this forum: 1 Guest(s)