Krytyczna

Sydent does not verify email server certificates

  • Ujawniono: 31.07.2023
  • Aktualizacja: 11.10.2026 15:17

Impact

If configured to send emails using TLS, Sydent does not verify SMTP servers' certificates. This makes Sydent's emails vulnerable to interception via a man-in-the-middle (MITM) attack. Attackers with privileged access to the network can intercept room invitations and address confirmation emails.

CVSS 3.1 overall score: 3.3 - AV:A/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N/CR:L/IR:L/AR:X/MAV:A/MAC:H/MPR:N/MUI:N/MS:C/MC:L/MI:L/MA:N

Reported by Martin Schobert, Pentagrid AG.

Details

Sydent can be configured to send emails over a TLS-encrypted socket by setting

yaml
email:
    tlsmode: "TLS"  # or the legacy value "SSL"

in its config file. Alternatively it can be configured to use Opportunistic TLS by setting

yaml
email:
    tlsmode: "STARTTLS"

In both situations, Sydent will encrypt its communication with the SMTP server when sending emails. In affected versions, Sydent will not verify the destination server's certificate.

Vulnerability

Sydent sends email for two purposes:

  • to inform a third party that they have been invited to a Matrix room by their email address; and
  • to verify that a given Matrix user controls an email address.

Therefore, attackers capable of running a MITM attack can

  1. Intercept room invitations sent to an email address. The invitation includes
    • the room ID and its avatar, and
    • the inviter's username, displayname and their avatar, and
    • credentials for a guest Matrix account on the inviter's homeserver.
  2. Intercept address ownership confirmation emails. This would allow the attacker to falsely claim ownership of the indented recipient's Matrix account, if that account was permitted to log in using an email address and no other authentication factors.

Patches

This is patched in Sydent 2.5.6, see PR https://github.com/matrix-org/sydent/pull/574.

When patching, make sure that Sydent trusts the certificate of the server it is connecting to. This should happen automatically when using properly issued certificates. If you are using self-signed certificates, make sure to copy your Certification Authority certificate, or your self signed certificate if using only one, to the trust store of your operating system.

Workarounds

One can ensure Sydent's emails fail to send by setting the configured SMTP server to a loopback or non-routable address under your control which does not have a listening SMTP server. For example:

yaml
email:
    smtphost: "localhost"  # Assuming there is no SMTP server listening on localhost

References

For more information

If you have any questions or comments about this advisory, e-mail us at security@matrix.org.

Czego dotyczy

Kliknij technologię, aby zobaczyć wszystkie dotyczące jej podatności.

PlatformaPaczkaPodatne wersjePoprawka w wersji
Python (PyPI) matrix-sydent < 2.5.6 2.5.6

Odnośniki

Ocena CVSS 9.3/10
Wektor CVSS
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N
Słabość (CWE)
CWE-295
Platforma
Python (PyPI)
Paczka
matrix-sydent
Ujawniono
31.07.2023
Aktualizacja
11.10.2026 15:17

Źródła i licencje

OSV / GitHub Advisory Database - PYSEC-2023-139 - PyPA Advisory Database; CC BY 4.0

OSV / GitHub Advisory Database - GHSA-p6hw-wm59-3g5g - CC BY 4.0

Historia podatności: matrix-sydent

Wszystkie opisane podatności tej paczki (Python (PyPI)), od najnowszej. Widać, czy to jednorazowa wpadka, czy paczka, której trzeba pilnować.

Wszystkich wpisów
7
Pierwsza → ostatnia
05.2019 07.2023
Bez poprawki
0
Wykorzystywana w atakach
0

Rozkład istotności

  • Krytyczna 1
  • Wysoka 2
  • Średnia 4

Ujawnienia w latach

  1. 2019: 1
  2. 2020: 0
  3. 2021: 4
  4. 2022: 1
  5. 2023: 1
  6. 2024: 0
  7. 2025: 0
  8. 2026: 0
  1. Sydent does not verify email server certificates ten wpis
    Krytyczna · 9.3 CVE-2023-38686 < 2.5.6 2.5.6
  2. Średnia · 5.9 CVE-2019-11340 < 1.0.2 1.0.2
  3. Średnia · 7.7 CVE-2021-29431 < 2.3.0 2.3.0
  4. Wysoka · 7.5 CVE-2021-29430 < 2.3.0 2.3.0
  5. Średnia · 4.3 CVE-2021-29433 < 2.3.0 2.3.0
  6. Wysoka · 7.5 CVE-2019-11842 < 1.0.3 1.0.3

Dowiedz się, które podatności dotyczą Twojej aplikacji

Po podłączeniu integracji DockRay i włączeniu raportowania oprogramowania DockRay porównuje zgłoszone wersje komponentów ze znanymi podatnościami i powiadamia o potwierdzonych dopasowaniach. Zakres zależy od obsługiwanej technologii i dostępnych biuletynów.

Podłącz swoją aplikację
Newsletter DockRay

Bezpieczeństwo aplikacji w Twojej skrzynce

Najważniejsze podatności, konkretne zalecenia i praktyczne wskazówki dla Twoich aplikacji. Wybierz technologie i śledź to, co ma znaczenie dla Twojego projektu.

  • Codzienne zestawienie nowych podatności, także krytycznych.
  • Powiadomienia o ważnych aktualizacjach.
  • Praktyczne porady o bezpieczeństwie i monitoringu aplikacji.

Pozostaw puste, aby otrzymywać informacje o wszystkich technologiach.

Zapis jest bezpłatny. Wypiszesz się jednym kliknięciem w wiadomości.