{"id":"GHSA-c264-8834-ppj2","summary":"CSRF vulnerability in Jenkins Swarm Plugin","details":"Swarm Plugin adds API endpoints to add or remove agent labels. In Swarm Plugin 3.20 and earlier these only require a global Swarm secret to use, and no regular permission check is performed. This allows users with Agent/Create permission to add or remove labels of any agent.\n\nAdditionally, these API endpoints do not require POST requests, resulting in a cross-site request forgery (CSRF) vulnerability.\n\nSwarm Plugin 3.21 requires POST requests and Agent/Configure permission for the affected agent to these endpoints. It no longer uses the global Swarm secret for these API endpoints.","aliases":["CVE-2020-2192"],"modified":"2024-02-16T08:24:08.637916Z","published":"2022-05-24T17:19:05Z","database_specific":{"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2022-12-20T22:15:47Z","nvd_published_at":"2020-06-03T13:15:00Z","cwe_ids":["CWE-352"]},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-2192"},{"type":"WEB","url":"https://github.com/jenkinsci/swarm-plugin/commit/4d18f98b00e4c84b152d52346fb9ef1a227b1cf7"},{"type":"PACKAGE","url":"https://github.com/jenkinsci/swarm-plugin"},{"type":"WEB","url":"https://jenkins.io/security/advisory/2020-06-03/#SECURITY-1200"},{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2020/06/03/3"}],"affected":[{"package":{"name":"org.jenkins-ci.plugins:swarm","ecosystem":"Maven","purl":"pkg:maven/org.jenkins-ci.plugins/swarm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.21"}]}],"versions":["1.10","1.11","1.15","1.16","1.17","1.18","1.19","1.20","1.21","1.22","1.23","1.24","1.25","1.26","1.6","1.7","1.8","1.9","2.0","2.1","2.2","3.10","3.11","3.12","3.13","3.14","3.15","3.16","3.17","3.18","3.19","3.20","3.3","3.4","3.5","3.6","3.7","3.8","3.9"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-c264-8834-ppj2/GHSA-c264-8834-ppj2.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L"}]}