Reflected Cross-site Scripting (XSS) Affecting github.com/greenpau/caddy-security package, versions *


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.05% (19th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Reflected Cross-site Scripting (XSS) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMGREENPAUCADDYSECURITY-5969796
  • published15 Feb 2024
  • disclosed18 Sept 2023
  • creditMaciej Domanski, Travis Peters, David Pokora

Introduced: 18 Sep 2023

CVE-2023-52430  (opens in a new tab)
CWE-79  (opens in a new tab)

How to fix?

There is no fixed version for github.com/greenpau/caddy-security.

Overview

github.com/greenpau/caddy-security is a Security App and Plugin for Caddy v2.

Affected versions of this package are vulnerable to Reflected Cross-site Scripting (XSS) via /admin%22%3E%3Cscript%3Ealert(document.domain)%3C/script%3E/admin/login or /settings/mfa/delete/<img%20src=x%20onerror=alert(document.domain)> API calls due to improper input sanitization. An attacker can exploit this vulnerability to execute arbitrary JavaScript code within the target user’s browser, potentially leading to further attacks such as session hijacking.

CVSS Scores

version 3.1