Files
postfixadmin/languages
David Goodwin 2c05ff950c Totp fixes (#1153)
Wenhao Wu emailed with the following security report, this affects master and postfixadmin-4.0.

High — mailbox takeover of mail flow for a 2FA-enrolled account by a password holder. CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N ≈ 8.1 (PR:L models possession of the first factor; impact is limited to the attacker's own mailbox account). CWE-308 (Use of Single-Factor Authentication with Two Factors), secondary CWE-287. Not related to the fixed TOTP-exception issue #1014.

....
With `$CONF['totp']='YES'` and a mailbox that has TOTP enrolled, logging in with **only the mailbox password** creates an MFA-incomplete session (`username` set, `roles=[]`, `mfa_complete=false`) that is parked at `users/login-mfa.php`. That half-session cannot open `users/main.php` (it has no `user` role), but `public/edit.php` never checks MFA completion:

- `public/edit.php:30` — `authentication_get_username()` (comment "enforce login") treats any session with a username as logged in; it never calls `authentication_mfa_incomplete()`.
- `public/edit.php:57-63` — for a non-admin session with a handler that has `user_hardcoded_field`, `require_role('admin')` is skipped entirely.
....

Wenhao Wu, Southeast University

thanks @d3do-23 (@cboltz and TrapoSAMA for reviewing etc)
2026-09-26 09:39:53 +01:00
..
2026-09-26 09:39:53 +01:00
2026-09-26 09:39:53 +01:00
2026-09-26 09:39:53 +01:00
2026-09-26 09:39:53 +01:00
2026-09-26 09:39:53 +01:00
2026-09-26 09:39:53 +01:00
2026-09-26 09:39:53 +01:00
2026-09-26 09:39:53 +01:00
2026-09-26 09:39:53 +01:00
2026-09-26 09:39:53 +01:00
2026-09-26 09:39:53 +01:00
2026-09-26 09:39:53 +01:00
2026-09-26 09:39:53 +01:00
2026-09-26 09:39:53 +01:00
2026-09-26 09:39:53 +01:00
2026-09-26 09:39:53 +01:00
2022-06-28 13:46:11 +01:00
2026-09-26 09:39:53 +01:00
2026-09-26 09:39:53 +01:00
2026-09-26 09:39:53 +01:00
2026-09-26 09:39:53 +01:00
2026-09-26 09:39:53 +01:00
2026-09-26 09:39:53 +01:00
2026-09-26 09:39:53 +01:00
2026-09-26 09:39:53 +01:00
2026-09-26 09:39:53 +01:00
2026-09-26 09:39:53 +01:00
2026-09-26 09:39:53 +01:00
2026-09-26 09:39:53 +01:00
2026-09-26 09:39:53 +01:00
2026-09-26 09:39:53 +01:00
2026-09-26 09:39:53 +01:00
2026-09-26 09:39:53 +01:00
2026-09-26 09:39:53 +01:00
2026-09-26 09:39:53 +01:00
2026-09-26 09:39:53 +01:00
2026-09-26 09:39:53 +01:00