PacketFence
Bug Tracking System

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001100PacketFencecaptive portalpublic2010-10-25 11:392015-02-13 15:39
Reporterobilodeau 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionopen 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0001100: not reaching proper external remediation pages if multiple from same domain
DescriptionThere's a problem with the way we push external remediation pages in mod_rewrite config in apache. Since we don't order the statements from the tightest to the broadest then one could face an issue with that.

For example in our integration tests (addons/integration-test) we have:
[2010004]
desc=Remediation external (domain) without auto_enable
priority=8
actions=log,trap
url=http://www.inverse.ca/ [^]
disable=N
trigger=
auto_enable=N
max_enable=0

[2010005]
desc=Remediation external (path) with auto_enable
priority=8
actions=log,trap
url=https://www.inverse.ca/SOGo/ [^]
disable=N
trigger=
auto_enable=Y
max_enable=0


This will be genarated as:
  # Rewrite rules generated for violation 2010004 external's URL
  RewriteCond %{HTTP_HOST} www.inverse.ca
  RewriteCond %{REQUEST_URI} ^/
  RewriteRule ^(.*)$ http://www.inverse.ca/$1 [^] [P]
  # Rewrite rules generated for violation 2010005 external's URL
  RewriteCond %{HTTP_HOST} www.inverse.ca
  RewriteCond %{REQUEST_URI} ^/SOGo/
  RewriteRule ^(.*)$ https://www.inverse.ca/$1 [^] [P]


With the above config someone with a 2010005 violation will never hit www.inverse.ca with HTTPS because the first rewrite statement will catch it (the broadest inverse.ca one).
TagsNo tags attached.
fixed in git revision
fixed in mtn revision
Attached Files

- Relationships
related to 0001024closedobilodeau absolute violation URLs are not proxied appropriately with apache 2.2 

-  Notes
(0003784)
lmunro (administrator)
2015-02-13 15:39

Closing old bugs.
If we haven't fixed them in four years they are either not a bug, no longer relevant or not worth it.

- Issue History
Date Modified Username Field Change
2010-10-25 11:39 obilodeau New Issue
2010-10-25 11:40 obilodeau Summary external remediation pages => not reaching proper external remediation pages if multiple from same domain
2010-10-25 15:07 obilodeau Relationship added related to 0001024
2011-01-18 11:41 obilodeau Target Version => 2.1.0
2011-03-03 15:15 obilodeau Target Version 2.1.0 => +1
2011-03-03 15:18 obilodeau Target Version +1 => +2
2015-02-13 15:39 lmunro Note Added: 0003784
2015-02-13 15:39 lmunro Status new => closed


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker