Access Restriction Bypass Affecting github.com/beego/beego/v2/server/web package, versions <1.12.9>=2.0.0 <2.0.3


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

EPSS
0.37% (73rd 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 Restriction Bypass vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMBEEGOBEEGOV2SERVERWEB-2841378
  • published22 May 2022
  • disclosed22 May 2022
  • creditrunner361

Introduced: 22 May 2022

CVE-2022-31259  (opens in a new tab)
CWE-284  (opens in a new tab)

How to fix?

Upgrade github.com/beego/beego/v2/server/web to version 1.12.9, 2.0.3 or higher.

Overview

github.com/beego/beego/v2/server/web is an open-source, high-performance, modular, full-stack web framework.

Affected versions of this package are vulnerable to Access Restriction Bypass during the route lookup process. When a /p1/p2/:name route is configured, attackers can access it by appending .xml in various places (e.g., p1.xml instead of p1).

CVSS Scores

version 3.1