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 ...
    • File pre-processing errors with ClamAV

      Inhaltsverzeichnis 1 Applies to: 2 Symptoms: 3 Cause: 4 Solutions: 4.1 Check if minimum system requirements are met 4.2 Check if your distribution is up-to-date 4.3 Restart ClamAV service 4.3.1 ClamAV failed to start with "Can't connect to clamd ...
    • Server unreachable after restart or update Web UI Code 500

      Inhaltsverzeichnis 1 Applies to: 2 Symptom: 3 Cause: 4 Solution: Applies to: Cryptshare Appliance version 4.7.0 Symptom: If the Cryptshare Appliance does not respond after updating your system or not automatically loads its service after reboot, you ...
    • Freeing Disk Space on a Cryptshare Server

      Applies to: All versions of Cryptshare Server Purpose: The Cryptshare Server has insufficient disk space to operate properly or requires more disk space to store files. Solutions: Remove old Cryptshare Backups (Versions older than 3.12.x) By default, ...