Skip to content

CVE-2022-31259 Access control bypass in beego

CriticalCVSS 9.8 EPSS 22.2%
Published
Updated
Exploit status
No public exploit known

Description

The route lookup process in beego before 1.12.9 and 2.x before 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).

Upgrade path

3 packages: 2 fixed, 1 with no fix yet.

PackageAffectedFixed inStatus
astaxie github.com/astaxie/beego(Go) All versions No fix listed No fix yet
beego github.com/beego/beego/v2 <= 1.12.4; >= 2.0.0, <= 2.0.2 after 1.12.4, 2.0.2 Fixed
beego github.com/beego/beego/v2(Go) < 1.12.9; < 2.0.3 1.12.9, 2.0.3 Fixed

Affected products

ProductAffected versionsFixed in
beego github.com/beego/beego/v2(Go) < 2.0.3 2.0.3
beego github.com/beego/beego/v2(Go) < 1.12.9 1.12.9
astaxie github.com/astaxie/beego(Go) All versions No fix listed
beego github.com/beego/beego/v2 <= 1.12.4 No fix listed
beego github.com/beego/beego/v2 >= 2.0.0, <= 2.0.2 No fix listed

References