Advisory

GHSA-qx32-f6g6-fcfr

Also known as: CVE-2022-31259, GO-2022-0463

Summary

Access control bypass in beego

Details

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

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2022-05-22 00:00 UTC
Modified
2026-07-08 06:27 UTC

Affected packages and fixes

github.com/beego/beego/v2

Go · All systems

Affected

  • introduced 0, fixed 2.0.3 (semver)

Fixed versions

2.0.3

Fix

github.com/beego/beego

Go · All systems

Affected

  • introduced 0, fixed 1.12.9 (semver)

Fixed versions

1.12.9

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences