Go Vulnerability Database
GO-2022-0463
Access control bypass due to broad route matching in github.com/beego/beego and beego/v2
Details
Routes in the beego HTTP router can match unintended patterns. This overly-broad matching may permit an attacker to bypass access controls.
For example, the pattern "/a/b/:name" can match the URL "/a.xml/b/". This may bypass access control applied to the prefix "/a/".
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Go | github.com/astaxie/beego | All versions, no fix listed |
| Go | github.com/beego/beego | All versions before 1.12.9 (fixed in 1.12.9) |
| Go | github.com/beego/beego/v2 | All versions before 2.0.3 (fixed in 2.0.3) |