Lucene search

K
githubGitHub Advisory DatabaseGHSA-4GCF-5M39-98MC
HistoryAug 16, 2023 - 9:02 p.m.

Woodpecker does not validate webhook before changing any data

2023-08-1621:02:29
CWE-20
GitHub Advisory Database
github.com
28
woodpecker
webhook
validation
vulnerability
repository
takeover
ci
public usage
forge
patch
firewall
security

CVSS3

8.1

Attack Vector

NETWORK

Attack Complexity

HIGH

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

EPSS

0.001

Percentile

48.8%

Impact

An attacker can post malformed webhook data which leads to an update of the repository data that can e.g. allow the takeover of a repository.
This is only critical if the CI is configured for public usage and connected to a forge witch is also in public usage.

Patches

Please use either next or the latest v1.0 e.g. v1.0.2

Workarounds

Secure the CI system by making it inaccessible to untrusted entities, for example, by placing it behind a firewall.

References

Fix: https://github.com/woodpecker-ci/woodpecker/pull/2221
Backport: https://github.com/woodpecker-ci/woodpecker/pull/2222

Affected configurations

Vulners
Node
woodpecker-ciwoodpeckerRange1.0.01.0.2
VendorProductVersionCPE
woodpecker-ciwoodpecker*cpe:2.3:a:woodpecker-ci:woodpecker:*:*:*:*:*:*:*:*

CVSS3

8.1

Attack Vector

NETWORK

Attack Complexity

HIGH

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

EPSS

0.001

Percentile

48.8%

Related for GHSA-4GCF-5M39-98MC