CVE-2023-1042 SourceCodester Online Pet Shop We App update_status.php cross site scripting

Low 3.5 Published Updated

Attacker can inject malicious scripts via the oid parameter in update_status.php, potentially compromising user sessions.

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

CVE-2023-1042 is a low-severity cross-site scripting vulnerability in SourceCodester Online Pet Shop We App, published on 26 Feb 2023. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

A vulnerability has been found in SourceCodester Online Pet Shop We App 1.0 and classified as problematic. This vulnerability affects unknown code of the file /pet_shop/admin/orders/update_status.php. The manipulation of the argument oid with the input 1"><script>alert(1111)</script> leads to cross site scripting. The attack can be initiated remotely. The exploit has been disclosed to the public and may be used. The identifier of this vulnerability is VDB-221800.

Weakness: CWE-79

Which versions are affected by CVE-2023-1042?

It affects 1 product.

Products include Online Pet Shop We App Project Online Pet Shop We App.

How do I fix CVE-2023-1042?

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

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

Sources

Also known as GHSA-w7m3-8344-6w5h.

Is CVE-2023-1042 in your software?

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

Check your SBOMs for free