Excessive Expansion: Uncovering Critical Security Vulnerabilities in Jenkins (CVE-2024-23897 & CVE-2024-23898)
Jenkins CLI argument parsing expanded arguments starting with '@' by reading the referenced file, allowing unauthenticated attackers to read the first few lines of arbitrary files and read-only users to read entire files. Separately, the WebSocket CLI endpoint lacked an Origin check, enabling cross-site WebSocket hijacking so a malicious site could run CLI commands as a logged-in victim.
Jenkins