v0.4.6
NOTICE
This version patches a directory-traversal security vulnerability that exists indev
mode only. All users should update immediately, even if they don't think they're using--dev
oropts.dev
on live servers. There are no other changes in this release.
Patches
-
Fixes
dev
mode security vulnerability (#63): 1e0bac5
Thank you @marvinhagemeister~!As Marvin describes:
This allows an attacker to traverse the file system outside of the specified directory.
Let's say
sirv
was initialized to serve files from /foo/bar:sirv("/foo/bar");
...and an attacker makes a request to:
GET /../../etc/passwd
...then they are able to download the contents of that file.