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

io.codemodder.codemods.upgrade-sslengine-tls.yaml Maven / Gradle / Ivy

The newest version!
rules:
  - id: upgrade-sslengine-tls
    patterns:
      - pattern: (SSLEngine $SSL).setEnabledProtocols($PROTOCOLS)
      - metavariable-pattern:
          metavariable: $PROTOCOLS
          patterns:
            - pattern-either:
                - pattern: new String[]{"TLSv1"}
                - pattern: new String[]{"TLSv1.1"}
                - pattern: new String[]{"TLSv1","TLSv1.1"}
                - pattern: new String[]{"TLSv1.1","TLSv1"}
                - pattern-inside: |
                    class $CLASS {
                      ...
                      String[] $PROTOCOLS = new String[]{"TLSv1"};
                      ...
                    }
    message: Semgrep found a match
    languages:
      - java
    severity: WARNING




© 2015 - 2024 Weber Informatics LLC | Privacy Policy