GitHub Advisoryadvisory · Go
GHSA-4gcf-5m39-98mc Woodpecker does not validate webhook before changing any data
HIGH
Official page ↗
- Aliases
- CVE-2023-40034
- Ecosystem
- Go
- Packages
- github.com/woodpecker-ci/woodpecker
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- Weaknesses
- CWE-20
- Reviewed
- 2023-08-16
Affected packages
• Go github.com/woodpecker-ci/woodpecker: >= 1.0.0, < 1.0.2 → fixed in 1.0.2
Description
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
Related
Alias · CVE (1)
- CVE-2023-40034 Woodpecker is a community fork of the Drone CI system. vulnerability
Weakness · CWE (1)
- CWE-20 Improper Input Validation weakness
References
- https://github.com/woodpecker-ci/woodpecker/security/advisories/GHSA-4gcf-5m39-98mc web
- https://nvd.nist.gov/vuln/detail/CVE-2023-40034 advisory
- https://github.com/woodpecker-ci/woodpecker/pull/2221 web
- https://github.com/woodpecker-ci/woodpecker/pull/2222 web
- https://github.com/woodpecker-ci/woodpecker/commit/6e4c2f84cc84661d58cf1c0e5c421a46070bb105 web
- https://github.com/woodpecker-ci/woodpecker package
- https://github.com/woodpecker-ci/woodpecker/releases/tag/v1.0.2 web