@gitlab-security-products

GitLab Security Products

Public GitLab SAST rule source indexed by greprules.io.

Indexed SourceLicense Metadata
GitHub profile
Stars
0
Fetches
583,840

Rules 484

Leaderboard
Language
Severity
Memory Integer Overflowgitlab-sast-go-memory-rule-integer-overflow

Golang's `int` type size depends on the architecture of where the application is running. For 32-bit systems, `int` is 32-bit, for 64-bit systems, `int` will be 64-bit. By calling `strconv.Atoi` with a large number, the integer may overflow if the `int` return value is type converted into a smaller type (`int32` or `int16`). This could cause unexpected appli

by GitLab Security Productsupdated 2026-06-03Apache-2.0
1.2K0 direct1.2K via packs
downloads
92quality
Cookie RequestParamToCookiegitlab-sast-scala-cookie-rule-requestparamtocookie

This code constructs an HTTP Cookie using an untrusted HTTP parameter. If this cookie is added to an HTTP response, it will allow a HTTP response splitting vulnerability. See http://en.wikipedia.org/wiki/HTTP_response_splitting for more information.

ScalaCWE-113
by GitLab Security Productsupdated 2026-06-03MIT
1.2K0 direct1.2K via packs
downloads
92quality
Password ConstantDBPasswordgitlab-sast-scala-password-rule-constantdbpassword

A potential hard-coded password was identified in a database connection string. Passwords should not be stored directly in code but loaded from secure locations such as a Key Management System (KMS). The purpose of using a Key Management System is so access can be audited and keys easily rotated in the event of a breach. By hardcoding passwords, it will be e

ScalaCWE-259
by GitLab Security Productsupdated 2026-06-03MIT
1.2K0 direct1.2K via packs
downloads
92quality
Ssl Req No Certvalidgitlab-sast-python-ssl-rule-req-no-certvalid

The application was found using the `requests` module without configuring a timeout value for connections. The `verify=False` argument has been set, which effectively disables the validation of server certificates. This allows for an adversary who is in between the application and the target host to intercept potentially sensitive information or transmit mal

PythonCWE-295
by GitLab Security Productsupdated 2026-06-03MIT
1.2K0 direct1.2K via packs
downloads
92quality
Ssrf SSRFgitlab-sast-java-ssrf-rule-ssrf

Server-Side-Request-Forgery (SSRF) exploits backend systems that initiate requests to third parties. If user input is used in constructing or sending these requests, an attacker could supply malicious data to force the request to other systems or modify request data to cause unwanted actions. Ensure user input is not used directly in constructing URLs or URI

by GitLab Security Productsupdated 2026-06-03MIT
1.2K0 direct1.2K via packs
downloads
92quality
Password HardcodePasswordgitlab-sast-scala-password-rule-hardcodepassword

A potential hard-coded password was identified in the source code. Passwords should not be stored directly in code but loaded from secure locations such as a Key Management System (KMS). The purpose of using a Key Management System is so access can be audited and keys easily rotated in the event of a breach. By hardcoding passwords, it will be extremely diff

ScalaCWE-259
by GitLab Security Productsupdated 2026-06-03MIT
1.2K0 direct1.2K via packs
downloads
92quality
Leak Pprof Endpointgitlab-sast-go-leak-rule-pprof-endpoint

Go has a built in profiling service that is enabled by starting an HTTP server with `net/http/pprof` imported. The `/debug/pprof` endpoint does not require any authentication and can be accessed by anonymous users. This profiling endpoint can leak sensitive information and should not be enabled in production. To remediate this, remove the `net/http/pprof` im

by GitLab Security Productsupdated 2026-06-03Apache-2.0
1.2K0 direct1.2K via packs
downloads
92quality
Telnet Import Telnibgitlab-sast-python-telnet-rule-import-telnib

