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

GitLab Advanced SAST rules: Go

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

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

Rule IDRule descriptionCWEOWASP Top 10
go-gocql-sqli-session-taintImproper neutralization of special elements used in a SQL command (‘SQL Injection’)CWE-89A1:2017, A03:2021
go-gopg-sqli-taintImproper neutralization of special elements used in a SQL command (‘SQL Injection’)CWE-89A1:2017, A03:2021
go-gorm-sqli-taintImproper neutralization of special elements used in a SQL command (‘SQL Injection’)CWE-89A1:2017, A03:2021
go-lang-accesscontrol-allow-all-origin-atomicPermissive cross-domain policy with untrusted domainsCWE-942A5:2017, A01:2021
go-lang-accesscontrol-http-root-dir-atomicFiles or directories accessible to external partiesCWE-552A5:2017, A01:2021
go-lang-accesscontrol-permissions-mkdir-atomicIncorrect permission assignment for critical resourceCWE-732A5:2017, A01:2021
go-lang-accesscontrol-poor-file-permissions-atomicIncorrect permission assignment for critical resourceCWE-732A5:2017, A01:2021
go-lang-accesscontrol-poor-write-permissions-atomicIncorrect default permissionsCWE-276A5:2017, A01:2021
go-lang-accesscontrol-tempfiles-atomicInsecure temporary fileCWE-377A5:2017, A01:2021
go-lang-cmdi-exec-command-write-taintImproper neutralization of special elements used in an OS command (‘OS Command Injection’)CWE-78A1:2017, A03:2021
go-lang-cmdi-os-exec-cmd-taintImproper neutralization of special elements used in an OS command (‘OS Command Injection’)CWE-78A1:2017, A03:2021
go-lang-cmdi-os-exec-command-taintImproper neutralization of special elements used in an OS command (‘OS Command Injection’)CWE-78A1:2017, A03:2021
go-lang-cmdi-os-syscall-exec-taintImproper neutralization of special elements used in an OS command (‘OS Command Injection’)CWE-78A1:2017, A03:2021
go-lang-crypto-bad-tls-settings-atomicUse of a broken or risky cryptographic algorithmCWE-327A3:2017, A02:2021
go-lang-crypto-blocklist-des-atomicUse of a broken or risky cryptographic algorithmCWE-327A3:2017, A02:2021
go-lang-crypto-blocklist-md5-atomicUse of a broken or risky cryptographic algorithmCWE-327A3:2017, A02:2021
go-lang-crypto-blocklist-rc4-atomicUse of a broken or risky cryptographic algorithmCWE-327A3:2017, A02:2021
go-lang-crypto-blocklist-sha1-atomicUse of a broken or risky cryptographic algorithmCWE-327A3:2017, A02:2021
go-lang-crypto-insecure-ignore-host-key-atomicKey exchange without entity authenticationCWE-322A2:2017, A07:2021
go-lang-crypto-tlsversion-atomicInadequate encryption strengthCWE-326A3:2017, A02:2021
go-lang-crypto-weakkeystrength-atomicInadequate encryption strengthCWE-326A3:2017, A02:2021
go-lang-crypto-weakrandsource-atomicUse of cryptographically weak Pseudo-Random Number Generator (PRNG)CWE-338A3:2017, A02:2021
go-lang-database-sql-sqli-taintImproper neutralization of special elements used in a SQL command (‘SQL Injection’)CWE-89A1:2017, A03:2021
go-lang-dos-decompression-bomb-taintImproper handling of highly compressed dataCWE-409A1:2017, A03:2021
go-lang-misconfiguration-cookie-httponly-false-atomicSensitive cookie without ‘HttpOnly’ flagCWE-1004A6:2017, A05:2021
go-lang-misconfiguration-cookie-secure-false-atomicSensitive cookie in HTTPS session without ‘Secure’ attributeCWE-614A6:2017, A05:2021
go-lang-misconfiguration-http-serve-atomicAllocation of resources without limits or throttlingCWE-770A6:2017, A05:2021
go-lang-misconfiguration-memory-aliasing-atomicIncorrect access of indexable resource (‘Range Error’)CWE-118A6:2017, A05:2021
go-lang-misconfiguration-pprof-endpoint-atomicActive debug code (pprof enabled)CWE-489A6:2017, A05:2021
go-lang-network-bind-to-all-interfaces-atomicBinding to an unrestricted IP addressCWE-1327A6:2017, A05:2021
go-lang-openredirect-redirect-taintURL redirection to untrusted site (‘Open Redirect’)CWE-601A01:2021, A5:2017
go-lang-overflow-integer-atomicInteger overflow or wraparoundCWE-190A1:2017, A03:2021
go-lang-overflow-unsafe-atomicUse of inherently dangerous function (unsafe package)CWE-242A9:2017, A06:2021
go-lang-pathtraversal-archive-taintImproper limitation of a pathname to a restricted directory (‘Path Traversal’)CWE-22A5:2017, A01:2021
go-lang-pathtraversal-ioutil-readfile-taintImproper limitation of a pathname to a restricted directory (‘Path Traversal’)CWE-22A5:2017, A01:2021
go-lang-pathtraversal-ioutil-writefile-taintImproper limitation of a pathname to a restricted directory (‘Path Traversal’)CWE-22A5:2017, A01:2021
go-lang-pathtraversal-os-readfile-taintImproper limitation of a pathname to a restricted directory (‘Path Traversal’)CWE-22A5:2017, A01:2021
go-lang-pathtraversal-os-remove-taintImproper limitation of a pathname to a restricted directory (‘Path Traversal’)CWE-22A5:2017, A01:2021
go-lang-pathtraversal-os-writefile-taintImproper limitation of a pathname to a restricted directory (‘Path Traversal’)CWE-22A5:2017, A01:2021
go-lang-ssrf-taintServer Side Request Forgery (SSRF)CWE-918A1:2017, A10:2021
go-lang-ssti-htmltemplate-taintImproper neutralization of special elements used in a template engineCWE-1336A1:2017, A03:2021
go-lang-xss-html-template-taintImproper neutralization of input during web page generation (‘Cross-site Scripting’)CWE-79A1:2017, A03:2021
go-lang-xss-taintImproper neutralization of input during web page generation (‘Cross-site Scripting’)CWE-79A1:2017, A03:2021
go-libxml2-xxe-parsestring-taintImproper restriction of XML external entity reference (‘XXE’)CWE-611A4:2017, A05:2021
go-mongo-nosqli-bson-taintImproper Neutralization of Special Elements in Data Query LogicCWE-943A1:2017, A03:2021
go-otto-cmdi-taintImproper neutralization of special elements used in an OS command (‘OS Command Injection’)CWE-78A1:2017, A03:2021
go-pgx-sqli-taintImproper neutralization of special elements used in a SQL command (‘SQL Injection’)CWE-89A1:2017, A03:2021