Skip to content

Java Rules

SAST rules for Java that identify insecure patterns in application code.

Java Rule Catalog

IDTitleSeverityCategory
CODE-0006User input used in MongoDB $where operatorCRITICALInjection
CODE-0057Hard-coded Password in Database Connection StringCRITICALSecrets
CODE-0058Hard-coded Database PasswordCRITICALSecrets
CODE-0101User Input Controls Remote URL DestinationCRITICALInjection
CODE-0184GCM Nonce Reuse RiskCRITICALCrypto
CODE-0212Path Traversal due to Unsafe File AccessCRITICALInjection
CODE-0292MongoDB Client with SSL Hostname Verification DisabledCRITICALCrypto
CODE-0303Use of a broken or risky cryptographic algorithmCRITICALCrypto
CODE-0324SQL InjectionCRITICALInjection
CODE-0334Server-Side Request Forgery (SSRF)CRITICALWeb
CODE-0625WebView loads files from external storageCRITICALWeb
CODE-0637Unsafe dynamic code execution via GroovyShellCRITICALInjection
CODE-0645Unvalidated user input used in file pathCRITICALInjection
CODE-0649Insecure 'none' algorithm in JWTCRITICALCrypto
CODE-0705OS Command InjectionCRITICALInjection
CODE-0714Hard-coded password in database connection stringCRITICALSecrets
CODE-0715Missing Database AuthenticationCRITICALAuth
CODE-0716Hard-coded passwordCRITICALSecrets
CODE-0719Improper control of generation of code ('Code Injection')CRITICALInjection
CODE-0720Expression Language InjectionCRITICALInjection
CODE-0759Seam log injection via dynamic expression evaluationCRITICALInjection
CODE-0760Deserialization of untrusted data with SnakeYAMLCRITICALDeserialization
CODE-0033Unencrypted Server SocketHIGHCrypto
CODE-0054SQL InjectionHIGHInjection
CODE-0059Hard-coded PasswordHIGHSecrets
CODE-0061Overly Permissive File PermissionHIGHInsecureConfig
CODE-0068Server-Side Request Forgery (SSRF)HIGHWeb
CODE-0075External Control of System or Configuration SettingHIGHInsecureConfig
CODE-0080Deserialization of Untrusted DataHIGHDeserialization
CODE-0290Command injection via environment variablesHIGHInjection
CODE-0504Unsafe Deserialization from JMSHIGHDeserialization
CODE-0666SQL Injection risk due to untrusted inputHIGHInjection
CODE-0682HTTP Response SplittingHIGHInjection
CODE-0683HTTP Response SplittingHIGHInjection
CODE-0701Unvalidated RedirectHIGHWeb
CODE-0703Path Traversal in File UploadHIGHAccessControl
CODE-0704Path Traversal VulnerabilityHIGHInjection
CODE-0706Expression Language InjectionHIGHInjection
CODE-0707RequestDispatcher File DisclosureHIGHAccessControl
CODE-0708Potential File Disclosure via User-Supplied InputHIGHAccessControl
CODE-0709HTTP Parameter PollutionHIGHInjection
CODE-0710LDAP InjectionHIGHInjection
CODE-0711Expression injection (OGNL)HIGHInjection
CODE-0713Missing Authentication for LDAP ConnectionHIGHAuth
CODE-0728Template InjectionHIGHInjection
CODE-0731Deserialization of untrusted dataHIGHDeserialization
CODE-0734Cross-Site Scripting (XSS) via Improper Input NeutralizationHIGHWeb
CODE-0740Insecure GCM IV and Key UsageHIGHCrypto
CODE-0002Missing secure configuration in DocumentBuilderFactoryMEDIUMInjection
CODE-0026Inadequate Encryption StrengthMEDIUMCrypto
CODE-0055LDAP Anonymous AuthenticationMEDIUMAuth
CODE-0062Overly Permissive File PermissionMEDIUMInsecureConfig
CODE-0069Incorrect Type Conversion or CastMEDIUMGeneric
CODE-0081XML Injection (Blind XPath Injection)MEDIUMInjection
CODE-0100Insecure Random Number GenerationMEDIUMCrypto
CODE-0109Unencrypted HTTP request using UnirestMEDIUMCrypto
CODE-0110Insecure Deserialization via ObjectInputStreamMEDIUMDeserialization
CODE-0111Jackson Unsafe Polymorphic DeserializationMEDIUMDeserialization
CODE-0221Spring Boot Actuator full exposure in propertiesMEDIUMAccessControl
CODE-0229Use of HTTP instead of HTTPSMEDIUMCrypto
CODE-0233External parameter entities allowed in XML parserMEDIUMInjection
CODE-0236Unsafe Spring Service ExporterMEDIUMInsecureConfig
CODE-0237Unsafe Spring Service ExporterMEDIUMInsecureConfig
CODE-0240Insecure Protocol in Socket ConnectionMEDIUMCrypto
CODE-0251Use of cleartext transport protocol (Telnet)MEDIUMCrypto
CODE-0261Unsafe TLS Renegotiation EnabledMEDIUMCrypto
CODE-0279CSRF protection disabled in SpringMEDIUMWeb
CODE-0283SAXParserFactory Improperly Configured Against XXEMEDIUMInjection
CODE-0311Inadequate encryption strengthMEDIUMCrypto
CODE-0325Missing authentication for critical function (LDAP)MEDIUMAuth
CODE-0461Cleartext HTTP used in Spring RestTemplateMEDIUMCrypto
CODE-0481External general entities allowed in XML parserMEDIUMInjection
CODE-0500Unsafe Deserialization via RMI Parameter TypesMEDIUMDeserialization
CODE-0506Insecure Cryptographic Algorithm: RC2MEDIUMCrypto
CODE-0507Insecure HTTP request via URLConnectionMEDIUMInsecureConfig
CODE-0514Insecure FTP transportMEDIUMInsecureConfig
CODE-0558JWT token decoded without signature verificationMEDIUMCrypto
CODE-0623Insecure WebView Implementation: SSL Certificate Validation BypassMEDIUMWeb
CODE-0624Remote WebView Debugging EnabledMEDIUMWeb
CODE-0626WebView File System Access EnabledMEDIUMWeb
CODE-0638Unvalidated input used in XPath expressionMEDIUMInjection
CODE-0646Insecure FTP protocol detected in Spring Integration configurationMEDIUMCrypto
CODE-0665Use of deprecated cryptographic algorithm (RC4)MEDIUMCrypto
CODE-0668Insecure TLS/SSL version usageMEDIUMCrypto
CODE-0674External entities enabled in XMLInputFactoryMEDIUMInjection
CODE-0684Permissive Cross-Domain Policy with Untrusted DomainsMEDIUMWeb
CODE-0685Inadequate encryption strength due to small key size for BlowfishMEDIUMCrypto
CODE-0686Inadequate encryption strengthMEDIUMCrypto
CODE-0687Use of a broken or risky cryptographic algorithmMEDIUMCrypto
CODE-0688Use of a broken or risky cryptographic algorithmMEDIUMCrypto
CODE-0689Use of a broken or risky cryptographic algorithmMEDIUMCrypto
CODE-0690Use of a broken or risky cryptographic algorithmMEDIUMCrypto
CODE-0691Custom MessageDigest ImplementationMEDIUMCrypto
CODE-0692Inadequate encryption strengthMEDIUMCrypto
CODE-0693Inadequate encryption strengthMEDIUMCrypto
CODE-0694Use of NullCipherMEDIUMCrypto
CODE-0695Use of RSA algorithm without OAEPMEDIUMCrypto
CODE-0696Use of a broken or risky cryptographic algorithm (SHA1/MD5)MEDIUMCrypto
CODE-0697Improper Certificate ValidationMEDIUMInsecureConfig
CODE-0698Insecure SSL ProtocolMEDIUMCrypto
CODE-0699Inadequate encryption strengthMEDIUMCrypto
CODE-0700Improper Certificate ValidationMEDIUMCrypto
CODE-0702Improper Certificate ValidationMEDIUMCrypto
CODE-0712Path Traversal VulnerabilityMEDIUMInjection
CODE-0717Dangerous Permission CombinationMEDIUMAccessControl
CODE-0718Overly Permissive File PermissionsMEDIUMAccessControl
CODE-0721Insecure SMTP SSL ConfigurationMEDIUMInsecureConfig
CODE-0722SMTP Header InjectionMEDIUMInjection
CODE-0723Server-Side Request Forgery (SSRF)MEDIUMInjection
CODE-0724Incorrect Hex ConversionMEDIUMGeneric
CODE-0725Use of externally-controlled format stringMEDIUMInjection
CODE-0726Modification after validationMEDIUMInjection
CODE-0727Incorrect behavior order: validate before canonicalizeMEDIUMInjection
CODE-0730SAML Authentication Bypass via XML CommentsMEDIUMAuth
CODE-0732XSLT Translation with Potentially Malicious InputMEDIUMInjection
CODE-0733Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')MEDIUMWeb
CODE-0735Improper Restriction of XML External Entity Reference ('XXE')MEDIUMInjection
CODE-0739Use of HTTP with Apache HttpClientMEDIUMCrypto
CODE-0754TransformerFactory missing secure configurationMEDIUMInjection
CODE-0762DOCTYPE declaration explicitly enabled in XML parserMEDIUMInjection
CODE-0766XMLInputFactory MisconfigurationMEDIUMInjection
CODE-0799Missing HTTP method in Spring @RequestMappingMEDIUMWeb
CODE-0016Permissive Cross-domain Policy with Untrusted DomainsLOWWeb
CODE-0238Unsafe Spring Service ExporterLOWInsecureConfig
CODE-0263Explicit Garbage Collection CallLOWGeneric
CODE-0671Cookie missing HttpOnly attributeLOWWeb
CODE-0681Sensitive cookie in HTTPS session without 'Secure' attributeLOWWeb
CODE-0729External Control of System SettingLOWInjection

Total Rules: 128

Click on any rule ID to view detailed information, examples, and remediation guidance.