ADVISORIES

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

EcosystemPackageAffected versions
Gogithub.com/astaxie/beego
All versions, no fix listed
Gogithub.com/beego/beego
All versions before 1.12.9 (fixed in 1.12.9)
Gogithub.com/beego/beego/v2
All versions before 2.0.3 (fixed in 2.0.3)

References