CVE-2023-1796 SourceCodester Employee Payslip Generator Create News cross site scripting
Attacker can inject malicious scripts via the news creation feature, potentially stealing user cookies or session data.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2023-1796?
CVE-2023-1796 is a low-severity cross-site scripting vulnerability in SourceCodester Employee Payslip Generator, published on 2 Apr 2023. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.
Official description
A vulnerability classified as problematic has been found in SourceCodester Employee Payslip Generator 1.0. Affected is an unknown function of the file /classes/Master.php?f=save_position of the component Create News Handler. The manipulation of the argument name with the input <script>alert(document.cookie)</script> leads to cross site scripting. It is possible to launch the attack remotely. The exploit has been disclosed to the public and may be used. The identifier of this vulnerability is VDB-224748.
Weakness: CWE-79
Which versions are affected by CVE-2023-1796?
It affects 1 product.
Products include Employee Payslip Generator System Project Employee Payslip Generator System.
How do I fix CVE-2023-1796?
No fix has been published for CVE-2023-1796 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-1796 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-1796 exists.
Other vulnerabilities in SourceCodester Employee Payslip Generator
Sources
Also known as GHSA-3277-qrh4-5w22.