All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.codemodder.codemods.validate-jakarta-forward-path.yaml Maven / Gradle / Ivy

The newest version!
rules:
  - id: validate-jakarta-forward-path
    patterns:
      - pattern: (HttpServletRequest $REQ).getRequestDispatcher($PATH)
      - pattern-not: (HttpServletRequest $REQ).getRequestDispatcher("...")
      - metavariable-regex:
          metavariable: $PATH
          regex: (?!(validate|sanitize|strip).*)
      - focus-metavariable: $PATH
    message: Semgrep found a match
    languages:
      - java
    severity: WARNING




© 2015 - 2024 Weber Informatics LLC | Privacy Policy