CVE-2019-12513 Stored XSS via DHCP Discover Request Hostname

Medium 6.1 Published Updated

An attacker can execute stored XSS on NETGEAR Nighthawk routers by sending a malicious DHCP hostname, allowing script execution when logs are viewed.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2019-12513?

CVE-2019-12513 is a medium-severity cross-site scripting vulnerability in n/a, published on 24 Feb 2020. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

In NETGEAR Nighthawk X10-R900 prior to 1.0.4.24, by sending a DHCP discover request containing a malicious hostname field, an attacker may execute stored XSS attacks against this device. When the malicious DHCP request is received, the device will generate a log entry containing the malicious hostname. This log entry may then be viewed at Advanced settings->Administration->Logs to trigger the exploit. Although this value is inserted into a textarea tag, converted to all-caps, and limited in length, attacks are still possible.

Weakness: CWE-79

Which versions are affected by CVE-2019-12513?

It affects 1 product.

Products include Netgear Nighthawk X10-R9000 Firmware.

How do I fix CVE-2019-12513?

No fix has been published for CVE-2019-12513 yet. Limit exposure of the affected software until one is available.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2019-12513 being exploited?

There is no known exploitation of CVE-2019-12513 in the wild and no public exploit code.

Sources

Also known as GHSA-cr2m-4x82-8gw2.

Is CVE-2019-12513 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free