本文へ移動
English version →
高 8.2

Caddy Defender で信頼できるプロキシ経由のIP制限を回避される

CVE-2026-46415 SecPulse初出

概要

Caddy Defender の 0.10.1 より前のバージョンでは、ブロック判定に接続元の直接のアドレスを使うため、信頼できるプロキシ経由の遮断対象の利用者がIP制限を回避できる問題があります。影響を受けるのは 0.10.1 より前の版で、修正版の 0.10.1 以降へ更新してください。更新までは、プロキシやCDN、ファイアウォールなどの手前でIP制限を行うことをおすすめします。

AI要約

SecPulse が外部の生成 AI を使って作った要約です。誤りを含むことがあります。重要な判断の前に、下の原文と参照URLを確認してください。

pkg.jsn.cam/caddy-defender という製品で、CVE-2026-46415 という番号がついた弱点 (脆弱性) が見つかりました。
悪い人がインターネット越しに r.RemoteAddr のような特定の入り口を狙うことで、製品の中を不正に操作できてしまいます。
機密情報が外部に流出する可能性があります。重要度は CVSS スコア 8.2/10 です。
対策: pkg.jsn.cam/caddy-defender を 0.10.1 以上に更新してください。
心配なら、システム担当者や製品の公式サイトで「pkg.jsn.cam/caddy-defender CVE-2026-46415」を検索してください。

CVE-2026-46415 (pkg.jsn.cam/caddy-defender) — CWE-284 / CVSS v3 8.2
攻撃ベクター: ネットワーク経由 (リモート攻撃可) / 認証不要 / 被害者操作不要
脆弱箇所: r.RemoteAddr / RemoteAddr / client_ip / trusted_proxies
修正バージョン: 0.10.1 (即時適用推奨)
対応方針: 1) SBOMで影響バージョン横断確認, 2) ステージング検証→本番更新, 3) WAF/プロキシで該当エンドポイントを監視, 4) ログでIOC調査。
参考: 当ページの『参照URL』の GHSA / vendor advisory / patched release を参照。

何が問題か

pkg.jsn.cam/caddy-defender に 脆弱性 (CWE-284) があります。攻撃者は r.RemoteAddr を経由して脆弱な処理に到達し、認証なしで悪用できます。

影響範囲

pkg.jsn.cam/caddy-defender の影響バージョンはベンダーのアドバイザリで確認してください。攻撃箇所: r.RemoteAddr / RemoteAddr / client_ip / trusted_proxies。

重要度

重要度: 重要 (CVSS 8.2/10)。機密情報が外部に流出する可能性があります。

修正方法

0.10.1 に更新してください。

暫定回避

修正版が未提供時は、影響機能の無効化・WAFルール・ネットワークACLでの遮断を検討。

検知方法

Webサーバ・プロキシ・WAFログで該当CVEのIOCに合致する不審リクエストを検索。SBOM/依存ファイルで影響バージョンを横断確認。

対応アクション

SOC/SREチームが順番に実行すべき具体的なステップとコマンド例

  1. 1
    影響範囲の特定identify
    grep -r 'pkg.jsn.cam/caddy-defender' . | grep -v node_modules

    リポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で pkg.jsn.cam/caddy-defender を grep し、稼働しているサービス・バージョンを把握する。

  2. 2
    パッチ適用patch
    Upgrade pkg.jsn.cam/caddy-defender to 0.10.1

    ステージング環境で 0.10.1 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。

  3. 3
    事後検証verify
    Confirm patched version is live in production

    パッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。

影響パッケージ

パッケージ影響を受ける版 → 修正版
gopkg.jsn.cam/caddy-defender
0.10.1 未満→ 0.10.1
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。

The Caddy Defender plugin is a middleware for Caddy that allows users to block or manipulate requests based on the client's IP address. Prior to version 0.10.1, Caddy Defender used r.RemoteAddr when evaluating whether a request should be blocked. RemoteAddr is the address of the immediate peer connected to Caddy. In deployments where Caddy is behind a trusted proxy, CDN, or load balancer, the immediate peer is usually the proxy, not the original client. Caddy resolves the original client address into its client_ip request variable after applying the configured trusted_proxies policy, but Defender did not use that value. As a result, clients from blocked IP ranges could bypass Defender when accessing Caddy through a trusted proxy whose own IP address was not blocked. This affects deployments that use Defender behind trusted proxies and expect it to enforce blocking based on the real client IP. The issue is fixed in version 0.10.1 by making Defender prefer Caddys resolved client_ip request variable when it is available. Defender falls back to RemoteAddr only when Caddy has not provided a resolved client IP. There is no complete workaround in affected Defender versions for deployments that rely on Caddy's trusted proxy client IP resolution. Until upgrading, affected users should enforce equivalent IP blocking at the trusted proxy, CDN, load balancer, firewall, or other edge layer before traffic reaches Caddy. Deployments where Caddy receives traffic directly from cli…

出典: GitHub Security Advisories (Global) NVD GitHub Advisory

参照URL

当サイトでは、アクセス解析と広告の効果測定のためにCookieを使います。株式会社Gameのサイト共通の設定です。 詳しく