Skip to content
RCE Write-up Advanced

GoSign Desktop RCE flaws affecting users in Italy

GoSign Desktop disables TLS certificate verification when a proxy is configured, and its update mechanism relies on an unsigned manifest whose only integrity check is a SHA-256 hash supplied by the same server. A network attacker can therefore present a self-signed certificate, serve a tampered manifest with a matching hash, and have the client install a malicious update, leading to code execution.

ush.it

Published on ush.it

Pasquale "sid" Fiorillo discovered a critical vulnerability in GoSign Desktop <= 2.4.0 that allows an attacker to execute arbitrary code on the system through insecure updates and a TLS bypass. The exploit leverages the deactivation of TLS certificate verification when a proxy is configured, together with an update…

The author, on ush.it

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

The application calls the OpenSSL verification function with verification disabled whenever a proxy is configured, and the update manifest is not digitally signed, so authenticity depends entirely on the TLS layer that is not being checked.

Impact

A network attacker could install malicious software with the privileges of the user running GoSign Desktop (or root on Linux), and could intercept OAuth secrets such as client secrets and tokens; version 2.4.1 fixed the update and privilege-escalation issues but the missing TLS validation remains unaddressed.

What the attacker needed

GoSign Desktop <= 2.4.0; proxy configured in the app; attacker on the network path

The fix

Version 2.4.1 added digital signature verification of the update manifest, but TLS certificate validation when a proxy is configured should also be restored.

How it was found

  1. Configure GoSign Desktop to use a proxy server so the TLS verification bypass is active.
  2. Position yourself on the network path and respond to the client's TLS connection with a self-signed certificate.
  3. Serve a tampered update manifest that points to a malicious package and includes that package's SHA-256 hash.
  4. The client downloads and installs the package, executing the attacker's code.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

When your app talks to a server over HTTPS, it normally checks a certificate to confirm it is really talking to the right server. This app turns that check off whenever a proxy is set, so anyone who can sit on the network path can pretend to be the update server. Because the update file list is not digitally signed, the attacker can hand over both a malicious installer and a matching fingerprint, and the app will run it.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.