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 697333 Details for
Bug 910928
CVE-2013-0282 OpenStack Keystone: EC2-style authentication accepts disabled user/tenants
[?]
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]
keystone-ensure-user-tenant-enabled-ec2.essex.201302121030-CVE-2013-0282.txt
keystone-ensure-user-tenant-enabled-ec2.essex.201302121030-CVE-2013-0282.txt (text/plain), 3.23 KB, created by
Kurt Seifried
on 2013-02-14 18:36:47 UTC
(
hide
)
Description:
keystone-ensure-user-tenant-enabled-ec2.essex.201302121030-CVE-2013-0282.txt
Filename:
MIME Type:
Creator:
Kurt Seifried
Created:
2013-02-14 18:36:47 UTC
Size:
3.23 KB
patch
obsolete
>diff --git a/keystone/contrib/ec2/core.py b/keystone/contrib/ec2/core.py >index 11107eb..53a97a9 100644 >--- a/keystone/contrib/ec2/core.py >+++ b/keystone/contrib/ec2/core.py >@@ -43,12 +43,14 @@ from keystone import identity > from keystone import policy > from keystone import service > from keystone import token >+from keystone.common import logging > from keystone.common import manager > from keystone.common import utils > from keystone.common import wsgi > > > CONF = config.CONF >+LOG = logging.getLogger(__name__) > > > class Manager(manager.Manager): >@@ -112,9 +114,9 @@ class Ec2Controller(wsgi.Application): > credentials['host'] = hostname > signature = signer.generate(credentials) > if not utils.auth_str_equal(credentials.signature, signature): >- raise exception.Unauthorized(message='Invalid EC2 signature.') >+ raise exception.Unauthorized() > else: >- raise exception.Unauthorized(message='EC2 signature not supplied.') >+ raise exception.Unauthorized() > > def authenticate(self, context, credentials=None, > ec2Credentials=None): >@@ -145,7 +147,7 @@ class Ec2Controller(wsgi.Application): > credentials = ec2Credentials > > if not 'access' in credentials: >- raise exception.Unauthorized(message='EC2 signature not supplied.') >+ raise exception.Unauthorized() > > creds_ref = self._get_credentials(context, > credentials['access']) >@@ -157,9 +159,19 @@ class Ec2Controller(wsgi.Application): > tenant_ref = self.identity_api.get_tenant( > context=context, > tenant_id=creds_ref['tenant_id']) >+ # If the tenant is disabled don't allow them to authenticate >+ if tenant_ref and not tenant_ref.get('enabled', True): >+ msg='Tenant %s is disabled' % tenant_ref['id'] >+ LOG.warning(msg) >+ raise exception.Unauthorized() > user_ref = self.identity_api.get_user( > context=context, > user_id=creds_ref['user_id']) >+ # If the user is disabled don't allow them to authenticate >+ if not user_ref.get('enabled', True): >+ msg='User %s is disabled' % user_ref['id'] >+ LOG.warning(msg) >+ raise exception.Unauthorized() > metadata_ref = self.identity_api.get_metadata( > context=context, > user_id=user_ref['id'], >@@ -170,7 +182,7 @@ class Ec2Controller(wsgi.Application): > # fill out the roles in the metadata > roles = metadata_ref.get('roles', []) > if not roles: >- raise exception.Unauthorized(message='User not valid for tenant.') >+ raise exception.Unauthorized() > roles_ref = [self.identity_api.get_role(context, role_id) > for role_id in roles] > >@@ -275,7 +287,7 @@ class Ec2Controller(wsgi.Application): > creds = self.ec2_api.get_credential(context, > credential_id) > if not creds: >- raise exception.Unauthorized(message='EC2 access key not found.') >+ raise exception.Unauthorized() > return creds > > def _assert_identity(self, context, user_id):
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 910928
: 697333 |
697334
|
697335