NVD Vulnerability Detail
Search Exploit, PoC
CVE-2021-29475
Summary

HedgeDoc (formerly known as CodiMD) is an open-source collaborative markdown editor. An attacker is able to receive arbitrary files from the file system when exporting a note to PDF. Since the code injection has to take place as note content, there fore this exploit requires the attackers ability to modify a note. This will affect all instances, which have pdf export enabled. This issue has been fixed by https://github.com/hedgedoc/hedgedoc/commit/c1789474020a6d668d616464cb2da5e90e123f65 and is available in version 1.5.0. Starting the CodiMD/HedgeDoc instance with `CMD_ALLOW_PDF_EXPORT=false` or set `"allowPDFExport": false` in config.json can mitigate this issue for those who cannot upgrade. This exploit works because while PhantomJS doesn't actually render the `file:///` references to the PDF file itself, it still uses them internally, and exfiltration is possible, and easy through JavaScript rendering. The impact is pretty bad, as the attacker is able to read the CodiMD/HedgeDoc `config.json` file as well any other files on the filesystem. Even though the suggested Docker deploy option doesn't have many interesting files itself, the `config.json` still often contains sensitive information, database credentials, and maybe OAuth secrets among other things.

Publication Date April 27, 2021, 4:15 a.m.
Registration Date April 27, 2021, 10:04 a.m.
Last Update Nov. 21, 2024, 3:01 p.m.
CVSS3.1 : CRITICAL
スコア 10.0
Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N
攻撃元区分(AV) ネットワーク
攻撃条件の複雑さ(AC)
攻撃に必要な特権レベル(PR) 不要
利用者の関与(UI) 不要
影響の想定範囲(S) 変更あり
機密性への影響(C)
完全性への影響(I)
可用性への影響(A) なし
CVSS2.0 : MEDIUM
Score 5.8
Vector AV:N/AC:M/Au:N/C:P/I:P/A:N
攻撃元区分(AV) ネットワーク
攻撃条件の複雑さ(AC)
攻撃前の認証要否(Au) 不要
機密性への影響(C)
完全性への影響(I)
可用性への影響(A) なし
Get all privileges. いいえ
Get user privileges いいえ
Get other privileges いいえ
User operation required いいえ
Affected software configurations
Configuration1 or higher or less more than less than
cpe:2.3:a:hedgedoc:hedgedoc:*:*:*:*:*:*:*:* 1.5.0
Related information, measures and tools
Common Vulnerabilities List

JVN Vulnerability Information
HedgeDoc におけるサーバサイドのリクエストフォージェリの脆弱性
Title HedgeDoc におけるサーバサイドのリクエストフォージェリの脆弱性
Summary

HedgeDoc (旧称 CodiMD) には、サーバサイドのリクエストフォージェリの脆弱性、およびコードインジェクションの脆弱性が存在します。

Possible impacts 情報を取得される、および情報を改ざんされる可能性があります。
Solution

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

Publication Date April 26, 2021, midnight
Registration Date Jan. 17, 2022, 6:01 p.m.
Last Update Jan. 17, 2022, 6:01 p.m.
Affected System
HedgeDoc
HedgeDoc 1.5.0 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
Change Log
No Changed Details Date of change
1 [2022年01月17日]
  掲載
Jan. 17, 2022, 6:01 p.m.