MacMusic  |  PcMusic  |  440 Software  |  440 Forums  |  440TV  |  Zicos
root
Search

Traversal-resistant file APIs (The Go Blog)

Wednesday March 12, 2025. 06:13 PM , from LWN.net
Damien Neil has written an article for the Go Blog about path
traversal vulnerabilities and the os.Root API added in Go 1.24 to help prevent
them.

Root permits relative path components and symlinks that do not escape
the root. For example, root.Open('a/../b') is permitted. Filenames are
resolved using the semantics of the local platform: On Unix systems,
this will follow any symlink in 'a' (so long as that link does not
escape the root); while on Windows systems this will open 'b' (even if
'a' does not exist).
https://lwn.net/Articles/1013876/

Related News

News copyright owned by their original publishers | Copyright © 2004 - 2025 Zicos / 440Network
Current Date
Mar, Fri 14 - 16:09 CET