
Cloud Vulnerability DB
A community-led vulnerabilities database
The caddy-security plugin version 1.1.20 for Caddy web server contains a reflected Cross-Site Scripting (XSS) vulnerability. The vulnerability allows attackers to execute arbitrary JavaScript code through a GET request containing an XSS payload in URLs that begin with either '/admin' or '/settings/mfa/delete/' substrings (Trail of Bits, NVD).
The vulnerability occurs when the application includes untrusted data in the HTML response sent to the user's browser. When a GET request is made to a URL containing malicious JavaScript code and starting with specific path patterns (/admin or /settings/mfa/delete/), the payload gets reflected in the response without proper sanitization. The vulnerability has been assigned a CVSS v3.1 Base Score of 6.1 (Medium) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N (NVD).
An attacker can exploit this vulnerability to execute arbitrary JavaScript code within the target user's browser context. This could potentially lead to further attacks such as session hijacking, data theft, or performing unauthorized actions on behalf of the victim (Trail of Bits).
The recommended mitigation is to treat all string values as potentially untrustworthy and properly escape them using the safehtml/template package that generates output-safe HTML. Additional security measures include implementing Content Security Policy (CSP) headers to control resource loading and limit XSS impact, extending unit tests with XSS payloads, and using security scanning tools in testing environments (Trail of Bits).
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."