GHSA-c2m8-h5v5-343r: Tornado: StaticFileHandler follows symlinks outside static root (path traversal)
StaticFileHandler allows an unauthenticated attacker to read arbitrary files from the server’s filesystem by requesting a path that resolves to a symbolic link placed inside the static root directory. Any application that serves user-uploadable content, or whose static directory is populated by a build/deploy pipeline that creates symlinks (e.g. npm link, webpack, Docker volume mounts, CDN sync tools), is affected. An attacker who can trigger the creation of a symlink pointing outside the static root—or exploit one that already exists—can retrieve sensitive files such as /etc/passwd, private keys, configuration files, or application secrets.
References
- github.com/advisories/GHSA-c2m8-h5v5-343r
- github.com/tornadoweb/tornado/commit/437ab5f76565403b3403438d2e555d11f8128d32
- github.com/tornadoweb/tornado/commit/f9f50b8bab265a2abf9f2415a3d2da6264a5450b
- github.com/tornadoweb/tornado/pull/3719
- github.com/tornadoweb/tornado/releases/tag/v6.5.9
- github.com/tornadoweb/tornado/security/advisories/GHSA-c2m8-h5v5-343r
Code Behaviors & Features
Detect and mitigate GHSA-c2m8-h5v5-343r with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →