Skip to content

Ruby Rules

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

Ruby Rule Catalog

IDTitleSeverityCategory
CODE-0274Faraday HTTP Request Disables SSL/TLS VerificationCRITICALInsecureConfig
CODE-0499Unsafe YAML DeserializationCRITICALDeserialization
CODE-0524Deserialization of untrusted dataCRITICALDeserialization
CODE-0525Deserialization of untrusted dataCRITICALDeserialization
CODE-0526Unsafe Deserialization from YAMLCRITICALDeserialization
CODE-0529Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')CRITICALInjection
CODE-0539OS Command InjectionCRITICALInjection
CODE-0540Improper control of generation of code ('Code Injection')CRITICALInjection
CODE-0541OS Command InjectionCRITICALInjection
CODE-0545Improper control of generation of code ('Code Injection')CRITICALInjection
CODE-0546Improper control of generation of code ('Code Injection')CRITICALInjection
CODE-0550Avoid Session ManipulationCRITICALAccessControl
CODE-0551SQL InjectionCRITICALInjection
CODE-0763Hardcoded ActiveRecord Encryption KeyCRITICALSecrets
CODE-0807Disabling SSL/TLS Verification in RestClientCRITICALInsecureConfig
CODE-0001Insecure TLS Setting in ActionMailer SMTP ConfigurationHIGHInsecureConfig
CODE-0241ActiveRecord Encryption MisorderHIGHCrypto
CODE-0434Insecure Rails Cache Store ConfigurationHIGHDeserialization
CODE-0437SAML Response Validation DisabledHIGHAuth
CODE-0519Insecure Cookie SerializationHIGHDeserialization
CODE-0635Insecure use of Rails parameters with _jsonHIGHInjection
CODE-0639Insecure SSL Setting in Rails ApplicationHIGHInsecureConfig
CODE-0798Custom JSON DeserializationHIGHDeserialization
CODE-0003Insecure use of global timeoutMEDIUMGeneric
CODE-0226Insecure Rails Cookie Session StoreMEDIUMWeb
CODE-0520Inadequate RSA Key SizeMEDIUMCrypto
CODE-0521Use of weak hashMEDIUMCrypto
CODE-0522Use of weak hashMEDIUMCrypto
CODE-0523Cross-site request forgery (CSRF) protection missingMEDIUMWeb
CODE-0528Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')MEDIUMWeb
CODE-0530Detailed Exceptions EnabledMEDIUMInsecureConfig
CODE-0531Path Traversal VulnerabilityMEDIUMAccessControl
CODE-0532Path Traversal in Render FunctionMEDIUMAccessControl
CODE-0533External control of file name or pathMEDIUMInjection
CODE-0534Insecure use of skip_filter or skip_before_filterMEDIUMAccessControl
CODE-0535Unscoped Find Method Call with User-Controlled InputMEDIUMAccessControl
CODE-0536Avoid Tainted FTP CallMEDIUMInjection
CODE-0537Server Side Request Forgery (SSRF) via Unvalidated User Input in Net::HTTP MethodsMEDIUMInjection
CODE-0538Improper HTTP Verb Confusion CheckMEDIUMWeb
CODE-0542Mass Assignment VulnerabilityMEDIUMInjection
CODE-0543Unprotected Mass AssignmentMEDIUMInjection
CODE-0547Inefficient Regular Expression ComplexityMEDIUMInjection
CODE-0548Incorrect Regular ExpressionMEDIUMInjection
CODE-0549Incorrect Default PermissionsMEDIUMAccessControl
CODE-0552Cleartext transmission of sensitive informationMEDIUMInsecureConfig
CODE-0553Improper Certificate ValidationMEDIUMCrypto
CODE-0554Cross-site Scripting (XSS) in link_toMEDIUMInjection
CODE-0555Avoid render inline to prevent cross-site scripting (XSS)MEDIUMWeb
CODE-0556Avoid render text to prevent XSSMEDIUMInjection
CODE-0557Manual Creation of ERB TemplatesMEDIUMWeb
CODE-0770Insecure Rails Cookie AttributesMEDIUMWeb
CODE-0518Sensitive cookie without 'HttpOnly' and 'Secure' flagsLOWWeb
CODE-0527Division by ZeroLOWInjection
CODE-0544URL Redirection to Untrusted Site 'Open Redirect'LOWWeb

Total Rules: 54

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