CVE-2022-40289 Cross-site scripting in PHP Point of Sale

Critical 9.0 Published Updated

Authenticated attackers can inject malicious scripts via file upload/download, leading to privilege escalation or account compromise.

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-2022-40289?

CVE-2022-40289 is a critical cross-site scripting vulnerability in PHP Point of Sale, published on 31 Oct 2022. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

The application was vulnerable to an authenticated Stored Cross-Site Scripting (XSS) in the upload and download functionality, which could be leveraged to escalate privileges or compromise any accounts they can coerce into observing the targeted files.

Weakness: CWE-79

Which versions are affected by CVE-2022-40289?

It affects 1 product.

Products include Phppointofsale Php Point of Sale.

How do I fix CVE-2022-40289?

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

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

Sources

Also known as GHSA-wh4g-hrhv-mg7w.

Is CVE-2022-40289 in your software?

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

Check your SBOMs for free