CVE-2021-21332Medium· 6.9▾ SunlitCross-site scripting (XSS) vulnerability in the password reset endpoint
▾ Sunlit zone — Low / medium · no exploitation signal
impact 38 · likelihood 0.2 · exploitation 0
Need a working PoC? Pro members can cast a request and our team develops one — it lands right here.
Exploit-prediction probability, daily snapshots since Jul 8.
Disclosure to exploitation, from the record and what we observed since indexing it.
Disclosed via OSV
Last analysed / modified upstream
1.2%
The password reset endpoint served via Synapse was vulnerable to cross-site scripting (XSS) attacks. The impact depends on the configuration of the domain that Synapse is deployed on, but may allow access to cookies and other browser data, CSRF vulnerabilities, and access to other resources served on the same domain or parent domains.
This is fixed in #9200.
Depending on the needs and configuration of the homeserver a few options are available:
Password resets can be disabled by delegating email to a third-party service (via the account_threepid_delegates.email setting) or disabling email (by not configuring the email setting).
If the homeserver is not configured to use passwords (via the password_config.enabled setting) then the affected endpoint can be blocked at a reverse proxy:
/_synapse/client/password_reset/email/submit_tokenThe password_reset_confirmation.html template can be overridden with a custom template that manually escapes the variables using JInja2's escape filter. See the email.template_dir setting.
matrix-synapse < 1.27.0Upgrade to a patched release:
matrix-synapse 1.27.0Connected by shared product, vendor, weakness, or advisory.
CVE-2021-21333Medium· 6.1HTML injection in email and account expiry notifications
CVE-2021-21274Medium· 4.3Denial of service attack via .well-known lookups
CVE-2021-29471Low· 3.7Denial of service attack via push rule patterns in matrix-synapse
CVE-2021-21394Medium· 5.3Denial of service (via resource exhaustion) due to improper input validation on third-party identifier endpoints
CVE-2021-21273Low· 3.1Open redirects on some federation and push requests
CVE-2021-21393Medium· 5.3Denial of service (via resource exhaustion) due to improper input validation on groups/communities endpoints