| Title | github.com/greenpau/caddy-securityにRefererヘッダーを介したクロスサイトスクリプティングが発生するおそれがある脆弱性 |
|---|---|
| Summary | github.com/greenpau/caddy-security パッケージのすべてのバージョンには、参照元(Referer)ヘッダーを介したクロスサイトスクリプティング(XSS)の脆弱性があります。この問題は、入力のサニタイズが不適切なために発生します。Referer ヘッダーは、一部の XSS を許す可能性のある文字(例:[&]、[<]、[>]、["],[']など)をエスケープしてサニタイズしていますが、JavaScript URL スキーム(例: javascript:alert(document.domain)// ペイロード)に基づく攻撃には対応していません。この脆弱性の悪用は容易ではない場合もありますが、標的ユーザーのブラウザ環境で悪意のあるスクリプトが実行され、ユーザーセッションが侵害される可能性があります。 |
| Possible impacts | 当該ソフトウェアが扱う情報の一部が外部に漏れる可能性があります。 また、当該ソフトウェアが扱う情報の一部が書き換えられる可能性があります。 さらに、当該ソフトウェアは停止しません。 そして、この脆弱性を悪用した攻撃により、他のソフトウェアにも影響が及ぶ可能性があります。 |
| Solution | 正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。 |
| Publication Date | Feb. 17, 2024, midnight |
| Registration Date | Dec. 25, 2025, 5:18 p.m. |
| Last Update | Dec. 25, 2025, 5:18 p.m. |
| CVSS3.0 : 警告 | |
| Score | 6.1 |
|---|---|
| Vector | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| authcrunch |
| caddy-security |
| No | Changed Details | Date of change |
|---|---|---|
| 1 | [2025年12月25日] 掲載 |
Dec. 25, 2025, 5:18 p.m. |
| Summary | All versions of the package github.com/greenpau/caddy-security are vulnerable to Cross-site Scripting (XSS) via the Referer header, due to improper input sanitization. Although the Referer header is sanitized by escaping some characters that can allow XSS (e.g., [&], [<], [>], ["], [']), it does not account for the attack based on the JavaScript URL scheme (e.g., javascript:alert(document.domain)// payload). Exploiting this vulnerability may not be trivial, but it could lead to the execution of malicious scripts in the context of the target user’s browser, compromising user sessions. |
|---|---|
| Publication Date | Feb. 17, 2024, 2:15 p.m. |
| Registration Date | Feb. 17, 2024, 4 p.m. |
| Last Update | Nov. 21, 2024, 5:54 p.m. |