CVE-2020-28707 Cross-site scripting in n/a

Medium 6.1 Published Updated

Cross-site scripting vulnerability in Stockdio Historical Chart plugin allows attackers to execute arbitrary JavaScript via unvalidated postMessage events.

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-2020-28707?

CVE-2020-28707 is a medium-severity cross-site scripting vulnerability in n/a, published on 19 Jan 2021. 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

The Stockdio Historical Chart plugin before 2.8.1 for WordPress is affected by Cross Site Scripting (XSS) via stockdio_chart_historical-wp.js in wp-content/plugins/stockdio-historical-chart/assets/ because the origin of a postMessage() event is not validated. The stockdio_eventer function listens for any postMessage event. After a message event is sent to the application, this function sets the "e" variable as the event and checks that the types of the data and data.method are not undefined (empty) before proceeding to eval the data.method received from the postMessage. However, on a different website. JavaScript code can call window.open for the vulnerable WordPress instance and do a postMessage(msg,'*') for that object.

Weakness: CWE-79

Which versions are affected by CVE-2020-28707?

It affects 1 product.

Products include Stockdio Stockdio Historical Chart.

How do I fix CVE-2020-28707?

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

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

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-8rwm-vgc4-5hgx.

Is CVE-2020-28707 in your software?

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

Check your SBOMs for free