CVE-2021-41100: Account takeover when having only access to a user's short lived token in wire-server

Published Oct 4, 2021
·
Updated

Wire-server is the backing server for the open source wire secure messaging application. In affected versions it is possible to trigger email address change of a user with only the short-lived session token in the Authorization header. As the short-lived token is only meant as means of authentication by the client for less critical requests to the backend, the ability to change the email address with a short-lived token constitutes a privilege escalation attack. Since the attacker can change the password after setting the email address to one that they control, changing the email address can result in an account takeover by the attacker. Short-lived tokens can be requested from the backend by Wire clients using the long lived tokens, after which the long lived tokens can be stored securely, for example on the devices key chain. The short lived tokens can then be used to authenticate the client towards the backend for frequently performed actions such as sending and receiving messages. While short-lived tokens should not be available to an attacker per-se, they are used more often and in the shape of an HTTP header, increasing the risk of exposure to an attacker relative to the long-lived tokens, which are stored and transmitted in cookies. If you are running an on-prem instance and provision all users with SCIM, you are not affected by this issue (changing email is blocked for SCIM users). SAML single-sign-on is unaffected by this issue, and behaves identically before and after this update. The reason is that the email address used as SAML NameID is stored in a different location in the databse from the one used to contact the user outside wire. Version 2021-08-16 and later provide a new end-point that requires both the long-lived client cookie and Authorization header. The old end-point has been removed. If you are running an on-prem instance with at least some of the users invited or provisioned via SAML SSO and you cannot update then you can block /self/email on nginz (or in any other proxies or firewalls you may have set up). You don't need to discriminate by verb: /self/email only accepts PUT and DELETE, and DELETE is almost never used.

Affected Software

1 affected component
Wire Wire-server<2021-08-16

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade wire-server to a version that resolves this vulnerability.

    Fixed in 2021-08-16
  2. Configuration

    If you cannot update on-prem instances, block the `/self/email` endpoint (it only accepts `PUT` and `DELETE`; `DELETE` is almost never used) on nginz or on any other proxy/firewall you may have set up.

    wire-server nginz proxy (or other proxy/firewall in front of wire-server) block /self/email endpoint = deny

Event History

Oct 4, 2021
CVE Published
via MITRE·06:25 PM
Data Sourced
via MITRE·06:25 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:15 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2021-41100?

The severity of CVE-2021-41100 is critical.

2

What is the affected software of CVE-2021-41100?

The affected software of CVE-2021-41100 is Wire-server.

3

How can CVE-2021-41100 be exploited?

CVE-2021-41100 can be exploited by using the short-lived session token in the `Authorization` header to trigger an email address change of a user.

4

Is there a fix available for CVE-2021-41100?

Yes, a fix is available for CVE-2021-41100. It is recommended to update to a version released after August 16, 2021.

5

Where can I find more information about CVE-2021-41100?

More information about CVE-2021-41100 can be found at this link: [https://github.com/wireapp/wire-server/security/advisories/GHSA-9rm2-w6pq-333m](https://github.com/wireapp/wire-server/security/advisories/GHSA-9rm2-w6pq-333m)

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203