| Summary | HedgeDoc is a collaborative platform for writing and sharing markdown. In HedgeDoc before version 1.7.1 an attacker can inject arbitrary `script` tags in HedgeDoc notes using mermaid diagrams. Our content security policy prevents loading scripts from most locations, but `www.google-analytics.com` is allowed. Using Google Tag Manger it is possible to inject arbitrary JavaScript and execute it on page load. Depending on the configuration of the instance, the attacker may not need authentication to create or edit notes. The problem is patched in HedgeDoc 1.7.1. As a workaround one can disallow `www.google-analytics.com` in the `Content-Security-Policy` header. Note that other ways to leverage the `script` tag injection might exist. |
|---|---|
| Publication Date | Dec. 29, 2020, 9:15 a.m. |
| Registration Date | Jan. 26, 2021, 11:56 a.m. |
| Last Update | Nov. 21, 2024, 2:19 p.m. |
| CVSS3.1 : HIGH | |
| スコア | 8.7 |
|---|---|
| Vector | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N |
| 攻撃元区分(AV) | ネットワーク |
| 攻撃条件の複雑さ(AC) | 低 |
| 攻撃に必要な特権レベル(PR) | 低 |
| 利用者の関与(UI) | 要 |
| 影響の想定範囲(S) | 変更あり |
| 機密性への影響(C) | 高 |
| 完全性への影響(I) | 高 |
| 可用性への影響(A) | なし |
| CVSS2.0 : MEDIUM | |
| Score | 4.3 |
|---|---|
| Vector | AV:N/AC:M/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:hedgedoc:hedgedoc:*:*:*:*:*:*:*:* | 1.7.1 | ||||
| Title | HedgeDoc におけるクロスサイトスクリプティングの脆弱性 |
|---|---|
| Summary | HedgeDoc には、クロスサイトスクリプティングの脆弱性が存在します。 |
| Possible impacts | 情報を取得される、および情報を改ざんされる可能性があります。 |
| Solution | ベンダより正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。 |
| Publication Date | Dec. 28, 2020, midnight |
| Registration Date | Sept. 3, 2021, 4:21 p.m. |
| Last Update | Sept. 3, 2021, 4:21 p.m. |
| HedgeDoc |
| HedgeDoc 1.7.1 未満 |
| No | Changed Details | Date of change |
|---|---|---|
| 1 | [2021年09月03日] 掲載 |
Sept. 3, 2021, 4:21 p.m. |