Skip to content
RCE Advisory Advanced CVE-2024-5297

(0Day) D-Link D-View executeWmicCmd Command Injection Remote Code Execution Vulnerability

The executeWmicCmd method in D-Link D-View fails to validate user-supplied input before using it in a system call, allowing an authenticated attacker to execute arbitrary commands as root. Authentication can be bypassed, so remote attackers may exploit this to run code on affected installations.

06fe5fd2bc53027c4a3b7e395af0b850e7b8a044 Follow

Originally disclosed on Zero Day Initiative

High 8.8 View original

This vulnerability allows remote attackers to execute arbitrary code on affected installations of D-Link D-View. Although authentication is required to exploit this vulnerability, the existing authentication mechanism can be bypassed.

06fe5fd2bc53027c4a3b7e395af0b850e7b8a044, on the Zero Day Initiative

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

Likely the executeWmicCmd method passes user-controlled input directly to a system shell without sanitisation or validation.

Impact

An attacker could execute arbitrary code with root privileges on the affected D-Link D-View installation, though authentication is required and the existing authentication mechanism can be bypassed.

What the attacker needed

Authentication bypass; network access to D-View

The fix

The vendor released software update v2.0.3.88, which should address 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.

This is a command injection bug. A part of the software takes a text string from a user and passes it to the operating system to run as a command, without checking whether the string contains extra commands. An attacker who can reach that feature can sneak in their own commands, which then run with the highest privileges (root).

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 06fe5fd2bc53027c4a3b7e395af0b850e7b8a044

View all

170 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.