NetSight
critical9.8

CVE-2022-31259

Access control bypass in beego

Impact

The route lookup process in beego prior to 1.12.9 and 2.x prior to 2.0.3 allows attackers to bypass access control. 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).

Affected packages

EcosystemPackageAffectedFixed in
gogithub.com/beego/beego/v2< 2.0.32.0.3
gogithub.com/beego/beego< 1.12.91.12.9

Affected products

VendorProductAffected versions
BeegoBeego
through 1.12.4
from 2.0.0 through 2.0.2

Weakness classification

References