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
(01-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
  [MEGALEAK] HackTheBox ProLabs, Fortress, Endgame - Alchemy, 250 Flags, leak htb-bot htb-bot 91 7,556 11 hours ago
Last Post: ukaugse
  [FREE] HackTheBox Dante - complete writeup written by Tamarisk Tamarisk 598 89,039 Yesterday, 07:47 PM
Last Post: napo22
  [FREE] 300+ Writeups PDF HackTheBox/HTB premium retired Tamarisk 364 88,800 Yesterday, 07:41 PM
Last Post: napo22
  [FREE] HackTheBox Academy - CBBH CDSA CPTS All Modules Flags Techtom 16 2,293 03-28-2026, 03:32 AM
Last Post: lulaladrow
  All reversing challenge - HTB - Flags @ 02/03/2025 fr34cker 7 1,280 03-27-2026, 08:01 AM
Last Post: escowbang



 Users browsing this thread: 1 Guest(s)