Sanic is an opensource python web server/framework. Affected versions of sanic allow access to lateral directories when using `app.static` if using encoded `%2F` URLs. Parent directory traversal is not impacted. Users are advised to upgrade. There is no known workaround for this issue.
The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
Link | Tags |
---|---|
https://github.com/sanic-org/sanic/security/advisories/GHSA-8cw9-5hmv-77w6 | third party advisory |
https://github.com/sanic-org/sanic/issues/2478 | issue tracking exploit third party advisory |
https://github.com/sanic-org/sanic/pull/2495 | third party advisory patch |