mirror of
https://github.com/tailscale/tailscale.git
synced 2025-02-18 02:48:40 +00:00
drive: use secret token to authenticate access to file server on localhost
This prevents Mark-of-the-Web bypass attacks in case someone visits the localhost WebDAV server directly. Fixes tailscale/corp#19592 Signed-off-by: Percy Wegmann <percy@tailscale.com>
This commit is contained in:
parent
745fb31bd4
commit
a03cb866b4
@ -48,7 +48,6 @@ func NewFileServer() (*FileServer, error) {
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("listen: %w", err)
|
||||
}
|
||||
// }
|
||||
|
||||
secretToken, err := generateSecretToken()
|
||||
if err != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user