Skip to content
RCE Write-up Intermediate

Vulnerability Introduction

The NVIDIA GeForce Experience local web server had an endpoint that executed arbitrary OS commands from request body text, and its CORS policy allowed any origin. An attacker could trick a victim into uploading a token file via key presses, then send a command to execute code.

rhinosecuritylabs.com

Published on rhinosecuritylabs.com

This post is a walkthrough of the vulnerability that we discovered that allows execution of arbitrary commands on a system with the NVIDIA GeForce Experience (GFE) prior to version 3.19 installed – CVE-2019-5678. The exploit can be achieved by convincing a victim to visit a crafted web site and make a few key presses.

David Yesland, on rhinosecuritylabs.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 local API endpoint passed user-supplied request body text directly to a command execution function, and the server allowed cross-origin requests from any website.

Impact

An attacker could execute arbitrary commands on the victim's system, but the exploit required the victim to perform specific key presses and only worked in Chrome without additional interaction.

What the attacker needed

GFE prior to 3.19 installed; Victim visits attacker's site; Victim presses CTRL+V+Enter in Chrome

The fix

The command injection was fixed in GFE 3.19 by removing the vulnerable endpoint, but the open CORS policy and static token file location remain.

How it was found

  1. The attacker's page uses a key press to copy the token file path to the clipboard and opens a file input.
  2. The victim pastes the path into the file input.
  3. The victim presses Enter to upload the token file, letting the page read its contents.
  4. The page sends an XHR request to the GFE API with the token to execute a command.

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.

A local helper program on the computer ran a small web service that accepted commands. The service checked for a secret token, but the token was stored in a predictable file. A malicious website could make the browser upload that file and then send a command to the service, letting the attacker run programs on the computer.

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.