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


0.0
medium

Snyk CVSS

    Attack Complexity High
    Confidentiality High

    Threat Intelligence

    EPSS 0.17% (54th percentile)
Expand this section
NVD
9.8 critical

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 ID SNYK-GOLANG-GITHUBCOMBEEGOBEEGOV2SERVERWEB-2841378
  • published 22 May 2022
  • disclosed 22 May 2022
  • credit runner361

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).