CVE-2022-1226 Cross-site Scripting (XSS) in phpipam/phpipam
Attackers can execute arbitrary JavaScript in victim browsers via crafted spreadsheet uploads in phpIPAM, leading to cookie theft and account takeover.
- 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-2022-1226?
CVE-2022-1226 is a low-severity cross-site scripting vulnerability in Phpipam Phpipam, published on 15 Nov 2024. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.
Official description
A Cross-Site Scripting (XSS) vulnerability in phpipam/phpipam versions prior to 1.4.7 allows attackers to execute arbitrary JavaScript code in the browser of a victim. This vulnerability affects the import Data set feature via a spreadsheet file upload. The affected endpoints include import-vlan-preview.php, import-subnets-preview.php, import-vrf-preview.php, import-ipaddr-preview.php, import-devtype-preview.php, import-devices-preview.php, and import-l2dom-preview.php. The vulnerability can be exploited by uploading a specially crafted spreadsheet file containing malicious JavaScript payloads, which are then executed in the context of the victim's browser. This can lead to defacement of websites, execution of malicious JavaScript code, stealing of user cookies, and unauthorized access to user accounts.
Weakness: CWE-79
Which versions are affected by CVE-2022-1226?
It affects 1 product.
Products include Phpipam Phpipam.
How do I fix CVE-2022-1226?
No fix has been published for CVE-2022-1226 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-1226 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-1226 exists.
Other vulnerabilities in Phpipam Phpipam
Sources
Also known as GHSA-fpg3-c7pp-9cgh.