GHSA-whf8-3h58-2w9f

    Dashboard / Vulnerabilities / GHSA-whf8-3h58-2w9f

    GHSA-whf8-3h58-2w9f

    Published: 13 May 2022Last Modified: 16 Feb 2024

    Summary: Jenkins Warnings Next Generation Plugin cross-site request forgery vulnerability

    Details: Jenkins Warnings Next Generation Plugin has a form validation HTTP endpoint used to validate a Groovy script through compilation, which was not subject to sandbox protection. The endpoint checked for the Overall/RunScripts permission, but did not require POST requests, so it was vulnerable to cross-site request forgery (CSRF). This allowed attackers to execute arbitrary code on the Jenkins controller by applying AST transforming annotations such as `@Grab` to source code elements. The affected HTTP endpoint now applies a safe Groovy compiler configuration preventing the use of unsafe AST transforming annotations. Additionally, the form validation HTTP endpoint now requires that requests be sent via POST to prevent CSRF.

    Affected packages

    Package

    Name: io.jenkins.plugins:warnings-ng

    Purl: pkg:maven/io.jenkins.plugins/warnings-ng

    Affected ranges

    Type: ECOSYSTEM

    Events:

    Introduced- 0
    Fixed -None

    Affected versions

    1.0.0
    1.0.0-beta1
    1.0.0-beta10
    1.0.0-beta2
    1.0.0-beta3
    1.0.0-beta4
    1.0.0-beta5
    1.0.0-beta6
    1.0.0-beta7
    1.0.0-beta8
    1.0.0-beta9
    1.0.1

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High