7.5high
mustafaakin cast-localvideo - Unauthenticated Path Traversal via dir Parameter
- Severity
- 7.5high CVSS:3.1 by TuranSec
- Exploit likelihood
- 1.15% (higher than 67% of CVEs)
- Published
- Last changed
- Assigned by
- TuranSec
Description
A path traversal vulnerability in mustafaakin/cast-localvideo (all versions) allows an unauthenticated remote attacker to read arbitrary files from the server. The app.js handler at lines 151-153 passes the user-supplied req.body.dir parameter directly to res.sendFile() without sanitization, enabling directory traversal via absolute paths or ../ sequences to read sensitive system files.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| mustafaakin cast-localvideo | 0 | CVE List |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
What each source says
CVE List
A path traversal vulnerability in mustafaakin/cast-localvideo (all versions) allows an unauthenticated remote attacker to read arbitrary files from the server. The app.js handler at lines 151-153 passes the user-supplied req.body.dir parameter directly to res.sendFile() without sanitization, enabling directory traversal via absolute paths or ../ sequences to read sensitive system files.
NVD (es)
Una vulnerabilidad de salto de ruta en mustafaakin/cast-localvideo (todas las versiones) permite a un atacante remoto no autenticado leer archivos arbitrarios del servidor. El gestor app.js en las líneas 151-153 pasa el parámetro req.body.dir proporcionado por el usuario directamente a res.sendFile() sin sanitización, lo que permite el salto de directorio a través de rutas absolutas o secuencias .. / para leer archivos sensibles del sistema.
References
| https://github.com/mustafaakin/cast-localvideo | third-party-advisory | |
| https://github.com/mustafaakin/cast-localvideo/blob/main/app.js | technical-description | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-72571 changed 2026-08-10 | CVE Terms of Use |
| NVD | CVE-2026-72571 changed 2026-10-24 | Public domain |