PT-2020-16533

CVE-2020-26891

·

Published

2020-10-13

·

Updated

2024-06-15

Description by

CVSS 3.1
6.1
Medium
MetricsAV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Name of the Vulnerable Software and Affected Versions Matrix Synapse versions prior to 1.21.0
Description The issue is due to unsafe interpolation of the session GET parameter in the AuthRestServlet, allowing a remote attacker to execute a cross-site scripting (XSS) attack. This can be done by supplying a victim user with a malicious URL to the "/ matrix/client/r0/auth//fallback/web" or "/ matrix/client/unstable/auth//fallback/web" Synapse endpoints. 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.
Recommendations For Matrix Synapse versions prior to 1.21.0, update to version 1.21.0 or later to fix the issue. As a temporary workaround, consider blocking the affected endpoints at a reverse proxy:
  • "/ matrix/client/r0/auth/.*/fallback/web"
  • "/ matrix/client/unstable/auth/.*/fallback/web" This workaround is applicable if the homeserver is not configured to use reCAPTCHA, consent (terms of service), or single sign-on.
Exploitability
Fix
Impacts
Researchers
Vendors
Affected products
Related identifiers
GHSA-3X8C-FMPC-5RMQ
ALT-PU-2020-3036
ALT-PU-2020-3063
OPENSUSE-SU-2024:11041-1
PYSEC-2020-238
Found an issue in the description? Have something to add? Feel free to write us 👾