GHSA-c264-8834-ppj2

Suggest an improvement
Source
https://github.com/advisories/GHSA-c264-8834-ppj2
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-c264-8834-ppj2/GHSA-c264-8834-ppj2.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-c264-8834-ppj2
Aliases
Published
2022-05-24T17:19:05Z
Modified
2024-02-16T08:24:08.637916Z
Severity
  • 5.4 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L CVSS Calculator
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.

Additionally, these API endpoints do not require POST requests, resulting in a cross-site request forgery (CSRF) vulnerability.

Swarm 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.

Database specific
{
    "nvd_published_at": "2020-06-03T13:15:00Z",
    "cwe_ids": [
        "CWE-352"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2022-12-20T22:15:47Z"
}
References

Affected packages

Maven / org.jenkins-ci.plugins:swarm

Package

Name
org.jenkins-ci.plugins:swarm
View open source insights on deps.dev
Purl
pkg:maven/org.jenkins-ci.plugins/swarm

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.21

Affected versions

1.*

1.6
1.7
1.8
1.9
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

2.*

2.0
2.1
2.2

3.*

3.3
3.4
3.5
3.6
3.7
3.8
3.9
3.10
3.11
3.12
3.13
3.14
3.15
3.16
3.17
3.18
3.19
3.20