diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7158282..601ce78 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -31,7 +31,6 @@ repos: rev: 0.1.1 hooks: - id: yamlfmt - language_version: python3.10 # NOTE: If you change these settings, be sure to also # change the semgrep.live YAML settings, otherwise diffs will fail # to lint @@ -44,7 +43,6 @@ repos: rev: 0.1.1 hooks: - id: yamlfmt - language_version: python3.10 # NOTE: If you change these settings, be sure to also # change the semgrep.live YAML settings, otherwise diffs will fail # to lint diff --git a/rules-audit/java/struts2/security/audit/entrypoints/web-xml-url-pattern.yml b/rules-audit/java/struts2/security/audit/entrypoints/web-xml-filter-url-pattern.yml similarity index 92% rename from rules-audit/java/struts2/security/audit/entrypoints/web-xml-url-pattern.yml rename to rules-audit/java/struts2/security/audit/entrypoints/web-xml-filter-url-pattern.yml index 7f57c5e..3691861 100644 --- a/rules-audit/java/struts2/security/audit/entrypoints/web-xml-url-pattern.yml +++ b/rules-audit/java/struts2/security/audit/entrypoints/web-xml-filter-url-pattern.yml @@ -1,5 +1,5 @@ rules: - - id: web-xml-url-pattern + - id: web-xml-filter-url-pattern message: >- web.xml Struts2 filter $FILTER_NAME @@ -8,6 +8,7 @@ rules: severity: INFO # There is no proper tree-sitter-xml # Only this https://github.com/unhammer/tree-sitter-xml + # 2023: https://github.com/tree-sitter-grammars/tree-sitter-xml languages: [generic] metadata: category: security @@ -21,8 +22,6 @@ rules: paths: include: - web.xml - # unit test - - web-xml-url-pattern.xml patterns: - pattern: | diff --git a/rules-audit/java/struts2/security/audit/entrypoints/web-xml-url-pattern.xml b/rules-audit/java/struts2/security/audit/entrypoints/web-xml-filter-url-pattern/web.xml similarity index 95% rename from rules-audit/java/struts2/security/audit/entrypoints/web-xml-url-pattern.xml rename to rules-audit/java/struts2/security/audit/entrypoints/web-xml-filter-url-pattern/web.xml index f8aa9de..07e2332 100644 --- a/rules-audit/java/struts2/security/audit/entrypoints/web-xml-url-pattern.xml +++ b/rules-audit/java/struts2/security/audit/entrypoints/web-xml-filter-url-pattern/web.xml @@ -10,7 +10,7 @@ rev: heads/master-0-g371e480 xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> Struts Blank - + struts2