正式なドキュメントは英語版であり、この日本語訳はAI支援翻訳により作成された参考用のものです。日本語訳の一部の内容は人間によるレビューがまだ行われていないため、翻訳のタイミングにより英語版との間に差異が生じることがあります。最新かつ正確な情報については、英語版をご参照ください。

GitLab Advanced SAST rules: Ruby

  • Tier: Ultimate
  • Offering: GitLab.com, GitLab Self-Managed, GitLab Dedicated

Rules used by GitLab Advanced SAST to detect vulnerabilities in Ruby code.

Rule IDRule descriptionCWEOWASP Top 10
ruby-digest-crypto-md5-usage-atomicUse of weak hashCWE-328A3:2017, A02:2021
ruby-lang-cmdi-exec-taintImproper control of generation of code (‘Code Injection’)CWE-94A1:2017, A03:2021
ruby-lang-codei-badsend-taintImproper control of generation of code (‘Code Injection’)CWE-94A1:2017, A03:2021
ruby-lang-crypto-rule-insufficient_rsa_key_size-atomicInadequate encryption strengthCWE-326A3:2017, A02:2021
ruby-lang-crypto-sha1_usage-atomicUse of weak hashCWE-328A3:2017, A02:2021
ruby-lang-crypto-ssl-mode-noverify-atomicImproper certificate validationCWE-295A3:2017, A07:2021
ruby-lang-deserialization-taintDeserialization of untrusted dataCWE-502A8:2017, A08:2021
ruby-lang-deserialization-yaml-taintDeserialization of untrusted dataCWE-502A8:2017, A08:2021
ruby-lang-pathtraversal-render-functions-taintImproper limitation of a pathname to a restricted directory (‘Path Traversal’)CWE-22A5:2017, A01:2021
ruby-lang-xss-avoid-linkto-taintImproper neutralization of input during web page generation (‘Cross-site Scripting’)CWE-79A7:2017, A03:2021
ruby-nethttp-ssrf-taintServer side request forgery (SSRF)CWE-918A1:2017, A10:2021
ruby-rails-accesscontrol-checkbeforefilter-atomicExposed dangerous method or functionCWE-749A5:2017, A01:2021
ruby-rails-accesscontrol-defaultroutes-atomicIncorrect Default PermissionsCWE-276A5:2017, A01:2021
ruby-rails-accesscontrol-massassignment-modelattraccessible-atomicImproperly controlled modification of dynamically-determined object attributesCWE-915A5:2017, A08:2021
ruby-rails-accesscontrol-session-manipulation-taintAuthorization bypass through user-controlled keyCWE-639A5:2017, A01:2021
ruby-rails-accesscontrol-unprotected-mass-assign-taintImproperly controlled modification of dynamically-determined object attributesCWE-915A5:2017, A08:2021
ruby-rails-accesscontrol-unscoped-find-taintAuthorization bypass through user-controlled keyCWE-639A5:2017, A01:2021
ruby-rails-cmdi-avaoid-ftp-call-taintImproper neutralization of equivalent special elementsCWE-76A1:2017, A03:2021
ruby-rails-cmdi-os-shell-commands-taintImproper neutralization of special elements used in an OS command (‘OS Command Injection’)CWE-78A1:2017, A03:2021
ruby-rails-codei-noeval-taintImproper neutralization of directives in dynamically evaluated code (‘Eval Injection’)CWE-95A1:2017, A03:2021
ruby-rails-codei-unsafe-reflection-methods-taintImproper control of generation of code (‘Code Injection’)CWE-94A1:2017, A03:2021
ruby-rails-codei-unsafe-reflection-taintImproper control of generation of code (‘Code Injection’)CWE-94A1:2017, A03:2021
ruby-rails-csrf-no-protection-atomicCross-site request forgery (CSRF)CWE-352A5:2017, A01:2021
ruby-rails-deserialization-cookieserialization-atomicImproper control of generation of code (‘Code Injection’)CWE-94A1:2017, A03:2021
ruby-rails-dos-regexdos-taintInefficient regular expression complexityCWE-1333A6:2017, A04:2021
ruby-rails-misconfiguration-checkhttpverbconfusion-atomicImproper check for unusual or exceptional conditionsCWE-754A6:2017, A04:2021
ruby-rails-misconfiguration-cookie-security-flags-atomicSensitive cookie without ‘HttpOnly’ flagCWE-1004A6:2017, A05:2021
ruby-rails-misconfiguration-detailed-exception-atomicGeneration of error message containing sensitive informationCWE-209A3:2017, A05:2021
ruby-rails-misconfiguration-dividebyzero-atomicDivide a number by zeroCWE-369A6:2017, A04:2021
ruby-rails-misconfiguration-force-SSL-false-atomicMissing encryption of sensitive dataCWE-311A6:2017, A05:2021
ruby-rails-openredirect-checkredirect-to-taintURL redirection to untrusted site ‘open redirect’CWE-601A1:2017, A03:2021
ruby-rails-pathtraversal-checksendfile-taintExternal control of file name or pathCWE-73A5:2017, A01:2021
ruby-rails-pathtraversal-taintedfileaccess-taintImproper limitation of a pathname to a restricted directory (‘Path Traversal’)CWE-22A5:2017, A01:2021
ruby-rails-sqli-taintImproper neutralization of special elements used in a SQL command (‘SQL Injection’)CWE-89A1:2017, A03:2021
ruby-rails-xss-avoidrendertext-taintImproper neutralization of input during web page generation (‘Cross-site Scripting’)CWE-79A7:2017, A03:2021
ruby-rails-xss-jsonentityescape-atomicImproper neutralization of input during web page generation (‘Cross-site Scripting’)CWE-79A7:2017, A03:2021
ruby-rails-xss-manualtemplatecreation-taintImproper neutralization of input during web page generation (‘Cross-site Scripting’)CWE-79A7:2017, A03:2021
ruby-rails-xss-render-inline-taintImproper neutralization of input during web page generation (‘Cross-site Scripting’)CWE-79A7:2017, A03:2021