Improper Input Validation Affecting github.com/woodpecker-ci/woodpecker/server/api package, versions >=1.0.0 <1.0.2


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.88% (57th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMWOODPECKERCIWOODPECKERSERVERAPI-5844236
  • published17 Aug 2023
  • disclosed16 Aug 2023
  • credit6543

Introduced: 16 Aug 2023

CVE-2023-40034  (opens in a new tab)
CWE-20  (opens in a new tab)

How to fix?

Upgrade github.com/woodpecker-ci/woodpecker/server/api to version 1.0.2 or higher.

Overview

Affected versions of this package are vulnerable to Improper Input Validation. An attacker can post malformed webhook data witch can lead to an update of the repository data that allow the takeover of a repository.

Note:

This issue is only critical if the CI is configured for public usage and connected to a forge which is also in public usage.

Workarounds

Users who are unable to upgrade to the fixed version can secure the CI system by making it inaccessible to untrusted entities, for example, by placing it behind a firewall.

CVSS Base Scores

version 3.1