{ "id": "CVE-2024-21494", "sourceIdentifier": "report@snyk.io", "published": "2024-02-17T05:15:09.077", "lastModified": "2025-02-27T03:09:20.343", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [ { "lang": "en", "value": "All versions of the package github.com/greenpau/caddy-security are vulnerable to Authentication Bypass by Spoofing via the X-Forwarded-For header due to improper input sanitization. An attacker can spoof an IP address used in the user identity module (/whoami API endpoint). This could lead to unauthorized access if the system trusts this spoofed IP address." }, { "lang": "es", "value": "Todas las versiones del paquete github.com/greenpau/caddy-security son vulnerables a la omisi\u00f3n de autenticaci\u00f3n mediante suplantaci\u00f3n de identidad a trav\u00e9s del encabezado X-Forwarded-For debido a una sanitizaci\u00f3n de entrada inadecuada. Un atacante puede falsificar una direcci\u00f3n IP utilizada en el m\u00f3dulo de identidad del usuario (endpoint API/whoami). Esto podr\u00eda dar lugar a un acceso no autorizado si el sistema conf\u00eda en esta direcci\u00f3n IP falsificada." } ], "metrics": { "cvssMetricV31": [ { "source": "report@snyk.io", "type": "Secondary", "cvssData": { "version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N", "baseScore": 5.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE" }, "exploitabilityScore": 2.8, "impactScore": 2.5 }, { "source": "nvd@nist.gov", "type": "Primary", "cvssData": { "version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N", "baseScore": 5.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE" }, "exploitabilityScore": 2.8, "impactScore": 2.5 } ] }, "weaknesses": [ { "source": "report@snyk.io", "type": "Secondary", "description": [ { "lang": "en", "value": "CWE-290" } ] }, { "source": "nvd@nist.gov", "type": "Secondary", "description": [ { "lang": "en", "value": "CWE-290" } ] } ], "configurations": [ { "nodes": [ { "operator": "OR", "negate": false, "cpeMatch": [ { "vulnerable": true, "criteria": "cpe:2.3:a:greenpau:caddy-security:*:*:*:*:*:*:*:*", "matchCriteriaId": "DC59AC36-173D-4F24-9F39-50F992A248B8" } ] } ] } ], "references": [ { "url": "https://blog.trailofbits.com/2023/09/18/security-flaws-in-an-sso-plugin-for-caddy/", "source": "report@snyk.io", "tags": [ "Third Party Advisory" ] }, { "url": "https://github.com/greenpau/caddy-security/issues/266", "source": "report@snyk.io", "tags": [ "Issue Tracking" ] }, { "url": "https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGREENPAUCADDYSECURITY-6249859", "source": "report@snyk.io", "tags": [ "Third Party Advisory" ] }, { "url": "https://blog.trailofbits.com/2023/09/18/security-flaws-in-an-sso-plugin-for-caddy/", "source": "af854a3a-2127-422b-91ae-364da2661108", "tags": [ "Third Party Advisory" ] }, { "url": "https://github.com/greenpau/caddy-security/issues/266", "source": "af854a3a-2127-422b-91ae-364da2661108", "tags": [ "Issue Tracking" ] }, { "url": "https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMGREENPAUCADDYSECURITY-6249859", "source": "af854a3a-2127-422b-91ae-364da2661108", "tags": [ "Third Party Advisory" ] } ] }