Skip to content
RCE Advisory Intermediate CVE-2019-9197

Unity com.unity3d.kharma Protocol Command Injection Remote Code Execution Vulnerability

The handler for Unity Editor's com.unity3d.kharma protocol built a system call from a user-supplied string, so a crafted URI could run arbitrary commands. An attacker could therefore execute code with the privileges of the current user if the target opened a malicious page or file.

rgod of 9sg Security Team - [email protected] Follow

Originally disclosed on Zero Day Initiative

High 8.8 View original

This vulnerability allows remote attackers to execute arbitrary code on vulnerable installations of Unity Editor. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file.

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 report has not been written yet. The Original tab links to the source.

How it worked

Impact

An attacker could execute arbitrary code in the context of the current user, but only if the target visits a malicious page or opens a malicious file.

What the attacker needed

Unity Editor installed; victim opens a malicious page or file

The fix

Unity Technologies issued an update to correct the vulnerability.

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 report has not been written yet. The Original tab links to the source.

A custom URL scheme is a link type that opens a specific program, much like a mailto link opens your email app. Here the Unity Editor program took part of the link and passed it to the operating system as a command without checking it, so a link could make the computer run other commands. The attacker needs the victim to open a malicious page or file first.

What is RCE?

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

More by rgod of 9sg Security Team - [email protected]

View all

54 more disclosed reports, best first.

More from Zero Day Initiative

View all

The newest disclosed reports for this program.

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.