—
GO-2022-0463
Access control bypass due to broad route matching in github.com/beego/beego and beego/v2
Quick fix
GO-2022-0463 — github.com/beego/beego: upgrade to the fixed version with the command below.
go get github.com/beego/beego@v1.12.9Details
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/".
Are you affected?
Enter the version of the package you're using.
Affected packages
Go/github.com/astaxie/beego
Introduced in:
0No fixed version published yet for github.com/astaxie/beego (go modules). Pin to a known-safe version or switch to an alternative.
Go/github.com/beego/beego/v2
Introduced in:
0Fixed in: 2.0.3Fix
go get github.com/beego/beego/v2@v2.0.3