Details

    • Type: Language-Specification
    • Status: Active
    • Resolution: Unresolved
    • Labels:
      None
    • Impact:
      Unknown 'null' severity
    • Likelihood:
      Unknown 'null' severity

      Description

      Sensitive Code Example

      // === Tomcat 7+ Cors Filter ===
      <filter>
        <filter-name>corsFilter</filter-name>
        <filter-class&gt;org.apache.catalina.filters.CorsFilter</filter-class&gt;
      </filter>
      <filter-mapping>
        <filter-name>CorsFilter</filter-name>
        <url-pattern>/*</url-pattern> <!-- Sensitive -->
      </filter-mapping>
      

      Compliant Solution

      // === Tomcat 7+ Cors Filter ===
      <filter>
        <filter-name>corsFilter</filter-name>
        <filter-class&gt;org.apache.catalina.filters.CorsFilter</filter-class&gt;
      </filter>
      <filter-mapping>
        <filter-name>CorsFilter</filter-name>
        <url-pattern>trustedwebsite.com</url-pattern> <!-- Compliant -->
      </filter-mapping>
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              alexandre.gigleux Alexandre Gigleux
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: