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

GitLab Advanced SAST rules: Java

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

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

Rule IDRule descriptionCWEOWASP Top 10
java-android-crypto-webview-ignore-ssl-certificate-errors-atomicImproper certificate validationCWE-295A3:2017, A02:2021
java-android-misconfiguration-webview-debugging-atomicActive debug codeCWE-489A6:2017, A05:2021
java-android-misconfiguration-webview-external-storage-atomicExposed dangerous method or functionCWE-749A1:2017, A03:2021
java-commons-ssrf-httpclient-taintServer-Side Request Forgery (SSRF)CWE-918A1:2017, A10:2021
java-groovy-cmdi-groovyshell-taintImproper control of generation of code (‘Code Injection’)CWE-94A1:2017, A03:2021
java-hibernate-sqli-taintImproper neutralization of special elements used in an SQL command (‘SQL Injection’)CWE-89A1:2017, A03:2021
java-jackson-deserialization-objectmapper-atomicJava Unsafe Jackson DeserializationCWE-502A8:2017, A08:2021
java-jackson-deserialization-objectmapper-taintDeserialization of untrusted dataCWE-502A8:2017, A08:2021
java-jdbc-sqli-formatted-string-taintImproper neutralization of special elements used in an SQL command (‘SQL Injection’)CWE-89A1:2017, A03:2021
java-jdbc-sqli-taintImproper neutralization of special elements used in an SQL command (‘SQL Injection’)CWE-89A1:2017, A03:2021
java-jdbi-sqli-handle-taintImproper neutralization of special elements used in an SQL command (‘SQL Injection’)CWE-89A1:2017, A03:2021
java-jdo-sqli-taintImproper neutralization of special elements used in an SQL command (‘SQL Injection’)CWE-89A1:2017, A03:2021
java-jms-deserialization-getobject-taintDeserialization of untrusted dataCWE-502A8:2017, A08:2021
java-jpa-sqli-taintImproper neutralization of special elements used in an SQL command (‘SQL Injection’)CWE-89A1:2017, A03:2021
java-lang-accesscontrol-dangerous-permissions-atomicIncorrect permission assignment for critical resourceCWE-732A5:2017, A01:2021
java-lang-accesscontrol-overly-permissive-file-permission-atomicIncorrect permission assignment for critical resourceCWE-732A5:2017, A01:2021
java-lang-accesscontrol-saml-ignore-comments-atomicWeak authenticationCWE-1390A5:2017, A01:2021
java-lang-accesscontrol-webview-allow-file-access-atomicExternal control of file name or pathCWE-73A5:2017, A01:2021
java-lang-cmdi-FileDisclosureRequestDispatcher-taintFiles or directories accessible to external partiesCWE-552A5:2017, A01:2021
java-lang-cmdi-env-injection-taintImproper neutralization of special elements used in an OS command (‘OS Command Injection’)CWE-78A1:2017, A03:2021
java-lang-cmdi-processbuilder-taintImproper neutralization of special elements used in an OS command (‘OS Command Injection’)CWE-78A1:2017, A03:2021
java-lang-cmdi-runtime-taintImproper neutralization of special elements used in an OS command (‘OS Command Injection’)CWE-78A1:2017, A03:2021
java-lang-cmdi-smtp-client-taintImproper neutralization of special elements used in a commandCWE-77A1:2017, A03:2021
java-lang-codei-scriptinjection-taintImproper control of generation of code (‘Code Injection’)CWE-94A1:2017, A03:2021
java-lang-codei-unsafe-reflection-taintUse of externally-controlled input to select classes or code (‘Unsafe Reflection’)CWE-470A1:2017, A03:2021
java-lang-cors-permissive-cors-injection-taintPermissive cross-domain policy with untrusted domainsCWE-942A1:2017, A03:2021
java-lang-crlfi-cookie-http-response-splitting-taintImproper neutralization of CRLF sequences in HTTP headers (‘HTTP Response Splitting’)CWE-113A1:2017, A03:2021
java-lang-crlfi-cookie-request-param-to-header-taintImproper neutralization of CRLF sequences in HTTP headers (‘HTTP Response Splitting’)CWE-113A1:2017, A03:2021
java-lang-crlfi-logs-injection-taintImproper output neutralization for logsCWE-117A1:2017, A03:2021
java-lang-crypto-blowfish-keysize-atomicInadequate encryption strengthCWE-326A3:2017, A02:2021
java-lang-crypto-ciperintegrity-atomicUse of a broken or risky cryptographic algorithmCWE-327A3:2017, A02:2021
java-lang-crypto-cipher-atomicUse of a broken or risky cryptographic algorithmCWE-327A3:2017, A02:2021
java-lang-crypto-cipherdesedeinsecure-atomicUse of a broken or risky cryptographic algorithmCWE-327A3:2017, A02:2021
java-lang-crypto-cipherpaddingoracle-atomicUse of a broken or risky cryptographic algorithmCWE-327A3:2017, A02:2021
java-lang-crypto-custom-messagedigest-atomicUse of a broken or risky cryptographic algorithmCWE-327A3:2017, A02:2021
java-lang-crypto-defaulthttpclient-atomicImproper certificate validationCWE-295A3:2017, A02:2021
java-lang-crypto-des-atomicUse of a broken or risky cryptographic algorithmCWE-327A3:2017, A02:2021
java-lang-crypto-disallow-old-tls-versions-atomicInadequate encryption strengthCWE-326A3:2017, A02:2021
java-lang-crypto-ftp-insecure-transport-atomicCleartext transmission of sensitive informationCWE-319A3:2017, A02:2021
java-lang-crypto-gcm-nonce-reuse-atomicReusing a nonce, key pair in encryptionCWE-323A3:2017, A02:2021
java-lang-crypto-hazelcast-symmetric-encryption-atomicInadequate encryption strengthCWE-326A3:2017, A02:2021
java-lang-crypto-hostnameverifier-atomicImproper certificate validationCWE-295A3:2017, A02:2021
java-lang-crypto-http-components-request-atomicCleartext transmission of sensitive informationCWE-319A3:2017, A02:2021
java-lang-crypto-httpget-http-request-taintCleartext transmission of sensitive informationCWE-319A3:2017, A02:2021
java-lang-crypto-insecure-random-taintUse of cryptographically weak pseudo-random number generator (PRNG)CWE-338A3:2017, A02:2021
java-lang-crypto-insufficient-keysize-atomicInadequate encryption strengthCWE-326A3:2017, A02:2021
java-lang-crypto-jwt-none-algorithm-atomicUse of a broken or risky cryptographic algorithmCWE-327A3:2017, A02:2021
java-lang-crypto-null-cipher-atomicUse of a broken or risky cryptographic algorithmCWE-327A3:2017, A02:2021
java-lang-crypto-rc2-atomicUse of a broken or risky cryptographic algorithmCWE-327A3:2017, A02:2021
java-lang-crypto-rc4-atomicUse of a broken or risky cryptographic algorithmCWE-327A3:2017, A02:2021
java-lang-crypto-rsanopadding-atomicUse of RSA algorithm without OAEPCWE-780A3:2017, A02:2021
java-lang-crypto-smtp-insecure-atomicImproper validation of certificate with host mismatchCWE-297A3:2017, A02:2021
java-lang-crypto-socket-request-unsafe-protocols-atomicCleartext transmission of sensitive informationCWE-319A3:2017, A02:2021
java-lang-crypto-telnet-request-atomicCleartext transmission of sensitive informationCWE-319A3:2017, A02:2021
java-lang-crypto-tls-unsafe-renegotiation-atomicCleartext transmission of sensitive informationCWE-319A3:2017, A02:2021
java-lang-crypto-weak-messagedigest-atomicUse of Weak HashCWE-328A3:2017, A02:2021
java-lang-crypto-weaktls-atomicInadequate encryption strengthCWE-326A3:2017, A02:2021
java-lang-crypto-weaktlsprotocolsslcontext-atomicInadequate encryption strengthCWE-326A3:2017, A02:2021
java-lang-crypto-x509trustmanager-atomicImproper certificate validationCWE-295A3:2017, A02:2021
java-lang-deserialization-objectinputstream-taintDeserialization of untrusted dataCWE-502A8:2017, A08:2021
java-lang-deserialization-server-dangerous-object-deserialization-atomicDeserialization of untrusted dataCWE-502A8:2017, A08:2021
java-lang-file-disclosure-model-and-view-taintFiles or directories accessible to external partiesCWE-552A5:2017, A01:2021
java-lang-hpp-taintImproper neutralization of argument delimiters in a command (‘Argument Injection’)CWE-88A1:2017, A03:2021
java-lang-ldapi-anonymous-atomicMissing authentication for critical function (LDAP)CWE-306A2:2017, A07:2021
java-lang-ldapi-taintImproper neutralization of special elements used in an LDAP query (‘LDAP Injection’)CWE-90A1:2017, A03:2021
java-lang-misconfiguration-bad-hex-conversion-atomicIncorrect type conversion or castCWE-704A6:2017, A04:2021
java-lang-misconfiguration-cookie-http-url-connection-atomicCleartext transmission of sensitive informationCWE-319A3:2017, A02:2021
java-lang-misconfiguration-cookie-httponly-atomicSensitive cookie without ‘HttpOnly’ flagCWE-1004A6:2017, A05:2021
java-lang-misconfiguration-cookie-insecure-atomicSensitive cookie in HTTPS session without ‘Secure’ attributeCWE-614A6:2017, A05:2021
java-lang-misconfiguration-cookie-samesite-taintSensitive cookie with improper SameSite attributeCWE-1275A05:2017, A01:2021
java-lang-misconfiguration-external-general-entities-true-atomicImproper restriction of XML external entity reference (‘XXE’)CWE-611A4:2017, A05:2021
java-lang-misconfiguration-normalizeaftervalidation-atomicIncorrect behavior order: validate before canonicalizeCWE-180A6:2017, A04:2021
java-lang-misconfiguration-properties-input-taintExternal control of system or configuration settingCWE-15A6:2017, A04:2021
java-lang-misconfiguration-session-manipulation-taintTrust boundary violationCWE-501A04:2021, A6:2017
java-lang-misconfiguration-strings-modify-after-validation-taintCollapse of data into unsafe valueCWE-182A6:2017, A04:2021
java-lang-overflow-integer-overflow-taintInteger overflow or wraparoundCWE-190A6:2017, A04:2021
java-lang-overflow-integer-underflow-taintInteger underflow or wraparoundCWE-191A6:2017, A04:2021
java-lang-pathtraversal-file-low-taintImproper limitation of a pathname to a restricted directory (‘Path Traversal’)CWE-22A5:2017, A01:2021
java-lang-pathtraversal-file-special-taintImproper limitation of a pathname to a restricted directory (‘Path Traversal’)CWE-22A5:2017, A01:2021
java-lang-pathtraversal-file-taintImproper limitation of a pathname to a restricted directory (‘Path Traversal’)CWE-22A5:2017, A01:2021
java-lang-sqli-connection-taintImproper neutralization of special elements used in an SQL command (‘SQL Injection’)CWE-89A1:2017, A03:2021
java-lang-sqli-external-config-control-taintExternal control of system or configuration settingCWE-15A5:2017, A01:2021
java-lang-sqli-second-order-taintImproper neutralization of special elements used in an SQL command (‘SQL Injection’)CWE-89A1:2017, A03:2021
java-lang-ssrf-thirdparty-taintServer-Side Request Forgery (SSRF)CWE-918A1:2017, A10:2021
java-lang-ssrf-url-taintServer-Side Request Forgery (SSRF)CWE-918A1:2017, A10:2021
java-lang-ssti-el-taintImproper neutralization of special elements used in an expression language statement (‘Expression Language Injection’)CWE-917A1:2017, A03:2021
java-lang-ssti-templateinjection-taintImproper neutralization of special elements used in a template engineCWE-1336A1:2017, A03:2021
java-lang-xpathi-taintImproper neutralization of data within XPath expressions (‘XPath Injection’)CWE-643A1:2017, A03:2021
java-lang-xss-reflected-taintImproper neutralization of input during web page generation (‘Cross-site Scripting’)CWE-79A7:2017, A03:2021
java-lang-xss-reqparam-to-servlet-writer-taintImproper neutralization of input during web page generation (‘Cross-site Scripting’)CWE-79A1:2017, A03:2021
java-lang-xss-stored-taintImproper neutralization of input during web page generation (‘Cross-site Scripting’)CWE-79A7:2017, A03:2021
java-lang-xxe-documentbuilderfactory-parse-taintImproper restriction of XML external entity reference (‘XXE’)CWE-611A4:2017, A05:2021
java-lang-xxe-documentbuilderfactory-taintImproper restriction of XML external entity reference (‘XXE’)CWE-611A4:2017, A05:2021
java-lang-xxe-external-parameter-entities-true-atomicImproper restriction of XML external entity reference (‘XXE’)CWE-611A4:2017, A05:2021
java-lang-xxe-saxparserfactory-taintImproper restriction of XML external entity reference (‘XXE’)CWE-611A4:2017, A05:2021
java-lang-xxe-transformerfactory-taintImproper restriction of XML external entity reference (‘XXE’)CWE-611A4:2017, A05:2021
java-lang-xxe-xml-input-factory-atomicImproper restriction of XML external entity reference (‘XXE’)CWE-611A4:2017, A05:2021
java-lang-xxe-xml-streamreader-taintImproper restriction of XML external entity reference (‘XXE’)CWE-611A4:2017, A05:2021
java-lang-xxe-xmldecoder-taintImproper restriction of XML external entity reference (‘XXE’)CWE-611A4:2017, A05:2021
java-lang-xxe-xmlinputfactory-atomicImproper restriction of XML external entity reference (‘XXE’)CWE-611A4:2017, A05:2021
java-lang-xxe-xmlreader-taintImproper restriction of XML external entity reference (‘XXE’)CWE-611A4:2017, A05:2021
java-lang-xxe-xslttransform-taintXML injection (aka Blind XPath injection)CWE-91A1:2017, A03:2021
java-mongodb-nosqli-injection-taintImproper neutralization of special elements in data query logicCWE-943A1:2017, A03:2021
java-opensymphony-ognli-taintImproper neutralization of special elements used in an expression language statement (‘Expression Language Injection’).CWE-917A1:2017, A03:2021
java-pebble-ssti-literaltemplate-taintImproper neutralization of special elements used in a template engineCWE-1336A1:2017, A03:2021
java-seam-cmdi-loginjection-taintImproper neutralization of directives in dynamically evaluated code (‘Eval Injection’)CWE-95A1:2017, A03:2021
java-snakeyaml-deserialization-yaml-taintDeserialization of untrusted dataCWE-502A8:2017, A08:2021
java-spring-crypto-ftp-request-taintCleartext transmission of sensitive informationCWE-319A3:2017, A02:2021
java-spring-crypto-http-request-resttemplate-taintCleartext transmission of sensitive informationCWE-319A3:2017, A02:2021
java-spring-crypto-jwt-decode-atomicImproper verification of cryptographic signatureCWE-347A8:2017, A08:2021
java-spring-crypto-unirest-http-request-atomicCleartext transmission of sensitive informationCWE-319A3:2017, A02:2021
java-spring-csrf-spring-csrf-disabled-atomicCross-site request forgery (CSRF)CWE-352A5:2017, A01:2021
java-spring-csrf-unrestricted-requestmapping-atomicCross-site request forgery (CSRF)CWE-352A5:2017, A01:2021
java-spring-misconfiguration-cookie-httponly-atomicSensitive cookie without ‘HttpOnly’ flagCWE-1004A06:2017, A05:2021
java-spring-misconfiguration-cookie-samesite-atomicSensitive cookie with improper SameSite attributeCWE-1275A05:2017, A01:2021
java-spring-misconfiguration-cookie-secure-atomicSensitive cookie in HTTPS session without ‘Secure’ attributeCWE-614A06:2017, A05:2021
java-spring-misconfiguration-frameoptions-atomicImproper restriction of rendered UI layers or framesCWE-1021A06:2017, A04:2021
java-spring-misconfiguration-nooppasswordencoder-atomicPlaintext storage of a passwordCWE-256A2:2017, A04:2021
java-spring-openredirect-unvalidatedredirect-taintURL redirection to untrusted site (‘Open Redirect’)CWE-601A1:2017, A03:2021
java-spring-ssti-expressionparser-taintImproper neutralization of special elements used in an expression language statement (‘Expression Language Injection’)CWE-917A1:2017, A03:2021
java-torque-sqli-basepeer-taintImproper neutralization of special elements used in an SQL command (‘SQL Injection’)CWE-89A1:2017, A03:2021
java-turbine-sqli-taintImproper neutralization of special elements used in an SQL command (‘SQL Injection’)CWE-89A1:2017, A03:2021
java-vertex-sqli-taintImproper neutralization of special elements used in an SQL command (‘SQL Injection’)CWE-89A1:2017, A03:2021
java-wicket-xss-escape-false-taintImproper neutralization of input during web page generation (‘Cross-site Scripting’)CWE-79A1:2017, A03:2021