| Summary | 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. |
|---|---|
| Publication Date | Jan. 23, 2020, 12:15 p.m. |
| Registration Date | Jan. 26, 2021, 11:59 a.m. |
| Last Update | Nov. 21, 2024, 2:33 p.m. |
| CVSS3.1 : MEDIUM | |
| スコア | 5.8 |
|---|---|
| Vector | 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 | |
| Score | 5.0 |
|---|---|
| Vector | AV:N/AC:L/Au:N/C:N/I:P/A:N |
| 攻撃元区分(AV) | ネットワーク |
| 攻撃条件の複雑さ(AC) | 低 |
| 攻撃前の認証要否(Au) | 不要 |
| 機密性への影響(C) | なし |
| 完全性への影響(I) | 低 |
| 可用性への影響(A) | なし |
| Get all privileges. | いいえ |
| Get user privileges | いいえ |
| Get other privileges | いいえ |
| User operation required | いいえ |
| Configuration1 | or higher | or less | more than | less than | |
| 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 | ||||
| Title | Secure Headers におけるインジェクションに関する脆弱性 |
|---|---|
| Summary | Secure Headers (RubyGem secure_headers) には、インジェクションに関する脆弱性が存在します。 |
| Possible impacts | 情報を改ざんされる可能性があります。 |
| Solution | ベンダより正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。 |
| Publication Date | Jan. 21, 2020, midnight |
| Registration Date | Feb. 13, 2020, 1:52 p.m. |
| Last Update | Feb. 13, 2020, 1:52 p.m. |
| Twitter, Inc. |
| Secure Headers 3.8.0 未満 |
| Secure Headers 5.1.0 未満 |
| Secure Headers 6.2.0 未満 |
| No | Changed Details | Date of change |
|---|---|---|
| 1 | [2020年02月13日] 掲載 |
Feb. 13, 2020, 1:52 p.m. |