{"id":"GHSA-jhmr-57cj-q6g9","aliases":["GO-2025-3873"],"status":"published","title":"Komari vulnerable to 2FA Authentication Bypass","description":"### Summary\n\nLogic error in 2FA verification condition allows bypass of two-factor authentication\n\n### Details\n\nhttps://github.com/komari-monitor/komari/blob/bd5a6934e1b79a12cf1e6a9bba5372d0e04f3abc/api/login.go#L55\n\nThere is no way for `Verify2Fa` to return an error **AND** true as `ok` at the same time, any codes are considered as valid.\n\n### PoC\n\nUse any 6 digits as 2FA code\n\n### Impact\n\nBypass 2FA Authentication","severity":{"version":"4.0","score":8.5,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","level":"high","from":"ghsa"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-287"],"published":"2025-08-12T00:13:36Z","modified":"2026-03-03T04:56:48Z","fixes":[{"ecosystem":"Go","package":"github.com/komari-monitor/komari","fixed_in":["0.0.0-20250809064056-cc3d54bff4c6"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Go","package":"github.com/komari-monitor/komari","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.0.0-20250809064056-cc3d54bff4c6"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/komari-monitor/komari","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.0.0-20250809064056-cc3d54bff4c6"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/komari-monitor/komari","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.0.0-20250809064056-cc3d54bff4c6"}]}]}],"references":[{"url":"https://github.com/komari-monitor/komari/security/advisories/GHSA-jhmr-57cj-q6g9","tags":["web","advisory"]},{"url":"https://github.com/komari-monitor/komari/commit/cc3d54bff4c6495beaa1c7483379cd04542c557f","tags":["web","fix"]},{"url":"https://github.com/komari-monitor/komari/blob/bd5a6934e1b79a12cf1e6a9bba5372d0e04f3abc/api/login.go#L55","tags":["web"]},{"url":"https://github.com/komari-monitor/komari/releases/tag/1.0.4-fix1","tags":["web"]},{"url":"https://github.com/advisories/GHSA-jhmr-57cj-q6g9"},{"url":"https://github.com/komari-monitor/komari","tags":["package"]}],"sources":{"ghsa":[{"id":"GHSA-jhmr-57cj-q6g9","title":"Komari vulnerable to 2FA Authentication Bypass","description":"### Summary\n\nLogic error in 2FA verification condition allows bypass of two-factor authentication\n\n### Details\n\nhttps://github.com/komari-monitor/komari/blob/bd5a6934e1b79a12cf1e6a9bba5372d0e04f3abc/api/login.go#L55\n\nThere is no way for `Verify2Fa` to return an error **AND** true as `ok` at the same time, any codes are considered as valid.\n\n### PoC\n\nUse any 6 digits as 2FA code\n\n### Impact\n\nBypass 2FA Authentication","status":"published","published":"2025-08-12T00:13:36Z","modified":"2025-08-12T00:13:37Z","cvss":[{"version":"4.0","score":8.5,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","level":"high"}],"cwes":["CWE-287"],"updated_at":"2026-11-02T14:38:53.767052Z"}],"osv":[{"id":"GHSA-jhmr-57cj-q6g9","title":"Komari vulnerable to 2FA Authentication Bypass","description":"### Summary\n\nLogic error in 2FA verification condition allows bypass of two-factor authentication\n\n### Details\n\nhttps://github.com/komari-monitor/komari/blob/bd5a6934e1b79a12cf1e6a9bba5372d0e04f3abc/api/login.go#L55\n\nThere is no way for `Verify2Fa` to return an error **AND** true as `ok` at the same time, any codes are considered as valid.\n\n### PoC\n\nUse any 6 digits as 2FA code\n\n### Impact\n\nBypass 2FA Authentication","status":"published","published":"2025-08-12T00:13:36Z","modified":"2025-08-18T13:57:31.011223Z","cvss":[{"version":"4.0","score":8.5,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","level":"high"}],"cwes":["CWE-287"],"updated_at":"2026-11-02T15:46:50.336262Z"},{"id":"GO-2025-3873","title":"Komari vulnerable to 2FA Authentication Bypass in github.com/komari-monitor/komari","description":"Komari vulnerable to 2FA Authentication Bypass in github.com/komari-monitor/komari","status":"published","published":"2025-08-18T13:17:23Z","modified":"2026-03-03T04:56:48.464981Z","updated_at":"2026-11-02T15:47:01.728182Z"}]}}
