Description
knowns versions before 0.30.0 contain a path traversal vulnerability in the POST /api/templates/preview endpoint that allows unauthenticated attackers to read arbitrary files. Attackers can supply directory traversal sequences in the templateFile parameter to bypass path restrictions and read sensitive files like credentials and configuration through the JSON response.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| knowns-dev | knowns | < 0.30.0 | 0.30.0 |
References
- GitHub Security Advisory (GHSA-fpxv-c555-rhm3) vendor-advisory
- Template preview reads filepath.Join(tmpl.Path, templateFile) (v0.29.1) technical-description
- knowns fix commit 09c5a96fd581 patch
- knowns v0.30.0 Release Notes release-notes
- VulnCheck Advisory: knowns before 0.30.0 Path Traversal via templateFile parameter third-party-advisory