################################################################################ # # COMPASS SECURITY ADVISORY # https://www.compass-security.com/research/advisories/ # ################################################################################ # # Product: totemomail Encryption Gateway # Vendor: totemo AG # CSNC ID: CSNC-2018-003 # CVE ID: CVE-2018-6563 # Subject: Cross-Site Request Forgery # Risk: High # Effect: Remotely exploitable # Author: Nicolas Heiniger # Date: 14.05.2018 # ################################################################################ Introduction: ------------- The totemomail Encryption Gateway protects email communication with any external partner by encryption. It doesn't matter whether you exchange emails with technically savvy communication partners or with those who have neither an appropriate infrastructure nor the necessary know-how. The encryption gateway also makes it easy to securely send very large attachments.[1] Compass Security discovered a vulnerability in the webmail part of the solution. It is possible to predict all parameters that are required to execute actions on the webmail interface. This allows an attacker to perform Cross-Site Request Forgery (CSRF) attacks. The attacker needs to craft a malicious web page that will automatically send a request to the Encryption Gateway. If the user is logged in, the request will be executed by the Encryption Gateway on behalf of the logged in user. This could be used to change a user's settings, send emails or change contact informations. Affected: --------- Vulnerable: * 6.0.0_Build_371 No other version was tested but is is likely that older versions are affected as well. Technical Description --------------------- In the webmail, no anti-CSRF token is used. Although the viewState makes the attack more complex, it is possible to entirely predict the requests and thus, perform CSRF attacks. The requirement here is to perform the attack as a replay of a full user interaction. One has to replay every request to make sure that the viewState is updated on the server side and corresponds to the action that is performed by the malicious page. Such a malicious page is presented below, it will automatically send 3 requests that will change the user's detail: ========== ========== Workaround / Fix: ----------------- Install an up to date version of totemomail Encryption Gateway. As a developer, the requests that execute actions must include an unpredictable element. This is usually done by using an anti-CSRF token. This token is a random value tied to the user's session and must be verified by the server before executing any action on behalf of the user. Timeline: --------- 2018-05-14: Coordinated public disclosure date 2018-03-XX: Release of fixed version 6.0_b511 2018-02-13: Initial vendor response 2018-02-09: Initial vendor notification 2018-02-02: Assigned CVE-2018-6563 2018-01-11: Discovery by Nicolas Heiniger References: ----------- [1] https://www.totemo.com/en/solutions/email-encryption/external-encryption