github.com/greenpau/caddy-security
cpe:2.3:a:caddyserver:caddy:*:*:*:*:*:*:*
- < 1.1.32
A vulnerability exists in all versions of the Caddy security plugin developed by Greenpau, specifically in the package github.com/greenpau/caddy-security, prior to version 1.1.32. The issue stems from multiple parsing functions that fail to validate input values for nil before accessing elements, leading to panics due to index out-of-range errors. This improper validation can cause ambiguities and vulnerabilities in the web server's configuration, potentially disrupting normal operations.
Exploitation of this vulnerability causes a panic in the application, disrupting the parsing of the Caddyfile and potentially leading to a denial of service by causing the application to crash.
The vulnerability can be reproduced by parsing a Caddyfile that includes nil values in certain fields, such as 'credentials' or 'sso provider'. This can be done using a test function that creates a Caddyfile dispenser with the crafted input and then parses it, which will trigger the panic by accessing an out-of-range index.
Users are advised to upgrade the Caddy security plugin to version 1.1.32 or higher.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.