Browse Source
fix: prevent upload bypass via uppercase path
pull/4985/head
2.5.274
Nicolas Giard
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
server/helpers/security.js
|
|
@ -32,7 +32,7 @@ module.exports = { |
|
|
|
token = req.cookies['jwt'] |
|
|
|
} |
|
|
|
// Force uploads to use Auth headers
|
|
|
|
if (req.path === '/u') { |
|
|
|
if (req.path.toLowerCase() === '/u') { |
|
|
|
return null |
|
|
|
} |
|
|
|
return token |
|
|
|