CVE-2017-9387 Cross-site scripting in n/a

Medium 5.4 Published Updated

Stored XSS in Vera devices allows attackers to execute malicious scripts in user browsers via log file injection.

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

What is CVE-2017-9387?

CVE-2017-9387 is a medium-severity cross-site scripting vulnerability in n/a, published on 17 Jun 2019. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

An issue was discovered on Vera VeraEdge 1.7.19 and Veralite 1.7.481 devices. The device provides a shell script called relay.sh which is used for creating new SSH relays for the device so that the device connects to Vera servers. All the parameters passed in this specific script are logged to a log file called log.relay in the /tmp folder. The user can also read all the log files from the device using a script called log.sh. However, when the script loads the log files it displays them with content-type text/html and passes all the logs through the ansi2html binary which converts all the character text including HTML meta-characters correctly to be displayed in the browser. This allows an attacker to use the log files as a storing mechanism for the XSS payload and thus whenever a user navigates to that log.sh script, it enables the XSS payload and allows an attacker to execute his malicious payload on the user's browser.

Weakness: CWE-79

Which versions are affected by CVE-2017-9387?

It affects 2 products.

Products include Getvera Veraedge Firmware, Getvera Veralite Firmware.

How do I fix CVE-2017-9387?

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

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

Sources

Also known as GHSA-qmjg-23p5-mqr3.

Is CVE-2017-9387 in your software?

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

Check your SBOMs for free