Katalog CVE

CVE-2026-81036

WysokieCVSS 8.1
Opublikowano: Zaktualizowano: Przetłumaczono: NVD NIST

Prawdopodobieństwo exploitacji (EPSS)

Niskie ryzyko
0.31%

Percentyl 23 - wyżej niż 23% wszystkich znanych CVE

Streszczenie

Stalwart Mail Server w domyślnej konfiguracji nie porównuje celu przekierowania OAuth z żadnym zarejestrowanym adresem. Walidacja w registration.rs zwraca sukces natychmiast, gdy wymóg uwierzytelnienia klienta jest wyłączony, a w dostarczonych ustawieniach jest on fałszywy. Wartość przekierowania jest zapisywana z kodem autoryzacyjnym, a strona logowania wysyła do niej przeglądarkę z kodem, co pozwala atakującemu przechwycić kod i wymienić go na tokeny dostępu i odświeżenia, uzyskując dostęp do poczty ofiary.

Ocena ryzyka

Atakujący może przejąć konto użytkownika i odczytać jego pocztę, co prowadzi do naruszenia poufności danych i potencjalnie dalszych ataków.

Rekomendacja

Zaktualizuj Stalwart Mail Server do wersji, która domyślnie wymaga porównania celu przekierowania z zarejestrowanymi klientami. Jeśli to możliwe, włącz wymóg uwierzytelnienia klienta i skonfiguruj dozwolone cele przekierowań.

Powiązane podatności

Oryginalny opis (angielski, źródło NVD)

Stalwart Mail Server does not compare an OAuth redirect target against any registered destination in its default configuration. The validation routine in crates/http/src/auth/oauth/registration.rs returns success immediately when the client-authentication requirement is disabled, and that requirement is false in the shipped settings, so the supplied redirect value is neither matched against a registered client nor otherwise constrained. The value is stored with the authorization code, and the login page reads it back and sends the browser to it with the code attached. A request naming a destination the attacker controls therefore delivers a valid authorization code there once the account holder authenticates, and because the token endpoint checks only that the redirect presented at exchange matches the one recorded with the code, the same party can exchange it for access and refresh tokens and read the account's mail.

Dane podatności pochodzą z NVD (NIST) · CISA KEV · EPSS