Access Control Bypass Affecting code.gitea.io/gitea/routers/repo package, versions <1.6.3


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.06% (27th 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 Learn

Learn about Access Control Bypass vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-CODEGITEAIOGITEAROUTERSREPO-2841489
  • published22 May 2022
  • disclosed23 Aug 2020
  • creditUnknown

Introduced: 23 Aug 2020

CVE-2019-1000002  (opens in a new tab)
CWE-284  (opens in a new tab)

How to fix?

Upgrade code.gitea.io/gitea/routers/repo to version 1.6.3 or higher.

Overview

Affected versions of this package are vulnerable to Access Control Bypass in the Delete/Edit file functionality that can result in the attacker deleting files outside the repository they have access to. This attack appears to be exploitable via the attacker must get write access to "any" repository including self-created ones.

References

CVSS Scores

version 3.1