Closed (fixed)
Project:
Secure Login
Version:
7.x-1.2
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Jul 2012 at 12:42 UTC
Updated:
25 Jul 2012 at 19:54 UTC
Jump to comment: Most recent file
Comments
Comment #1
Ignigena commentedPatch attached. Issue was located in the securelogin_secure_redirect() function where no verification was done on $_GET['q'] to make sure it was redirecting to the same domain.
I added simple host match verifying on $_GET['q'] to ensure the redirection is done on the same host as the Drupal base_url.
After this patch is added open redirects are no longer an issue and instead show a 404 error as expected.
Don't use this patch ... I made a dumb mistake and forgot a in important piece of code ... see the patch in the next comment.
Comment #2
Ignigena commentedMade a dumb mistake and neglected to include an important piece of code in the patch. See the updated and fixed patch below.
Comment #3
greggles@Ignigena - in the future please be sure to report security issues following the process at http://drupal.org/node/101494
This is fixed with http://drupal.org/node/1700594