
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2024-4216 is a Cross-Site Scripting (XSS) vulnerability affecting pgAdmin versions up to and including 8.5. The vulnerability was discovered in the /settings/store API response JSON payload, which allows attackers to execute malicious scripts at the client end. The vulnerability was disclosed on May 2, 2024, and has been assigned a CVSS v3.1 base score of 7.4 (High) (NVD, Security Online).
The vulnerability exists in the /settings/store API endpoint of pgAdmin. The exploitation involves intercepting POST requests to /settings/store, which is typically called during operations like resizing the left menu bar. Attackers can modify the request body to include malicious JavaScript code in the format '... "children": [{"id":"+3'-alert('XSS')-'", ...}]', which gets executed when the pgAdmin homepage is reloaded (GitHub Issue, Cybersecurity News).
When successfully exploited, this vulnerability allows attackers to execute arbitrary JavaScript code in the victim's browser context. This could potentially lead to the theft of sensitive cookies and other client-side data (Security Online).
The vulnerability can be exploited by using a man-in-the-middle proxy like mitmproxy to intercept and modify POST requests to the /settings/store endpoint. The attack requires the ability to intercept and modify network traffic between the client and server (Cybersecurity News).
The vulnerability has been fixed in pgAdmin version 8.6. Users are strongly recommended to upgrade to this version to prevent exploitation. The fix has been included in various distribution packages, including Fedora's pgadmin4-8.6-1.fc40 update (Fedora Update).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."