Advisory

GHSA-jhmr-57cj-q6g9

Also known as: GO-2025-3873

Summary

Komari vulnerable to 2FA Authentication Bypass

Details

Summary

Logic error in 2FA verification condition allows bypass of two-factor authentication

Details

https://github.com/komari-monitor/komari/blob/bd5a6934e1b79a12cf1e6a9bba5372d0e04f3abc/api/login.go#L55

There is no way for Verify2Fa to return an error AND true as ok at the same time, any codes are considered as valid.

PoC

Use any 6 digits as 2FA code

Impact

Bypass 2FA Authentication

Severity

High Basis: The source's own band: HIGH

Dates

Published
2025-08-12 00:13 UTC
Modified
2025-08-18 13:57 UTC

Affected packages and fixes

github.com/komari-monitor/komari

Go · All systems

Affected

  • introduced 0, fixed 0.0.0-20250809064056-cc3d54bff4c6 (semver)

Fixed versions

0.0.0-20250809064056-cc3d54bff4c6

Fix

  • Fixed version 0.0.0-20250809064056-cc3d54bff4c6
    go get github.com/komari-monitor/[email protected]

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