Last active
July 31, 2020 08:55
-
-
Save rohitnss/c1293b78c50325f0cfa1cfe151bbcaa1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rules: | |
- id: SSRF | |
message: | | |
Generic SSRF Java | |
metadata: | |
cwe: "CWE-X" | |
owasp: "A1: Injection" | |
severity: ERROR | |
patterns: | |
- pattern-either: | |
- pattern: | #execute Directly | |
$RETURN $METHOD(...,String $VAR, ...) { | |
... | |
URL $URL = new URL($VAR); | |
... | |
} | |
- pattern: $URL = new URL($VAR); | |
- pattern-not: $URL = new URL("..."); | |
languages: | |
- java |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment