Skip to content
RCE Advisory Intermediate CVE-2024-28892

GoCast name parameter OS command injection vulnerability

The name parameter of an app in GoCast is used to build a shell command without sanitisation, allowing an unauthenticated attacker to execute arbitrary OS commands via an HTTP request. The injection is limited to 12 characters due to the Linux interface label length limit.

Matt Street Follow

Originally disclosed on Cisco Talos

Critical 9.8 View original

An OS command injection vulnerability exists in the name parameter of GoCast 1.1.3. A specially crafted HTTP request can lead to arbitrary command execution.

Matt Street and Edwin Molenaar, on Cisco Talos

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

Root cause

The application constructs a shell command using user-controlled input (the app name) without proper escaping or sanitisation, and then executes it.

Impact

An unauthenticated attacker could execute arbitrary commands on the host, but the injected string is limited to 12 characters, which may restrict the commands that can be run.

What the attacker needed

HTTP API enabled (default); no authentication required

The fix

The vendor planned a patch; the report suggests surrounding the label argument with single quotes and removing single quotes from the label string.

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.

GoCast is a tool that announces network routes. It has a web API that lets you create apps by sending a name. That name is put directly into a system command that configures a network interface. Because the name is not cleaned, an attacker can include special characters that make the system run extra commands. No login is needed to reach the API.

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 Matt Street

View all

1 more disclosed report, best first.

More from Cisco Talos

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.