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 710828 Details for
Bug 922230
CVE-2013-1865 OpenStack keystone: online validation of Keystone PKI tokens bypasses revocation check
[?]
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]
folsom-CVE-2013-1865.patch
folsom-CVE-2013-1865.patch (text/plain), 3.99 KB, created by
Kurt Seifried
on 2013-03-15 20:08:40 UTC
(
hide
)
Description:
folsom-CVE-2013-1865.patch
Filename:
MIME Type:
Creator:
Kurt Seifried
Created:
2013-03-15 20:08:40 UTC
Size:
3.99 KB
patch
obsolete
>From 176f11421236156f4c48bac0c4732c281527d563 Mon Sep 17 00:00:00 2001 >From: Adam Young <ayoung@redhat.com> >Date: Thu, 14 Mar 2013 12:05:24 -0500 >Subject: [PATCH] validate from backend > >In certain cases we were depending on CMS to validate PKI tokens >but that is not necessary, and by passes the revocation check > >Change-Id: I9d7e60b074aa8c8859971618fed20c8cde2220c4 >--- > keystone/service.py | 19 ++++++------------- > tests/test_service.py | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ > 2 files changed, 57 insertions(+), 13 deletions(-) > >diff --git a/keystone/service.py b/keystone/service.py >index c088986..9799e3a 100644 >--- a/keystone/service.py >+++ b/keystone/service.py >@@ -490,20 +490,13 @@ class TokenController(wsgi.Application): > """ > # TODO(termie): this stuff should probably be moved to middleware > self.assert_admin(context) >+ data = self.token_api.get_token(context=context, token_id=token_id) >+ if belongs_to: >+ if (not data.get('tenant') or data['tenant'].get('id') != >+ belongs_to): >+ raise exception.Unauthorized() > >- if cms.is_ans1_token(token_id): >- data = json.loads(cms.cms_verify(cms.token_to_cms(token_id), >- config.CONF.signing.certfile, >- config.CONF.signing.ca_certs)) >- data['access']['token']['user'] = data['access']['user'] >- data['access']['token']['metadata'] = data['access']['metadata'] >- if belongs_to: >- assert data['access']['token']['tenant']['id'] == belongs_to >- token_ref = data['access']['token'] >- else: >- token_ref = self.token_api.get_token(context=context, >- token_id=token_id) >- return token_ref >+ return data > > # admin only > def validate_token_head(self, context, token_id): >diff --git a/tests/test_service.py b/tests/test_service.py >index f48bd9a..487e5ac 100644 >--- a/tests/test_service.py >+++ b/tests/test_service.py >@@ -150,3 +150,54 @@ class AuthTest(test.TestCase): > body_dict = _build_user_auth(username='FOO', password='0' * 8193) > self.assertRaises(exception.ValidationSizeError, self.api.authenticate, > {}, body_dict) >+ >+ >+class AuthWithToken(AuthTest): >+ def setUp(self): >+ super(AuthWithToken, self).setUp() >+ >+ def test_belongs_to_no_tenant(self): >+ r = self.api.authenticate( >+ {}, >+ auth={ >+ 'passwordCredentials': { >+ 'username': self.user_foo['name'], >+ 'password': self.user_foo['password'] >+ } >+ }) >+ unscoped_token_id = r['access']['token']['id'] >+ self.assertRaises( >+ exception.Unauthorized, >+ self.api.validate_token, >+ dict(is_admin=True, query_string={'belongsTo': 'BAR'}), >+ token_id=unscoped_token_id) >+ >+ def test_belongs_to_wrong_tenant(self): >+ body_dict = _build_user_auth( >+ username='FOO', >+ password='foo2', >+ tenant_name="BAR") >+ >+ scoped_token = self.api.authenticate({}, body_dict) >+ scoped_token_id = scoped_token['access']['token']['id'] >+ >+ self.assertRaises( >+ exception.Unauthorized, >+ self.api.validate_token, >+ dict(is_admin=True, query_string={'belongsTo': 'me'}), >+ token_id=scoped_token_id) >+ >+ def test_belongs_to(self): >+ body_dict = _build_user_auth( >+ username='FOO', >+ password='foo2', >+ tenant_name="BAR") >+ >+ scoped_token = self.api.authenticate({}, body_dict) >+ scoped_token_id = scoped_token['access']['token']['id'] >+ >+ self.assertRaises( >+ exception.Unauthorized, >+ self.api.validate_token, >+ dict(is_admin=True, query_string={'belongsTo': 'BAR'}), >+ token_id=scoped_token_id) >-- >1.8.1.3 >
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 922230
: 710828