Description
Lektor through 3.3.14 and 3.4.0b15 contains an absolute path traversal vulnerability in the admin API on Windows that allows attackers to escape the project directory by supplying drive-letter paths that cleanup_path does not normalise. Attackers can use a malicious web page with cross-site requests or DNS rebinding against the unauthenticated local server to recursively delete directories via deleterecord or write attacker-controlled files via newattachment.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
lektor lektor
Default version status: unaffected
0 to ≤ 3.3.14affected3.4.0b1 to ≤ 3.4.0b15affected
pkg:pypi/lektorReferences
- https://github.com/lektor/lektor/issues/1301 ↗
- https://github.com/lektor/lektor ↗
- https://github.com/lektor/lektor/blob/v3.3.14/lektor/db.py#L1334-L1336 ↗
- https://github.com/lektor/lektor/blob/v3.3.14/lektor/utils.py#L83-L94 ↗
- https://github.com/lektor/lektor/pull/1302 ↗
- https://github.com/lektor/lektor/pull/1288 ↗
- https://www.vulncheck.com/advisories/lektor-through-3.3.14-and-3.4-0b15-path-traversal-via-admin-api-drive-letter-paths ↗