Etherpadで認証なしにファイルを読まれる脆弱性、修正版あり
Summary
共同編集ツールEtherpadの1.8.14から3.3.2までに、ログインなしで外部からサーバー上のファイルを読み取られる脆弱性があります。運用中の組織は3.3.3へ更新し、管理者パスワードなどの秘密情報も入れ替えてください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
共同編集ツールEtherpadの1.8.14から3.3.2までに、ログインなしで外部からサーバー上のファイルを読み取られる脆弱性があります。運用中の組織は3.3.3へ更新し、管理者パスワードなどの秘密情報も入れ替えてください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| etheretherpad | — | Not listed |
| npmep_etherpad-lite |
< 3.3.3→ 3.3.3 |
3.3.3 |
Original description The description as published by the source.
Summary
An unauthenticated path‑traversal / arbitrary file read vulnerability in Etherpad's /static/* handler allows any remote, unauthenticated user to read any file on the server's filesystem (e.g. GET /static/plugins/ep_etherpad-lite/static/..%5C..%5C..%5C..%5C..%5C..%5C..%5Cetc/passwd returns /etc/passwd) available to the user running the etherpad software. Because the endpoint is mounted before the authentication middleware, no credentials, session, or configuration change are required. The read primitive could escalate to a full server compromise: on a typical deployment by disclosing settings.json / credentials.json / /proc/self/environ, which contain the admin password, giving an attacker an admin session and, through the admin plugin installer, remote code execution.
Details
Etherpad serves plugin static assets through src/node/utils/Minify.ts. The request path is first passed through the canonical sanitizer src/node/utils/sanitizePathname.ts, which is careful to convert backslashes to forward slashes only on Windows:
// src/node/utils/sanitizePathname.ts:11-20
p = pathApi.normalize(p);
if (pathApi.isAbsolute(p)) throw new Error(`absolute paths are forbidden: ${p}`);
if (p.split(pathApi.sep)[0] === '..') throw new Error(`directory traversal: ${p}`);
// THIS CONVERSION MUST ONLY BE DONE ON WINDOWS, otherwise on POSIXish systems '..\\' in the input
// pathname would not be normalized away before being converted to '../'.
if (pathApi.sep === '\\') p = p.…
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- web github.com
- web github.com
- web github.com
- web github.com