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

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

There is a newer version: 0.97.3
Show newest version
rules:
  - id: upgrade-sslsocket-tls
    patterns:
      - pattern: (SSLSocket $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