Description
Ech0 through 6.0.0 contains a path traversal vulnerability in the snapshot migration importer that allows attackers to write files outside data/files by supplying file keys containing '..' segments. Attackers can craft a snapshot whose files table holds keys like images/../../name with a matching archive file, creating new files elsewhere in the server's data directory when an administrator imports it.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| lin-snow | Ech0 | 0 ≤6.0.0 | — |
References
- https://github.com/lin-snow/Ech0/blob/v6.0.0/internal/migrator/importer/ech0/importer.go#L452-L500
- https://github.com/lin-snow/Ech0/blob/v6.0.0/internal/migrator/importer/ech0/importer.go#L507-L518
- https://www.vulncheck.com/advisories/ech0-through-6.0.0-path-traversal-via-snapshot-migration-importer