The "Next" button does not respond when trying to perform a verification

The "Next" button does not respond when trying to perform a verification

Applies to:

Cryptshare Server from version 4.0.0.0

Symptom:

When the user tries to perform a verification on the Cryptshare user interface, the "Next" button does not respond (but the unresponsiveness can also occur at other places). Additionally, the browser console logs lots of errors with the message "Origin does not correspond to request".

45515158.png

14516633.png

Cause:

This issue is most likely caused by a misconfigured reverse proxy. Beginning with Cryptshare Version 4, requests to the server are checked for the "Origin" header, to prevent CSRF attacks. If the "Origin" header is missing, or it differs from the "Host" header and/or the requested URL, the server responds with status code 400 (bad request). These headers are set by the browser and sent to the Cryptshare Server.

If a reverse proxy is used, both "Host" and "Origin" headers will most likely contain the hostname, port (if any) and scheme of the reverse proxy. If these headers are not adapted accordingly, the Cryptshare Server will detect a mismatch with the requested URL as described above, because the URL targets the Cryptshare Server, not the reverse proxy.

Solution:

To make sure that the Cryptshare Server receives requests with matching URL, "Host" and "Origin" header, both headers need to be adapted/set by the reverse proxy. Depending on the product, this may happen for the "Host" header automatically. Let's say the hostname of the Cryptshare Server would be "cryptshare-internal", the headers would need to be set as follows:

Host: cryptshare-internal

Origin: http://cryptshare-internal If the port number of the Cryptshare Server differs from the default, it also has to be specified in both servers. For example:

Host: cryptshare-internal:8888

Origin: http://cryptshare-internal:8888

Example for Apache Reverse Proxy changes

if { ([string tolower [HTTP::header Referer]] starts_with https://cryptshare.yourdomain.com)}{
# Replace the host header value with newhost.example.com
HTTP::header replace Referer http://cryptshare.yourdomain.com[HTTP::uri]
}
    • Related Articles

    • Error "Access denied" when trying to transfer data

      Applies to: All versions of Cryptshare for Notes Symptom: The error message "Access denied" appears when trying to perform a transfer Solution: Check if the following points set up correctly: The transfer directory does not exist or the access rights ...
    • Error codes in Cryptshare for Notes

      Cryptshare for Notes Error Codes The following table lists the error codes and generic message texts that are returned by the Cryptshare Server or the Crpytshare for Notes application. 10 The requesting product is not licensed: xyz The Cryptshare ...
    • Https error messages occur

      Applies to: All versions of Cryptshare for Notes Symptom: Https error messages (such as error message 135) occur when trying to use CS4N. Cause: Https error messages (e.g.: 135) indicate that the Domino Server does not regard the SSL Certificate ...
    • Configuring Postfix mail server

      Applies to: All versions of Cryptshare Appliance Purpose: Configuring the local Postfix mail server (e.g. the address of the relay server or administrator email address) Solution: It is possible to change the Postfix configuration on the Cryptshare ...
    • Configuring network card

      Applies to: All versions of Cryptshare Appliance Purpose: This article describes how to change the network settings on Cryptshare appliances Sometimes it is nessecary to move or change the network settings (e.g. IP address, DNS address etc.) on the ...