Challenge - Saturn HackTheBox
by TREXNEGRO - Wednesday January 17, 2024 at 02:21 AM
#1
The purpose of the website is described as a simple proxy that redirects to a specific URL, similar to the ProxyAsService challenge. The challenge involves accessing a flag stored in a flag.txt file, accessible via the /secret path, but requires the request to be made from the machine's localhost (127.0.0.1).

The exploitation strategy involves two options: try to bypass the remote address verification in the /secret path or call the /secret path through the main / path to make the machine "request itself" through the proxy. The second option is chosen for exploitation. However, the SafeURL() function is identified as a protection mechanism, and to bypass it, the user uses a URL shortener to send a link that redirects to the local /secret path, thus bypassing SafeURL() protection and obtaining access to the flag.

Here I provide you with the Flag and a URL where you can find the resolution of the machine in case you want to do it yourself.

Challenge: https://app.hackthebox.com/challenges/saturn
Writeup: https://medium.com/@reinhardt.pwn/hackth...ae1fe72be9
Flag: HTB{Expl01t1ng_ssrfs_f0r_fun}
Reply
#2
(Jan 17, 2024, 02:21 AM)TREXNEGRO Wrote: The purpose of the website is described as a simple proxy that redirects to a specific URL, similar to the ProxyAsService challenge. The challenge involves accessing a flag stored in a flag.txt file, accessible via the /secret path, but requires the request to be made from the machine's localhost (127.0.0.1).

The exploitation strategy involves two options: try to bypass the remote address verification in the /secret path or call the /secret path through the main / path to make the machine "request itself" through the proxy. The second option is chosen for exploitation. However, the SafeURL() function is identified as a protection mechanism, and to bypass it, the user uses a URL shortener to send a link that redirects to the local /secret path, thus bypassing SafeURL() protection and obtaining access to the flag.

Here I provide you with the Flag and a URL where you can find the resolution of the machine in case you want to do it yourself.

Challenge: https://app.hackthebox.com/challenges/saturn
Writeup: https://medium.com/@reinhardt.pwn/hackth...ae1fe72be9
Flag: HTB{Expl01t1ng_ssrfs_f0r_fun}


Post more like this man. Thanks!
Reply
#3
Thanks for sharing!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [FREE] HackTheBox Dante - complete writeup written by Tamarisk Tamarisk 603 92,346 5 hours ago
Last Post: 0xnany
  [FREE] HackTheBox Academy - CBBH CDSA CPTS All Modules Flags Techtom 23 2,724 5 hours ago
Last Post: 0xnany
  [FREE] 300+ Writeups PDF HackTheBox/HTB premium retired Tamarisk 374 93,323 5 hours ago
Last Post: 0xnany
Heart [FREE] HackTheBox All Cheatsheets Tamarisk 8 538 8 hours ago
Last Post: mrmanual
  [FREE] CPTS 12 FLAGS pulsebreaker 70 2,143 9 hours ago
Last Post: neurodot

Forum Jump:


 Users browsing this forum: 1 Guest(s)