mirror of
https://github.com/esphome/esphome.git
synced 2026-09-18 18:48:39 +00:00
Update test docstring to reflect validation instead of sanitization
This commit is contained in:
@@ -552,8 +552,8 @@ async def test_download_binary_handler_path_traversal_protection(
|
||||
) -> None:
|
||||
"""Test that DownloadBinaryRequestHandler prevents path traversal attacks.
|
||||
|
||||
Verifies that attempts to use '..' in file paths are sanitized to prevent
|
||||
accessing files outside the build directory. Tests multiple attack vectors.
|
||||
Verifies that attempts to escape the build directory via '..' are rejected
|
||||
using resolve()/relative_to() validation. Tests multiple attack vectors.
|
||||
Real traversals that escape the base directory get 403. Paths like '....'
|
||||
that resolve inside the base directory but don't exist get 404.
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user