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 607380 Details for
Bug 852246
CVE-2012-3540 OpenStack-Horizon: Open redirect through 'next' parameter
[?]
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-2012-3540-auth_forms.patch
CVE-2012-3540-auth_forms.patch (text/plain), 1.13 KB, created by
Kurt Seifried
on 2012-08-28 02:15:57 UTC
(
hide
)
Description:
CVE-2012-3540-auth_forms.patch
Filename:
MIME Type:
Creator:
Kurt Seifried
Created:
2012-08-28 02:15:57 UTC
Size:
1.13 KB
patch
obsolete
>diff --git a/horizon/views/auth_forms.py b/horizon/views/auth_forms.py >index 2ebecfc..abf0880 100644 >--- a/horizon/views/auth_forms.py >+++ b/horizon/views/auth_forms.py >@@ -28,6 +28,7 @@ from django import shortcuts > from django.conf import settings > from django.contrib import messages > from django.contrib.auth import REDIRECT_FIELD_NAME >+from django.utils.http import same_origin > from django.utils.translation import ugettext as _ > from keystoneclient import exceptions as keystone_exceptions > >@@ -94,7 +95,13 @@ class Login(forms.SelfHandlingForm): > request.session['region_endpoint'] = endpoint > request.session['region_name'] = region_name > >- redirect_to = request.REQUEST.get(REDIRECT_FIELD_NAME, "") >+ redirect_to = request.REQUEST.get(REDIRECT_FIELD_NAME, None) >+ # Make sure the requested redirect matches the protocol, >+ # domain, and port of this request >+ if redirect_to and not same_origin( >+ request.build_absolute_uri(redirect_to), >+ request.build_absolute_uri()): >+ redirect_to = None > > if data.get('tenant', None): > try: >
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 852246
: 607380