Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 848382 Details for
Bug 1051670
CVE-2014-0006 Openstack Swift: TempURL timing attack
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
CVE-2014-0006-master.diff
CVE-2014-0006-master.diff (text/plain), 1.31 KB, created by
Kurt Seifried
on 2014-01-10 20:47:05 UTC
(
hide
)
Description:
CVE-2014-0006-master.diff
Filename:
MIME Type:
Creator:
Kurt Seifried
Created:
2014-01-10 20:47:05 UTC
Size:
1.31 KB
patch
obsolete
>diff --git a/swift/common/middleware/tempurl.py b/swift/common/middleware/tempurl.py >index c9b9d94..5748694 100644 >--- a/swift/common/middleware/tempurl.py >+++ b/swift/common/middleware/tempurl.py >@@ -106,7 +106,7 @@ from urlparse import parse_qs > from swift.proxy.controllers.base import get_account_info > from swift.common.swob import HeaderKeyDict, HTTPUnauthorized > from swift.common.utils import split_path, get_valid_utf8_str, \ >- register_swift_info, get_hmac >+ register_swift_info, get_hmac, streq_const_time > > > #: Default headers to remove from incoming requests. Simply a whitespace >@@ -284,7 +284,13 @@ class TempURL(object): > request_method='PUT')) > else: > hmac_vals = self._get_hmacs(env, temp_url_expires, keys) >- if temp_url_sig not in hmac_vals: >+ >+ # While it's true that any() will short-circuit, this doesn't affect >+ # the timing-attack resistance since the only way this will >+ # short-circuit is when a valid signature is passed in. >+ is_valid_hmac = any(streq_const_time(temp_url_sig, hmac) >+ for hmac in hmac_vals) >+ if not is_valid_hmac: > return self._invalid(env, start_response) > self._clean_incoming_headers(env) > env['swift.authorize'] = lambda req: None
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1051670
:
848380
|
848381
| 848382