Smart (and simple) ways to prevent symlink attacks in Go
blog.trailofbits.com | blog | #secure-coding | #go | #vulnerabilities | #audit | #golang | #symlink | #file-handling | #symlink-attacks | #file-truncation
Summary
Go's os.Create silently truncates existing files, so a planted symlink can wipe data like logs. Trail of Bits explains why nil error checks miss this and how existence checks prevent symlink attacks.
- Published
- Collected
Skip to content