Skip to content
Crypto Write-up Intermediate

Remote Command Execution on RemotePC for Windows

The RemotePC Windows client did not properly validate SSL certificates, allowing a man-in-the-middle attacker to intercept traffic. This enabled credential capture, remote desktop observation, and hijacking of the auto-update mechanism to execute arbitrary code.

gremwell.com

Published on gremwell.com

During an audit we executed in 2019, we had to test a deployment where a third party company had to remotely connect to special purpose computers to perform maintenance. At the time, they had chosen a software called RemotePC to remotely login into these special purpose computers rather than relying on RDP.

The author, on gremwell.com

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 client accepted any SSL certificate without validating it against trusted authorities or hostnames.

Impact

An attacker could capture credentials, observe the remote desktop, inject keystrokes and mouse events, and hijack the auto-update to execute arbitrary code, leading to remote command execution.

What the attacker needed

Man-in-the-middle position; victim uses vulnerable RemotePC client

The fix

The vulnerability was fixed in version 7.6.26-28/04/20.

How it was found

  1. Intercept traffic from the RemotePC client to remotepc.com hosts and redirect it to a test server.
  2. Run qsslcaudit with various fake certificates to see if the client accepts them.
  3. Observe that the client accepts all fake certificates and establishes connections.
  4. Intercept the update check response and modify the version number to a higher value.
  5. When the user clicks the update link, download the legitimate installer and backdoor it with Metasploit.
  6. Serve the backdoored installer from a rogue server to obtain a reverse shell.

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.

The RemotePC program that lets you control another computer did not check that it was talking to the real server. So an attacker on the same network could pretend to be the server, see your password, watch your screen, and even send you a fake update that installs malware.

What is Crypto?

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.

Similar reports

View all

Same bug class and techniques, clearest first.

Cryptographic weaknesses

The lesson behind this report.

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.