Skip to content

Access control bypass in beego

Critical severity GitHub Reviewed Published May 22, 2022 to the GitHub Advisory Database • Updated Feb 25, 2023

Package

gomod github.com/beego/beego (Go)

Affected versions

< 1.12.9

Patched versions

1.12.9
gomod github.com/beego/beego/v2 (Go)
< 2.0.3
2.0.3
gomod github.com/beego/beego/v2/server/web (Go)
< 2.0.3
2.0.3

Description

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

References

Published by the National Vulnerability Database May 21, 2022
Published to the GitHub Advisory Database May 22, 2022
Reviewed May 25, 2022
Last updated Feb 25, 2023

Severity

Critical
9.8
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Weaknesses

No CWEs

CVE ID

CVE-2022-31259

GHSA ID

GHSA-qx32-f6g6-fcfr

Source code

Checking history
See something to contribute? Suggest improvements for this vulnerability.