Merge "Fix authentication bypass by empty URL-Signature"
This commit is contained in:
commit
c3fa8232f2
2 files changed
+6
-1
No files matched your search
@@ -0,0 +1,5 @@
|
||||
---
|
||||
security:
|
||||
- |
|
||||
`Bug 2164987 <https://bugs.launchpad.net/zaqar/+bug/2164987>`_ : Fixed
|
||||
authentication bypass caused by an empty URL-Signature header.
|
||||
@@ -38,7 +38,7 @@ def verify_pre_signed_url(key, req, resp, params):
|
||||
paths = headers.get('URL-PATHS', '').split(',')
|
||||
signature = headers.get('URL-SIGNATURE')
|
||||
|
||||
if not signature:
|
||||
if signature is None:
|
||||
return
|
||||
|
||||
if req.method not in methods:
|
||||
|
||||
Reference in new issue
Block a user