CVE-2018-6940 Cross-site scripting in n/a

Medium 6.1 Published Updated

Cross-site scripting in NAT32 HTTPD allows remote code execution when combined with CSRF, affecting network device administrators.

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-2018-6940?

CVE-2018-6940 is a medium-severity cross-site scripting vulnerability in n/a, published on 20 Feb 2018. 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

A /shell?cmd= XSS issue exists in the HTTPD component of NAT32 v2.2 Build 22284 devices that can be exploited for Remote Code Execution in conjunction with CSRF.

Weakness: CWE-79, CWE-352

Which versions are affected by CVE-2018-6940?

It affects 1 product.

Products include Nat32 Nat32.

How do I fix CVE-2018-6940?

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

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

Public exploit code: 1 Exploit-DB entry.

Sources

Also known as GHSA-3h94-p827-w44r.

Is CVE-2018-6940 in your software?

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

Check your SBOMs for free