CVE-2019-12512 Stored XSS via X-Forwarded-For Header During Incorrect Login

Medium 6.1 Published Updated

An attacker can inject malicious scripts into router logs via the X-Forwarded-For header, leading to stored XSS when administrators view the logs.

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-12512?

CVE-2019-12512 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, an attacker may execute stored XSS attacks against this device by supplying a malicious X-Forwarded-For header while performing an incorrect login attempt. The value supplied by this header will be inserted into administrative logs, found at Advanced settings->Administration->Logs, and may trigger when the page is viewed. Although this value is inserted into a textarea tag, the attack simply needs to supply a closing textarea tag.

Weakness: CWE-79

Which versions are affected by CVE-2019-12512?

It affects 1 product.

Products include Netgear Nighthawk X10-R9000 Firmware.

How do I fix CVE-2019-12512?

No fix has been published for CVE-2019-12512 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-12512 being exploited?

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

Sources

Also known as GHSA-wmp4-2x9h-3x8f.

Is CVE-2019-12512 in your software?

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

Check your SBOMs for free