Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-2870

Support allowed hosts patterns in ReferrerFilter

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Security 1.0.2
    • Security 1.0.6
    • Extensions
    • None

    Description

      The current "allow.hosts" setting of the ReferrerFilter can be configured with a list of trusted hosts.
      In a setup where the list of allowed hosts is expending as the application runs, it becomes tricky to keep the configuration in sync.
      As an example, a service which supports wilcard uris such as <userId>.my.service.com would be required to modify the reference filter configuration for each user which is hardly doable.

      Thus, I would propose to support regex patterns for the list of "allow.hosts". which would still be secure.

      The example above would be configured as: allow.hosts=(.*).my.service.com

      Attachments

        1. SLING-2870.patch
          13 kB
          Timothee Maret
        2. SLING-2870.patch
          10 kB
          Timothee Maret

        Activity

          People

            cziegeler Carsten Ziegeler
            marett Timothee Maret
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: