Description
Servor 1.0.0 through 4.0.2 contains a path traversal vulnerability that allows unauthenticated remote attackers to escape the served root by sending URL-encoded dot segments. Attackers can send %2e%2e/ sequences, which decodeURI() decodes before path.join() in serveStaticFile and serveDirectoryListing, to read arbitrary files and list directories outside the root.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| lukejacksonn | servor | 1.0.0 – ≤ 4.0.2 | — |
References
- GitHub Pull Request #70 issue-tracking patch
- Patch Commit patch
- https://github.com/lukejacksonn/servor product
- VulnCheck Advisory: Servor 1.0.0 through 4.0.2 Unauthenticated Path Traversal via URL-Encoded Dot Segments third-party-advisory