The application was found using a telnet library. As telnet does not provide encryption, it is strongly recommended that communications use a more secure transport such as SSH. The [paramiko](https://www.paramiko.org/) library can be used to initiate SSH connections. Example using `paramiko` SSH client: ``` import paramiko import scp # Create an SSH client w

PythonCWE-319
by GitLab Security Productsupdated 2026-06-03MIT
1.2K0 direct1.2K via packs
downloads
92quality
Crypto Import Pycryptogitlab-sast-python-crypto-rule-import-pycrypto

The application was detected importing `pycrypto`. This package has been deprecated as it contains security vulnerabilities. To remediate this issue, consider using the [cryptography](https://cryptography.io/) package instead.

PythonCWE-1104
by GitLab Security Productsupdated 2026-06-03MIT
1.2K0 direct1.2K via packs
downloads
92quality
Xxe Documentgitlab-sast-scala-xxe-rule-document

XML External Entity (XXE) attacks can occur when an XML parser supports XML entities while processing XML received from an untrusted source.

ScalaCWE-611
by GitLab Security Productsupdated 2026-06-03MIT
1.2K0 direct1.2K via packs
downloads
92quality
Smtp SmtpClientgitlab-sast-java-smtp-rule-smtpclient

The application was found calling `MimeMessage` methods without encoding new line characters. Much like HTTP, Simple Mail Transfer Protocol (SMTP) is a text based protocol that uses headers to convey additional directives for how email messages should be treated. An adversary could potentially cause email messages to be sent to unintended recipients by abusi

JavaCWE-77
by GitLab Security Productsupdated 2026-06-03MIT
1.2K0 direct1.2K via packs
downloads
92quality
Ssl Ssl With Bad Versiongitlab-sast-python-ssl-rule-ssl-with-bad-version

The application was found calling an SSL module with SSL or TLS protocols that have known deficiencies. It is strongly recommended that newer applications use TLS 1.2 or 1.3 and `SSLContext.wrap_socket`. If using the `pyOpenSSL` module, please note that it has been deprecated and the Python Cryptographic Authority strongly suggests moving to use the [pyca/cr

PythonCWE-326
by GitLab Security Productsupdated 2026-06-03MIT
1.2K0 direct1.2K via packs
downloads
92quality
Cookie RequestParamToHeadergitlab-sast-scala-cookie-rule-requestparamtoheader

This code directly writes an HTTP parameter to an HTTP header, which allows for a HTTP response splitting vulnerability. See http://en.wikipedia.org/wiki/HTTP_response_splitting for more information.

ScalaCWE-113
by GitLab Security Productsupdated 2026-06-03MIT
1.2K0 direct1.2K via packs
downloads
92quality
Xxe XMLRdrgitlab-sast-java-xxe-rule-xmlrdr

External XML entities are a feature of XML parsers that allow documents to contain references to other documents or data. This feature can be abused to read files, communicate with external hosts, exfiltrate data, or cause a Denial of Service (DoS). The XMLReaderFactory has been deprecated. It is recommended that [SAXParserFactory](https://docs.oracle.com/ja

by GitLab Security Productsupdated 2026-06-03MIT
1.2K0 direct1.2K via packs
downloads
92quality
Strings FormatStringManipulationgitlab-sast-rules-lgpl-kotlin-strings-rule-formatstringmanipulation

Allowing user input to control format parameters could enable an attacker to cause exceptions to be thrown or leak information.Attackers may be able to modify the format string argument, such that an exception is thrown. If this exception is left uncaught, it may crash the application. Alternatively, if sensitive information is used within the unused argumen

KotlinCWE-134
by GitLab Security Productsupdated 2026-06-03LGPL-3.0-only
1.2K0 direct1.2K via packs
downloads
92quality
Inject FileDisclosureRequestDispatchergitlab-sast-java-inject-rule-filedisclosurerequestdispatcher

The `HttpRequest.getRequestDispatcher()`'s `include` and `forward` methods will return any file that is resolvable within the web application context. This includes the `web.xml` file, any compiled classes, `jsp` files, and additional JAR or WAR libraries that are accessible. Never pass user-supplied input directly to any of these methods. Use a lookup table

by GitLab Security Productsupdated 2026-06-03MIT
1.2K0 direct1.2K via packs
downloads
86quality
Cors PermissiveCORSInjectiongitlab-sast-scala-cors-rule-permissivecorsinjection

Prior to HTML5, Web browsers enforced the Same Origin Policy which ensures that in order for JavaScript to access the contents of a Web page, both the JavaScript and the Web page must originate from the same domain. Without the Same Origin Policy, a malicious website could serve up JavaScript that loads sensitive information from other websites using a clien

by GitLab Security Productsupdated 2026-06-03MIT
1.2K0 direct1.2K via packs
downloads
86quality
Format Snprintf Vsnprintfgitlab-sast-c-format-rule-snprintf-vsnprintf

Format string vulnerabilities allow an attacker to read or in some cases, potentially write data to and from locations in the processes' memory. To prevent against format string attacks, do not allow users or un-validated input to provide the format specification. Consider using a constant for the format specification, or strip all format specifiers from the

by GitLab Security Productsupdated 2026-06-03GPL-2.0-only
1.2K0 direct1.2K via packs
downloads
86quality
Eval Vm Runinnewcontext Injectiongitlab-sast-rules-lgpl-javascript-eval-rule-vm-runinnewcontext-injection

Untrusted user input in `vm.runInNewContext()` can result in code injection.

by GitLab Security Productsupdated 2026-06-03LGPL-3.0-only
1.2K0 direct1.2K via packs
downloads
86quality
Crypto CipherIntegritygitlab-sast-rules-lgpl-kotlin-crypto-rule-cipherintegrity

The ciphertext produced is susceptible to alteration by an adversary. This mean that the cipher provides no way to detect that the data has been tampered with. If the ciphertext can be controlled by an attacker, it could be altered without detection.

KotlinCWE-327
by GitLab Security Productsupdated 2026-06-03LGPL-3.0-only
1.2K0 direct1.2K via packs
downloads
86quality
Race Chmodgitlab-sast-c-race-rule-chmod

Usage of the `chmod` function call hints at a potential Time Of Check Time Of Use (TOCTOU) vulnerability. An attacker may be able to modify the file being specified by the `chmod` function prior to the `chmod` function being called. Since `chmod` will resolve symbolic links, an attacker may be able to exploit this fact to have files outside of their control

by GitLab Security Productsupdated 2026-06-03GPL-2.0-only
1.2K0 direct1.2K via packs
downloads
86quality
Eval Yaml Deserializegitlab-sast-rules-lgpl-javascript-eval-rule-yaml-deserialize

User controlled data in 'yaml.load()' function can result in Remote Code Injection.

by GitLab Security Productsupdated 2026-06-03LGPL-3.0-only
1.2K0 direct1.2K via packs
downloads
86quality
Script ScriptInjectiongitlab-sast-scala-script-rule-scriptinjection

The software constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.

ScalaCWE-94
by GitLab Security Productsupdated 2026-06-03MIT
1.2K0 direct1.2K via packs
downloads
86quality
Xxe SaxParserXXEgitlab-sast-scala-xxe-rule-saxparserxxe

XML External Entity (XXE) attacks can occur when an XML parser supports XML entities while processing XML received from an untrusted source.

ScalaCWE-611
by GitLab Security Productsupdated 2026-06-03MIT
1.2K0 direct1.2K via packs
downloads
86quality
24 of 484 loaded