Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLTM1ZzQtcXgzYy12amh4
Automatic room upgrade handling can be used maliciously to bridge a room non-consentually
Impact
If a bridge has room upgrade handling turned on in the configuration (the roomUpgradeOpts
key when instantiating a new Bridge
instance.), any m.room.tombstone
event it encounters will be used to unbridge the current room and bridge into the target room. However, the target room m.room.create
event is not checked to verify if the predecessor
field contains the previous room. This means that any mailcious admin of a bridged room can repoint the traffic to a different room without the new room being aware.
Patches
Versions 2.6.1 and greater are patched.
Workarounds
Disabling the automatic room upgrade handling can be done by removing the roomUpgradeOpts
key from the Bridge
class options.
References
The issue is patched by https://github.com/matrix-org/matrix-appservice-bridge/pull/330
For more information]
If you have any questions or comments about this advisory, email us at [email protected].
Permalink: https://github.com/advisories/GHSA-35g4-qx3c-vjhxJSON: https://advisories.ecosyste.ms/api/v1/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLTM1ZzQtcXgzYy12amh4
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: almost 3 years ago
Updated: over 1 year ago
CVSS Score: 6.5
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Identifiers: GHSA-35g4-qx3c-vjhx, CVE-2021-32659
References:
- https://github.com/matrix-org/matrix-appservice-bridge/security/advisories/GHSA-35g4-qx3c-vjhx
- https://nvd.nist.gov/vuln/detail/CVE-2021-32659
- https://github.com/matrix-org/matrix-appservice-bridge/pull/330
- https://github.com/matrix-org/matrix-appservice-bridge/commit/b69e745584a34fcfd858df33e4631e420da07b9f
- https://github.com/matrix-org/matrix-appservice-bridge/releases/tag/2.6.1
- https://github.com/advisories/GHSA-35g4-qx3c-vjhx
Blast Radius: 17.5
Affected Packages
npm:matrix-appservice-bridge
Dependent packages: 9Dependent repositories: 488
Downloads: 2,219 last month
Affected Version Ranges: < 2.6.1
Fixed in: 2.6.1
All affected versions: 0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 0.3.0, 0.3.1, 0.3.2, 0.3.3, 0.3.4, 0.3.5, 0.3.6, 0.3.7, 1.0.0, 1.0.1, 1.1.1, 1.2.0, 1.2.1, 1.3.0, 1.3.1, 1.3.2, 1.3.3, 1.3.4, 1.3.5, 1.3.6, 1.3.7, 1.4.0, 1.6.0, 1.6.1, 1.7.0, 1.8.0, 1.8.1, 1.9.0, 1.9.1, 1.9.2, 1.10.0, 1.10.1, 1.10.2, 1.10.3, 1.11.0, 1.11.1, 1.12.0, 1.12.1, 1.12.2, 1.13.0, 1.13.1, 1.13.2, 2.0.0, 2.1.0, 2.2.0, 2.3.0, 2.3.1, 2.4.0, 2.4.1, 2.5.0, 2.6.0
All unaffected versions: 2.6.1, 2.7.0, 3.0.0, 3.1.0, 3.1.1, 3.1.2, 3.2.0, 4.0.0, 4.0.1, 4.0.2, 5.0.0, 5.1.0, 6.0.0, 7.0.0, 8.0.0, 8.1.0, 8.1.1, 8.1.2, 9.0.0, 9.0.1, 10.0.0, 10.1.0