2 ms·
I once made a tragic security error with http.Handle("/o/", http.StripPrefix("/o/", http.FileServer(http.Dir("/")))) It's a bit too easy to expose to muc
by hendry 9y ago
I once made a tragic security error with
http.Handle("/o/", http.StripPrefix("/o/", http.FileServer(http.Dir("/"))))
It's a bit too easy to expose to much of the FS aka "Directory traversal attack". My advice, always deploy into a container.