CVE-2020-5217
概要

In Secure Headers (RubyGem secure_headers), a directive injection vulnerability is present in versions before 3.8.0, 5.1.0, and 6.2.0. If user-supplied input was passed into append/override_content_security_policy_directives, a semicolon could be injected leading to directive injection. This could be used to e.g. override a script-src directive. Duplicate directives are ignored and the first one wins. The directives in secure_headers are sorted alphabetically so they pretty much all come before script-src. A previously undefined directive would receive a value even if SecureHeaders::OPT_OUT was supplied. The fixed versions will silently convert the semicolons to spaces and emit a deprecation warning when this happens. This will result in innocuous browser console messages if being exploited/accidentally used. In future releases, we will raise application errors resulting in 500s. Depending on what major version you are using, the fixed versions are 6.2.0, 5.1.0, 3.8.0.

公表日 2020年1月23日12:15
登録日 2021年1月26日11:59
最終更新日 2024年11月21日14:33
CVSS3.1 : MEDIUM
スコア 5.8
ベクター CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N
攻撃元区分(AV) ネットワーク
攻撃条件の複雑さ(AC)
攻撃に必要な特権レベル(PR) 不要
利用者の関与(UI) 不要
影響の想定範囲(S) 変更あり
機密性への影響(C) なし
完全性への影響(I)
可用性への影響(A) なし
CVSS2.0 : MEDIUM
スコア 5.0
ベクター AV:N/AC:L/Au:N/C:N/I:P/A:N
攻撃元区分(AV) ネットワーク
攻撃条件の複雑さ(AC)
攻撃前の認証要否(Au) 不要
機密性への影響(C) なし
完全性への影響(I)
可用性への影響(A) なし
全ての特権を取得 いいえ
ユーザー権限を取得 いいえ
その他の権限を取得 いいえ
ユーザー操作が必要 いいえ
影響を受けるソフトウェアの構成
構成1 以上 以下 より上 未満
cpe:2.3:a:twitter:secure_headers:*:*:*:*:*:ruby:*:* 6.0.0 6.2.0
cpe:2.3:a:twitter:secure_headers:*:*:*:*:*:ruby:*:* 5.0.0 5.1.0
cpe:2.3:a:twitter:secure_headers:*:*:*:*:*:ruby:*:* 3.8.0
関連情報、対策とツール
共通脆弱性一覧

JVN脆弱性情報
Secure Headers におけるインジェクションに関する脆弱性
タイトル Secure Headers におけるインジェクションに関する脆弱性
概要

Secure Headers (RubyGem secure_headers) には、インジェクションに関する脆弱性が存在します。

想定される影響 情報を改ざんされる可能性があります。
対策

ベンダより正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。

公表日 2020年1月21日0:00
登録日 2020年2月13日13:52
最終更新日 2020年2月13日13:52
影響を受けるシステム
Twitter, Inc.
Secure Headers 3.8.0 未満
Secure Headers 5.1.0 未満
Secure Headers 6.2.0 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
変更履歴
No 変更内容 変更日
1 [2020年02月13日]
  掲載
2020年2月13日13:52