GitHub Advisoryadvisory · Go
GHSA-qx32-f6g6-fcfr Access control bypass in beego
CRITICAL
Official page ↗
- Aliases
- CVE-2022-31259
- Ecosystem
- Go
- Packages
- github.com/beego/beego/v2, github.com/beego/beego
- Severity
- Critical
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Weaknesses
- CWE-284
- Reviewed
- 2022-05-25
Affected packages
• Go github.com/beego/beego/v2: < 2.0.3 → fixed in 2.0.3
• Go github.com/beego/beego: < 1.12.9 → fixed in 1.12.9
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).
Related
Alias · CVE (1)
- CVE-2022-31259 The route lookup process in beego before 1.12.9 and 2.x before 2.0.3 allows attackers to bypass access control. vulnerability
Weakness · CWE (1)
- CWE-284 Improper Access Control weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-31259 advisory
- https://github.com/beego/beego/issues/4946 web
- https://github.com/beego/beego/pull/4954 web
- https://github.com/beego/beego/pull/4958 web
- https://github.com/beego/beego/commit/228576173a236c81a2122923fcf8099ad294e009 web
- https://github.com/beego/beego/commit/64cf44d725c8cc35d782327d333df9cbeb1bf2dd web
- https://github.com/advisories/GHSA-qx32-f6g6-fcfr advisory
- https://github.com/beego/beego package
- https://github.com/beego/beego/tree/v2.0.2 web
- https://pkg.go.dev/vuln/GO-2022-0463 web