CVE-2023-5307 Photos and Files Contest Gallery – Contact Form < 21.2.8.1 - Unauthenticated Stored XSS via HTTP Headers

Medium 6.1 Published Updated

Unauthenticated attackers can inject malicious scripts via HTTP headers in the Photos and Files Contest Gallery WordPress plugin, potentially compromising user sessions.

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-2023-5307?

CVE-2023-5307 is a medium-severity cross-site scripting vulnerability in Unknown Photos and Files Contest Gallery, published on 31 Oct 2023. 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 Photos and Files Contest Gallery WordPress plugin before 21.2.8.1 does not sanitise and escape some parameters, which could allow unauthenticated users to perform Cross-Site Scripting attacks via certain headers.

Weakness: CWE-79

Which versions are affected by CVE-2023-5307?

It affects 1 product.

Products include Contest-Gallery Contest Gallery.

How do I fix CVE-2023-5307?

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

It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-5307 exists.

Sources

Also known as GHSA-hmf3-8cx7-g4jw.

Is CVE-2023-5307 in your software?

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

Check your SBOMs for free