Unverified Commit 7b14b39d authored by Nicolas Giard's avatar Nicolas Giard Committed by GitHub

fix: prevent upload bypass via uppercase path

parent cab16ee8
...@@ -32,7 +32,7 @@ module.exports = { ...@@ -32,7 +32,7 @@ module.exports = {
token = req.cookies['jwt'] token = req.cookies['jwt']
} }
// Force uploads to use Auth headers // Force uploads to use Auth headers
if (req.path === '/u') { if (req.path.toLowerCase() === '/u') {
return null return null
} }
return token return token
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment