diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml new file mode 100644 index 0000000..1a3b07b --- /dev/null +++ b/.github/workflows/integration-test.yml @@ -0,0 +1,31 @@ +name: Integration Test on PR + +on: + pull_request: + branches: + - main + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Use Node.js + uses: actions/setup-node@v3 + with: + node-version: 18 + + - name: Install dependencies + run: npm ci + + - name: Build + run: npm run build + + - name: Link + run: npm link + + - name: Run SOOS SAST + run: soos-sast --apiURL="https://dev-api.soos.io/api/" --clientId=${{ secrets.SOOS_CLIENT_ID_DEV }} --apiKey=${{ secrets.SOOS_API_KEY_DEV }} --projectName="sast-integration-test" \ No newline at end of file diff --git a/test-files/image_resizer.sarif.json b/test-files/image_resizer.sarif.json new file mode 100644 index 0000000..30e8f31 --- /dev/null +++ b/test-files/image_resizer.sarif.json @@ -0,0 +1,30232 @@ +{ + "$schema": "https://docs.oasis-open.org/sarif/sarif/v2.1.0/os/schemas/sarif-schema-2.1.0.json", + "runs": [ + { + "invocations": [ + { + "executionSuccessful": true, + "toolExecutionNotifications": [ + { + "descriptor": { + "id": "Syntax error" + }, + "level": "warning", + "message": { + "text": "Syntax error at line image_resizer_semgrep_output.sarif.json:0:\n missing element" + } + } + ] + } + ], + "results": [ + { + "fingerprints": { + "matchBasedId/v1": "02ff27fd9e6124099780ed1e0bd9763362d74809437d1f49319e82806581d7e23ef41924bd699137004eda91356d5498bad501540be26f469a3347b56e94d0a1_0" + }, + "locations": [ + { + "physicalLocation": { + "artifactLocation": { + "uri": "src/streams/response.js", + "uriBaseId": "%SRCROOT%" + }, + "region": { + "endColumn": 45, + "endLine": 108, + "snippet": { + "text": " shasum = crypto.createHash('sha1');" + }, + "startColumn": 20, + "startLine": 108 + } + } + } + ], + "message": { + "text": "The SHA1 hashing algorithm is considered to be weak. If this is used in any sensitive operation such as password hashing, or is used to ensure data integrity (collision sensitive) then you should use a stronger hashing algorithm. For passwords, consider using `Argon2id`, `scrypt`, or `bcrypt`. For data integrity, consider using `SHA-256`" + }, + "properties": {}, + "ruleId": "contrib.nodejsscan.crypto_node.node_sha1" + }, + { + "fingerprints": { + "matchBasedId/v1": "d54c4671782116ee5f450af989ccef772ea4fa27152c691c362335475a8ace86ff967530ee16c1179dafcb5d8b06724ea8c4fcb37ae2ef34ae3747760bc0a4f6_0" + }, + "locations": [ + { + "physicalLocation": { + "artifactLocation": { + "uri": "bin/image_resizer.js", + "uriBaseId": "%SRCROOT%" + }, + "region": { + "endColumn": 43, + "endLine": 47, + "snippet": { + "text": " appName = path.basename(path.resolve(dir));" + }, + "startColumn": 40, + "startLine": 47 + } + } + } + ], + "message": { + "text": "Detected possible user input going into a `path.join` or `path.resolve` function. This could possibly lead to a path traversal vulnerability, where the attacker can access arbitrary files stored in the file system. Instead, be sure to sanitize or validate user input first." + }, + "properties": {}, + "ruleId": "javascript.lang.security.audit.path-traversal.path-join-resolve-traversal.path-join-resolve-traversal" + }, + { + "fingerprints": { + "matchBasedId/v1": "fa1a34192730484ffeaa5c5c301945a9e5d5df37de61faf43a0f6bffdca38288e652afcb533629b042d76bea1c43df8db12b5b390a54c257e39b395aeb127ab6_0" + }, + "locations": [ + { + "physicalLocation": { + "artifactLocation": { + "uri": "test.js", + "uriBaseId": "%SRCROOT%" + }, + "region": { + "endColumn": 20, + "endLine": 10, + "snippet": { + "text": " app = express()," + }, + "startColumn": 5, + "startLine": 10 + } + } + } + ], + "message": { + "text": "A CSRF middleware was not detected in your express application. Ensure you are either using one such as `csurf` or `csrf` (see rule references) and/or you are properly doing CSRF validation in your routes with a token or cookies." + }, + "properties": {}, + "ruleId": "javascript.express.security.audit.express-check-csurf-middleware-usage.express-check-csurf-middleware-usage" + } + ], + "tool": { + "driver": { + "name": "semgrep", + "rules": [ + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "AWS AppSync GraphQL Key detected" + }, + "help": { + "markdown": "AWS AppSync GraphQL Key detected\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/generic.secrets.security.detected-aws-appsync-graphql-key.detected-aws-appsync-graphql-key)\n - [https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures](https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures)\n", + "text": "AWS AppSync GraphQL Key detected" + }, + "helpUri": "https://semgrep.dev/r/generic.secrets.security.detected-aws-appsync-graphql-key.detected-aws-appsync-graphql-key", + "id": "generic.secrets.security.detected-aws-appsync-graphql-key.detected-aws-appsync-graphql-key", + "name": "generic.secrets.security.detected-aws-appsync-graphql-key.detected-aws-appsync-graphql-key", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-798: Use of Hard-coded Credentials", + "LOW CONFIDENCE", + "OWASP-A07:2021 - Identification and Authentication Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: generic.secrets.security.detected-aws-appsync-graphql-key.detected-aws-appsync-graphql-key" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "This rule is deprecated." + }, + "help": { + "markdown": "This rule is deprecated.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ruby.rails.security.audit.mime-type-dos.mime-type-dos)\n - [https://cwe.mitre.org/data/definitions/400.html](https://cwe.mitre.org/data/definitions/400.html)\n", + "text": "This rule is deprecated." + }, + "helpUri": "https://semgrep.dev/r/ruby.rails.security.audit.mime-type-dos.mime-type-dos", + "id": "ruby.rails.security.audit.mime-type-dos.mime-type-dos", + "name": "ruby.rails.security.audit.mime-type-dos.mime-type-dos", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-400: Uncontrolled Resource Consumption", + "LOW CONFIDENCE", + "OWASP-A05:2021 - Security Misconfiguration", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: ruby.rails.security.audit.mime-type-dos.mime-type-dos" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected MD2 hash algorithm which is considered insecure. MD2 is not collision resistant and is therefore not suitable as a cryptographic signature. Use SHA256 or SHA3 instead." + }, + "help": { + "markdown": "Detected MD2 hash algorithm which is considered insecure. MD2 is not collision resistant and is therefore not suitable as a cryptographic signature. Use SHA256 or SHA3 instead.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.pycryptodome.security.insecure-hash-algorithm-md2.insecure-hash-algorithm-md2)\n - [https://www.schneier.com/blog/archives/2012/10/when_will_we_se.html](https://www.schneier.com/blog/archives/2012/10/when_will_we_se.html)\n - [https://www.trendmicro.com/vinfo/us/security/news/vulnerabilities-and-exploits/sha-1-collision-signals-the-end-of-the-algorithm-s-viability](https://www.trendmicro.com/vinfo/us/security/news/vulnerabilities-and-exploits/sha-1-collision-signals-the-end-of-the-algorithm-s-viability)\n - [http://2012.sharcs.org/slides/stevens.pdf](http://2012.sharcs.org/slides/stevens.pdf)\n - [https://pycryptodome.readthedocs.io/en/latest/src/hash/sha3_256.html](https://pycryptodome.readthedocs.io/en/latest/src/hash/sha3_256.html)\n", + "text": "Detected MD2 hash algorithm which is considered insecure. MD2 is not collision resistant and is therefore not suitable as a cryptographic signature. Use SHA256 or SHA3 instead." + }, + "helpUri": "https://semgrep.dev/r/python.pycryptodome.security.insecure-hash-algorithm-md2.insecure-hash-algorithm-md2", + "id": "python.pycryptodome.security.insecure-hash-algorithm-md2.insecure-hash-algorithm-md2", + "name": "python.pycryptodome.security.insecure-hash-algorithm-md2.insecure-hash-algorithm-md2", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-327: Use of a Broken or Risky Cryptographic Algorithm", + "MEDIUM CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.pycryptodome.security.insecure-hash-algorithm-md2.insecure-hash-algorithm-md2" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "ASP.NET applications built with `debug` set to true in production may leak debug information to attackers. Debug mode also affects performance and reliability. Set `debug` to `false` or remove it from ``" + }, + "help": { + "markdown": "ASP.NET applications built with `debug` set to true in production may leak debug information to attackers. Debug mode also affects performance and reliability. Set `debug` to `false` or remove it from ``\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/csharp.dotnet.security.net-webconfig-debug.net-webconfig-debug)\n - [https://web.archive.org/web/20190919105353/https://blogs.msdn.microsoft.com/prashant_upadhyay/2011/07/14/why-debugfalse-in-asp-net-applications-in-production-environment/](https://web.archive.org/web/20190919105353/https://blogs.msdn.microsoft.com/prashant_upadhyay/2011/07/14/why-debugfalse-in-asp-net-applications-in-production-environment/)\n - [https://msdn.microsoft.com/en-us/library/e8z01xdh.aspx](https://msdn.microsoft.com/en-us/library/e8z01xdh.aspx)\n", + "text": "ASP.NET applications built with `debug` set to true in production may leak debug information to attackers. Debug mode also affects performance and reliability. Set `debug` to `false` or remove it from ``" + }, + "helpUri": "https://semgrep.dev/r/csharp.dotnet.security.net-webconfig-debug.net-webconfig-debug", + "id": "csharp.dotnet.security.net-webconfig-debug.net-webconfig-debug", + "name": "csharp.dotnet.security.net-webconfig-debug.net-webconfig-debug", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-11: ASP.NET Misconfiguration: Creating Debug Binary", + "LOW CONFIDENCE", + "OWASP-A05:2021 - Security Misconfiguration", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: csharp.dotnet.security.net-webconfig-debug.net-webconfig-debug" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected a template variable used in a script tag. Although template variables are HTML escaped, HTML escaping does not always prevent cross-site scripting (XSS) attacks when used directly in JavaScript. If you need to do this, use `escape_javascript` or its alias, `j`. However, this will not protect from XSS in all circumstances; see the references for more information. Consider placing this value in the HTML portion (outside of a script tag)." + }, + "help": { + "markdown": "Detected a template variable used in a script tag. Although template variables are HTML escaped, HTML escaping does not always prevent cross-site scripting (XSS) attacks when used directly in JavaScript. If you need to do this, use `escape_javascript` or its alias, `j`. However, this will not protect from XSS in all circumstances; see the references for more information. Consider placing this value in the HTML portion (outside of a script tag).\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ruby.rails.security.audit.xss.templates.var-in-script-tag.var-in-script-tag)\n - [https://www.netsparker.com/blog/web-security/preventing-xss-ruby-on-rails-web-applications/](https://www.netsparker.com/blog/web-security/preventing-xss-ruby-on-rails-web-applications/)\n - [https://www.youtube.com/watch?v=yYTkLUEdIyE](https://www.youtube.com/watch?v=yYTkLUEdIyE)\n - [https://www.veracode.com/blog/secure-development/nodejs-template-engines-why-default-encoders-are-not-enough](https://www.veracode.com/blog/secure-development/nodejs-template-engines-why-default-encoders-are-not-enough)\n", + "text": "Detected a template variable used in a script tag. Although template variables are HTML escaped, HTML escaping does not always prevent cross-site scripting (XSS) attacks when used directly in JavaScript. If you need to do this, use `escape_javascript` or its alias, `j`. However, this will not protect from XSS in all circumstances; see the references for more information. Consider placing this value in the HTML portion (outside of a script tag)." + }, + "helpUri": "https://semgrep.dev/r/ruby.rails.security.audit.xss.templates.var-in-script-tag.var-in-script-tag", + "id": "ruby.rails.security.audit.xss.templates.var-in-script-tag.var-in-script-tag", + "name": "ruby.rails.security.audit.xss.templates.var-in-script-tag.var-in-script-tag", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: ruby.rails.security.audit.xss.templates.var-in-script-tag.var-in-script-tag" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Because portions of the logging configuration are passed through eval(), use of this function may open its users to a security risk. While the function only binds to a socket on localhost, and so does not accept connections from remote machines, there are scenarios where untrusted code could be run under the account of the process which calls listen(). To avoid this happening, use the `verify()` argument to `listen()` to prevent unrecognized configurations." + }, + "help": { + "markdown": "Because portions of the logging configuration are passed through eval(), use of this function may open its users to a security risk. While the function only binds to a socket on localhost, and so does not accept connections from remote machines, there are scenarios where untrusted code could be run under the account of the process which calls listen(). To avoid this happening, use the `verify()` argument to `listen()` to prevent unrecognized configurations.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.lang.security.audit.logging.listeneval.listen-eval)\n - [https://docs.python.org/3/library/logging.config.html?highlight=security#logging.config.listen](https://docs.python.org/3/library/logging.config.html?highlight=security#logging.config.listen)\n", + "text": "Because portions of the logging configuration are passed through eval(), use of this function may open its users to a security risk. While the function only binds to a socket on localhost, and so does not accept connections from remote machines, there are scenarios where untrusted code could be run under the account of the process which calls listen(). To avoid this happening, use the `verify()` argument to `listen()` to prevent unrecognized configurations." + }, + "helpUri": "https://semgrep.dev/r/python.lang.security.audit.logging.listeneval.listen-eval", + "id": "python.lang.security.audit.logging.listeneval.listen-eval", + "name": "python.lang.security.audit.logging.listeneval.listen-eval", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.lang.security.audit.logging.listeneval.listen-eval" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "This rule is deprecated." + }, + "help": { + "markdown": "This rule is deprecated.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ruby.lang.security.timing-attack.timing-attack)\n - [https://github.com/presidentbeef/brakeman/blob/main/lib/brakeman/checks/check_basic_auth_timing_attack.rb](https://github.com/presidentbeef/brakeman/blob/main/lib/brakeman/checks/check_basic_auth_timing_attack.rb)\n - [https://groups.google.com/g/rubyonrails-security/c/ANv0HDHEC3k/m/mt7wNGxbFQAJ](https://groups.google.com/g/rubyonrails-security/c/ANv0HDHEC3k/m/mt7wNGxbFQAJ)\n", + "text": "This rule is deprecated." + }, + "helpUri": "https://semgrep.dev/r/ruby.lang.security.timing-attack.timing-attack", + "id": "ruby.lang.security.timing-attack.timing-attack", + "name": "ruby.lang.security.timing-attack.timing-attack", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-208: Observable Timing Discrepancy", + "LOW CONFIDENCE", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: ruby.lang.security.timing-attack.timing-attack" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Data from request is passed to redirect(). This is an open redirect and could be exploited. Consider using 'url_for()' to generate links to known locations. If you must use a URL to unknown pages, consider using 'urlparse()' or similar and checking if the 'netloc' property is the same as your site's host name. See the references for more information." + }, + "help": { + "markdown": "Data from request is passed to redirect(). This is an open redirect and could be exploited. Consider using 'url_for()' to generate links to known locations. If you must use a URL to unknown pages, consider using 'urlparse()' or similar and checking if the 'netloc' property is the same as your site's host name. See the references for more information.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.flask.security.open-redirect.open-redirect)\n - [https://flask-login.readthedocs.io/en/latest/#login-example](https://flask-login.readthedocs.io/en/latest/#login-example)\n - [https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html#dangerous-url-redirect-example-1](https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html#dangerous-url-redirect-example-1)\n - [https://docs.python.org/3/library/urllib.parse.html#url-parsing](https://docs.python.org/3/library/urllib.parse.html#url-parsing)\n", + "text": "Data from request is passed to redirect(). This is an open redirect and could be exploited. Consider using 'url_for()' to generate links to known locations. If you must use a URL to unknown pages, consider using 'urlparse()' or similar and checking if the 'netloc' property is the same as your site's host name. See the references for more information." + }, + "helpUri": "https://semgrep.dev/r/python.flask.security.open-redirect.open-redirect", + "id": "python.flask.security.open-redirect.open-redirect", + "name": "python.flask.security.open-redirect.open-redirect", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-601: URL Redirection to Untrusted Site ('Open Redirect')", + "LOW CONFIDENCE", + "OWASP-A01:2021 - Broken Access Control", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.flask.security.open-redirect.open-redirect" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Outlook Team detected" + }, + "help": { + "markdown": "Outlook Team detected\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/generic.secrets.security.detected-outlook-team.detected-outlook-team)\n - [https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures](https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures)\n", + "text": "Outlook Team detected" + }, + "helpUri": "https://semgrep.dev/r/generic.secrets.security.detected-outlook-team.detected-outlook-team", + "id": "generic.secrets.security.detected-outlook-team.detected-outlook-team", + "name": "generic.secrets.security.detected-outlook-team.detected-outlook-team", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-798: Use of Hard-coded Credentials", + "LOW CONFIDENCE", + "OWASP-A07:2021 - Identification and Authentication Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: generic.secrets.security.detected-outlook-team.detected-outlook-team" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "The target origin of the window.postMessage() API is set to \"*\". This could allow for information disclosure due to the possibility of any origin allowed to receive the message." + }, + "help": { + "markdown": "The target origin of the window.postMessage() API is set to \"*\". This could allow for information disclosure due to the possibility of any origin allowed to receive the message.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.browser.security.wildcard-postmessage-configuration.wildcard-postmessage-configuration)\n - [https://owasp.org/Top10/A08_2021-Software_and_Data_Integrity_Failures](https://owasp.org/Top10/A08_2021-Software_and_Data_Integrity_Failures)\n", + "text": "The target origin of the window.postMessage() API is set to \"*\". This could allow for information disclosure due to the possibility of any origin allowed to receive the message." + }, + "helpUri": "https://semgrep.dev/r/javascript.browser.security.wildcard-postmessage-configuration.wildcard-postmessage-configuration", + "id": "javascript.browser.security.wildcard-postmessage-configuration.wildcard-postmessage-configuration", + "name": "javascript.browser.security.wildcard-postmessage-configuration.wildcard-postmessage-configuration", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-345: Insufficient Verification of Data Authenticity", + "MEDIUM CONFIDENCE", + "OWASP-A08:2021 - Software and Data Integrity Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.browser.security.wildcard-postmessage-configuration.wildcard-postmessage-configuration" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Ensure EMR is encrypted at rest using KMS CMKs. CMKs gives you control over the encryption key in terms of access and rotation." + }, + "help": { + "markdown": "Ensure EMR is encrypted at rest using KMS CMKs. CMKs gives you control over the encryption key in terms of access and rotation.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.aws.security.aws-emr-encrypted-with-cmk.aws-emr-encrypted-with-cmk)\n - [https://owasp.org/Top10/A02_2021-Cryptographic_Failures](https://owasp.org/Top10/A02_2021-Cryptographic_Failures)\n", + "text": "Ensure EMR is encrypted at rest using KMS CMKs. CMKs gives you control over the encryption key in terms of access and rotation." + }, + "helpUri": "https://semgrep.dev/r/terraform.aws.security.aws-emr-encrypted-with-cmk.aws-emr-encrypted-with-cmk", + "id": "terraform.aws.security.aws-emr-encrypted-with-cmk.aws-emr-encrypted-with-cmk", + "name": "terraform.aws.security.aws-emr-encrypted-with-cmk.aws-emr-encrypted-with-cmk", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-320: CWE CATEGORY: Key Management Errors", + "LOW CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.aws.security.aws-emr-encrypted-with-cmk.aws-emr-encrypted-with-cmk" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Manually-created forms in django templates should specify a csrf_token to prevent CSRF attacks" + }, + "help": { + "markdown": "Manually-created forms in django templates should specify a csrf_token to prevent CSRF attacks\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.django.security.django-no-csrf-token.django-no-csrf-token)\n - [https://docs.djangoproject.com/en/4.2/howto/csrf/](https://docs.djangoproject.com/en/4.2/howto/csrf/)\n", + "text": "Manually-created forms in django templates should specify a csrf_token to prevent CSRF attacks" + }, + "helpUri": "https://semgrep.dev/r/python.django.security.django-no-csrf-token.django-no-csrf-token", + "id": "python.django.security.django-no-csrf-token.django-no-csrf-token", + "name": "python.django.security.django-no-csrf-token.django-no-csrf-token", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-352: Cross-Site Request Forgery (CSRF)", + "MEDIUM CONFIDENCE", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.django.security.django-no-csrf-token.django-no-csrf-token" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Use of eval with user-controllable input detected. This can lead to attackers running arbitrary code. Ensure external data does not reach here, otherwise this is a security vulnerability. Consider other ways to do this without eval." + }, + "help": { + "markdown": "Use of eval with user-controllable input detected. This can lead to attackers running arbitrary code. Ensure external data does not reach here, otherwise this is a security vulnerability. Consider other ways to do this without eval.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ruby.lang.security.no-eval.ruby-eval)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "Use of eval with user-controllable input detected. This can lead to attackers running arbitrary code. Ensure external data does not reach here, otherwise this is a security vulnerability. Consider other ways to do this without eval." + }, + "helpUri": "https://semgrep.dev/r/ruby.lang.security.no-eval.ruby-eval", + "id": "ruby.lang.security.no-eval.ruby-eval", + "name": "ruby.lang.security.no-eval.ruby-eval", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-94: Improper Control of Generation of Code ('Code Injection')", + "MEDIUM CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: ruby.lang.security.no-eval.ruby-eval" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "CSRF protection is disabled for this configuration. This is a security risk. Make sure that it is safe or consider setting `csrf_protection` property to `true`." + }, + "help": { + "markdown": "CSRF protection is disabled for this configuration. This is a security risk. Make sure that it is safe or consider setting `csrf_protection` property to `true`.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/php.symfony.security.audit.symfony-csrf-protection-disabled.symfony-csrf-protection-disabled)\n - [https://symfony.com/doc/current/security/csrf.html](https://symfony.com/doc/current/security/csrf.html)\n", + "text": "CSRF protection is disabled for this configuration. This is a security risk. Make sure that it is safe or consider setting `csrf_protection` property to `true`." + }, + "helpUri": "https://semgrep.dev/r/php.symfony.security.audit.symfony-csrf-protection-disabled.symfony-csrf-protection-disabled", + "id": "php.symfony.security.audit.symfony-csrf-protection-disabled.symfony-csrf-protection-disabled", + "name": "php.symfony.security.audit.symfony-csrf-protection-disabled.symfony-csrf-protection-disabled", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-352: Cross-Site Request Forgery (CSRF)", + "LOW CONFIDENCE", + "OWASP-A01:2021 - Broken Access Control", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: php.symfony.security.audit.symfony-csrf-protection-disabled.symfony-csrf-protection-disabled" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "CodeBuild Project $X is set to have a public URL. This will make the build results, logs, artifacts publically accessible, including builds prior to the project being public. Ensure this is acceptable for the project." + }, + "help": { + "markdown": "CodeBuild Project $X is set to have a public URL. This will make the build results, logs, artifacts publically accessible, including builds prior to the project being public. Ensure this is acceptable for the project.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/typescript.aws-cdk.security.awscdk-codebuild-project-public.awscdk-codebuild-project-public)\n - [https://docs.aws.amazon.com/codebuild/latest/userguide/public-builds.html](https://docs.aws.amazon.com/codebuild/latest/userguide/public-builds.html)\n", + "text": "CodeBuild Project $X is set to have a public URL. This will make the build results, logs, artifacts publically accessible, including builds prior to the project being public. Ensure this is acceptable for the project." + }, + "helpUri": "https://semgrep.dev/r/typescript.aws-cdk.security.awscdk-codebuild-project-public.awscdk-codebuild-project-public", + "id": "typescript.aws-cdk.security.awscdk-codebuild-project-public.awscdk-codebuild-project-public", + "name": "typescript.aws-cdk.security.awscdk-codebuild-project-public.awscdk-codebuild-project-public", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-306: Missing Authentication for Critical Function", + "MEDIUM CONFIDENCE", + "OWASP-A07:2021 - Identification and Authentication Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: typescript.aws-cdk.security.awscdk-codebuild-project-public.awscdk-codebuild-project-public" + } + }, + { + "defaultConfiguration": { + "level": "note" + }, + "fullDescription": { + "text": "Detected a call to `$FUNC()` in an attempt to HTML escape the string `$STR`. Manually sanitizing input through a manually built list can be circumvented in many situations, and it's better to use a well known sanitization library such as `sanitize-html` or `DOMPurify`." + }, + "help": { + "markdown": "Detected a call to `$FUNC()` in an attempt to HTML escape the string `$STR`. Manually sanitizing input through a manually built list can be circumvented in many situations, and it's better to use a well known sanitization library such as `sanitize-html` or `DOMPurify`.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.audit.detect-replaceall-sanitization.detect-replaceall-sanitization)\n - [https://www.npmjs.com/package/dompurify](https://www.npmjs.com/package/dompurify)\n - [https://cheatsheetseries.owasp.org/cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.html](https://cheatsheetseries.owasp.org/cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.html)\n", + "text": "Detected a call to `$FUNC()` in an attempt to HTML escape the string `$STR`. Manually sanitizing input through a manually built list can be circumvented in many situations, and it's better to use a well known sanitization library such as `sanitize-html` or `DOMPurify`." + }, + "helpUri": "https://semgrep.dev/r/javascript.audit.detect-replaceall-sanitization.detect-replaceall-sanitization", + "id": "javascript.audit.detect-replaceall-sanitization.detect-replaceall-sanitization", + "name": "javascript.audit.detect-replaceall-sanitization.detect-replaceall-sanitization", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.audit.detect-replaceall-sanitization.detect-replaceall-sanitization" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "If unverified user data can reach the `exec` method it can result in Remote Code Execution" + }, + "help": { + "markdown": "If unverified user data can reach the `exec` method it can result in Remote Code Execution\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.shelljs.security.shelljs-exec-injection.shelljs-exec-injection)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "If unverified user data can reach the `exec` method it can result in Remote Code Execution" + }, + "helpUri": "https://semgrep.dev/r/javascript.shelljs.security.shelljs-exec-injection.shelljs-exec-injection", + "id": "javascript.shelljs.security.shelljs-exec-injection.shelljs-exec-injection", + "name": "javascript.shelljs.security.shelljs-exec-injection.shelljs-exec-injection", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')", + "LOW CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.shelljs.security.shelljs-exec-injection.shelljs-exec-injection" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "This rule is deprecated." + }, + "help": { + "markdown": "This rule is deprecated.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.lang.security.unquoted-csv-writer.unquoted-csv-writer)\n - [https://github.com/returntocorp/semgrep-rules/issues/2351](https://github.com/returntocorp/semgrep-rules/issues/2351)\n", + "text": "This rule is deprecated." + }, + "helpUri": "https://semgrep.dev/r/python.lang.security.unquoted-csv-writer.unquoted-csv-writer", + "id": "python.lang.security.unquoted-csv-writer.unquoted-csv-writer", + "name": "python.lang.security.unquoted-csv-writer.unquoted-csv-writer", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-1236: Improper Neutralization of Formula Elements in a CSV File", + "LOW CONFIDENCE", + "OWASP-A01:2017 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.lang.security.unquoted-csv-writer.unquoted-csv-writer" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "The AWS configuration aggregator does not aggregate all AWS Config region. This may result in unmonitored configuration in regions that are thought to be unused. Configure the aggregator with all_regions for the source." + }, + "help": { + "markdown": "The AWS configuration aggregator does not aggregate all AWS Config region. This may result in unmonitored configuration in regions that are thought to be unused. Configure the aggregator with all_regions for the source.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.aws.security.aws-config-aggregator-not-all-regions.aws-config-aggregator-not-all-regions)\n - [https://owasp.org/Top10/A09_2021-Security_Logging_and_Monitoring_Failures/](https://owasp.org/Top10/A09_2021-Security_Logging_and_Monitoring_Failures/)\n", + "text": "The AWS configuration aggregator does not aggregate all AWS Config region. This may result in unmonitored configuration in regions that are thought to be unused. Configure the aggregator with all_regions for the source." + }, + "helpUri": "https://semgrep.dev/r/terraform.aws.security.aws-config-aggregator-not-all-regions.aws-config-aggregator-not-all-regions", + "id": "terraform.aws.security.aws-config-aggregator-not-all-regions.aws-config-aggregator-not-all-regions", + "name": "terraform.aws.security.aws-config-aggregator-not-all-regions.aws-config-aggregator-not-all-regions", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-778: Insufficient Logging", + "HIGH CONFIDENCE", + "OWASP-A09:2021 - Security Logging and Monitoring Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.aws.security.aws-config-aggregator-not-all-regions.aws-config-aggregator-not-all-regions" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Checks for outgoing connections to ftp servers. FTP does not encrypt traffic, possibly leading to PII being sent plaintext over the network." + }, + "help": { + "markdown": "Checks for outgoing connections to ftp servers. FTP does not encrypt traffic, possibly leading to PII being sent plaintext over the network.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/problem-based-packs.insecure-transport.java-stdlib.ftp-request.ftp-request)\n - [https://www.codejava.net/java-se/ftp/connect-and-login-to-a-ftp-server](https://www.codejava.net/java-se/ftp/connect-and-login-to-a-ftp-server)\n - [https://commons.apache.org/proper/commons-net/apidocs/org/apache/commons/net/ftp/FTPClient.html](https://commons.apache.org/proper/commons-net/apidocs/org/apache/commons/net/ftp/FTPClient.html)\n", + "text": "Checks for outgoing connections to ftp servers. FTP does not encrypt traffic, possibly leading to PII being sent plaintext over the network." + }, + "helpUri": "https://semgrep.dev/r/problem-based-packs.insecure-transport.java-stdlib.ftp-request.ftp-request", + "id": "problem-based-packs.insecure-transport.java-stdlib.ftp-request.ftp-request", + "name": "problem-based-packs.insecure-transport.java-stdlib.ftp-request.ftp-request", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-319: Cleartext Transmission of Sensitive Information", + "MEDIUM CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: problem-based-packs.insecure-transport.java-stdlib.ftp-request.ftp-request" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Conditions for Nginx H2C smuggling identified. H2C smuggling allows upgrading HTTP/1.1 connections to lesser-known HTTP/2 over cleartext (h2c) connections which can allow a bypass of reverse proxy access controls, and lead to long-lived, unrestricted HTTP traffic directly to back-end servers. To mitigate: WebSocket support required: Allow only the value websocket for HTTP/1.1 upgrade headers (e.g., Upgrade: websocket). WebSocket support not required: Do not forward Upgrade headers." + }, + "help": { + "markdown": "Conditions for Nginx H2C smuggling identified. H2C smuggling allows upgrading HTTP/1.1 connections to lesser-known HTTP/2 over cleartext (h2c) connections which can allow a bypass of reverse proxy access controls, and lead to long-lived, unrestricted HTTP traffic directly to back-end servers. To mitigate: WebSocket support required: Allow only the value websocket for HTTP/1.1 upgrade headers (e.g., Upgrade: websocket). WebSocket support not required: Do not forward Upgrade headers.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/generic.nginx.security.possible-h2c-smuggling.possible-nginx-h2c-smuggling)\n - [https://labs.bishopfox.com/tech-blog/h2c-smuggling-request-smuggling-via-http/2-cleartext-h2c](https://labs.bishopfox.com/tech-blog/h2c-smuggling-request-smuggling-via-http/2-cleartext-h2c)\n", + "text": "Conditions for Nginx H2C smuggling identified. H2C smuggling allows upgrading HTTP/1.1 connections to lesser-known HTTP/2 over cleartext (h2c) connections which can allow a bypass of reverse proxy access controls, and lead to long-lived, unrestricted HTTP traffic directly to back-end servers. To mitigate: WebSocket support required: Allow only the value websocket for HTTP/1.1 upgrade headers (e.g., Upgrade: websocket). WebSocket support not required: Do not forward Upgrade headers." + }, + "helpUri": "https://semgrep.dev/r/generic.nginx.security.possible-h2c-smuggling.possible-nginx-h2c-smuggling", + "id": "generic.nginx.security.possible-h2c-smuggling.possible-nginx-h2c-smuggling", + "name": "generic.nginx.security.possible-h2c-smuggling.possible-nginx-h2c-smuggling", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-444: Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling')", + "MEDIUM CONFIDENCE", + "OWASP-A04:2021 - Insecure Design", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: generic.nginx.security.possible-h2c-smuggling.possible-nginx-h2c-smuggling" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Don\u2019t use the default session cookie name Using the default session cookie name can open your app to attacks. The security issue posed is similar to X-Powered-By: a potential attacker can use it to fingerprint the server and target attacks accordingly." + }, + "help": { + "markdown": "Don\u2019t use the default session cookie name Using the default session cookie name can open your app to attacks. The security issue posed is similar to X-Powered-By: a potential attacker can use it to fingerprint the server and target attacks accordingly.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.express.security.audit.express-cookie-settings.express-cookie-session-default-name)\n - [https://owasp.org/Top10/A04_2021-Insecure_Design](https://owasp.org/Top10/A04_2021-Insecure_Design)\n", + "text": "Don\u2019t use the default session cookie name Using the default session cookie name can open your app to attacks. The security issue posed is similar to X-Powered-By: a potential attacker can use it to fingerprint the server and target attacks accordingly." + }, + "helpUri": "https://semgrep.dev/r/javascript.express.security.audit.express-cookie-settings.express-cookie-session-default-name", + "id": "javascript.express.security.audit.express-cookie-settings.express-cookie-session-default-name", + "name": "javascript.express.security.audit.express-cookie-settings.express-cookie-session-default-name", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-522: Insufficiently Protected Credentials", + "MEDIUM CONFIDENCE", + "OWASP-A02:2017 - Broken Authentication", + "OWASP-A04:2021 - Insecure Design", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.express.security.audit.express-cookie-settings.express-cookie-session-default-name" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected 'urllib.urlretrieve()' using 'http://'. This request will not be encrypted. Use 'https://' instead." + }, + "help": { + "markdown": "Detected 'urllib.urlretrieve()' using 'http://'. This request will not be encrypted. Use 'https://' instead.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.lang.security.audit.insecure-transport.urllib.insecure-urlretrieve.insecure-urlretrieve)\n - [https://docs.python.org/3/library/urllib.request.html#urllib.request.urlretrieve](https://docs.python.org/3/library/urllib.request.html#urllib.request.urlretrieve)\n", + "text": "Detected 'urllib.urlretrieve()' using 'http://'. This request will not be encrypted. Use 'https://' instead." + }, + "helpUri": "https://semgrep.dev/r/python.lang.security.audit.insecure-transport.urllib.insecure-urlretrieve.insecure-urlretrieve", + "id": "python.lang.security.audit.insecure-transport.urllib.insecure-urlretrieve.insecure-urlretrieve", + "name": "python.lang.security.audit.insecure-transport.urllib.insecure-urlretrieve.insecure-urlretrieve", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-319: Cleartext Transmission of Sensitive Information", + "LOW CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.lang.security.audit.insecure-transport.urllib.insecure-urlretrieve.insecure-urlretrieve" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Flask does not automatically escape Jinja templates unless they have .html, .htm, .xml, or .xhtml extensions. This could lead to XSS attacks. Use .html, .htm, .xml, or .xhtml for your template extensions. See https://flask.palletsprojects.com/en/1.1.x/templating/#jinja-setup for more information." + }, + "help": { + "markdown": "Flask does not automatically escape Jinja templates unless they have .html, .htm, .xml, or .xhtml extensions. This could lead to XSS attacks. Use .html, .htm, .xml, or .xhtml for your template extensions. See https://flask.palletsprojects.com/en/1.1.x/templating/#jinja-setup for more information.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.flask.security.unescaped-template-extension.unescaped-template-extension)\n - [https://flask.palletsprojects.com/en/1.1.x/templating/#jinja-setup](https://flask.palletsprojects.com/en/1.1.x/templating/#jinja-setup)\n - [https://semgrep.dev/blog/2020/bento-check-unescaped-template-extensions-in-flask/](https://semgrep.dev/blog/2020/bento-check-unescaped-template-extensions-in-flask/)\n - [https://bento.dev/checks/flask/unescaped-file-extension/](https://bento.dev/checks/flask/unescaped-file-extension/)\n", + "text": "Flask does not automatically escape Jinja templates unless they have .html, .htm, .xml, or .xhtml extensions. This could lead to XSS attacks. Use .html, .htm, .xml, or .xhtml for your template extensions. See https://flask.palletsprojects.com/en/1.1.x/templating/#jinja-setup for more information." + }, + "helpUri": "https://semgrep.dev/r/python.flask.security.unescaped-template-extension.unescaped-template-extension", + "id": "python.flask.security.unescaped-template-extension.unescaped-template-extension", + "name": "python.flask.security.unescaped-template-extension.unescaped-template-extension", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.flask.security.unescaped-template-extension.unescaped-template-extension" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "'open_in' behaves differently on Windows and on Unix-like systems with respect to line endings. To get the same behavior everywhere, use 'open_in_bin' or 'open_in_gen [Open_binary]'. If you really want CRLF-to-LF translations to take place when running on Windows, use 'open_in_gen [Open_text]'." + }, + "help": { + "markdown": "'open_in' behaves differently on Windows and on Unix-like systems with respect to line endings. To get the same behavior everywhere, use 'open_in_bin' or 'open_in_gen [Open_binary]'. If you really want CRLF-to-LF translations to take place when running on Windows, use 'open_in_gen [Open_text]'.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ocaml.lang.portability.crlf-support.prefer-read-in-binary-mode)\n", + "text": "'open_in' behaves differently on Windows and on Unix-like systems with respect to line endings. To get the same behavior everywhere, use 'open_in_bin' or 'open_in_gen [Open_binary]'. If you really want CRLF-to-LF translations to take place when running on Windows, use 'open_in_gen [Open_text]'." + }, + "helpUri": "https://semgrep.dev/r/ocaml.lang.portability.crlf-support.prefer-read-in-binary-mode", + "id": "ocaml.lang.portability.crlf-support.prefer-read-in-binary-mode", + "name": "ocaml.lang.portability.crlf-support.prefer-read-in-binary-mode", + "properties": { + "precision": "very-high", + "tags": [] + }, + "shortDescription": { + "text": "Semgrep Finding: ocaml.lang.portability.crlf-support.prefer-read-in-binary-mode" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Using input or workflow parameters in here-scripts can lead to command injection or code injection. Convert the parameters to env variables instead." + }, + "help": { + "markdown": "Using input or workflow parameters in here-scripts can lead to command injection or code injection. Convert the parameters to env variables instead.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/yaml.argo.security.argo-workflow-parameter-command-injection.argo-workflow-parameter-command-injection)\n - [https://github.com/argoproj/argo-workflows/issues/5061](https://github.com/argoproj/argo-workflows/issues/5061)\n - [https://github.com/argoproj/argo-workflows/issues/5114#issue-808865370](https://github.com/argoproj/argo-workflows/issues/5114#issue-808865370)\n", + "text": "Using input or workflow parameters in here-scripts can lead to command injection or code injection. Convert the parameters to env variables instead." + }, + "helpUri": "https://semgrep.dev/r/yaml.argo.security.argo-workflow-parameter-command-injection.argo-workflow-parameter-command-injection", + "id": "yaml.argo.security.argo-workflow-parameter-command-injection.argo-workflow-parameter-command-injection", + "name": "yaml.argo.security.argo-workflow-parameter-command-injection.argo-workflow-parameter-command-injection", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')", + "CWE-94: Improper Control of Generation of Code ('Code Injection')", + "MEDIUM CONFIDENCE", + "OWASP-A03:2021 \u2013 Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: yaml.argo.security.argo-workflow-parameter-command-injection.argo-workflow-parameter-command-injection" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "The use of $sce.trustAs can be dangerous if unsanitized user input flows through this API." + }, + "help": { + "markdown": "The use of $sce.trustAs can be dangerous if unsanitized user input flows through this API.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.angular.security.detect-angular-trust-as-method.detect-angular-trust-as-method)\n - [https://docs.angularjs.org/api/ng/service/$sce](https://docs.angularjs.org/api/ng/service/$sce)\n - [https://owasp.org/www-chapter-london/assets/slides/OWASPLondon20170727_AngularJS.pdf](https://owasp.org/www-chapter-london/assets/slides/OWASPLondon20170727_AngularJS.pdf)\n", + "text": "The use of $sce.trustAs can be dangerous if unsanitized user input flows through this API." + }, + "helpUri": "https://semgrep.dev/r/javascript.angular.security.detect-angular-trust-as-method.detect-angular-trust-as-method", + "id": "javascript.angular.security.detect-angular-trust-as-method.detect-angular-trust-as-method", + "name": "javascript.angular.security.detect-angular-trust-as-method.detect-angular-trust-as-method", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "MEDIUM CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.angular.security.detect-angular-trust-as-method.detect-angular-trust-as-method" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected 'urllib.urlretrieve()' using 'ftp://'. This request will not be encrypted. Use SFTP instead. urllib does not support SFTP, so consider switching to a library which supports SFTP." + }, + "help": { + "markdown": "Detected 'urllib.urlretrieve()' using 'ftp://'. This request will not be encrypted. Use SFTP instead. urllib does not support SFTP, so consider switching to a library which supports SFTP.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.lang.security.audit.insecure-transport.urllib.insecure-urlretrieve-ftp.insecure-urlretrieve-ftp)\n - [https://docs.python.org/3/library/urllib.request.html#urllib.request.urlretrieve](https://docs.python.org/3/library/urllib.request.html#urllib.request.urlretrieve)\n", + "text": "Detected 'urllib.urlretrieve()' using 'ftp://'. This request will not be encrypted. Use SFTP instead. urllib does not support SFTP, so consider switching to a library which supports SFTP." + }, + "helpUri": "https://semgrep.dev/r/python.lang.security.audit.insecure-transport.urllib.insecure-urlretrieve-ftp.insecure-urlretrieve-ftp", + "id": "python.lang.security.audit.insecure-transport.urllib.insecure-urlretrieve-ftp.insecure-urlretrieve-ftp", + "name": "python.lang.security.audit.insecure-transport.urllib.insecure-urlretrieve-ftp.insecure-urlretrieve-ftp", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-319: Cleartext Transmission of Sensitive Information", + "LOW CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.lang.security.audit.insecure-transport.urllib.insecure-urlretrieve-ftp.insecure-urlretrieve-ftp" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "It looks like MD5 is used as a password hash. MD5 is not considered a secure password hash because it can be cracked by an attacker in a short amount of time. Use a suitable password hashing function such as bcrypt. You can use the `golang.org/x/crypto/bcrypt` package." + }, + "help": { + "markdown": "It looks like MD5 is used as a password hash. MD5 is not considered a secure password hash because it can be cracked by an attacker in a short amount of time. Use a suitable password hashing function such as bcrypt. You can use the `golang.org/x/crypto/bcrypt` package.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/go.lang.security.audit.md5-used-as-password.md5-used-as-password)\n - [https://tools.ietf.org/id/draft-lvelvindron-tls-md5-sha1-deprecate-01.html](https://tools.ietf.org/id/draft-lvelvindron-tls-md5-sha1-deprecate-01.html)\n - [https://security.stackexchange.com/questions/211/how-to-securely-hash-passwords](https://security.stackexchange.com/questions/211/how-to-securely-hash-passwords)\n - [https://github.com/returntocorp/semgrep-rules/issues/1609](https://github.com/returntocorp/semgrep-rules/issues/1609)\n - [https://pkg.go.dev/golang.org/x/crypto/bcrypt](https://pkg.go.dev/golang.org/x/crypto/bcrypt)\n", + "text": "It looks like MD5 is used as a password hash. MD5 is not considered a secure password hash because it can be cracked by an attacker in a short amount of time. Use a suitable password hashing function such as bcrypt. You can use the `golang.org/x/crypto/bcrypt` package." + }, + "helpUri": "https://semgrep.dev/r/go.lang.security.audit.md5-used-as-password.md5-used-as-password", + "id": "go.lang.security.audit.md5-used-as-password.md5-used-as-password", + "name": "go.lang.security.audit.md5-used-as-password.md5-used-as-password", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-327: Use of a Broken or Risky Cryptographic Algorithm", + "MEDIUM CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: go.lang.security.audit.md5-used-as-password.md5-used-as-password" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "$VAR.getRate() call on a Balancer pool is not protected from the read-only reentrancy." + }, + "help": { + "markdown": "$VAR.getRate() call on a Balancer pool is not protected from the read-only reentrancy.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/solidity.security.balancer-readonly-reentrancy-getrate.balancer-readonly-reentrancy-getrate)\n - [https://forum.balancer.fi/t/reentrancy-vulnerability-scope-expanded/4345](https://forum.balancer.fi/t/reentrancy-vulnerability-scope-expanded/4345)\n", + "text": "$VAR.getRate() call on a Balancer pool is not protected from the read-only reentrancy." + }, + "helpUri": "https://semgrep.dev/r/solidity.security.balancer-readonly-reentrancy-getrate.balancer-readonly-reentrancy-getrate", + "id": "solidity.security.balancer-readonly-reentrancy-getrate.balancer-readonly-reentrancy-getrate", + "name": "solidity.security.balancer-readonly-reentrancy-getrate.balancer-readonly-reentrancy-getrate", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-841: Improper Enforcement of Behavioral Workflow", + "HIGH CONFIDENCE", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: solidity.security.balancer-readonly-reentrancy-getrate.balancer-readonly-reentrancy-getrate" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Detected use of the 'none' algorithm in a JWT token. The 'none' algorithm assumes the integrity of the token has already been verified. This would allow a malicious actor to forge a JWT token that will automatically be verified. Do not explicitly use the 'none' algorithm. Instead, use an algorithm such as 'HS256'." + }, + "help": { + "markdown": "Detected use of the 'none' algorithm in a JWT token. The 'none' algorithm assumes the integrity of the token has already been verified. This would allow a malicious actor to forge a JWT token that will automatically be verified. Do not explicitly use the 'none' algorithm. Instead, use an algorithm such as 'HS256'.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/go.jwt-go.security.jwt-none-alg.jwt-go-none-algorithm)\n - [https://owasp.org/Top10/A02_2021-Cryptographic_Failures](https://owasp.org/Top10/A02_2021-Cryptographic_Failures)\n", + "text": "Detected use of the 'none' algorithm in a JWT token. The 'none' algorithm assumes the integrity of the token has already been verified. This would allow a malicious actor to forge a JWT token that will automatically be verified. Do not explicitly use the 'none' algorithm. Instead, use an algorithm such as 'HS256'." + }, + "helpUri": "https://semgrep.dev/r/go.jwt-go.security.jwt-none-alg.jwt-go-none-algorithm", + "id": "go.jwt-go.security.jwt-none-alg.jwt-go-none-algorithm", + "name": "go.jwt-go.security.jwt-none-alg.jwt-go-none-algorithm", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-327: Use of a Broken or Risky Cryptographic Algorithm", + "HIGH CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: go.jwt-go.security.jwt-none-alg.jwt-go-none-algorithm" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "IPv6Network.supernet_of is only available on Python 3.7+ and is therefore not backwards compatible. Instead, check if the supernet is in 'supernet'." + }, + "help": { + "markdown": "IPv6Network.supernet_of is only available on Python 3.7+ and is therefore not backwards compatible. Instead, check if the supernet is in 'supernet'.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.lang.compatibility.python37.python37-compatibility-ipv6network2)\n", + "text": "IPv6Network.supernet_of is only available on Python 3.7+ and is therefore not backwards compatible. Instead, check if the supernet is in 'supernet'." + }, + "helpUri": "https://semgrep.dev/r/python.lang.compatibility.python37.python37-compatibility-ipv6network2", + "id": "python.lang.compatibility.python37.python37-compatibility-ipv6network2", + "name": "python.lang.compatibility.python37.python37-compatibility-ipv6network2", + "properties": { + "precision": "very-high", + "tags": [] + }, + "shortDescription": { + "text": "Semgrep Finding: python.lang.compatibility.python37.python37-compatibility-ipv6network2" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Using variable interpolation `${{...}}` with `github` context data in a `actions/github-script`'s `script:` step could allow an attacker to inject their own code into the runner. This would allow them to steal secrets and code. `github` context data can have arbitrary user input and should be treated as untrusted. Instead, use an intermediate environment variable with `env:` to store the data and use the environment variable in the `run:` script. Be sure to use double-quotes the environment variable, like this: \"$ENVVAR\"." + }, + "help": { + "markdown": "Using variable interpolation `${{...}}` with `github` context data in a `actions/github-script`'s `script:` step could allow an attacker to inject their own code into the runner. This would allow them to steal secrets and code. `github` context data can have arbitrary user input and should be treated as untrusted. Instead, use an intermediate environment variable with `env:` to store the data and use the environment variable in the `run:` script. Be sure to use double-quotes the environment variable, like this: \"$ENVVAR\".\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/yaml.github-actions.security.github-script-injection.github-script-injection)\n - [https://docs.github.com/en/actions/learn-github-actions/security-hardening-for-github-actions#understanding-the-risk-of-script-injections](https://docs.github.com/en/actions/learn-github-actions/security-hardening-for-github-actions#understanding-the-risk-of-script-injections)\n - [https://securitylab.github.com/research/github-actions-untrusted-input/](https://securitylab.github.com/research/github-actions-untrusted-input/)\n - [https://github.com/actions/github-script](https://github.com/actions/github-script)\n", + "text": "Using variable interpolation `${{...}}` with `github` context data in a `actions/github-script`'s `script:` step could allow an attacker to inject their own code into the runner. This would allow them to steal secrets and code. `github` context data can have arbitrary user input and should be treated as untrusted. Instead, use an intermediate environment variable with `env:` to store the data and use the environment variable in the `run:` script. Be sure to use double-quotes the environment variable, like this: \"$ENVVAR\"." + }, + "helpUri": "https://semgrep.dev/r/yaml.github-actions.security.github-script-injection.github-script-injection", + "id": "yaml.github-actions.security.github-script-injection.github-script-injection", + "name": "yaml.github-actions.security.github-script-injection.github-script-injection", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-94: Improper Control of Generation of Code ('Code Injection')", + "HIGH CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: yaml.github-actions.security.github-script-injection.github-script-injection" + } + }, + { + "defaultConfiguration": { + "level": "note" + }, + "fullDescription": { + "text": "this rule has been deprecated." + }, + "help": { + "markdown": "this rule has been deprecated.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/typescript.react.security.audit.react-props-injection.react-props-injection)\n - [https://medium.com/dailyjs/exploiting-script-injection-flaws-in-reactjs-883fb1fe36c1](https://medium.com/dailyjs/exploiting-script-injection-flaws-in-reactjs-883fb1fe36c1)\n", + "text": "this rule has been deprecated." + }, + "helpUri": "https://semgrep.dev/r/typescript.react.security.audit.react-props-injection.react-props-injection", + "id": "typescript.react.security.audit.react-props-injection.react-props-injection", + "name": "typescript.react.security.audit.react-props-injection.react-props-injection", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: typescript.react.security.audit.react-props-injection.react-props-injection" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Snyk API Key detected" + }, + "help": { + "markdown": "Snyk API Key detected\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/generic.secrets.security.detected-snyk-api-key.detected-snyk-api-key)\n - [https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures](https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures)\n", + "text": "Snyk API Key detected" + }, + "helpUri": "https://semgrep.dev/r/generic.secrets.security.detected-snyk-api-key.detected-snyk-api-key", + "id": "generic.secrets.security.detected-snyk-api-key.detected-snyk-api-key", + "name": "generic.secrets.security.detected-snyk-api-key.detected-snyk-api-key", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-798: Use of Hard-coded Credentials", + "LOW CONFIDENCE", + "OWASP-A07:2021 - Identification and Authentication Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: generic.secrets.security.detected-snyk-api-key.detected-snyk-api-key" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Ensure IAM policies don't allow credentials exposure. Credentials exposure actions return credentials as part of the API response, and can possibly lead to leaking important credentials. Instead, use another action that doesn't return sensitive data as part of the API response." + }, + "help": { + "markdown": "Ensure IAM policies don't allow credentials exposure. Credentials exposure actions return credentials as part of the API response, and can possibly lead to leaking important credentials. Instead, use another action that doesn't return sensitive data as part of the API response.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.lang.security.iam.no-iam-creds-exposure.no-iam-creds-exposure)\n - [https://cloudsplaining.readthedocs.io/en/latest/glossary/credentials-exposure/](https://cloudsplaining.readthedocs.io/en/latest/glossary/credentials-exposure/)\n - [https://github.com/bridgecrewio/checkov/blob/ca830e14745c2c8e1b941985f305abe985d7f1f9/checkov/terraform/checks/data/aws/IAMCredentialsExposure.py](https://github.com/bridgecrewio/checkov/blob/ca830e14745c2c8e1b941985f305abe985d7f1f9/checkov/terraform/checks/data/aws/IAMCredentialsExposure.py)\n", + "text": "Ensure IAM policies don't allow credentials exposure. Credentials exposure actions return credentials as part of the API response, and can possibly lead to leaking important credentials. Instead, use another action that doesn't return sensitive data as part of the API response." + }, + "helpUri": "https://semgrep.dev/r/terraform.lang.security.iam.no-iam-creds-exposure.no-iam-creds-exposure", + "id": "terraform.lang.security.iam.no-iam-creds-exposure.no-iam-creds-exposure", + "name": "terraform.lang.security.iam.no-iam-creds-exposure.no-iam-creds-exposure", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-200: Exposure of Sensitive Information to an Unauthorized Actor", + "LOW CONFIDENCE", + "OWASP-A01:2021 - Broken Access Control", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.lang.security.iam.no-iam-creds-exposure.no-iam-creds-exposure" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Visualforce Pages must use API version 55 or higher for required use of the cspHeader attribute set to true." + }, + "help": { + "markdown": "Visualforce Pages must use API version 55 or higher for required use of the cspHeader attribute set to true.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/generic.visualforce.security.ncino.xml.visualforceapiversion.visualforce-page-api-version)\n - [https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_pages.htm](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_pages.htm)\n", + "text": "Visualforce Pages must use API version 55 or higher for required use of the cspHeader attribute set to true." + }, + "helpUri": "https://semgrep.dev/r/generic.visualforce.security.ncino.xml.visualforceapiversion.visualforce-page-api-version", + "id": "generic.visualforce.security.ncino.xml.visualforceapiversion.visualforce-page-api-version", + "name": "generic.visualforce.security.ncino.xml.visualforceapiversion.visualforce-page-api-version", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "HIGH CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: generic.visualforce.security.ncino.xml.visualforceapiversion.visualforce-page-api-version" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "This rule is deprecated." + }, + "help": { + "markdown": "This rule is deprecated.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ruby.lang.security.nested-attributes-bypass.nested-attributes-bypass)\n - [https://groups.google.com/g/rubyonrails-security/c/cawsWcQ6c8g/m/tegZtYdbFQAJ](https://groups.google.com/g/rubyonrails-security/c/cawsWcQ6c8g/m/tegZtYdbFQAJ)\n - [https://github.com/presidentbeef/brakeman/blob/main/lib/brakeman/checks/check_nested_attributes_bypass.rb](https://github.com/presidentbeef/brakeman/blob/main/lib/brakeman/checks/check_nested_attributes_bypass.rb)\n", + "text": "This rule is deprecated." + }, + "helpUri": "https://semgrep.dev/r/ruby.lang.security.nested-attributes-bypass.nested-attributes-bypass", + "id": "ruby.lang.security.nested-attributes-bypass.nested-attributes-bypass", + "name": "ruby.lang.security.nested-attributes-bypass.nested-attributes-bypass", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes", + "LOW CONFIDENCE", + "OWASP-A08:2021 - Software and Data Integrity Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: ruby.lang.security.nested-attributes-bypass.nested-attributes-bypass" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "MemoryMarshal.CreateSpan and MemoryMarshal.CreateReadOnlySpan should be used with caution, as the length argument is not checked." + }, + "help": { + "markdown": "MemoryMarshal.CreateSpan and MemoryMarshal.CreateReadOnlySpan should be used with caution, as the length argument is not checked.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/csharp.lang.security.memory.memory-marshal-create-span.memory-marshal-create-span)\n - [https://docs.microsoft.com/en-us/dotnet/api/system.runtime.interopservices.memorymarshal.createspan?view=net-6.0](https://docs.microsoft.com/en-us/dotnet/api/system.runtime.interopservices.memorymarshal.createspan?view=net-6.0)\n - [https://docs.microsoft.com/en-us/dotnet/api/system.runtime.interopservices.memorymarshal.createreadonlyspan?view=net-6.0](https://docs.microsoft.com/en-us/dotnet/api/system.runtime.interopservices.memorymarshal.createreadonlyspan?view=net-6.0)\n", + "text": "MemoryMarshal.CreateSpan and MemoryMarshal.CreateReadOnlySpan should be used with caution, as the length argument is not checked." + }, + "helpUri": "https://semgrep.dev/r/csharp.lang.security.memory.memory-marshal-create-span.memory-marshal-create-span", + "id": "csharp.lang.security.memory.memory-marshal-create-span.memory-marshal-create-span", + "name": "csharp.lang.security.memory.memory-marshal-create-span.memory-marshal-create-span", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-125: Out-of-bounds Read", + "LOW CONFIDENCE", + "OWASP-A04:2021 - Insecure Design", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: csharp.lang.security.memory.memory-marshal-create-span.memory-marshal-create-span" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "SSRF is an attack vector that abuses an application to interact with the internal/external network or the machine itself." + }, + "help": { + "markdown": "SSRF is an attack vector that abuses an application to interact with the internal/external network or the machine itself.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/csharp.lang.security.ssrf.http-client.ssrf)\n - [https://cheatsheetseries.owasp.org/cheatsheets/Server_Side_Request_Forgery_Prevention_Cheat_Sheet.html](https://cheatsheetseries.owasp.org/cheatsheets/Server_Side_Request_Forgery_Prevention_Cheat_Sheet.html)\n", + "text": "SSRF is an attack vector that abuses an application to interact with the internal/external network or the machine itself." + }, + "helpUri": "https://semgrep.dev/r/csharp.lang.security.ssrf.http-client.ssrf", + "id": "csharp.lang.security.ssrf.http-client.ssrf", + "name": "csharp.lang.security.ssrf.http-client.ssrf", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-918: Server-Side Request Forgery (SSRF)", + "LOW CONFIDENCE", + "OWASP-A10:2021 - Server-Side Request Forgery (SSRF)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: csharp.lang.security.ssrf.http-client.ssrf" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected a segment of a Flask template where autoescaping is explicitly disabled with '{% autoescape off %}'. This allows rendering of raw HTML in this segment. Ensure no user data is rendered here, otherwise this is a cross-site scripting (XSS) vulnerability, or turn autoescape on." + }, + "help": { + "markdown": "Detected a segment of a Flask template where autoescaping is explicitly disabled with '{% autoescape off %}'. This allows rendering of raw HTML in this segment. Ensure no user data is rendered here, otherwise this is a cross-site scripting (XSS) vulnerability, or turn autoescape on.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.flask.security.xss.audit.template-autoescape-off.template-autoescape-off)\n - [https://flask.palletsprojects.com/en/1.1.x/templating/#controlling-autoescaping](https://flask.palletsprojects.com/en/1.1.x/templating/#controlling-autoescaping)\n - [https://flask.palletsprojects.com/en/1.1.x/templating/#jinja-setup](https://flask.palletsprojects.com/en/1.1.x/templating/#jinja-setup)\n", + "text": "Detected a segment of a Flask template where autoescaping is explicitly disabled with '{% autoescape off %}'. This allows rendering of raw HTML in this segment. Ensure no user data is rendered here, otherwise this is a cross-site scripting (XSS) vulnerability, or turn autoescape on." + }, + "helpUri": "https://semgrep.dev/r/python.flask.security.xss.audit.template-autoescape-off.template-autoescape-off", + "id": "python.flask.security.xss.audit.template-autoescape-off.template-autoescape-off", + "name": "python.flask.security.xss.audit.template-autoescape-off.template-autoescape-off", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.flask.security.xss.audit.template-autoescape-off.template-autoescape-off" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "If unverified user data can reach the `phantom` page methods it can result in Server-Side Request Forgery vulnerabilities" + }, + "help": { + "markdown": "If unverified user data can reach the `phantom` page methods it can result in Server-Side Request Forgery vulnerabilities\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.phantom.security.audit.phantom-injection.phantom-injection)\n - [https://owasp.org/Top10/A10_2021-Server-Side_Request_Forgery_%28SSRF%29](https://owasp.org/Top10/A10_2021-Server-Side_Request_Forgery_%28SSRF%29)\n", + "text": "If unverified user data can reach the `phantom` page methods it can result in Server-Side Request Forgery vulnerabilities" + }, + "helpUri": "https://semgrep.dev/r/javascript.phantom.security.audit.phantom-injection.phantom-injection", + "id": "javascript.phantom.security.audit.phantom-injection.phantom-injection", + "name": "javascript.phantom.security.audit.phantom-injection.phantom-injection", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-918: Server-Side Request Forgery (SSRF)", + "LOW CONFIDENCE", + "OWASP-A10:2021 - Server-Side Request Forgery (SSRF)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.phantom.security.audit.phantom-injection.phantom-injection" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Checks for requests sent via Unirest to http:// URLS. This is dangerous because the server is attempting to connect to a website that does not encrypt traffic with TLS. Instead, send requests only to https:// URLS." + }, + "help": { + "markdown": "Checks for requests sent via Unirest to http:// URLS. This is dangerous because the server is attempting to connect to a website that does not encrypt traffic with TLS. Instead, send requests only to https:// URLS.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/problem-based-packs.insecure-transport.java-stdlib.unirest-http-request.unirest-http-request)\n - [https://kong.github.io/unirest-java/#requests](https://kong.github.io/unirest-java/#requests)\n", + "text": "Checks for requests sent via Unirest to http:// URLS. This is dangerous because the server is attempting to connect to a website that does not encrypt traffic with TLS. Instead, send requests only to https:// URLS." + }, + "helpUri": "https://semgrep.dev/r/problem-based-packs.insecure-transport.java-stdlib.unirest-http-request.unirest-http-request", + "id": "problem-based-packs.insecure-transport.java-stdlib.unirest-http-request.unirest-http-request", + "name": "problem-based-packs.insecure-transport.java-stdlib.unirest-http-request.unirest-http-request", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-319: Cleartext Transmission of Sensitive Information", + "MEDIUM CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: problem-based-packs.insecure-transport.java-stdlib.unirest-http-request.unirest-http-request" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected user input flowing into a manually constructed HTML string. You may be accidentally bypassing secure methods of rendering HTML by manually constructing HTML and this could create a cross-site scripting vulnerability, which could let attackers steal sensitive user data. To be sure this is safe, check that the HTML is rendered safely. Otherwise, use templates (`django.shortcuts.render`) which will safely render HTML instead." + }, + "help": { + "markdown": "Detected user input flowing into a manually constructed HTML string. You may be accidentally bypassing secure methods of rendering HTML by manually constructing HTML and this could create a cross-site scripting vulnerability, which could let attackers steal sensitive user data. To be sure this is safe, check that the HTML is rendered safely. Otherwise, use templates (`django.shortcuts.render`) which will safely render HTML instead.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.django.security.injection.raw-html-format.raw-html-format)\n - [https://docs.djangoproject.com/en/3.2/topics/http/shortcuts/#render](https://docs.djangoproject.com/en/3.2/topics/http/shortcuts/#render)\n - [https://docs.djangoproject.com/en/3.2/topics/security/#cross-site-scripting-xss-protection](https://docs.djangoproject.com/en/3.2/topics/security/#cross-site-scripting-xss-protection)\n", + "text": "Detected user input flowing into a manually constructed HTML string. You may be accidentally bypassing secure methods of rendering HTML by manually constructing HTML and this could create a cross-site scripting vulnerability, which could let attackers steal sensitive user data. To be sure this is safe, check that the HTML is rendered safely. Otherwise, use templates (`django.shortcuts.render`) which will safely render HTML instead." + }, + "helpUri": "https://semgrep.dev/r/python.django.security.injection.raw-html-format.raw-html-format", + "id": "python.django.security.injection.raw-html-format.raw-html-format", + "name": "python.django.security.injection.raw-html-format.raw-html-format", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "MEDIUM CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.django.security.injection.raw-html-format.raw-html-format" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "This rule is deprecated." + }, + "help": { + "markdown": "This rule is deprecated.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ruby.rails.security.audit.mail-to.mail-to)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "This rule is deprecated." + }, + "helpUri": "https://semgrep.dev/r/ruby.rails.security.audit.mail-to.mail-to", + "id": "ruby.rails.security.audit.mail-to.mail-to", + "name": "ruby.rails.security.audit.mail-to.mail-to", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: ruby.rails.security.audit.mail-to.mail-to" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected anonymous LDAP bind. This permits anonymous users to execute LDAP statements. Consider enforcing authentication for LDAP." + }, + "help": { + "markdown": "Detected anonymous LDAP bind. This permits anonymous users to execute LDAP statements. Consider enforcing authentication for LDAP.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/php.lang.security.ldap-bind-without-password.ldap-bind-without-password)\n - [https://www.php.net/manual/en/function.ldap-bind.php](https://www.php.net/manual/en/function.ldap-bind.php)\n", + "text": "Detected anonymous LDAP bind. This permits anonymous users to execute LDAP statements. Consider enforcing authentication for LDAP." + }, + "helpUri": "https://semgrep.dev/r/php.lang.security.ldap-bind-without-password.ldap-bind-without-password", + "id": "php.lang.security.ldap-bind-without-password.ldap-bind-without-password", + "name": "php.lang.security.ldap-bind-without-password.ldap-bind-without-password", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-287: Improper Authentication", + "LOW CONFIDENCE", + "OWASP-A02:2017 - Broken Authentication", + "OWASP-A07:2021 - Identification and Authentication Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: php.lang.security.ldap-bind-without-password.ldap-bind-without-password" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected a template variable used in an anchor tag with the 'href' attribute. This allows a malicious actor to input the 'javascript:' URI and is subject to cross- site scripting (XSS) attacks. Use the 'url' template tag to safely generate a URL. You may also consider setting the Content Security Policy (CSP) header." + }, + "help": { + "markdown": "Detected a template variable used in an anchor tag with the 'href' attribute. This allows a malicious actor to input the 'javascript:' URI and is subject to cross- site scripting (XSS) attacks. Use the 'url' template tag to safely generate a URL. You may also consider setting the Content Security Policy (CSP) header.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.django.security.audit.xss.template-href-var.template-href-var)\n - [https://flask.palletsprojects.com/en/1.1.x/security/#cross-site-scripting-xss](https://flask.palletsprojects.com/en/1.1.x/security/#cross-site-scripting-xss)\n - [https://docs.djangoproject.com/en/3.1/ref/templates/builtins/#url](https://docs.djangoproject.com/en/3.1/ref/templates/builtins/#url)\n - [https://content-security-policy.com/](https://content-security-policy.com/)\n", + "text": "Detected a template variable used in an anchor tag with the 'href' attribute. This allows a malicious actor to input the 'javascript:' URI and is subject to cross- site scripting (XSS) attacks. Use the 'url' template tag to safely generate a URL. You may also consider setting the Content Security Policy (CSP) header." + }, + "helpUri": "https://semgrep.dev/r/python.django.security.audit.xss.template-href-var.template-href-var", + "id": "python.django.security.audit.xss.template-href-var.template-href-var", + "name": "python.django.security.audit.xss.template-href-var.template-href-var", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.django.security.audit.xss.template-href-var.template-href-var" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Access-Control-Allow-Origin response header is set to \"*\". This will disable CORS Same Origin Policy restrictions." + }, + "help": { + "markdown": "Access-Control-Allow-Origin response header is set to \"*\". This will disable CORS Same Origin Policy restrictions.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/php.symfony.security.audit.symfony-permissive-cors.symfony-permissive-cors)\n - [https://developer.mozilla.org/ru/docs/Web/HTTP/Headers/Access-Control-Allow-Origin](https://developer.mozilla.org/ru/docs/Web/HTTP/Headers/Access-Control-Allow-Origin)\n", + "text": "Access-Control-Allow-Origin response header is set to \"*\". This will disable CORS Same Origin Policy restrictions." + }, + "helpUri": "https://semgrep.dev/r/php.symfony.security.audit.symfony-permissive-cors.symfony-permissive-cors", + "id": "php.symfony.security.audit.symfony-permissive-cors.symfony-permissive-cors", + "name": "php.symfony.security.audit.symfony-permissive-cors.symfony-permissive-cors", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-346: Origin Validation Error", + "LOW CONFIDENCE", + "OWASP-A07:2021 - Identification and Authentication Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: php.symfony.security.audit.symfony-permissive-cors.symfony-permissive-cors" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Should not use md5 to generate hashes. md5 is proven to be vulnerable through the use of brute-force attacks. Could also result in collisions, leading to potential collision attacks. Use SHA256 or other hashing functions instead." + }, + "help": { + "markdown": "Should not use md5 to generate hashes. md5 is proven to be vulnerable through the use of brute-force attacks. Could also result in collisions, leading to potential collision attacks. Use SHA256 or other hashing functions instead.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ruby.lang.security.weak-hashes-md5.weak-hashes-md5)\n - [https://www.ibm.com/support/pages/security-bulletin-vulnerability-md5-signature-and-hash-algorithm-affects-sterling-integrator-and-sterling-file-gateway-cve-2015-7575](https://www.ibm.com/support/pages/security-bulletin-vulnerability-md5-signature-and-hash-algorithm-affects-sterling-integrator-and-sterling-file-gateway-cve-2015-7575)\n", + "text": "Should not use md5 to generate hashes. md5 is proven to be vulnerable through the use of brute-force attacks. Could also result in collisions, leading to potential collision attacks. Use SHA256 or other hashing functions instead." + }, + "helpUri": "https://semgrep.dev/r/ruby.lang.security.weak-hashes-md5.weak-hashes-md5", + "id": "ruby.lang.security.weak-hashes-md5.weak-hashes-md5", + "name": "ruby.lang.security.weak-hashes-md5.weak-hashes-md5", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-328: Use of Weak Hash", + "MEDIUM CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: ruby.lang.security.weak-hashes-md5.weak-hashes-md5" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Detected user input flowing into a manually constructed HTML string. You may be accidentally bypassing secure methods of rendering HTML by manually constructing HTML and this could create a cross-site scripting vulnerability, which could let attackers steal sensitive user data. To be sure this is safe, check that the HTML is rendered safely. You can use the OWASP ESAPI encoder if you must render user data." + }, + "help": { + "markdown": "Detected user input flowing into a manually constructed HTML string. You may be accidentally bypassing secure methods of rendering HTML by manually constructing HTML and this could create a cross-site scripting vulnerability, which could let attackers steal sensitive user data. To be sure this is safe, check that the HTML is rendered safely. You can use the OWASP ESAPI encoder if you must render user data.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.spring.security.injection.tainted-html-string.tainted-html-string)\n - [https://cheatsheetseries.owasp.org/cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.html](https://cheatsheetseries.owasp.org/cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.html)\n", + "text": "Detected user input flowing into a manually constructed HTML string. You may be accidentally bypassing secure methods of rendering HTML by manually constructing HTML and this could create a cross-site scripting vulnerability, which could let attackers steal sensitive user data. To be sure this is safe, check that the HTML is rendered safely. You can use the OWASP ESAPI encoder if you must render user data." + }, + "helpUri": "https://semgrep.dev/r/java.spring.security.injection.tainted-html-string.tainted-html-string", + "id": "java.spring.security.injection.tainted-html-string.tainted-html-string", + "name": "java.spring.security.injection.tainted-html-string.tainted-html-string", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "MEDIUM CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.spring.security.injection.tainted-html-string.tainted-html-string" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Initialization Vectors (IVs) for block ciphers should be randomly generated each time they are used. Using a static IV means the same plaintext encrypts to the same ciphertext every time, weakening the strength of the encryption." + }, + "help": { + "markdown": "Initialization Vectors (IVs) for block ciphers should be randomly generated each time they are used. Using a static IV means the same plaintext encrypts to the same ciphertext every time, weakening the strength of the encryption.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.lang.security.audit.crypto.no-static-initialization-vector.no-static-initialization-vector)\n - [https://cwe.mitre.org/data/definitions/329.html](https://cwe.mitre.org/data/definitions/329.html)\n", + "text": "Initialization Vectors (IVs) for block ciphers should be randomly generated each time they are used. Using a static IV means the same plaintext encrypts to the same ciphertext every time, weakening the strength of the encryption." + }, + "helpUri": "https://semgrep.dev/r/java.lang.security.audit.crypto.no-static-initialization-vector.no-static-initialization-vector", + "id": "java.lang.security.audit.crypto.no-static-initialization-vector.no-static-initialization-vector", + "name": "java.lang.security.audit.crypto.no-static-initialization-vector.no-static-initialization-vector", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-329: Generation of Predictable IV with CBC Mode", + "HIGH CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.lang.security.audit.crypto.no-static-initialization-vector.no-static-initialization-vector" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected a template variable used in a script tag. Although template variables are HTML escaped, HTML escaping does not always prevent cross-site scripting (XSS) attacks when used directly in JavaScript. If you need this data on the rendered page, consider placing it in the HTML portion (outside of a script tag). Alternatively, use a JavaScript-specific encoder, such as the one available in OWASP ESAPI. For Django, you may also consider using the 'json_script' template tag and retrieving the data in your script by using the element ID (e.g., `document.getElementById`)." + }, + "help": { + "markdown": "Detected a template variable used in a script tag. Although template variables are HTML escaped, HTML escaping does not always prevent cross-site scripting (XSS) attacks when used directly in JavaScript. If you need this data on the rendered page, consider placing it in the HTML portion (outside of a script tag). Alternatively, use a JavaScript-specific encoder, such as the one available in OWASP ESAPI. For Django, you may also consider using the 'json_script' template tag and retrieving the data in your script by using the element ID (e.g., `document.getElementById`).\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/generic.html-templates.security.var-in-script-tag.var-in-script-tag)\n - [https://adamj.eu/tech/2020/02/18/safely-including-data-for-javascript-in-a-django-template/?utm_campaign=Django%2BNewsletter&utm_medium=rss&utm_source=Django_Newsletter_12A](https://adamj.eu/tech/2020/02/18/safely-including-data-for-javascript-in-a-django-template/?utm_campaign=Django%2BNewsletter&utm_medium=rss&utm_source=Django_Newsletter_12A)\n - [https://www.veracode.com/blog/secure-development/nodejs-template-engines-why-default-encoders-are-not-enough](https://www.veracode.com/blog/secure-development/nodejs-template-engines-why-default-encoders-are-not-enough)\n - [https://github.com/ESAPI/owasp-esapi-js](https://github.com/ESAPI/owasp-esapi-js)\n", + "text": "Detected a template variable used in a script tag. Although template variables are HTML escaped, HTML escaping does not always prevent cross-site scripting (XSS) attacks when used directly in JavaScript. If you need this data on the rendered page, consider placing it in the HTML portion (outside of a script tag). Alternatively, use a JavaScript-specific encoder, such as the one available in OWASP ESAPI. For Django, you may also consider using the 'json_script' template tag and retrieving the data in your script by using the element ID (e.g., `document.getElementById`)." + }, + "helpUri": "https://semgrep.dev/r/generic.html-templates.security.var-in-script-tag.var-in-script-tag", + "id": "generic.html-templates.security.var-in-script-tag.var-in-script-tag", + "name": "generic.html-templates.security.var-in-script-tag.var-in-script-tag", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: generic.html-templates.security.var-in-script-tag.var-in-script-tag" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detects potential Google Maps API keys in code" + }, + "help": { + "markdown": "Detects potential Google Maps API keys in code\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/generic.secrets.security.google-maps-apikeyleak.google-maps-apikeyleak)\n - [https://ozguralp.medium.com/unauthorized-google-maps-api-key-usage-cases-and-why-you-need-to-care-1ccb28bf21e](https://ozguralp.medium.com/unauthorized-google-maps-api-key-usage-cases-and-why-you-need-to-care-1ccb28bf21e)\n", + "text": "Detects potential Google Maps API keys in code" + }, + "helpUri": "https://semgrep.dev/r/generic.secrets.security.google-maps-apikeyleak.google-maps-apikeyleak", + "id": "generic.secrets.security.google-maps-apikeyleak.google-maps-apikeyleak", + "name": "generic.secrets.security.google-maps-apikeyleak.google-maps-apikeyleak", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-538: Insertion of Sensitive Information into Externally-Accessible File or Directory", + "MEDIUM CONFIDENCE", + "OWASP-A3:2017 Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: generic.secrets.security.google-maps-apikeyleak.google-maps-apikeyleak" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Marking code as privileged enables a piece of trusted code to temporarily enable access to more resources than are available directly to the code that called it. Be very careful in your use of the privileged construct, and always remember to make the privileged code section as small as possible." + }, + "help": { + "markdown": "Marking code as privileged enables a piece of trusted code to temporarily enable access to more resources than are available directly to the code that called it. Be very careful in your use of the privileged construct, and always remember to make the privileged code section as small as possible.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.lang.security.do-privileged-use.do-privileged-use)\n - [https://docs.oracle.com/javase/8/docs/technotes/guides/security/doprivileged.html](https://docs.oracle.com/javase/8/docs/technotes/guides/security/doprivileged.html)\n - [https://wiki.sei.cmu.edu/confluence/display/java/Privilege+Escalation](https://wiki.sei.cmu.edu/confluence/display/java/Privilege+Escalation)\n - [http://phrack.org/papers/escaping_the_java_sandbox.html](http://phrack.org/papers/escaping_the_java_sandbox.html)\n", + "text": "Marking code as privileged enables a piece of trusted code to temporarily enable access to more resources than are available directly to the code that called it. Be very careful in your use of the privileged construct, and always remember to make the privileged code section as small as possible." + }, + "helpUri": "https://semgrep.dev/r/java.lang.security.do-privileged-use.do-privileged-use", + "id": "java.lang.security.do-privileged-use.do-privileged-use", + "name": "java.lang.security.do-privileged-use.do-privileged-use", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-269: Improper Privilege Management", + "LOW CONFIDENCE", + "OWASP-A04:2021 - Insecure Design", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.lang.security.do-privileged-use.do-privileged-use" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "$POOL.get_virtual_price() call on a Curve pool is not protected from the read-only reentrancy." + }, + "help": { + "markdown": "$POOL.get_virtual_price() call on a Curve pool is not protected from the read-only reentrancy.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/solidity.security.curve-readonly-reentrancy.curve-readonly-reentrancy)\n - [https://chainsecurity.com/heartbreaks-curve-lp-oracles/](https://chainsecurity.com/heartbreaks-curve-lp-oracles/)\n - [https://chainsecurity.com/curve-lp-oracle-manipulation-post-mortem/](https://chainsecurity.com/curve-lp-oracle-manipulation-post-mortem/)\n", + "text": "$POOL.get_virtual_price() call on a Curve pool is not protected from the read-only reentrancy." + }, + "helpUri": "https://semgrep.dev/r/solidity.security.curve-readonly-reentrancy.curve-readonly-reentrancy", + "id": "solidity.security.curve-readonly-reentrancy.curve-readonly-reentrancy", + "name": "solidity.security.curve-readonly-reentrancy.curve-readonly-reentrancy", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-841: Improper Enforcement of Behavioral Workflow", + "HIGH CONFIDENCE", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: solidity.security.curve-readonly-reentrancy.curve-readonly-reentrancy" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "The 'add_header' directive is called in a 'location' block after headers have been set at the server block. Calling 'add_header' in the location block will actually overwrite the headers defined in the server block, no matter which headers are set. To fix this, explicitly set all headers or set all headers in the server block." + }, + "help": { + "markdown": "The 'add_header' directive is called in a 'location' block after headers have been set at the server block. Calling 'add_header' in the location block will actually overwrite the headers defined in the server block, no matter which headers are set. To fix this, explicitly set all headers or set all headers in the server block.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/generic.nginx.security.header-redefinition.header-redefinition)\n - [https://github.com/yandex/gixy/blob/master/docs/en/plugins/addheaderredefinition.md](https://github.com/yandex/gixy/blob/master/docs/en/plugins/addheaderredefinition.md)\n", + "text": "The 'add_header' directive is called in a 'location' block after headers have been set at the server block. Calling 'add_header' in the location block will actually overwrite the headers defined in the server block, no matter which headers are set. To fix this, explicitly set all headers or set all headers in the server block." + }, + "helpUri": "https://semgrep.dev/r/generic.nginx.security.header-redefinition.header-redefinition", + "id": "generic.nginx.security.header-redefinition.header-redefinition", + "name": "generic.nginx.security.header-redefinition.header-redefinition", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-16: CWE CATEGORY: Configuration", + "LOW CONFIDENCE", + "OWASP-A05:2021 - Security Misconfiguration", + "OWASP-A06:2017 - Security Misconfiguration", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: generic.nginx.security.header-redefinition.header-redefinition" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected a debug template tag in a Django template. This dumps debugging information to the page when debug mode is enabled. Showing debug information to users is dangerous because it may reveal information about your environment that malicious actors can use to gain access to the system. Remove the debug tag." + }, + "help": { + "markdown": "Detected a debug template tag in a Django template. This dumps debugging information to the page when debug mode is enabled. Showing debug information to users is dangerous because it may reveal information about your environment that malicious actors can use to gain access to the system. Remove the debug tag.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.django.security.audit.templates.debug-template-tag.debug-template-tag)\n - [https://docs.djangoproject.com/en/4.2/ref/templates/builtins/#debug](https://docs.djangoproject.com/en/4.2/ref/templates/builtins/#debug)\n - [https://stackoverflow.com/questions/2213977/django-debug-display-all-variables-of-a-page](https://stackoverflow.com/questions/2213977/django-debug-display-all-variables-of-a-page)\n", + "text": "Detected a debug template tag in a Django template. This dumps debugging information to the page when debug mode is enabled. Showing debug information to users is dangerous because it may reveal information about your environment that malicious actors can use to gain access to the system. Remove the debug tag." + }, + "helpUri": "https://semgrep.dev/r/python.django.security.audit.templates.debug-template-tag.debug-template-tag", + "id": "python.django.security.audit.templates.debug-template-tag.debug-template-tag", + "name": "python.django.security.audit.templates.debug-template-tag.debug-template-tag", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-489: Active Debug Code", + "LOW CONFIDENCE", + "OWASP-A06:2017 - Security Misconfiguration", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.django.security.audit.templates.debug-template-tag.debug-template-tag" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Found usage of 'importlib.abc.ResourceReader'. This module is only available on Python 3.7+ and is therefore not backwards compatible. Instead, use another loader." + }, + "help": { + "markdown": "Found usage of 'importlib.abc.ResourceReader'. This module is only available on Python 3.7+ and is therefore not backwards compatible. Instead, use another loader.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.lang.compatibility.python37.python37-compatibility-importlib3)\n", + "text": "Found usage of 'importlib.abc.ResourceReader'. This module is only available on Python 3.7+ and is therefore not backwards compatible. Instead, use another loader." + }, + "helpUri": "https://semgrep.dev/r/python.lang.compatibility.python37.python37-compatibility-importlib3", + "id": "python.lang.compatibility.python37.python37-compatibility-importlib3", + "name": "python.lang.compatibility.python37.python37-compatibility-importlib3", + "properties": { + "precision": "very-high", + "tags": [] + }, + "shortDescription": { + "text": "Semgrep Finding: python.lang.compatibility.python37.python37-compatibility-importlib3" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "This link points to a plaintext HTTP URL. Prefer an encrypted HTTPS URL if possible." + }, + "help": { + "markdown": "This link points to a plaintext HTTP URL. Prefer an encrypted HTTPS URL if possible.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/html.security.plaintext-http-link.plaintext-http-link)\n - [https://cwe.mitre.org/data/definitions/319.html](https://cwe.mitre.org/data/definitions/319.html)\n", + "text": "This link points to a plaintext HTTP URL. Prefer an encrypted HTTPS URL if possible." + }, + "helpUri": "https://semgrep.dev/r/html.security.plaintext-http-link.plaintext-http-link", + "id": "html.security.plaintext-http-link.plaintext-http-link", + "name": "html.security.plaintext-http-link.plaintext-http-link", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-319: Cleartext Transmission of Sensitive Information", + "HIGH CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: html.security.plaintext-http-link.plaintext-http-link" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Detected DynamoDB query filter that is tainted by `$EVENT` object. This could lead to NoSQL injection if the variable is user-controlled and not properly sanitized. Explicitly assign query params instead of passing data from `$EVENT` directly to DynamoDB client." + }, + "help": { + "markdown": "Detected DynamoDB query filter that is tainted by `$EVENT` object. This could lead to NoSQL injection if the variable is user-controlled and not properly sanitized. Explicitly assign query params instead of passing data from `$EVENT` directly to DynamoDB client.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.aws-lambda.security.dynamodb-filter-injection.dynamodb-filter-injection)\n - [https://medium.com/appsecengineer/dynamodb-injection-1db99c2454ac](https://medium.com/appsecengineer/dynamodb-injection-1db99c2454ac)\n", + "text": "Detected DynamoDB query filter that is tainted by `$EVENT` object. This could lead to NoSQL injection if the variable is user-controlled and not properly sanitized. Explicitly assign query params instead of passing data from `$EVENT` directly to DynamoDB client." + }, + "helpUri": "https://semgrep.dev/r/python.aws-lambda.security.dynamodb-filter-injection.dynamodb-filter-injection", + "id": "python.aws-lambda.security.dynamodb-filter-injection.dynamodb-filter-injection", + "name": "python.aws-lambda.security.dynamodb-filter-injection.dynamodb-filter-injection", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-943: Improper Neutralization of Special Elements in Data Query Logic", + "MEDIUM CONFIDENCE", + "OWASP-A01:2017 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.aws-lambda.security.dynamodb-filter-injection.dynamodb-filter-injection" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected non-constant data passed into an LDAP query. If this data can be controlled by an external user, this is an LDAP injection. Ensure data passed to an LDAP query is not controllable; or properly sanitize the data." + }, + "help": { + "markdown": "Detected non-constant data passed into an LDAP query. If this data can be controlled by an external user, this is an LDAP injection. Ensure data passed to an LDAP query is not controllable; or properly sanitize the data.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.lang.security.audit.ldap-injection.ldap-injection)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "Detected non-constant data passed into an LDAP query. If this data can be controlled by an external user, this is an LDAP injection. Ensure data passed to an LDAP query is not controllable; or properly sanitize the data." + }, + "helpUri": "https://semgrep.dev/r/java.lang.security.audit.ldap-injection.ldap-injection", + "id": "java.lang.security.audit.ldap-injection.ldap-injection", + "name": "java.lang.security.audit.ldap-injection.ldap-injection", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-90: Improper Neutralization of Special Elements used in an LDAP Query ('LDAP Injection')", + "LOW CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.lang.security.audit.ldap-injection.ldap-injection" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Passing a formatted string as first parameter to `format_html` disables the proper encoding of variables. Any HTML in the first parameter is not encoded. Using a formatted string as first parameter obscures which parameters are encoded. Correct use of `format_html` is passing a static format string as first parameter, and the variables to substitute as subsequent parameters." + }, + "help": { + "markdown": "Passing a formatted string as first parameter to `format_html` disables the proper encoding of variables. Any HTML in the first parameter is not encoded. Using a formatted string as first parameter obscures which parameters are encoded. Correct use of `format_html` is passing a static format string as first parameter, and the variables to substitute as subsequent parameters.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.django.security.audit.xss.formathtml-fstring-parameter.formathtml-fstring-parameter)\n - [https://docs.djangoproject.com/en/3.2/ref/utils/#django.utils.html.format_html](https://docs.djangoproject.com/en/3.2/ref/utils/#django.utils.html.format_html)\n", + "text": "Passing a formatted string as first parameter to `format_html` disables the proper encoding of variables. Any HTML in the first parameter is not encoded. Using a formatted string as first parameter obscures which parameters are encoded. Correct use of `format_html` is passing a static format string as first parameter, and the variables to substitute as subsequent parameters." + }, + "helpUri": "https://semgrep.dev/r/python.django.security.audit.xss.formathtml-fstring-parameter.formathtml-fstring-parameter", + "id": "python.django.security.audit.xss.formathtml-fstring-parameter.formathtml-fstring-parameter", + "name": "python.django.security.audit.xss.formathtml-fstring-parameter.formathtml-fstring-parameter", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.django.security.audit.xss.formathtml-fstring-parameter.formathtml-fstring-parameter" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Detected an AppService that was not configured to use TLS 1.2. Add `site_config.min_tls_version = \"1.2\"` in your resource block." + }, + "help": { + "markdown": "Detected an AppService that was not configured to use TLS 1.2. Add `site_config.min_tls_version = \"1.2\"` in your resource block.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.azure.security.appservice.appservice-use-secure-tls-policy.appservice-use-secure-tls-policy)\n - [https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/app_service#min_tls_version](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/app_service#min_tls_version)\n", + "text": "Detected an AppService that was not configured to use TLS 1.2. Add `site_config.min_tls_version = \"1.2\"` in your resource block." + }, + "helpUri": "https://semgrep.dev/r/terraform.azure.security.appservice.appservice-use-secure-tls-policy.appservice-use-secure-tls-policy", + "id": "terraform.azure.security.appservice.appservice-use-secure-tls-policy.appservice-use-secure-tls-policy", + "name": "terraform.azure.security.appservice.appservice-use-secure-tls-policy.appservice-use-secure-tls-policy", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-326: Inadequate Encryption Strength", + "HIGH CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.azure.security.appservice.appservice-use-secure-tls-policy.appservice-use-secure-tls-policy" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "The SHA1 hashing algorithm is considered to be weak. If this is used in any sensitive operation such as password hashing, or is used to ensure data integrity (collision sensitive) then you should use a stronger hashing algorithm. For passwords, consider using `Argon2id`, `scrypt`, or `bcrypt`. For data integrity, consider using `SHA-256`" + }, + "help": { + "markdown": "The SHA1 hashing algorithm is considered to be weak. If this is used in any sensitive operation such as password hashing, or is used to ensure data integrity (collision sensitive) then you should use a stronger hashing algorithm. For passwords, consider using `Argon2id`, `scrypt`, or `bcrypt`. For data integrity, consider using `SHA-256`\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/contrib.nodejsscan.crypto_node.node_sha1)\n - [https://owasp.org/Top10/A02_2021-Cryptographic_Failures](https://owasp.org/Top10/A02_2021-Cryptographic_Failures)\n", + "text": "The SHA1 hashing algorithm is considered to be weak. If this is used in any sensitive operation such as password hashing, or is used to ensure data integrity (collision sensitive) then you should use a stronger hashing algorithm. For passwords, consider using `Argon2id`, `scrypt`, or `bcrypt`. For data integrity, consider using `SHA-256`" + }, + "helpUri": "https://semgrep.dev/r/contrib.nodejsscan.crypto_node.node_sha1", + "id": "contrib.nodejsscan.crypto_node.node_sha1", + "name": "contrib.nodejsscan.crypto_node.node_sha1", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-327: Use of a Broken or Risky Cryptographic Algorithm", + "LOW CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: contrib.nodejsscan.crypto_node.node_sha1" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Detected non-static script inside otto VM. Audit the input to 'VM.Run'. If unverified user data can reach this call site, this is a code injection vulnerability. A malicious actor can inject a malicious script to execute arbitrary code." + }, + "help": { + "markdown": "Detected non-static script inside otto VM. Audit the input to 'VM.Run'. If unverified user data can reach this call site, this is a code injection vulnerability. A malicious actor can inject a malicious script to execute arbitrary code.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/go.otto.security.audit.dangerous-execution.dangerous-execution)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "Detected non-static script inside otto VM. Audit the input to 'VM.Run'. If unverified user data can reach this call site, this is a code injection vulnerability. A malicious actor can inject a malicious script to execute arbitrary code." + }, + "helpUri": "https://semgrep.dev/r/go.otto.security.audit.dangerous-execution.dangerous-execution", + "id": "go.otto.security.audit.dangerous-execution.dangerous-execution", + "name": "go.otto.security.audit.dangerous-execution.dangerous-execution", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-94: Improper Control of Generation of Code ('Code Injection')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: go.otto.security.audit.dangerous-execution.dangerous-execution" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "An expression is built with a dynamic value. The source of the value(s) should be verified to avoid that unfiltered values fall into this risky code evaluation." + }, + "help": { + "markdown": "An expression is built with a dynamic value. The source of the value(s) should be verified to avoid that unfiltered values fall into this risky code evaluation.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.lang.security.audit.el-injection.el-injection)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "An expression is built with a dynamic value. The source of the value(s) should be verified to avoid that unfiltered values fall into this risky code evaluation." + }, + "helpUri": "https://semgrep.dev/r/java.lang.security.audit.el-injection.el-injection", + "id": "java.lang.security.audit.el-injection.el-injection", + "name": "java.lang.security.audit.el-injection.el-injection", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-94: Improper Control of Generation of Code ('Code Injection')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.lang.security.audit.el-injection.el-injection" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Hardcoded variable `TESTING` detected. Use environment variables or config files instead" + }, + "help": { + "markdown": "Hardcoded variable `TESTING` detected. Use environment variables or config files instead\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.flask.security.audit.hardcoded-config.avoid_hardcoded_config_TESTING)\n - [https://bento.dev/checks/flask/avoid-hardcoded-config/](https://bento.dev/checks/flask/avoid-hardcoded-config/)\n - [https://flask.palletsprojects.com/en/1.1.x/config/?highlight=configuration#builtin-configuration-values](https://flask.palletsprojects.com/en/1.1.x/config/?highlight=configuration#builtin-configuration-values)\n - [https://flask.palletsprojects.com/en/1.1.x/config/?highlight=configuration#environment-and-debug-features](https://flask.palletsprojects.com/en/1.1.x/config/?highlight=configuration#environment-and-debug-features)\n", + "text": "Hardcoded variable `TESTING` detected. Use environment variables or config files instead" + }, + "helpUri": "https://semgrep.dev/r/python.flask.security.audit.hardcoded-config.avoid_hardcoded_config_TESTING", + "id": "python.flask.security.audit.hardcoded-config.avoid_hardcoded_config_TESTING", + "name": "python.flask.security.audit.hardcoded-config.avoid_hardcoded_config_TESTING", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-489: Active Debug Code", + "LOW CONFIDENCE", + "OWASP-A05:2021 - Security Misconfiguration", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.flask.security.audit.hardcoded-config.avoid_hardcoded_config_TESTING" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "A request was found to be crafted from user-input `$REQUEST`. This can lead to Server-Side Request Forgery (SSRF) vulnerabilities, potentially exposing sensitive data. It is recommend where possible to not allow user-input to craft the base request, but to be treated as part of the path or query parameter. When user-input is necessary to craft the request, it is recommended to follow OWASP best practices to prevent abuse, including using an allowlist." + }, + "help": { + "markdown": "A request was found to be crafted from user-input `$REQUEST`. This can lead to Server-Side Request Forgery (SSRF) vulnerabilities, potentially exposing sensitive data. It is recommend where possible to not allow user-input to craft the base request, but to be treated as part of the path or query parameter. When user-input is necessary to craft the request, it is recommended to follow OWASP best practices to prevent abuse, including using an allowlist.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/go.lang.security.injection.tainted-url-host.tainted-url-host)\n - [https://goteleport.com/blog/ssrf-attacks/](https://goteleport.com/blog/ssrf-attacks/)\n", + "text": "A request was found to be crafted from user-input `$REQUEST`. This can lead to Server-Side Request Forgery (SSRF) vulnerabilities, potentially exposing sensitive data. It is recommend where possible to not allow user-input to craft the base request, but to be treated as part of the path or query parameter. When user-input is necessary to craft the request, it is recommended to follow OWASP best practices to prevent abuse, including using an allowlist." + }, + "helpUri": "https://semgrep.dev/r/go.lang.security.injection.tainted-url-host.tainted-url-host", + "id": "go.lang.security.injection.tainted-url-host.tainted-url-host", + "name": "go.lang.security.injection.tainted-url-host.tainted-url-host", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-918: Server-Side Request Forgery (SSRF)", + "HIGH CONFIDENCE", + "OWASP-A10:2021 - Server-Side Request Forgery (SSRF)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: go.lang.security.injection.tainted-url-host.tainted-url-host" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "To remediate this issue, ensure that all URL parameters are properly escaped before including them in scripts. Please update your code to use either the JSENCODE method to escape URL parameters or the escape=\"true\" attribute on tags. Passing URL parameters directly into scripts and DOM sinks creates an opportunity for Cross-Site Scripting attacks. Cross-Site Scripting (XSS) attacks are a type of injection, in which malicious scripts are injected into otherwise benign and trusted websites. To remediate this issue, ensure that all URL parameters are properly escaped before including them in scripts." + }, + "help": { + "markdown": "To remediate this issue, ensure that all URL parameters are properly escaped before including them in scripts. Please update your code to use either the JSENCODE method to escape URL parameters or the escape=\"true\" attribute on tags. Passing URL parameters directly into scripts and DOM sinks creates an opportunity for Cross-Site Scripting attacks. Cross-Site Scripting (XSS) attacks are a type of injection, in which malicious scripts are injected into otherwise benign and trusted websites. To remediate this issue, ensure that all URL parameters are properly escaped before including them in scripts.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/generic.visualforce.security.ncino.vf.xssfromunescapedurlparam.xss-from-unescaped-url-param)\n - [https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/pages_security_tips_xss.htm](https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/pages_security_tips_xss.htm)\n", + "text": "To remediate this issue, ensure that all URL parameters are properly escaped before including them in scripts. Please update your code to use either the JSENCODE method to escape URL parameters or the escape=\"true\" attribute on tags. Passing URL parameters directly into scripts and DOM sinks creates an opportunity for Cross-Site Scripting attacks. Cross-Site Scripting (XSS) attacks are a type of injection, in which malicious scripts are injected into otherwise benign and trusted websites. To remediate this issue, ensure that all URL parameters are properly escaped before including them in scripts." + }, + "helpUri": "https://semgrep.dev/r/generic.visualforce.security.ncino.vf.xssfromunescapedurlparam.xss-from-unescaped-url-param", + "id": "generic.visualforce.security.ncino.vf.xssfromunescapedurlparam.xss-from-unescaped-url-param", + "name": "generic.visualforce.security.ncino.vf.xssfromunescapedurlparam.xss-from-unescaped-url-param", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "MEDIUM CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: generic.visualforce.security.ncino.vf.xssfromunescapedurlparam.xss-from-unescaped-url-param" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Ensure FSX Lustre file system is encrypted at rest using KMS CMKs. CMKs gives you control over the encryption key in terms of access and rotation." + }, + "help": { + "markdown": "Ensure FSX Lustre file system is encrypted at rest using KMS CMKs. CMKs gives you control over the encryption key in terms of access and rotation.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.aws.security.aws-fsx-lustre-files-ystem.aws-fsx-lustre-filesystem-encrypted-with-cmk)\n - [https://owasp.org/Top10/A01_2021-Broken_Access_Control](https://owasp.org/Top10/A01_2021-Broken_Access_Control)\n", + "text": "Ensure FSX Lustre file system is encrypted at rest using KMS CMKs. CMKs gives you control over the encryption key in terms of access and rotation." + }, + "helpUri": "https://semgrep.dev/r/terraform.aws.security.aws-fsx-lustre-files-ystem.aws-fsx-lustre-filesystem-encrypted-with-cmk", + "id": "terraform.aws.security.aws-fsx-lustre-files-ystem.aws-fsx-lustre-filesystem-encrypted-with-cmk", + "name": "terraform.aws.security.aws-fsx-lustre-files-ystem.aws-fsx-lustre-filesystem-encrypted-with-cmk", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-200: Exposure of Sensitive Information to an Unauthorized Actor", + "LOW CONFIDENCE", + "OWASP-A01:2021 - Broken Access Control", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.aws.security.aws-fsx-lustre-files-ystem.aws-fsx-lustre-filesystem-encrypted-with-cmk" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Found an insecure gRPC connection using 'grpc.WithInsecure()'. This creates a connection without encryption to a gRPC server. A malicious attacker could tamper with the gRPC message, which could compromise the machine. Instead, establish a secure connection with an SSL certificate using the 'grpc.WithTransportCredentials()' function. You can create a create credentials using a 'tls.Config{}' struct with 'credentials.NewTLS()'. The final fix looks like this: 'grpc.WithTransportCredentials(credentials.NewTLS())'." + }, + "help": { + "markdown": "Found an insecure gRPC connection using 'grpc.WithInsecure()'. This creates a connection without encryption to a gRPC server. A malicious attacker could tamper with the gRPC message, which could compromise the machine. Instead, establish a secure connection with an SSL certificate using the 'grpc.WithTransportCredentials()' function. You can create a create credentials using a 'tls.Config{}' struct with 'credentials.NewTLS()'. The final fix looks like this: 'grpc.WithTransportCredentials(credentials.NewTLS())'.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/go.grpc.security.grpc-client-insecure-connection.grpc-client-insecure-connection)\n - [https://blog.gopheracademy.com/advent-2019/go-grps-and-tls/#connection-without-encryption](https://blog.gopheracademy.com/advent-2019/go-grps-and-tls/#connection-without-encryption)\n", + "text": "Found an insecure gRPC connection using 'grpc.WithInsecure()'. This creates a connection without encryption to a gRPC server. A malicious attacker could tamper with the gRPC message, which could compromise the machine. Instead, establish a secure connection with an SSL certificate using the 'grpc.WithTransportCredentials()' function. You can create a create credentials using a 'tls.Config{}' struct with 'credentials.NewTLS()'. The final fix looks like this: 'grpc.WithTransportCredentials(credentials.NewTLS())'." + }, + "helpUri": "https://semgrep.dev/r/go.grpc.security.grpc-client-insecure-connection.grpc-client-insecure-connection", + "id": "go.grpc.security.grpc-client-insecure-connection.grpc-client-insecure-connection", + "name": "go.grpc.security.grpc-client-insecure-connection.grpc-client-insecure-connection", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-300: Channel Accessible by Non-Endpoint", + "HIGH CONFIDENCE", + "OWASP-A07:2021 - Identification and Authentication Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: go.grpc.security.grpc-client-insecure-connection.grpc-client-insecure-connection" + } + }, + { + "defaultConfiguration": { + "level": "note" + }, + "fullDescription": { + "text": "this rule has been deprecated." + }, + "help": { + "markdown": "this rule has been deprecated.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.lang.security.audit.vm-injection.vm-compilefunction-code-injection)\n - [https://nodejs.org/dist/latest-v16.x/docs/api/vm.html](https://nodejs.org/dist/latest-v16.x/docs/api/vm.html)\n", + "text": "this rule has been deprecated." + }, + "helpUri": "https://semgrep.dev/r/javascript.lang.security.audit.vm-injection.vm-compilefunction-code-injection", + "id": "javascript.lang.security.audit.vm-injection.vm-compilefunction-code-injection", + "name": "javascript.lang.security.audit.vm-injection.vm-compilefunction-code-injection", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-94: Improper Control of Generation of Code ('Code Injection')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.lang.security.audit.vm-injection.vm-compilefunction-code-injection" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Unescaped '.' character in CORS domain regex $CORS: $PATTERN" + }, + "help": { + "markdown": "Unescaped '.' character in CORS domain regex $CORS: $PATTERN\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/typescript.lang.security.audit.cors-regex-wildcard.cors-regex-wildcard)\n - [https://owasp.org/Top10/A04_2021-Insecure_Design](https://owasp.org/Top10/A04_2021-Insecure_Design)\n", + "text": "Unescaped '.' character in CORS domain regex $CORS: $PATTERN" + }, + "helpUri": "https://semgrep.dev/r/typescript.lang.security.audit.cors-regex-wildcard.cors-regex-wildcard", + "id": "typescript.lang.security.audit.cors-regex-wildcard.cors-regex-wildcard", + "name": "typescript.lang.security.audit.cors-regex-wildcard.cors-regex-wildcard", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-183: Permissive List of Allowed Inputs", + "LOW CONFIDENCE", + "OWASP-A04:2021 - Insecure Design", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: typescript.lang.security.audit.cors-regex-wildcard.cors-regex-wildcard" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected an HTTP request sent via HttpGet. This could lead to sensitive information being sent over an insecure channel. Instead, it is recommended to send requests over HTTPS." + }, + "help": { + "markdown": "Detected an HTTP request sent via HttpGet. This could lead to sensitive information being sent over an insecure channel. Instead, it is recommended to send requests over HTTPS.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/problem-based-packs.insecure-transport.java-stdlib.httpget-http-request.httpget-http-request)\n - [https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/URLConnection.html](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/URLConnection.html)\n - [https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/URL.html#openConnection()](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/URL.html#openConnection())\n", + "text": "Detected an HTTP request sent via HttpGet. This could lead to sensitive information being sent over an insecure channel. Instead, it is recommended to send requests over HTTPS." + }, + "helpUri": "https://semgrep.dev/r/problem-based-packs.insecure-transport.java-stdlib.httpget-http-request.httpget-http-request", + "id": "problem-based-packs.insecure-transport.java-stdlib.httpget-http-request.httpget-http-request", + "name": "problem-based-packs.insecure-transport.java-stdlib.httpget-http-request.httpget-http-request", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-319: Cleartext Transmission of Sensitive Information", + "MEDIUM CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: problem-based-packs.insecure-transport.java-stdlib.httpget-http-request.httpget-http-request" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Make sure that unverified user data can not reach `sandbox`." + }, + "help": { + "markdown": "Make sure that unverified user data can not reach `sandbox`.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.express.security.express-sandbox-injection.express-sandbox-code-injection)\n - [https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_Cheat_Sheet.html](https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_Cheat_Sheet.html)\n", + "text": "Make sure that unverified user data can not reach `sandbox`." + }, + "helpUri": "https://semgrep.dev/r/javascript.express.security.express-sandbox-injection.express-sandbox-code-injection", + "id": "javascript.express.security.express-sandbox-injection.express-sandbox-code-injection", + "name": "javascript.express.security.express-sandbox-injection.express-sandbox-code-injection", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-94: Improper Control of Generation of Code ('Code Injection')", + "MEDIUM CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.express.security.express-sandbox-injection.express-sandbox-code-injection" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Found a class extending 'SafeString', 'SafeText' or 'SafeData'. These classes are for bypassing the escaping engine built in to Django and should not be used directly. Improper use of this class exposes your application to cross-site scripting (XSS) vulnerabilities. If you need this functionality, use 'mark_safe' instead and ensure no user data can reach it." + }, + "help": { + "markdown": "Found a class extending 'SafeString', 'SafeText' or 'SafeData'. These classes are for bypassing the escaping engine built in to Django and should not be used directly. Improper use of this class exposes your application to cross-site scripting (XSS) vulnerabilities. If you need this functionality, use 'mark_safe' instead and ensure no user data can reach it.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.django.security.audit.xss.class-extends-safestring.class-extends-safestring)\n - [https://docs.djangoproject.com/en/3.1/howto/custom-template-tags/#filters-and-auto-escaping](https://docs.djangoproject.com/en/3.1/howto/custom-template-tags/#filters-and-auto-escaping)\n - [https://github.com/django/django/blob/f138e75910b1e541686c4dce3d8f467f6fc234cb/django/utils/safestring.py#L11](https://github.com/django/django/blob/f138e75910b1e541686c4dce3d8f467f6fc234cb/django/utils/safestring.py#L11)\n", + "text": "Found a class extending 'SafeString', 'SafeText' or 'SafeData'. These classes are for bypassing the escaping engine built in to Django and should not be used directly. Improper use of this class exposes your application to cross-site scripting (XSS) vulnerabilities. If you need this functionality, use 'mark_safe' instead and ensure no user data can reach it." + }, + "helpUri": "https://semgrep.dev/r/python.django.security.audit.xss.class-extends-safestring.class-extends-safestring", + "id": "python.django.security.audit.xss.class-extends-safestring.class-extends-safestring", + "name": "python.django.security.audit.xss.class-extends-safestring.class-extends-safestring", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.django.security.audit.xss.class-extends-safestring.class-extends-safestring" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected an unsecured transmission channel. 'URLopener.retrieve(...)' is being used with 'http://'. Use 'https://' instead to secure the channel." + }, + "help": { + "markdown": "Detected an unsecured transmission channel. 'URLopener.retrieve(...)' is being used with 'http://'. Use 'https://' instead to secure the channel.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.lang.security.audit.insecure-transport.urllib.insecure-urlopener-retrieve.insecure-urlopener-retrieve)\n - [https://docs.python.org/3/library/urllib.request.html#urllib.request.URLopener.retrieve](https://docs.python.org/3/library/urllib.request.html#urllib.request.URLopener.retrieve)\n", + "text": "Detected an unsecured transmission channel. 'URLopener.retrieve(...)' is being used with 'http://'. Use 'https://' instead to secure the channel." + }, + "helpUri": "https://semgrep.dev/r/python.lang.security.audit.insecure-transport.urllib.insecure-urlopener-retrieve.insecure-urlopener-retrieve", + "id": "python.lang.security.audit.insecure-transport.urllib.insecure-urlopener-retrieve.insecure-urlopener-retrieve", + "name": "python.lang.security.audit.insecure-transport.urllib.insecure-urlopener-retrieve.insecure-urlopener-retrieve", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-319: Cleartext Transmission of Sensitive Information", + "LOW CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.lang.security.audit.insecure-transport.urllib.insecure-urlopener-retrieve.insecure-urlopener-retrieve" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "File creation in shared tmp directory without using ioutil.Tempfile" + }, + "help": { + "markdown": "File creation in shared tmp directory without using ioutil.Tempfile\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/go.lang.security.bad_tmp.bad-tmp-file-creation)\n - [https://owasp.org/Top10/A01_2021-Broken_Access_Control](https://owasp.org/Top10/A01_2021-Broken_Access_Control)\n", + "text": "File creation in shared tmp directory without using ioutil.Tempfile" + }, + "helpUri": "https://semgrep.dev/r/go.lang.security.bad_tmp.bad-tmp-file-creation", + "id": "go.lang.security.bad_tmp.bad-tmp-file-creation", + "name": "go.lang.security.bad_tmp.bad-tmp-file-creation", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-377: Insecure Temporary File", + "LOW CONFIDENCE", + "OWASP-A01:2021 - Broken Access Control", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: go.lang.security.bad_tmp.bad-tmp-file-creation" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "`Clean` is not intended to sanitize against path traversal attacks. This function is for finding the shortest path name equivalent to the given input. Using `Clean` to sanitize file reads may expose this application to path traversal attacks, where an attacker could access arbitrary files on the server. To fix this easily, write this: `filepath.FromSlash(path.Clean(\"/\"+strings.Trim(req.URL.Path, \"/\")))` However, a better solution is using the `SecureJoin` function in the package `filepath-securejoin`. See https://pkg.go.dev/github.com/cyphar/filepath-securejoin#section-readme." + }, + "help": { + "markdown": "`Clean` is not intended to sanitize against path traversal attacks. This function is for finding the shortest path name equivalent to the given input. Using `Clean` to sanitize file reads may expose this application to path traversal attacks, where an attacker could access arbitrary files on the server. To fix this easily, write this: `filepath.FromSlash(path.Clean(\"/\"+strings.Trim(req.URL.Path, \"/\")))` However, a better solution is using the `SecureJoin` function in the package `filepath-securejoin`. See https://pkg.go.dev/github.com/cyphar/filepath-securejoin#section-readme.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/go.lang.security.filepath-clean-misuse.filepath-clean-misuse)\n - [https://pkg.go.dev/path#Clean](https://pkg.go.dev/path#Clean)\n - [http://technosophos.com/2016/03/31/go-quickly-cleaning-filepaths.html](http://technosophos.com/2016/03/31/go-quickly-cleaning-filepaths.html)\n - [https://labs.detectify.com/2021/12/15/zero-day-path-traversal-grafana/](https://labs.detectify.com/2021/12/15/zero-day-path-traversal-grafana/)\n - [https://dzx.cz/2021/04/02/go_path_traversal/](https://dzx.cz/2021/04/02/go_path_traversal/)\n - [https://pkg.go.dev/github.com/cyphar/filepath-securejoin#section-readme](https://pkg.go.dev/github.com/cyphar/filepath-securejoin#section-readme)\n", + "text": "`Clean` is not intended to sanitize against path traversal attacks. This function is for finding the shortest path name equivalent to the given input. Using `Clean` to sanitize file reads may expose this application to path traversal attacks, where an attacker could access arbitrary files on the server. To fix this easily, write this: `filepath.FromSlash(path.Clean(\"/\"+strings.Trim(req.URL.Path, \"/\")))` However, a better solution is using the `SecureJoin` function in the package `filepath-securejoin`. See https://pkg.go.dev/github.com/cyphar/filepath-securejoin#section-readme." + }, + "helpUri": "https://semgrep.dev/r/go.lang.security.filepath-clean-misuse.filepath-clean-misuse", + "id": "go.lang.security.filepath-clean-misuse.filepath-clean-misuse", + "name": "go.lang.security.filepath-clean-misuse.filepath-clean-misuse", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')", + "MEDIUM CONFIDENCE", + "OWASP-A01:2021 - Broken Access Control", + "OWASP-A05:2017 - Broken Access Control", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: go.lang.security.filepath-clean-misuse.filepath-clean-misuse" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "XML processor being instantiated without calling the `setFeature` functions that are generally used for disabling entity processing. User controlled data in XML Parsers can result in XML Internal Entity Processing vulnerabilities like the disclosure of confidential data, denial of service, Server Side Request Forgery (SSRF), port scanning. Make sure to disable entity processing functionality." + }, + "help": { + "markdown": "XML processor being instantiated without calling the `setFeature` functions that are generally used for disabling entity processing. User controlled data in XML Parsers can result in XML Internal Entity Processing vulnerabilities like the disclosure of confidential data, denial of service, Server Side Request Forgery (SSRF), port scanning. Make sure to disable entity processing functionality.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/scala.lang.security.audit.sax-dtd-enabled.sax-dtd-enabled)\n - [https://owasp.org/Top10/A05_2021-Security_Misconfiguration](https://owasp.org/Top10/A05_2021-Security_Misconfiguration)\n", + "text": "XML processor being instantiated without calling the `setFeature` functions that are generally used for disabling entity processing. User controlled data in XML Parsers can result in XML Internal Entity Processing vulnerabilities like the disclosure of confidential data, denial of service, Server Side Request Forgery (SSRF), port scanning. Make sure to disable entity processing functionality." + }, + "helpUri": "https://semgrep.dev/r/scala.lang.security.audit.sax-dtd-enabled.sax-dtd-enabled", + "id": "scala.lang.security.audit.sax-dtd-enabled.sax-dtd-enabled", + "name": "scala.lang.security.audit.sax-dtd-enabled.sax-dtd-enabled", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-611: Improper Restriction of XML External Entity Reference", + "HIGH CONFIDENCE", + "OWASP-A04:2017 - XML External Entities (XXE)", + "OWASP-A05:2021 - Security Misconfiguration", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: scala.lang.security.audit.sax-dtd-enabled.sax-dtd-enabled" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected DES cipher algorithm which is insecure. The algorithm is considered weak and has been deprecated. Use AES instead." + }, + "help": { + "markdown": "Detected DES cipher algorithm which is insecure. The algorithm is considered weak and has been deprecated. Use AES instead.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/go.lang.security.audit.crypto.use_of_weak_crypto.use-of-DES)\n - [https://owasp.org/Top10/A02_2021-Cryptographic_Failures](https://owasp.org/Top10/A02_2021-Cryptographic_Failures)\n", + "text": "Detected DES cipher algorithm which is insecure. The algorithm is considered weak and has been deprecated. Use AES instead." + }, + "helpUri": "https://semgrep.dev/r/go.lang.security.audit.crypto.use_of_weak_crypto.use-of-DES", + "id": "go.lang.security.audit.crypto.use_of_weak_crypto.use-of-DES", + "name": "go.lang.security.audit.crypto.use_of_weak_crypto.use-of-DES", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-327: Use of a Broken or Risky Cryptographic Algorithm", + "MEDIUM CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: go.lang.security.audit.crypto.use_of_weak_crypto.use-of-DES" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Avoid using 'strtok()'. This function directly modifies the first argument buffer, permanently erasing the delimiter character. Use 'strtok_r()' instead." + }, + "help": { + "markdown": "Avoid using 'strtok()'. This function directly modifies the first argument buffer, permanently erasing the delimiter character. Use 'strtok_r()' instead.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/c.lang.security.insecure-use-strtok-fn.insecure-use-strtok-fn)\n - [https://wiki.sei.cmu.edu/confluence/display/c/STR06-C.+Do+not+assume+that+strtok%28%29+leaves+the+parse+string+unchanged](https://wiki.sei.cmu.edu/confluence/display/c/STR06-C.+Do+not+assume+that+strtok%28%29+leaves+the+parse+string+unchanged)\n - [https://man7.org/linux/man-pages/man3/strtok.3.html#BUGS](https://man7.org/linux/man-pages/man3/strtok.3.html#BUGS)\n - [https://stackoverflow.com/a/40335556](https://stackoverflow.com/a/40335556)\n", + "text": "Avoid using 'strtok()'. This function directly modifies the first argument buffer, permanently erasing the delimiter character. Use 'strtok_r()' instead." + }, + "helpUri": "https://semgrep.dev/r/c.lang.security.insecure-use-strtok-fn.insecure-use-strtok-fn", + "id": "c.lang.security.insecure-use-strtok-fn.insecure-use-strtok-fn", + "name": "c.lang.security.insecure-use-strtok-fn.insecure-use-strtok-fn", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-676: Use of Potentially Dangerous Function", + "LOW CONFIDENCE", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: c.lang.security.insecure-use-strtok-fn.insecure-use-strtok-fn" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Checks for creation of telnet servers or attempts to connect through telnet. This is insecure as the telnet protocol supports no encryption, and data passes through unencrypted." + }, + "help": { + "markdown": "Checks for creation of telnet servers or attempts to connect through telnet. This is insecure as the telnet protocol supports no encryption, and data passes through unencrypted.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/problem-based-packs.insecure-transport.js-node.telnet-request.telnet-request)\n - [https://www.npmjs.com/package/telnet](https://www.npmjs.com/package/telnet)\n - [https://www.npmjs.com/package/telnet-client](https://www.npmjs.com/package/telnet-client)\n", + "text": "Checks for creation of telnet servers or attempts to connect through telnet. This is insecure as the telnet protocol supports no encryption, and data passes through unencrypted." + }, + "helpUri": "https://semgrep.dev/r/problem-based-packs.insecure-transport.js-node.telnet-request.telnet-request", + "id": "problem-based-packs.insecure-transport.js-node.telnet-request.telnet-request", + "name": "problem-based-packs.insecure-transport.js-node.telnet-request.telnet-request", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-319: Cleartext Transmission of Sensitive Information", + "MEDIUM CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: problem-based-packs.insecure-transport.js-node.telnet-request.telnet-request" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Pod is sharing the host process ID namespace. When paired with ptrace this can be used to escalate privileges outside of the container. Remove the 'hostPID' key to disable this functionality." + }, + "help": { + "markdown": "Pod is sharing the host process ID namespace. When paired with ptrace this can be used to escalate privileges outside of the container. Remove the 'hostPID' key to disable this functionality.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/yaml.kubernetes.security.hostpid-pod.hostpid-pod)\n - [https://kubernetes.io/docs/concepts/policy/pod-security-policy/#host-namespaces](https://kubernetes.io/docs/concepts/policy/pod-security-policy/#host-namespaces)\n", + "text": "Pod is sharing the host process ID namespace. When paired with ptrace this can be used to escalate privileges outside of the container. Remove the 'hostPID' key to disable this functionality." + }, + "helpUri": "https://semgrep.dev/r/yaml.kubernetes.security.hostpid-pod.hostpid-pod", + "id": "yaml.kubernetes.security.hostpid-pod.hostpid-pod", + "name": "yaml.kubernetes.security.hostpid-pod.hostpid-pod", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-269: Improper Privilege Management", + "LOW CONFIDENCE", + "OWASP-A04:2021 - Insecure Design", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: yaml.kubernetes.security.hostpid-pod.hostpid-pod" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Detected HTTPConnectionPool. This will transmit data in cleartext. It is recommended to use HTTPSConnectionPool instead for to encrypt communications." + }, + "help": { + "markdown": "Detected HTTPConnectionPool. This will transmit data in cleartext. It is recommended to use HTTPSConnectionPool instead for to encrypt communications.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.lang.security.audit.network.http-not-https-connection.http-not-https-connection)\n - [https://urllib3.readthedocs.io/en/1.2.1/pools.html#urllib3.connectionpool.HTTPSConnectionPool](https://urllib3.readthedocs.io/en/1.2.1/pools.html#urllib3.connectionpool.HTTPSConnectionPool)\n", + "text": "Detected HTTPConnectionPool. This will transmit data in cleartext. It is recommended to use HTTPSConnectionPool instead for to encrypt communications." + }, + "helpUri": "https://semgrep.dev/r/python.lang.security.audit.network.http-not-https-connection.http-not-https-connection", + "id": "python.lang.security.audit.network.http-not-https-connection.http-not-https-connection", + "name": "python.lang.security.audit.network.http-not-https-connection.http-not-https-connection", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-319: Cleartext Transmission of Sensitive Information", + "MEDIUM CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.lang.security.audit.network.http-not-https-connection.http-not-https-connection" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Found usage of the 'blocksize' argument in a HTTPConnection call. This is only available on Python 3.7+ and is therefore not backwards compatible. Remove this in order for this code to work in Python 3.6 and below." + }, + "help": { + "markdown": "Found usage of the 'blocksize' argument in a HTTPConnection call. This is only available on Python 3.7+ and is therefore not backwards compatible. Remove this in order for this code to work in Python 3.6 and below.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.lang.compatibility.python37.python37-compatibility-httpconn)\n", + "text": "Found usage of the 'blocksize' argument in a HTTPConnection call. This is only available on Python 3.7+ and is therefore not backwards compatible. Remove this in order for this code to work in Python 3.6 and below." + }, + "helpUri": "https://semgrep.dev/r/python.lang.compatibility.python37.python37-compatibility-httpconn", + "id": "python.lang.compatibility.python37.python37-compatibility-httpconn", + "name": "python.lang.compatibility.python37.python37-compatibility-httpconn", + "properties": { + "precision": "very-high", + "tags": [] + }, + "shortDescription": { + "text": "Semgrep Finding: python.lang.compatibility.python37.python37-compatibility-httpconn" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Access-Control-Allow-Origin response header is set to \"*\". This will disable CORS Same Origin Policy restrictions." + }, + "help": { + "markdown": "Access-Control-Allow-Origin response header is set to \"*\". This will disable CORS Same Origin Policy restrictions.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/typescript.nestjs.security.audit.nestjs-header-cors-any.nestjs-header-cors-any)\n - [https://owasp.org/Top10/A04_2021-Insecure_Design](https://owasp.org/Top10/A04_2021-Insecure_Design)\n", + "text": "Access-Control-Allow-Origin response header is set to \"*\". This will disable CORS Same Origin Policy restrictions." + }, + "helpUri": "https://semgrep.dev/r/typescript.nestjs.security.audit.nestjs-header-cors-any.nestjs-header-cors-any", + "id": "typescript.nestjs.security.audit.nestjs-header-cors-any.nestjs-header-cors-any", + "name": "typescript.nestjs.security.audit.nestjs-header-cors-any.nestjs-header-cors-any", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-183: Permissive List of Allowed Inputs", + "LOW CONFIDENCE", + "OWASP-A04:2021 - Insecure Design", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: typescript.nestjs.security.audit.nestjs-header-cors-any.nestjs-header-cors-any" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Detected wildcard access granted to sts:AssumeRole. This means anyone with your AWS account ID and the name of the role can assume the role. Instead, limit to a specific identity in your account, like this: `arn:aws:iam:::root`." + }, + "help": { + "markdown": "Detected wildcard access granted to sts:AssumeRole. This means anyone with your AWS account ID and the name of the role can assume the role. Instead, limit to a specific identity in your account, like this: `arn:aws:iam:::root`.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.aws.security.wildcard-assume-role.wildcard-assume-role)\n - [https://rhinosecuritylabs.com/aws/assume-worst-aws-assume-role-enumeration/](https://rhinosecuritylabs.com/aws/assume-worst-aws-assume-role-enumeration/)\n", + "text": "Detected wildcard access granted to sts:AssumeRole. This means anyone with your AWS account ID and the name of the role can assume the role. Instead, limit to a specific identity in your account, like this: `arn:aws:iam:::root`." + }, + "helpUri": "https://semgrep.dev/r/terraform.aws.security.wildcard-assume-role.wildcard-assume-role", + "id": "terraform.aws.security.wildcard-assume-role.wildcard-assume-role", + "name": "terraform.aws.security.wildcard-assume-role.wildcard-assume-role", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-250: Execution with Unnecessary Privileges", + "MEDIUM CONFIDENCE", + "OWASP-A05:2021 - Security Misconfiguration", + "OWASP-A06:2017 - Security Misconfiguration", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.aws.security.wildcard-assume-role.wildcard-assume-role" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Detected a template variable used in a script tag. Although template variables are HTML escaped, HTML escaping does not always prevent cross-site scripting (XSS) attacks when used directly in JavaScript. If you need this data on the rendered page, consider placing it in the HTML portion (outside of a script tag). Alternatively, use a JavaScript-specific encoder, such as the one available in OWASP ESAPI. For Django, you may also consider using the 'json_script' template tag and retrieving the data in your script by using the element ID (e.g., `document.getElementById`)." + }, + "help": { + "markdown": "Detected a template variable used in a script tag. Although template variables are HTML escaped, HTML escaping does not always prevent cross-site scripting (XSS) attacks when used directly in JavaScript. If you need this data on the rendered page, consider placing it in the HTML portion (outside of a script tag). Alternatively, use a JavaScript-specific encoder, such as the one available in OWASP ESAPI. For Django, you may also consider using the 'json_script' template tag and retrieving the data in your script by using the element ID (e.g., `document.getElementById`).\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.django.security.audit.xss.var-in-script-tag.var-in-script-tag)\n - [https://adamj.eu/tech/2020/02/18/safely-including-data-for-javascript-in-a-django-template/?utm_campaign=Django%2BNewsletter&utm_medium=rss&utm_source=Django_Newsletter_12A](https://adamj.eu/tech/2020/02/18/safely-including-data-for-javascript-in-a-django-template/?utm_campaign=Django%2BNewsletter&utm_medium=rss&utm_source=Django_Newsletter_12A)\n - [https://www.veracode.com/blog/secure-development/nodejs-template-engines-why-default-encoders-are-not-enough](https://www.veracode.com/blog/secure-development/nodejs-template-engines-why-default-encoders-are-not-enough)\n - [https://github.com/ESAPI/owasp-esapi-js](https://github.com/ESAPI/owasp-esapi-js)\n", + "text": "Detected a template variable used in a script tag. Although template variables are HTML escaped, HTML escaping does not always prevent cross-site scripting (XSS) attacks when used directly in JavaScript. If you need this data on the rendered page, consider placing it in the HTML portion (outside of a script tag). Alternatively, use a JavaScript-specific encoder, such as the one available in OWASP ESAPI. For Django, you may also consider using the 'json_script' template tag and retrieving the data in your script by using the element ID (e.g., `document.getElementById`)." + }, + "helpUri": "https://semgrep.dev/r/python.django.security.audit.xss.var-in-script-tag.var-in-script-tag", + "id": "python.django.security.audit.xss.var-in-script-tag.var-in-script-tag", + "name": "python.django.security.audit.xss.var-in-script-tag.var-in-script-tag", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.django.security.audit.xss.var-in-script-tag.var-in-script-tag" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "This rule is deprecated." + }, + "help": { + "markdown": "This rule is deprecated.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ruby.lang.security.jruby-xml.jruby-xml)\n - [https://github.com/presidentbeef/brakeman/blob/main/lib/brakeman/checks/check_jruby_xml.rb](https://github.com/presidentbeef/brakeman/blob/main/lib/brakeman/checks/check_jruby_xml.rb)\n", + "text": "This rule is deprecated." + }, + "helpUri": "https://semgrep.dev/r/ruby.lang.security.jruby-xml.jruby-xml", + "id": "ruby.lang.security.jruby-xml.jruby-xml", + "name": "ruby.lang.security.jruby-xml.jruby-xml", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-611: Improper Restriction of XML External Entity Reference", + "LOW CONFIDENCE", + "OWASP-A04:2017 - XML External Entities (XXE)", + "OWASP-A05:2021 - Security Misconfiguration", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: ruby.lang.security.jruby-xml.jruby-xml" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Detected user input controlling a file path. An attacker could control the location of this file, to include going backwards in the directory with '../'. To address this, ensure that user-controlled variables in file paths are sanitized. You may also consider using a utility method such as org.apache.commons.io.FilenameUtils.getName(...) to only retrieve the file name from the path." + }, + "help": { + "markdown": "Detected user input controlling a file path. An attacker could control the location of this file, to include going backwards in the directory with '../'. To address this, ensure that user-controlled variables in file paths are sanitized. You may also consider using a utility method such as org.apache.commons.io.FilenameUtils.getName(...) to only retrieve the file name from the path.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.spring.security.injection.tainted-file-path.tainted-file-path)\n - [https://owasp.org/www-community/attacks/Path_Traversal](https://owasp.org/www-community/attacks/Path_Traversal)\n", + "text": "Detected user input controlling a file path. An attacker could control the location of this file, to include going backwards in the directory with '../'. To address this, ensure that user-controlled variables in file paths are sanitized. You may also consider using a utility method such as org.apache.commons.io.FilenameUtils.getName(...) to only retrieve the file name from the path." + }, + "helpUri": "https://semgrep.dev/r/java.spring.security.injection.tainted-file-path.tainted-file-path", + "id": "java.spring.security.injection.tainted-file-path.tainted-file-path", + "name": "java.spring.security.injection.tainted-file-path.tainted-file-path", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-23: Relative Path Traversal", + "HIGH CONFIDENCE", + "OWASP-A01:2021 - Broken Access Control", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.spring.security.injection.tainted-file-path.tainted-file-path" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected use of parseXml() function with the `noent` field set to `true`. This can lead to an XML External Entities (XXE) attack if untrusted data is passed into it." + }, + "help": { + "markdown": "Detected use of parseXml() function with the `noent` field set to `true`. This can lead to an XML External Entities (XXE) attack if untrusted data is passed into it.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.express.security.audit.express-libxml-vm-noent.express-libxml-vm-noent)\n - [https://cheatsheetseries.owasp.org/cheatsheets/XML_External_Entity_Prevention_Cheat_Sheet.html](https://cheatsheetseries.owasp.org/cheatsheets/XML_External_Entity_Prevention_Cheat_Sheet.html)\n", + "text": "Detected use of parseXml() function with the `noent` field set to `true`. This can lead to an XML External Entities (XXE) attack if untrusted data is passed into it." + }, + "helpUri": "https://semgrep.dev/r/javascript.express.security.audit.express-libxml-vm-noent.express-libxml-vm-noent", + "id": "javascript.express.security.audit.express-libxml-vm-noent.express-libxml-vm-noent", + "name": "javascript.express.security.audit.express-libxml-vm-noent.express-libxml-vm-noent", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-611: Improper Restriction of XML External Entity Reference", + "LOW CONFIDENCE", + "OWASP-A04:2017 - XML External Entities (XXE)", + "OWASP-A05:2021 - Security Misconfiguration", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.express.security.audit.express-libxml-vm-noent.express-libxml-vm-noent" + } + }, + { + "defaultConfiguration": { + "level": "note" + }, + "fullDescription": { + "text": "Mako templates do not provide a global HTML escaping mechanism. This means you must escape all sensitive data in your templates using '| u' for URL escaping or '| h' for HTML escaping. If you are using Mako to serve web content, consider using a system such as Jinja2 which enables global escaping." + }, + "help": { + "markdown": "Mako templates do not provide a global HTML escaping mechanism. This means you must escape all sensitive data in your templates using '| u' for URL escaping or '| h' for HTML escaping. If you are using Mako to serve web content, consider using a system such as Jinja2 which enables global escaping.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.lang.security.audit.mako-templates-detected.mako-templates-detected)\n - [https://docs.makotemplates.org/en/latest/syntax.html#expression-escaping](https://docs.makotemplates.org/en/latest/syntax.html#expression-escaping)\n - [https://jinja.palletsprojects.com/en/2.11.x/intro/#](https://jinja.palletsprojects.com/en/2.11.x/intro/#)\n", + "text": "Mako templates do not provide a global HTML escaping mechanism. This means you must escape all sensitive data in your templates using '| u' for URL escaping or '| h' for HTML escaping. If you are using Mako to serve web content, consider using a system such as Jinja2 which enables global escaping." + }, + "helpUri": "https://semgrep.dev/r/python.lang.security.audit.mako-templates-detected.mako-templates-detected", + "id": "python.lang.security.audit.mako-templates-detected.mako-templates-detected", + "name": "python.lang.security.audit.mako-templates-detected.mako-templates-detected", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.lang.security.audit.mako-templates-detected.mako-templates-detected" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected an unsecured transmission channel. 'OpenerDirector.open(...)' is being used with 'http://'. Use 'https://' instead to secure the channel." + }, + "help": { + "markdown": "Detected an unsecured transmission channel. 'OpenerDirector.open(...)' is being used with 'http://'. Use 'https://' instead to secure the channel.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.lang.security.audit.insecure-transport.urllib.insecure-openerdirector-open.insecure-openerdirector-open)\n - [https://docs.python.org/3/library/urllib.request.html#urllib.request.OpenerDirector.open](https://docs.python.org/3/library/urllib.request.html#urllib.request.OpenerDirector.open)\n", + "text": "Detected an unsecured transmission channel. 'OpenerDirector.open(...)' is being used with 'http://'. Use 'https://' instead to secure the channel." + }, + "helpUri": "https://semgrep.dev/r/python.lang.security.audit.insecure-transport.urllib.insecure-openerdirector-open.insecure-openerdirector-open", + "id": "python.lang.security.audit.insecure-transport.urllib.insecure-openerdirector-open.insecure-openerdirector-open", + "name": "python.lang.security.audit.insecure-transport.urllib.insecure-openerdirector-open.insecure-openerdirector-open", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-319: Cleartext Transmission of Sensitive Information", + "LOW CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.lang.security.audit.insecure-transport.urllib.insecure-openerdirector-open.insecure-openerdirector-open" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Ensure S3 bucket object is encrypted at rest using KMS CMKs. CMKs gives you control over the encryption key in terms of access and rotation." + }, + "help": { + "markdown": "Ensure S3 bucket object is encrypted at rest using KMS CMKs. CMKs gives you control over the encryption key in terms of access and rotation.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.aws.security.aws-s3-bucket-object-encrypted-with-cmk.aws-s3-bucket-object-encrypted-with-cmk)\n - [https://owasp.org/Top10/A02_2021-Cryptographic_Failures](https://owasp.org/Top10/A02_2021-Cryptographic_Failures)\n", + "text": "Ensure S3 bucket object is encrypted at rest using KMS CMKs. CMKs gives you control over the encryption key in terms of access and rotation." + }, + "helpUri": "https://semgrep.dev/r/terraform.aws.security.aws-s3-bucket-object-encrypted-with-cmk.aws-s3-bucket-object-encrypted-with-cmk", + "id": "terraform.aws.security.aws-s3-bucket-object-encrypted-with-cmk.aws-s3-bucket-object-encrypted-with-cmk", + "name": "terraform.aws.security.aws-s3-bucket-object-encrypted-with-cmk.aws-s3-bucket-object-encrypted-with-cmk", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-320: CWE CATEGORY: Key Management Errors", + "LOW CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.aws.security.aws-s3-bucket-object-encrypted-with-cmk.aws-s3-bucket-object-encrypted-with-cmk" + } + }, + { + "defaultConfiguration": { + "level": "note" + }, + "fullDescription": { + "text": "A CSRF middleware was not detected in your express application. Ensure you are either using one such as `csurf` or `csrf` (see rule references) and/or you are properly doing CSRF validation in your routes with a token or cookies." + }, + "help": { + "markdown": "A CSRF middleware was not detected in your express application. Ensure you are either using one such as `csurf` or `csrf` (see rule references) and/or you are properly doing CSRF validation in your routes with a token or cookies.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.express.security.audit.express-check-csurf-middleware-usage.express-check-csurf-middleware-usage)\n - [https://www.npmjs.com/package/csurf](https://www.npmjs.com/package/csurf)\n - [https://www.npmjs.com/package/csrf](https://www.npmjs.com/package/csrf)\n - [https://cheatsheetseries.owasp.org/cheatsheets/Cross-Site_Request_Forgery_Prevention_Cheat_Sheet.html](https://cheatsheetseries.owasp.org/cheatsheets/Cross-Site_Request_Forgery_Prevention_Cheat_Sheet.html)\n", + "text": "A CSRF middleware was not detected in your express application. Ensure you are either using one such as `csurf` or `csrf` (see rule references) and/or you are properly doing CSRF validation in your routes with a token or cookies." + }, + "helpUri": "https://semgrep.dev/r/javascript.express.security.audit.express-check-csurf-middleware-usage.express-check-csurf-middleware-usage", + "id": "javascript.express.security.audit.express-check-csurf-middleware-usage.express-check-csurf-middleware-usage", + "name": "javascript.express.security.audit.express-check-csurf-middleware-usage.express-check-csurf-middleware-usage", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-352: Cross-Site Request Forgery (CSRF)", + "LOW CONFIDENCE", + "OWASP-A01:2021 - Broken Access Control", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.express.security.audit.express-check-csurf-middleware-usage.express-check-csurf-middleware-usage" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected IDEA cipher algorithm which is considered insecure. The algorithm is considered weak and has been deprecated. Use AES instead." + }, + "help": { + "markdown": "Detected IDEA cipher algorithm which is considered insecure. The algorithm is considered weak and has been deprecated. Use AES instead.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.cryptography.security.insecure-cipher-algorithms.insecure-cipher-algorithm-idea)\n - [https://tools.ietf.org/html/rfc5469](https://tools.ietf.org/html/rfc5469)\n", + "text": "Detected IDEA cipher algorithm which is considered insecure. The algorithm is considered weak and has been deprecated. Use AES instead." + }, + "helpUri": "https://semgrep.dev/r/python.cryptography.security.insecure-cipher-algorithms.insecure-cipher-algorithm-idea", + "id": "python.cryptography.security.insecure-cipher-algorithms.insecure-cipher-algorithm-idea", + "name": "python.cryptography.security.insecure-cipher-algorithms.insecure-cipher-algorithm-idea", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-327: Use of a Broken or Risky Cryptographic Algorithm", + "MEDIUM CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.cryptography.security.insecure-cipher-algorithms.insecure-cipher-algorithm-idea" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "`html_safe()` add the `__html__` magic method to the provided class. The `__html__` method indicates to the Django template engine that the value is 'safe' for rendering. This means that normal HTML escaping will not be applied to the return value. This exposes your application to cross-site scripting (XSS) vulnerabilities. If you need to render raw HTML, consider instead using `mark_safe()` which more clearly marks the intent to render raw HTML than a class with a magic method." + }, + "help": { + "markdown": "`html_safe()` add the `__html__` magic method to the provided class. The `__html__` method indicates to the Django template engine that the value is 'safe' for rendering. This means that normal HTML escaping will not be applied to the return value. This exposes your application to cross-site scripting (XSS) vulnerabilities. If you need to render raw HTML, consider instead using `mark_safe()` which more clearly marks the intent to render raw HTML than a class with a magic method.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.django.security.audit.xss.html-safe.html-safe)\n - [https://docs.djangoproject.com/en/3.0/_modules/django/utils/html/#html_safe](https://docs.djangoproject.com/en/3.0/_modules/django/utils/html/#html_safe)\n - [https://gist.github.com/minusworld/7885d8a81dba3ea2d1e4b8fd3c218ef5](https://gist.github.com/minusworld/7885d8a81dba3ea2d1e4b8fd3c218ef5)\n", + "text": "`html_safe()` add the `__html__` magic method to the provided class. The `__html__` method indicates to the Django template engine that the value is 'safe' for rendering. This means that normal HTML escaping will not be applied to the return value. This exposes your application to cross-site scripting (XSS) vulnerabilities. If you need to render raw HTML, consider instead using `mark_safe()` which more clearly marks the intent to render raw HTML than a class with a magic method." + }, + "helpUri": "https://semgrep.dev/r/python.django.security.audit.xss.html-safe.html-safe", + "id": "python.django.security.audit.xss.html-safe.html-safe", + "name": "python.django.security.audit.xss.html-safe.html-safe", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.django.security.audit.xss.html-safe.html-safe" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Usage of NumPy library inside PyTorch `$MODULE` module was found. Avoid mixing these libraries for efficiency and proper ONNX loading" + }, + "help": { + "markdown": "Usage of NumPy library inside PyTorch `$MODULE` module was found. Avoid mixing these libraries for efficiency and proper ONNX loading\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/trailofbits.python.numpy-in-pytorch-modules.numpy-in-pytorch-modules)\n - [https://tanelp.github.io/posts/a-bug-that-plagues-thousands-of-open-source-ml-projects](https://tanelp.github.io/posts/a-bug-that-plagues-thousands-of-open-source-ml-projects)\n", + "text": "Usage of NumPy library inside PyTorch `$MODULE` module was found. Avoid mixing these libraries for efficiency and proper ONNX loading" + }, + "helpUri": "https://semgrep.dev/r/trailofbits.python.numpy-in-pytorch-modules.numpy-in-pytorch-modules", + "id": "trailofbits.python.numpy-in-pytorch-modules.numpy-in-pytorch-modules", + "name": "trailofbits.python.numpy-in-pytorch-modules.numpy-in-pytorch-modules", + "properties": { + "precision": "very-high", + "tags": [ + "MEDIUM CONFIDENCE" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: trailofbits.python.numpy-in-pytorch-modules.numpy-in-pytorch-modules" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "The top level wildcard bindings $PREFIX leaves your application open to security vulnerabilities and give attackers more control over where traffic is routed. If you must use wildcards, consider using subdomain wildcard binding. For example, you can use \"*.asdf.gov\" if you own all of \"asdf.gov\"." + }, + "help": { + "markdown": "The top level wildcard bindings $PREFIX leaves your application open to security vulnerabilities and give attackers more control over where traffic is routed. If you must use wildcards, consider using subdomain wildcard binding. For example, you can use \"*.asdf.gov\" if you own all of \"asdf.gov\".\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/csharp.lang.security.http.http-listener-wildcard-bindings.http-listener-wildcard-bindings)\n - [https://docs.microsoft.com/en-us/dotnet/api/system.net.httplistener?view=net-6.0](https://docs.microsoft.com/en-us/dotnet/api/system.net.httplistener?view=net-6.0)\n", + "text": "The top level wildcard bindings $PREFIX leaves your application open to security vulnerabilities and give attackers more control over where traffic is routed. If you must use wildcards, consider using subdomain wildcard binding. For example, you can use \"*.asdf.gov\" if you own all of \"asdf.gov\"." + }, + "helpUri": "https://semgrep.dev/r/csharp.lang.security.http.http-listener-wildcard-bindings.http-listener-wildcard-bindings", + "id": "csharp.lang.security.http.http-listener-wildcard-bindings.http-listener-wildcard-bindings", + "name": "csharp.lang.security.http.http-listener-wildcard-bindings.http-listener-wildcard-bindings", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-706: Use of Incorrectly-Resolved Name or Reference", + "MEDIUM CONFIDENCE", + "OWASP-A01:2021 - Broken Access Control", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: csharp.lang.security.http.http-listener-wildcard-bindings.http-listener-wildcard-bindings" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "User data flows into the host portion of this manually-constructed URL. This could allow an attacker to send data to their own server, potentially exposing sensitive data such as cookies or authorization information sent with this request. They could also probe internal servers or other resources that the server runnig this code can access. (This is called server-side request forgery, or SSRF.) Do not allow arbitrary hosts. Instead, create an allowlist for approved hosts hardcode the correct host, or ensure that the user data can only affect the path or parameters." + }, + "help": { + "markdown": "User data flows into the host portion of this manually-constructed URL. This could allow an attacker to send data to their own server, potentially exposing sensitive data such as cookies or authorization information sent with this request. They could also probe internal servers or other resources that the server runnig this code can access. (This is called server-side request forgery, or SSRF.) Do not allow arbitrary hosts. Instead, create an allowlist for approved hosts hardcode the correct host, or ensure that the user data can only affect the path or parameters.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.spring.security.injection.tainted-url-host.tainted-url-host)\n - [https://cheatsheetseries.owasp.org/cheatsheets/Server_Side_Request_Forgery_Prevention_Cheat_Sheet.html](https://cheatsheetseries.owasp.org/cheatsheets/Server_Side_Request_Forgery_Prevention_Cheat_Sheet.html)\n", + "text": "User data flows into the host portion of this manually-constructed URL. This could allow an attacker to send data to their own server, potentially exposing sensitive data such as cookies or authorization information sent with this request. They could also probe internal servers or other resources that the server runnig this code can access. (This is called server-side request forgery, or SSRF.) Do not allow arbitrary hosts. Instead, create an allowlist for approved hosts hardcode the correct host, or ensure that the user data can only affect the path or parameters." + }, + "helpUri": "https://semgrep.dev/r/java.spring.security.injection.tainted-url-host.tainted-url-host", + "id": "java.spring.security.injection.tainted-url-host.tainted-url-host", + "name": "java.spring.security.injection.tainted-url-host.tainted-url-host", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-918: Server-Side Request Forgery (SSRF)", + "MEDIUM CONFIDENCE", + "OWASP-A10:2021 - Server-Side Request Forgery (SSRF)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.spring.security.injection.tainted-url-host.tainted-url-host" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Using CBC with PKCS5Padding is susceptible to padding oracle attacks. A malicious actor could discern the difference between plaintext with valid or invalid padding. Further, CBC mode does not include any integrity checks. Use 'AES/GCM/NoPadding' instead." + }, + "help": { + "markdown": "Using CBC with PKCS5Padding is susceptible to padding oracle attacks. A malicious actor could discern the difference between plaintext with valid or invalid padding. Further, CBC mode does not include any integrity checks. Use 'AES/GCM/NoPadding' instead.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.lang.security.audit.cbc-padding-oracle.cbc-padding-oracle)\n - [https://capec.mitre.org/data/definitions/463.html](https://capec.mitre.org/data/definitions/463.html)\n - [https://cheatsheetseries.owasp.org/cheatsheets/Cryptographic_Storage_Cheat_Sheet.html#cipher-modes](https://cheatsheetseries.owasp.org/cheatsheets/Cryptographic_Storage_Cheat_Sheet.html#cipher-modes)\n - [https://find-sec-bugs.github.io/bugs.htm#CIPHER_INTEGRITY](https://find-sec-bugs.github.io/bugs.htm#CIPHER_INTEGRITY)\n", + "text": "Using CBC with PKCS5Padding is susceptible to padding oracle attacks. A malicious actor could discern the difference between plaintext with valid or invalid padding. Further, CBC mode does not include any integrity checks. Use 'AES/GCM/NoPadding' instead." + }, + "helpUri": "https://semgrep.dev/r/java.lang.security.audit.cbc-padding-oracle.cbc-padding-oracle", + "id": "java.lang.security.audit.cbc-padding-oracle.cbc-padding-oracle", + "name": "java.lang.security.audit.cbc-padding-oracle.cbc-padding-oracle", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-327: Use of a Broken or Risky Cryptographic Algorithm", + "HIGH CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.lang.security.audit.cbc-padding-oracle.cbc-padding-oracle" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "DOCTYPE declarations are enabled for this TransformerFactory. This is vulnerable to XML external entity attacks. Disable this by setting the attributes \"accessExternalDTD\" and \"accessExternalStylesheet\" to \"\"." + }, + "help": { + "markdown": "DOCTYPE declarations are enabled for this TransformerFactory. This is vulnerable to XML external entity attacks. Disable this by setting the attributes \"accessExternalDTD\" and \"accessExternalStylesheet\" to \"\".\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.lang.security.audit.xxe.transformerfactory-dtds-not-disabled.transformerfactory-dtds-not-disabled)\n - [https://semgrep.dev/blog/2022/xml-security-in-java](https://semgrep.dev/blog/2022/xml-security-in-java)\n - [https://semgrep.dev/docs/cheat-sheets/java-xxe/](https://semgrep.dev/docs/cheat-sheets/java-xxe/)\n - [https://blog.sonarsource.com/secure-xml-processor](https://blog.sonarsource.com/secure-xml-processor)\n - [https://xerces.apache.org/xerces2-j/features.html](https://xerces.apache.org/xerces2-j/features.html)\n", + "text": "DOCTYPE declarations are enabled for this TransformerFactory. This is vulnerable to XML external entity attacks. Disable this by setting the attributes \"accessExternalDTD\" and \"accessExternalStylesheet\" to \"\"." + }, + "helpUri": "https://semgrep.dev/r/java.lang.security.audit.xxe.transformerfactory-dtds-not-disabled.transformerfactory-dtds-not-disabled", + "id": "java.lang.security.audit.xxe.transformerfactory-dtds-not-disabled.transformerfactory-dtds-not-disabled", + "name": "java.lang.security.audit.xxe.transformerfactory-dtds-not-disabled.transformerfactory-dtds-not-disabled", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-611: Improper Restriction of XML External Entity Reference", + "HIGH CONFIDENCE", + "OWASP-A04:2017 - XML External Entities (XXE)", + "OWASP-A05:2021 - Security Misconfiguration", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.lang.security.audit.xxe.transformerfactory-dtds-not-disabled.transformerfactory-dtds-not-disabled" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "User-controllable string passed to Razor.Parse. This leads directly to code execution in the context of the process." + }, + "help": { + "markdown": "User-controllable string passed to Razor.Parse. This leads directly to code execution in the context of the process.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/csharp.dotnet.security.razor-template-injection.razor-template-injection)\n - [https://clement.notin.org/blog/2020/04/15/Server-Side-Template-Injection-(SSTI)-in-ASP.NET-Razor/](https://clement.notin.org/blog/2020/04/15/Server-Side-Template-Injection-(SSTI)-in-ASP.NET-Razor/)\n", + "text": "User-controllable string passed to Razor.Parse. This leads directly to code execution in the context of the process." + }, + "helpUri": "https://semgrep.dev/r/csharp.dotnet.security.razor-template-injection.razor-template-injection", + "id": "csharp.dotnet.security.razor-template-injection.razor-template-injection", + "name": "csharp.dotnet.security.razor-template-injection.razor-template-injection", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-94: Improper Control of Generation of Code ('Code Injection')", + "MEDIUM CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: csharp.dotnet.security.razor-template-injection.razor-template-injection" + } + }, + { + "defaultConfiguration": { + "level": "note" + }, + "fullDescription": { + "text": "Ensure that the expiration date is set on all keys" + }, + "help": { + "markdown": "Ensure that the expiration date is set on all keys\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.azure.security.keyvault.keyvault-ensure-key-expires.keyvault-ensure-key-expires)\n - [https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/key_vault_key#expiration_date](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/key_vault_key#expiration_date)\n - [https://docs.microsoft.com/en-us/powershell/module/az.keyvault/update-azkeyvaultkey?view=azps-5.8.0#example-1--modify-a-key-to-enable-it--and-set-the-expiration-date-and-tags](https://docs.microsoft.com/en-us/powershell/module/az.keyvault/update-azkeyvaultkey?view=azps-5.8.0#example-1--modify-a-key-to-enable-it--and-set-the-expiration-date-and-tags)\n", + "text": "Ensure that the expiration date is set on all keys" + }, + "helpUri": "https://semgrep.dev/r/terraform.azure.security.keyvault.keyvault-ensure-key-expires.keyvault-ensure-key-expires", + "id": "terraform.azure.security.keyvault.keyvault-ensure-key-expires.keyvault-ensure-key-expires", + "name": "terraform.azure.security.keyvault.keyvault-ensure-key-expires.keyvault-ensure-key-expires", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-262: Not Using Password Aging", + "MEDIUM CONFIDENCE", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.azure.security.keyvault.keyvault-ensure-key-expires.keyvault-ensure-key-expires" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Checks for attempts to connect through telnet. This is insecure as the telnet protocol supports no encryption, and data passes through unencrypted." + }, + "help": { + "markdown": "Checks for attempts to connect through telnet. This is insecure as the telnet protocol supports no encryption, and data passes through unencrypted.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/problem-based-packs.insecure-transport.java-stdlib.telnet-request.telnet-request)\n - [https://commons.apache.org/proper/commons-net/javadocs/api-3.6/org/apache/commons/net/telnet/TelnetClient.html](https://commons.apache.org/proper/commons-net/javadocs/api-3.6/org/apache/commons/net/telnet/TelnetClient.html)\n", + "text": "Checks for attempts to connect through telnet. This is insecure as the telnet protocol supports no encryption, and data passes through unencrypted." + }, + "helpUri": "https://semgrep.dev/r/problem-based-packs.insecure-transport.java-stdlib.telnet-request.telnet-request", + "id": "problem-based-packs.insecure-transport.java-stdlib.telnet-request.telnet-request", + "name": "problem-based-packs.insecure-transport.java-stdlib.telnet-request.telnet-request", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-319: Cleartext Transmission of Sensitive Information", + "MEDIUM CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: problem-based-packs.insecure-transport.java-stdlib.telnet-request.telnet-request" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Evaluating non-constant commands. This can lead to command injection." + }, + "help": { + "markdown": "Evaluating non-constant commands. This can lead to command injection.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/php.lang.security.eval-use.eval-use)\n - [https://www.php.net/manual/en/function.eval](https://www.php.net/manual/en/function.eval)\n - [https://github.com/FloeDesignTechnologies/phpcs-security-audit/blob/master/Security/Sniffs/BadFunctions/NoEvalsSniff.php](https://github.com/FloeDesignTechnologies/phpcs-security-audit/blob/master/Security/Sniffs/BadFunctions/NoEvalsSniff.php)\n", + "text": "Evaluating non-constant commands. This can lead to command injection." + }, + "helpUri": "https://semgrep.dev/r/php.lang.security.eval-use.eval-use", + "id": "php.lang.security.eval-use.eval-use", + "name": "php.lang.security.eval-use.eval-use", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')", + "LOW CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: php.lang.security.eval-use.eval-use" + } + }, + { + "defaultConfiguration": { + "level": "note" + }, + "fullDescription": { + "text": "Running `socket.bind` to 0.0.0.0, or empty string could unexpectedly expose the server publicly as it binds to all available interfaces. Consider instead getting correct address from an environment variable or configuration file." + }, + "help": { + "markdown": "Running `socket.bind` to 0.0.0.0, or empty string could unexpectedly expose the server publicly as it binds to all available interfaces. Consider instead getting correct address from an environment variable or configuration file.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.lang.security.audit.network.bind.avoid-bind-to-all-interfaces)\n - [https://owasp.org/Top10/A01_2021-Broken_Access_Control](https://owasp.org/Top10/A01_2021-Broken_Access_Control)\n", + "text": "Running `socket.bind` to 0.0.0.0, or empty string could unexpectedly expose the server publicly as it binds to all available interfaces. Consider instead getting correct address from an environment variable or configuration file." + }, + "helpUri": "https://semgrep.dev/r/python.lang.security.audit.network.bind.avoid-bind-to-all-interfaces", + "id": "python.lang.security.audit.network.bind.avoid-bind-to-all-interfaces", + "name": "python.lang.security.audit.network.bind.avoid-bind-to-all-interfaces", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-200: Exposure of Sensitive Information to an Unauthorized Actor", + "HIGH CONFIDENCE", + "OWASP-A01:2021 - Broken Access Control", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.lang.security.audit.network.bind.avoid-bind-to-all-interfaces" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Data from request object is passed to a new server-side request. This could lead to a server-side request forgery (SSRF). To mitigate, ensure that schemes and hosts are validated against an allowlist, do not forward the response to the user, and ensure proper authentication and transport-layer security in the proxied request. See https://owasp.org/www-community/attacks/Server_Side_Request_Forgery to learn more about SSRF vulnerabilities." + }, + "help": { + "markdown": "Data from request object is passed to a new server-side request. This could lead to a server-side request forgery (SSRF). To mitigate, ensure that schemes and hosts are validated against an allowlist, do not forward the response to the user, and ensure proper authentication and transport-layer security in the proxied request. See https://owasp.org/www-community/attacks/Server_Side_Request_Forgery to learn more about SSRF vulnerabilities.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.django.security.injection.ssrf.ssrf-injection-requests.ssrf-injection-requests)\n - [https://owasp.org/www-community/attacks/Server_Side_Request_Forgery](https://owasp.org/www-community/attacks/Server_Side_Request_Forgery)\n", + "text": "Data from request object is passed to a new server-side request. This could lead to a server-side request forgery (SSRF). To mitigate, ensure that schemes and hosts are validated against an allowlist, do not forward the response to the user, and ensure proper authentication and transport-layer security in the proxied request. See https://owasp.org/www-community/attacks/Server_Side_Request_Forgery to learn more about SSRF vulnerabilities." + }, + "helpUri": "https://semgrep.dev/r/python.django.security.injection.ssrf.ssrf-injection-requests.ssrf-injection-requests", + "id": "python.django.security.injection.ssrf.ssrf-injection-requests.ssrf-injection-requests", + "name": "python.django.security.injection.ssrf.ssrf-injection-requests.ssrf-injection-requests", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-918: Server-Side Request Forgery (SSRF)", + "MEDIUM CONFIDENCE", + "OWASP-A10:2021 - Server-Side Request Forgery (SSRF)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.django.security.injection.ssrf.ssrf-injection-requests.ssrf-injection-requests" + } + }, + { + "defaultConfiguration": { + "level": "note" + }, + "fullDescription": { + "text": "this rule has been deprecated." + }, + "help": { + "markdown": "this rule has been deprecated.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.lang.security.audit.vm-injection.vm-runinnewcontext-context-injection)\n - [https://nodejs.org/dist/latest-v16.x/docs/api/vm.html](https://nodejs.org/dist/latest-v16.x/docs/api/vm.html)\n", + "text": "this rule has been deprecated." + }, + "helpUri": "https://semgrep.dev/r/javascript.lang.security.audit.vm-injection.vm-runinnewcontext-context-injection", + "id": "javascript.lang.security.audit.vm-injection.vm-runinnewcontext-context-injection", + "name": "javascript.lang.security.audit.vm-injection.vm-runinnewcontext-context-injection", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-94: Improper Control of Generation of Code ('Code Injection')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.lang.security.audit.vm-injection.vm-runinnewcontext-context-injection" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Specifying the regex timeout leaves the system vulnerable to a regex-based Denial of Service (DoS) attack. Consider setting the timeout to a short amount of time like 2 or 3 seconds. If you are sure you need an infinite timeout, double check that your context meets the conditions outlined in the \"Notes to Callers\" section at the bottom of this page: https://docs.microsoft.com/en-us/dotnet/api/system.text.regularexpressions.regex.-ctor?view=net-6.0" + }, + "help": { + "markdown": "Specifying the regex timeout leaves the system vulnerable to a regex-based Denial of Service (DoS) attack. Consider setting the timeout to a short amount of time like 2 or 3 seconds. If you are sure you need an infinite timeout, double check that your context meets the conditions outlined in the \"Notes to Callers\" section at the bottom of this page: https://docs.microsoft.com/en-us/dotnet/api/system.text.regularexpressions.regex.-ctor?view=net-6.0\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/csharp.lang.security.regular-expression-dos.regular-expression-dos-infinite-timeout.regular-expression-dos-infinite-timeout)\n - [https://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_ReDoS](https://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_ReDoS)\n - [https://docs.microsoft.com/en-us/dotnet/api/system.text.regularexpressions.regex.infinitematchtimeout](https://docs.microsoft.com/en-us/dotnet/api/system.text.regularexpressions.regex.infinitematchtimeout)\n - [https://docs.microsoft.com/en-us/dotnet/api/system.text.regularexpressions.regex.-ctor?view=net-6.0](https://docs.microsoft.com/en-us/dotnet/api/system.text.regularexpressions.regex.-ctor?view=net-6.0)\n", + "text": "Specifying the regex timeout leaves the system vulnerable to a regex-based Denial of Service (DoS) attack. Consider setting the timeout to a short amount of time like 2 or 3 seconds. If you are sure you need an infinite timeout, double check that your context meets the conditions outlined in the \"Notes to Callers\" section at the bottom of this page: https://docs.microsoft.com/en-us/dotnet/api/system.text.regularexpressions.regex.-ctor?view=net-6.0" + }, + "helpUri": "https://semgrep.dev/r/csharp.lang.security.regular-expression-dos.regular-expression-dos-infinite-timeout.regular-expression-dos-infinite-timeout", + "id": "csharp.lang.security.regular-expression-dos.regular-expression-dos-infinite-timeout.regular-expression-dos-infinite-timeout", + "name": "csharp.lang.security.regular-expression-dos.regular-expression-dos-infinite-timeout.regular-expression-dos-infinite-timeout", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-1333: Inefficient Regular Expression Complexity", + "MEDIUM CONFIDENCE", + "OWASP-A01:2017 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: csharp.lang.security.regular-expression-dos.regular-expression-dos-infinite-timeout.regular-expression-dos-infinite-timeout" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "A hard-coded credential was detected. It is not recommended to store credentials in source-code, as this risks secrets being leaked and used by either an internal or external malicious adversary. It is recommended to use environment variables to securely provide credentials or retrieve credentials from a secure vault or HSM (Hardware Security Module)." + }, + "help": { + "markdown": "A hard-coded credential was detected. It is not recommended to store credentials in source-code, as this risks secrets being leaked and used by either an internal or external malicious adversary. It is recommended to use environment variables to securely provide credentials or retrieve credentials from a secure vault or HSM (Hardware Security Module).\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.passport-jwt.security.passport-hardcode.hardcoded-passport-secret)\n - [https://cheatsheetseries.owasp.org/cheatsheets/Secrets_Management_Cheat_Sheet.html](https://cheatsheetseries.owasp.org/cheatsheets/Secrets_Management_Cheat_Sheet.html)\n", + "text": "A hard-coded credential was detected. It is not recommended to store credentials in source-code, as this risks secrets being leaked and used by either an internal or external malicious adversary. It is recommended to use environment variables to securely provide credentials or retrieve credentials from a secure vault or HSM (Hardware Security Module)." + }, + "helpUri": "https://semgrep.dev/r/javascript.passport-jwt.security.passport-hardcode.hardcoded-passport-secret", + "id": "javascript.passport-jwt.security.passport-hardcode.hardcoded-passport-secret", + "name": "javascript.passport-jwt.security.passport-hardcode.hardcoded-passport-secret", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-798: Use of Hard-coded Credentials", + "HIGH CONFIDENCE", + "OWASP-A07:2021 - Identification and Authentication Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.passport-jwt.security.passport-hardcode.hardcoded-passport-secret" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Found non static data as an index to 'globals()'. This is extremely dangerous because it allows an attacker to execute arbitrary code on the system. Refactor your code not to use 'globals()'." + }, + "help": { + "markdown": "Found non static data as an index to 'globals()'. This is extremely dangerous because it allows an attacker to execute arbitrary code on the system. Refactor your code not to use 'globals()'.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.lang.security.dangerous-globals-use.dangerous-globals-use)\n - [https://github.com/mpirnat/lets-be-bad-guys/blob/d92768fb3ade32956abd53bd6bb06e19d634a084/badguys/vulnerable/views.py#L181-L186](https://github.com/mpirnat/lets-be-bad-guys/blob/d92768fb3ade32956abd53bd6bb06e19d634a084/badguys/vulnerable/views.py#L181-L186)\n", + "text": "Found non static data as an index to 'globals()'. This is extremely dangerous because it allows an attacker to execute arbitrary code on the system. Refactor your code not to use 'globals()'." + }, + "helpUri": "https://semgrep.dev/r/python.lang.security.dangerous-globals-use.dangerous-globals-use", + "id": "python.lang.security.dangerous-globals-use.dangerous-globals-use", + "name": "python.lang.security.dangerous-globals-use.dangerous-globals-use", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-96: Improper Neutralization of Directives in Statically Saved Code ('Static Code Injection')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.lang.security.dangerous-globals-use.dangerous-globals-use" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "User-controlled data from a request is passed to 'extra()'. This could lead to a SQL injection and therefore protected information could be leaked. Instead, use parameterized queries or escape the user-controlled data by using `params` and not using quote placeholders in the SQL string." + }, + "help": { + "markdown": "User-controlled data from a request is passed to 'extra()'. This could lead to a SQL injection and therefore protected information could be leaked. Instead, use parameterized queries or escape the user-controlled data by using `params` and not using quote placeholders in the SQL string.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.django.security.injection.sql.sql-injection-extra.sql-injection-using-extra-where)\n - [https://docs.djangoproject.com/en/3.0/ref/models/expressions/#.objects.extra](https://docs.djangoproject.com/en/3.0/ref/models/expressions/#.objects.extra)\n", + "text": "User-controlled data from a request is passed to 'extra()'. This could lead to a SQL injection and therefore protected information could be leaked. Instead, use parameterized queries or escape the user-controlled data by using `params` and not using quote placeholders in the SQL string." + }, + "helpUri": "https://semgrep.dev/r/python.django.security.injection.sql.sql-injection-extra.sql-injection-using-extra-where", + "id": "python.django.security.injection.sql.sql-injection-extra.sql-injection-using-extra-where", + "name": "python.django.security.injection.sql.sql-injection-extra.sql-injection-using-extra-where", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')", + "MEDIUM CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.django.security.injection.sql.sql-injection-extra.sql-injection-using-extra-where" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Checks for strong parameter bypass through usage of create_with. Create_with bypasses strong parameter protection, which could allow attackers to set arbitrary attributes on models. To fix this vulnerability, either remove all create_with calls or use the permit function to specify tags that are allowed to be set." + }, + "help": { + "markdown": "Checks for strong parameter bypass through usage of create_with. Create_with bypasses strong parameter protection, which could allow attackers to set arbitrary attributes on models. To fix this vulnerability, either remove all create_with calls or use the permit function to specify tags that are allowed to be set.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ruby.lang.security.create-with.create-with)\n - [https://github.com/presidentbeef/brakeman/blob/main/lib/brakeman/checks/check_create_with.rb](https://github.com/presidentbeef/brakeman/blob/main/lib/brakeman/checks/check_create_with.rb)\n - [https://groups.google.com/g/rubyonrails-security/c/M4chq5Sb540/m/CC1Fh0Y_NWwJ](https://groups.google.com/g/rubyonrails-security/c/M4chq5Sb540/m/CC1Fh0Y_NWwJ)\n", + "text": "Checks for strong parameter bypass through usage of create_with. Create_with bypasses strong parameter protection, which could allow attackers to set arbitrary attributes on models. To fix this vulnerability, either remove all create_with calls or use the permit function to specify tags that are allowed to be set." + }, + "helpUri": "https://semgrep.dev/r/ruby.lang.security.create-with.create-with", + "id": "ruby.lang.security.create-with.create-with", + "name": "ruby.lang.security.create-with.create-with", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes", + "LOW CONFIDENCE", + "OWASP-A08:2021 - Software and Data Integrity Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: ruby.lang.security.create-with.create-with" + } + }, + { + "defaultConfiguration": { + "level": "note" + }, + "fullDescription": { + "text": "this rule has been deprecated." + }, + "help": { + "markdown": "this rule has been deprecated.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.lang.security.audit.vm-injection.vm-runinthiscontext-code-injection)\n - [https://nodejs.org/dist/latest-v16.x/docs/api/vm.html](https://nodejs.org/dist/latest-v16.x/docs/api/vm.html)\n", + "text": "this rule has been deprecated." + }, + "helpUri": "https://semgrep.dev/r/javascript.lang.security.audit.vm-injection.vm-runinthiscontext-code-injection", + "id": "javascript.lang.security.audit.vm-injection.vm-runinthiscontext-code-injection", + "name": "javascript.lang.security.audit.vm-injection.vm-runinthiscontext-code-injection", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-94: Improper Control of Generation of Code ('Code Injection')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.lang.security.audit.vm-injection.vm-runinthiscontext-code-injection" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Found data going from url query parameters into formatted data written to ResponseWriter. This could be XSS and should not be done. If you must do this, ensure your data is sanitized or escaped." + }, + "help": { + "markdown": "Found data going from url query parameters into formatted data written to ResponseWriter. This could be XSS and should not be done. If you must do this, ensure your data is sanitized or escaped.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/go.lang.security.audit.net.wip-xss-using-responsewriter-and-printf.wip-xss-using-responsewriter-and-printf)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "Found data going from url query parameters into formatted data written to ResponseWriter. This could be XSS and should not be done. If you must do this, ensure your data is sanitized or escaped." + }, + "helpUri": "https://semgrep.dev/r/go.lang.security.audit.net.wip-xss-using-responsewriter-and-printf.wip-xss-using-responsewriter-and-printf", + "id": "go.lang.security.audit.net.wip-xss-using-responsewriter-and-printf.wip-xss-using-responsewriter-and-printf", + "name": "go.lang.security.audit.net.wip-xss-using-responsewriter-and-printf.wip-xss-using-responsewriter-and-printf", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "MEDIUM CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: go.lang.security.audit.net.wip-xss-using-responsewriter-and-printf.wip-xss-using-responsewriter-and-printf" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Authentication detected over HTTP. HTTP does not provide any encryption or protection for these authentication credentials. This may expose these credentials to unauthorized parties. Use 'https://' instead." + }, + "help": { + "markdown": "Authentication detected over HTTP. HTTP does not provide any encryption or protection for these authentication credentials. This may expose these credentials to unauthorized parties. Use 'https://' instead.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.requests.security.no-auth-over-http.no-auth-over-http)\n - [https://semgrep.dev/blog/2020/bento-check-no-auth-over-http/](https://semgrep.dev/blog/2020/bento-check-no-auth-over-http/)\n - [https://bento.dev/checks/requests/no-auth-over-http/](https://bento.dev/checks/requests/no-auth-over-http/)\n", + "text": "Authentication detected over HTTP. HTTP does not provide any encryption or protection for these authentication credentials. This may expose these credentials to unauthorized parties. Use 'https://' instead." + }, + "helpUri": "https://semgrep.dev/r/python.requests.security.no-auth-over-http.no-auth-over-http", + "id": "python.requests.security.no-auth-over-http.no-auth-over-http", + "name": "python.requests.security.no-auth-over-http.no-auth-over-http", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-523: Unprotected Transport of Credentials", + "LOW CONFIDENCE", + "OWASP-A02:2017 - Broken Authentication", + "OWASP-A02:2021 - Cryptographic Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.requests.security.no-auth-over-http.no-auth-over-http" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Pod is sharing the host IPC namespace. This allows container processes to communicate with processes on the host which reduces isolation and bypasses container protection models. Remove the 'hostIPC' key to disable this functionality." + }, + "help": { + "markdown": "Pod is sharing the host IPC namespace. This allows container processes to communicate with processes on the host which reduces isolation and bypasses container protection models. Remove the 'hostIPC' key to disable this functionality.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/yaml.kubernetes.security.hostipc-pod.hostipc-pod)\n - [https://kubernetes.io/docs/concepts/policy/pod-security-policy/#host-namespaces](https://kubernetes.io/docs/concepts/policy/pod-security-policy/#host-namespaces)\n", + "text": "Pod is sharing the host IPC namespace. This allows container processes to communicate with processes on the host which reduces isolation and bypasses container protection models. Remove the 'hostIPC' key to disable this functionality." + }, + "helpUri": "https://semgrep.dev/r/yaml.kubernetes.security.hostipc-pod.hostipc-pod", + "id": "yaml.kubernetes.security.hostipc-pod.hostipc-pod", + "name": "yaml.kubernetes.security.hostipc-pod.hostipc-pod", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-693: Protection Mechanism Failure", + "LOW CONFIDENCE", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: yaml.kubernetes.security.hostipc-pod.hostipc-pod" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Detected non-static command inside exec.Cmd. Audit the input to 'exec.Cmd'. If unverified user data can reach this call site, this is a code injection vulnerability. A malicious actor can inject a malicious script to execute arbitrary code." + }, + "help": { + "markdown": "Detected non-static command inside exec.Cmd. Audit the input to 'exec.Cmd'. If unverified user data can reach this call site, this is a code injection vulnerability. A malicious actor can inject a malicious script to execute arbitrary code.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/go.lang.security.audit.dangerous-exec-cmd.dangerous-exec-cmd)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "Detected non-static command inside exec.Cmd. Audit the input to 'exec.Cmd'. If unverified user data can reach this call site, this is a code injection vulnerability. A malicious actor can inject a malicious script to execute arbitrary code." + }, + "helpUri": "https://semgrep.dev/r/go.lang.security.audit.dangerous-exec-cmd.dangerous-exec-cmd", + "id": "go.lang.security.audit.dangerous-exec-cmd.dangerous-exec-cmd", + "name": "go.lang.security.audit.dangerous-exec-cmd.dangerous-exec-cmd", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-94: Improper Control of Generation of Code ('Code Injection')", + "MEDIUM CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: go.lang.security.audit.dangerous-exec-cmd.dangerous-exec-cmd" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected user input flowing into a manually constructed HTML string. You may be accidentally bypassing secure methods of rendering HTML by manually constructing HTML and this could create a cross-site scripting vulnerability, which could let attackers steal sensitive user data. To be sure this is safe, check that the HTML is rendered safely. Otherwise, use templates which will safely render HTML instead." + }, + "help": { + "markdown": "Detected user input flowing into a manually constructed HTML string. You may be accidentally bypassing secure methods of rendering HTML by manually constructing HTML and this could create a cross-site scripting vulnerability, which could let attackers steal sensitive user data. To be sure this is safe, check that the HTML is rendered safely. Otherwise, use templates which will safely render HTML instead.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.aws-lambda.security.tainted-html-string.tainted-html-string)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "Detected user input flowing into a manually constructed HTML string. You may be accidentally bypassing secure methods of rendering HTML by manually constructing HTML and this could create a cross-site scripting vulnerability, which could let attackers steal sensitive user data. To be sure this is safe, check that the HTML is rendered safely. Otherwise, use templates which will safely render HTML instead." + }, + "helpUri": "https://semgrep.dev/r/python.aws-lambda.security.tainted-html-string.tainted-html-string", + "id": "python.aws-lambda.security.tainted-html-string.tainted-html-string", + "name": "python.aws-lambda.security.tainted-html-string.tainted-html-string", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "MEDIUM CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.aws-lambda.security.tainted-html-string.tainted-html-string" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected an AWS Elasticsearch domain using an insecure version of TLS. To fix this, set \"tls_security_policy\" equal to \"Policy-Min-TLS-1-2-2019-07\"." + }, + "help": { + "markdown": "Detected an AWS Elasticsearch domain using an insecure version of TLS. To fix this, set \"tls_security_policy\" equal to \"Policy-Min-TLS-1-2-2019-07\".\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.aws.security.aws-elasticsearch-insecure-tls-version.aws-elasticsearch-insecure-tls-version)\n - [https://owasp.org/Top10/A02_2021-Cryptographic_Failures](https://owasp.org/Top10/A02_2021-Cryptographic_Failures)\n", + "text": "Detected an AWS Elasticsearch domain using an insecure version of TLS. To fix this, set \"tls_security_policy\" equal to \"Policy-Min-TLS-1-2-2019-07\"." + }, + "helpUri": "https://semgrep.dev/r/terraform.aws.security.aws-elasticsearch-insecure-tls-version.aws-elasticsearch-insecure-tls-version", + "id": "terraform.aws.security.aws-elasticsearch-insecure-tls-version.aws-elasticsearch-insecure-tls-version", + "name": "terraform.aws.security.aws-elasticsearch-insecure-tls-version.aws-elasticsearch-insecure-tls-version", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-326: Inadequate Encryption Strength", + "HIGH CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.aws.security.aws-elasticsearch-insecure-tls-version.aws-elasticsearch-insecure-tls-version" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "This rule has been deprecated, see https://github.com/returntocorp/semgrep-rules/issues/2506." + }, + "help": { + "markdown": "This rule has been deprecated, see https://github.com/returntocorp/semgrep-rules/issues/2506.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/php.lang.security.preg-replace-eval.preg-replace-eval)\n - [https://www.php.net/manual/en/function.preg-replace.php](https://www.php.net/manual/en/function.preg-replace.php)\n - [https://www.php.net/manual/en/reference.pcre.pattern.modifiers.php](https://www.php.net/manual/en/reference.pcre.pattern.modifiers.php)\n - [https://github.com/FloeDesignTechnologies/phpcs-security-audit/blob/master/Security/Sniffs/BadFunctions/PregReplaceSniff.php](https://github.com/FloeDesignTechnologies/phpcs-security-audit/blob/master/Security/Sniffs/BadFunctions/PregReplaceSniff.php)\n", + "text": "This rule has been deprecated, see https://github.com/returntocorp/semgrep-rules/issues/2506." + }, + "helpUri": "https://semgrep.dev/r/php.lang.security.preg-replace-eval.preg-replace-eval", + "id": "php.lang.security.preg-replace-eval.preg-replace-eval", + "name": "php.lang.security.preg-replace-eval.preg-replace-eval", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-94: Improper Control of Generation of Code ('Code Injection')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: php.lang.security.preg-replace-eval.preg-replace-eval" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Initializing a security context for Dask (`distributed`) without \"require_encryption\" keyword argument may silently fail to provide security." + }, + "help": { + "markdown": "Initializing a security context for Dask (`distributed`) without \"require_encryption\" keyword argument may silently fail to provide security.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.distributed.security.require-encryption)\n - [https://distributed.dask.org/en/latest/tls.html?highlight=require_encryption#parameters](https://distributed.dask.org/en/latest/tls.html?highlight=require_encryption#parameters)\n", + "text": "Initializing a security context for Dask (`distributed`) without \"require_encryption\" keyword argument may silently fail to provide security." + }, + "helpUri": "https://semgrep.dev/r/python.distributed.security.require-encryption", + "id": "python.distributed.security.require-encryption", + "name": "python.distributed.security.require-encryption", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-319: Cleartext Transmission of Sensitive Information", + "MEDIUM CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.distributed.security.require-encryption" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "The $$VARIABLE path parameter is added as a header in the response. This could allow an attacker to inject a newline and add a new header into the response. This is called HTTP response splitting. To fix, do not allow whitespace in the path parameter: '[^\\s]+'." + }, + "help": { + "markdown": "The $$VARIABLE path parameter is added as a header in the response. This could allow an attacker to inject a newline and add a new header into the response. This is called HTTP response splitting. To fix, do not allow whitespace in the path parameter: '[^\\s]+'.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/generic.nginx.security.header-injection.header-injection)\n - [https://github.com/yandex/gixy/blob/master/docs/en/plugins/httpsplitting.md](https://github.com/yandex/gixy/blob/master/docs/en/plugins/httpsplitting.md)\n - [https://owasp.org/www-community/attacks/HTTP_Response_Splitting](https://owasp.org/www-community/attacks/HTTP_Response_Splitting)\n", + "text": "The $$VARIABLE path parameter is added as a header in the response. This could allow an attacker to inject a newline and add a new header into the response. This is called HTTP response splitting. To fix, do not allow whitespace in the path parameter: '[^\\s]+'." + }, + "helpUri": "https://semgrep.dev/r/generic.nginx.security.header-injection.header-injection", + "id": "generic.nginx.security.header-injection.header-injection", + "name": "generic.nginx.security.header-injection.header-injection", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-113: Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting')", + "MEDIUM CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: generic.nginx.security.header-injection.header-injection" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "The EC2 launch template has Instance Metadata Service Version 1 (IMDSv1) enabled. IMDSv2 introduced session authentication tokens which improve security when talking to IMDS. You should either disable IMDS or require the use of IMDSv2." + }, + "help": { + "markdown": "The EC2 launch template has Instance Metadata Service Version 1 (IMDSv1) enabled. IMDSv2 introduced session authentication tokens which improve security when talking to IMDS. You should either disable IMDS or require the use of IMDSv2.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.aws.security.aws-ec2-launch-template-metadata-service-v1-enabled.aws-ec2-launch-template-metadata-service-v1-enabled)\n - [https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures/](https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures/)\n - [https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/launch_configuration#metadata_options](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/launch_configuration#metadata_options)\n - [https://aws.amazon.com/blogs/security/defense-in-depth-open-firewalls-reverse-proxies-ssrf-vulnerabilities-ec2-instance-metadata-service](https://aws.amazon.com/blogs/security/defense-in-depth-open-firewalls-reverse-proxies-ssrf-vulnerabilities-ec2-instance-metadata-service)\n", + "text": "The EC2 launch template has Instance Metadata Service Version 1 (IMDSv1) enabled. IMDSv2 introduced session authentication tokens which improve security when talking to IMDS. You should either disable IMDS or require the use of IMDSv2." + }, + "helpUri": "https://semgrep.dev/r/terraform.aws.security.aws-ec2-launch-template-metadata-service-v1-enabled.aws-ec2-launch-template-metadata-service-v1-enabled", + "id": "terraform.aws.security.aws-ec2-launch-template-metadata-service-v1-enabled.aws-ec2-launch-template-metadata-service-v1-enabled", + "name": "terraform.aws.security.aws-ec2-launch-template-metadata-service-v1-enabled.aws-ec2-launch-template-metadata-service-v1-enabled", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-1390: Weak Authentication", + "MEDIUM CONFIDENCE", + "OWASP-A07:2021 - Identification and Authentication Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.aws.security.aws-ec2-launch-template-metadata-service-v1-enabled.aws-ec2-launch-template-metadata-service-v1-enabled" + } + }, + { + "defaultConfiguration": { + "level": "note" + }, + "fullDescription": { + "text": "Storing JWT tokens in localStorage known to be a bad practice, consider moving your tokens from localStorage to a HTTP cookie." + }, + "help": { + "markdown": "Storing JWT tokens in localStorage known to be a bad practice, consider moving your tokens from localStorage to a HTTP cookie.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/typescript.react.security.audit.react-jwt-in-localstorage.react-jwt-in-localstorage)\n - [https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies](https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies)\n", + "text": "Storing JWT tokens in localStorage known to be a bad practice, consider moving your tokens from localStorage to a HTTP cookie." + }, + "helpUri": "https://semgrep.dev/r/typescript.react.security.audit.react-jwt-in-localstorage.react-jwt-in-localstorage", + "id": "typescript.react.security.audit.react-jwt-in-localstorage.react-jwt-in-localstorage", + "name": "typescript.react.security.audit.react-jwt-in-localstorage.react-jwt-in-localstorage", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-922: Insecure Storage of Sensitive Information", + "LOW CONFIDENCE", + "OWASP-A01:2021 - Broken Access Control", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: typescript.react.security.audit.react-jwt-in-localstorage.react-jwt-in-localstorage" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected use of the wildcard character in a system call that spawns a shell. This subjects the wildcard to normal shell expansion, which can have unintended consequences if there exist any non-standard file names. Consider a file named '-e sh script.sh' -- this will execute a script when 'rsync' is called. See https://www.defensecode.com/public/DefenseCode_Unix_WildCards_Gone_Wild.txt for more information." + }, + "help": { + "markdown": "Detected use of the wildcard character in a system call that spawns a shell. This subjects the wildcard to normal shell expansion, which can have unintended consequences if there exist any non-standard file names. Consider a file named '-e sh script.sh' -- this will execute a script when 'rsync' is called. See https://www.defensecode.com/public/DefenseCode_Unix_WildCards_Gone_Wild.txt for more information.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.lang.security.audit.system-wildcard-detected.system-wildcard-detected)\n - [https://www.defensecode.com/public/DefenseCode_Unix_WildCards_Gone_Wild.txt](https://www.defensecode.com/public/DefenseCode_Unix_WildCards_Gone_Wild.txt)\n", + "text": "Detected use of the wildcard character in a system call that spawns a shell. This subjects the wildcard to normal shell expansion, which can have unintended consequences if there exist any non-standard file names. Consider a file named '-e sh script.sh' -- this will execute a script when 'rsync' is called. See https://www.defensecode.com/public/DefenseCode_Unix_WildCards_Gone_Wild.txt for more information." + }, + "helpUri": "https://semgrep.dev/r/python.lang.security.audit.system-wildcard-detected.system-wildcard-detected", + "id": "python.lang.security.audit.system-wildcard-detected.system-wildcard-detected", + "name": "python.lang.security.audit.system-wildcard-detected.system-wildcard-detected", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-155: Improper Neutralization of Wildcards or Matching Symbols", + "LOW CONFIDENCE", + "OWASP-A01:2017 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.lang.security.audit.system-wildcard-detected.system-wildcard-detected" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Checks for cases where java applications are allowing unsafe renegotiation. This leaves the application vulnerable to a man-in-the-middle attack where chosen plain text is injected as prefix to a TLS connection." + }, + "help": { + "markdown": "Checks for cases where java applications are allowing unsafe renegotiation. This leaves the application vulnerable to a man-in-the-middle attack where chosen plain text is injected as prefix to a TLS connection.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/problem-based-packs.insecure-transport.java-stdlib.tls-renegotiation.tls-renegotiation)\n - [https://www.oracle.com/java/technologies/javase/tlsreadme.html](https://www.oracle.com/java/technologies/javase/tlsreadme.html)\n", + "text": "Checks for cases where java applications are allowing unsafe renegotiation. This leaves the application vulnerable to a man-in-the-middle attack where chosen plain text is injected as prefix to a TLS connection." + }, + "helpUri": "https://semgrep.dev/r/problem-based-packs.insecure-transport.java-stdlib.tls-renegotiation.tls-renegotiation", + "id": "problem-based-packs.insecure-transport.java-stdlib.tls-renegotiation.tls-renegotiation", + "name": "problem-based-packs.insecure-transport.java-stdlib.tls-renegotiation.tls-renegotiation", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-319: Cleartext Transmission of Sensitive Information", + "MEDIUM CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: problem-based-packs.insecure-transport.java-stdlib.tls-renegotiation.tls-renegotiation" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected a Custom Expression ''$EXPRESSION'' calling ''as_sql(...).'' This could lead to SQL injection, which can result in attackers exfiltrating sensitive data. Instead, ensure no user input enters this function or that user input is properly sanitized." + }, + "help": { + "markdown": "Detected a Custom Expression ''$EXPRESSION'' calling ''as_sql(...).'' This could lead to SQL injection, which can result in attackers exfiltrating sensitive data. Instead, ensure no user input enters this function or that user input is properly sanitized.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.django.security.audit.custom-expression-as-sql.custom-expression-as-sql)\n - [https://docs.djangoproject.com/en/3.0/ref/models/expressions/#django.db.models.Func.as_sql](https://docs.djangoproject.com/en/3.0/ref/models/expressions/#django.db.models.Func.as_sql)\n - [https://semgrep.dev/blog/2020/preventing-sql-injection-a-django-authors-perspective/](https://semgrep.dev/blog/2020/preventing-sql-injection-a-django-authors-perspective/)\n", + "text": "Detected a Custom Expression ''$EXPRESSION'' calling ''as_sql(...).'' This could lead to SQL injection, which can result in attackers exfiltrating sensitive data. Instead, ensure no user input enters this function or that user input is properly sanitized." + }, + "helpUri": "https://semgrep.dev/r/python.django.security.audit.custom-expression-as-sql.custom-expression-as-sql", + "id": "python.django.security.audit.custom-expression-as-sql.custom-expression-as-sql", + "name": "python.django.security.audit.custom-expression-as-sql.custom-expression-as-sql", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')", + "LOW CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.django.security.audit.custom-expression-as-sql.custom-expression-as-sql" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "This tag is missing an 'integrity' subresource integrity attribute. The 'integrity' attribute allows for the browser to verify that externally hosted files (for example from a CDN) are delivered without unexpected manipulation. Without this attribute, if an attacker can modify the externally hosted resource, this could lead to XSS and other types of attacks. To prevent this, include the base64-encoded cryptographic hash of the resource (file) you\u2019re telling the browser to fetch in the 'integrity' attribute for all externally hosted files." + }, + "help": { + "markdown": "This tag is missing an 'integrity' subresource integrity attribute. The 'integrity' attribute allows for the browser to verify that externally hosted files (for example from a CDN) are delivered without unexpected manipulation. Without this attribute, if an attacker can modify the externally hosted resource, this could lead to XSS and other types of attacks. To prevent this, include the base64-encoded cryptographic hash of the resource (file) you\u2019re telling the browser to fetch in the 'integrity' attribute for all externally hosted files.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/html.security.audit.missing-integrity.missing-integrity)\n - [https://owasp.org/Top10/A08_2021-Software_and_Data_Integrity_Failures](https://owasp.org/Top10/A08_2021-Software_and_Data_Integrity_Failures)\n", + "text": "This tag is missing an 'integrity' subresource integrity attribute. The 'integrity' attribute allows for the browser to verify that externally hosted files (for example from a CDN) are delivered without unexpected manipulation. Without this attribute, if an attacker can modify the externally hosted resource, this could lead to XSS and other types of attacks. To prevent this, include the base64-encoded cryptographic hash of the resource (file) you\u2019re telling the browser to fetch in the 'integrity' attribute for all externally hosted files." + }, + "helpUri": "https://semgrep.dev/r/html.security.audit.missing-integrity.missing-integrity", + "id": "html.security.audit.missing-integrity.missing-integrity", + "name": "html.security.audit.missing-integrity.missing-integrity", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-353: Missing Support for Integrity Check", + "LOW CONFIDENCE", + "OWASP-A08:2021 - Software and Data Integrity Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: html.security.audit.missing-integrity.missing-integrity" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Service '$SERVICE' is explicitly disabling seccomp confinement. This runs the service in an unrestricted state. Remove 'seccomp:unconfined' to prevent this." + }, + "help": { + "markdown": "Service '$SERVICE' is explicitly disabling seccomp confinement. This runs the service in an unrestricted state. Remove 'seccomp:unconfined' to prevent this.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/yaml.docker-compose.security.seccomp-confinement-disabled.seccomp-confinement-disabled)\n - [https://docs.docker.com/engine/security/seccomp/](https://docs.docker.com/engine/security/seccomp/)\n", + "text": "Service '$SERVICE' is explicitly disabling seccomp confinement. This runs the service in an unrestricted state. Remove 'seccomp:unconfined' to prevent this." + }, + "helpUri": "https://semgrep.dev/r/yaml.docker-compose.security.seccomp-confinement-disabled.seccomp-confinement-disabled", + "id": "yaml.docker-compose.security.seccomp-confinement-disabled.seccomp-confinement-disabled", + "name": "yaml.docker-compose.security.seccomp-confinement-disabled.seccomp-confinement-disabled", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-284: Improper Access Control", + "LOW CONFIDENCE", + "OWASP-A01:2021 - Broken Access Control", + "OWASP-A05:2017 - Broken Access Control", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: yaml.docker-compose.security.seccomp-confinement-disabled.seccomp-confinement-disabled" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected an HTTP request sent via HttpURLConnection. This could lead to sensitive information being sent over an insecure channel. Instead, it is recommended to send requests over HTTPS." + }, + "help": { + "markdown": "Detected an HTTP request sent via HttpURLConnection. This could lead to sensitive information being sent over an insecure channel. Instead, it is recommended to send requests over HTTPS.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/problem-based-packs.insecure-transport.java-stdlib.httpurlconnection-http-request.httpurlconnection-http-request)\n - [https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/URLConnection.html](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/URLConnection.html)\n - [https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/URL.html#openConnection()](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/URL.html#openConnection())\n", + "text": "Detected an HTTP request sent via HttpURLConnection. This could lead to sensitive information being sent over an insecure channel. Instead, it is recommended to send requests over HTTPS." + }, + "helpUri": "https://semgrep.dev/r/problem-based-packs.insecure-transport.java-stdlib.httpurlconnection-http-request.httpurlconnection-http-request", + "id": "problem-based-packs.insecure-transport.java-stdlib.httpurlconnection-http-request.httpurlconnection-http-request", + "name": "problem-based-packs.insecure-transport.java-stdlib.httpurlconnection-http-request.httpurlconnection-http-request", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-319: Cleartext Transmission of Sensitive Information", + "MEDIUM CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: problem-based-packs.insecure-transport.java-stdlib.httpurlconnection-http-request.httpurlconnection-http-request" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected SQL statement that is tainted by `event` object. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use parameterized queries or prepared statements instead. You can use parameterized statements like so: `DB['select * from items where name = ?', name]`" + }, + "help": { + "markdown": "Detected SQL statement that is tainted by `event` object. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use parameterized queries or prepared statements instead. You can use parameterized statements like so: `DB['select * from items where name = ?', name]`\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ruby.aws-lambda.security.sequel-sqli.sequel-sqli)\n - [https://github.com/jeremyevans/sequel#label-Arbitrary+SQL+queries](https://github.com/jeremyevans/sequel#label-Arbitrary+SQL+queries)\n", + "text": "Detected SQL statement that is tainted by `event` object. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use parameterized queries or prepared statements instead. You can use parameterized statements like so: `DB['select * from items where name = ?', name]`" + }, + "helpUri": "https://semgrep.dev/r/ruby.aws-lambda.security.sequel-sqli.sequel-sqli", + "id": "ruby.aws-lambda.security.sequel-sqli.sequel-sqli", + "name": "ruby.aws-lambda.security.sequel-sqli.sequel-sqli", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')", + "MEDIUM CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: ruby.aws-lambda.security.sequel-sqli.sequel-sqli" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "SSRF is an attack vector that abuses an application to interact with the internal/external network or the machine itself." + }, + "help": { + "markdown": "SSRF is an attack vector that abuses an application to interact with the internal/external network or the machine itself.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/csharp.lang.security.ssrf.web-client.ssrf)\n - [https://cheatsheetseries.owasp.org/cheatsheets/Server_Side_Request_Forgery_Prevention_Cheat_Sheet.html](https://cheatsheetseries.owasp.org/cheatsheets/Server_Side_Request_Forgery_Prevention_Cheat_Sheet.html)\n", + "text": "SSRF is an attack vector that abuses an application to interact with the internal/external network or the machine itself." + }, + "helpUri": "https://semgrep.dev/r/csharp.lang.security.ssrf.web-client.ssrf", + "id": "csharp.lang.security.ssrf.web-client.ssrf", + "name": "csharp.lang.security.ssrf.web-client.ssrf", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-918: Server-Side Request Forgery (SSRF)", + "LOW CONFIDENCE", + "OWASP-A10:2021 - Server-Side Request Forgery (SSRF)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: csharp.lang.security.ssrf.web-client.ssrf" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Square Access Token detected" + }, + "help": { + "markdown": "Square Access Token detected\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/generic.secrets.security.detected-square-access-token.detected-square-access-token)\n - [https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures](https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures)\n", + "text": "Square Access Token detected" + }, + "helpUri": "https://semgrep.dev/r/generic.secrets.security.detected-square-access-token.detected-square-access-token", + "id": "generic.secrets.security.detected-square-access-token.detected-square-access-token", + "name": "generic.secrets.security.detected-square-access-token.detected-square-access-token", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-798: Use of Hard-coded Credentials", + "LOW CONFIDENCE", + "OWASP-A07:2021 - Identification and Authentication Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: generic.secrets.security.detected-square-access-token.detected-square-access-token" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Method $METHOD in API controller $CLASS provides user arg $ARG to requests method $REQMETHOD" + }, + "help": { + "markdown": "Method $METHOD in API controller $CLASS provides user arg $ARG to requests method $REQMETHOD\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.flask.security.flask-api-method-string-format.flask-api-method-string-format)\n - [https://cwe.mitre.org/data/definitions/134.html](https://cwe.mitre.org/data/definitions/134.html)\n", + "text": "Method $METHOD in API controller $CLASS provides user arg $ARG to requests method $REQMETHOD" + }, + "helpUri": "https://semgrep.dev/r/python.flask.security.flask-api-method-string-format.flask-api-method-string-format", + "id": "python.flask.security.flask-api-method-string-format.flask-api-method-string-format", + "name": "python.flask.security.flask-api-method-string-format.flask-api-method-string-format", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-134: Use of Externally-Controlled Format String", + "LOW CONFIDENCE", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.flask.security.flask-api-method-string-format.flask-api-method-string-format" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "'raw()' bypasses HTML escaping. If external data can reach here, this exposes your application to cross-site scripting (XSS) attacks. If you must do this, construct individual strings and mark them as safe for HTML rendering with `html_safe()`." + }, + "help": { + "markdown": "'raw()' bypasses HTML escaping. If external data can reach here, this exposes your application to cross-site scripting (XSS) attacks. If you must do this, construct individual strings and mark them as safe for HTML rendering with `html_safe()`.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ruby.rails.security.audit.xss.avoid-raw.avoid-raw)\n - [https://api.rubyonrails.org/classes/ActionView/Helpers/OutputSafetyHelper.html#method-i-raw](https://api.rubyonrails.org/classes/ActionView/Helpers/OutputSafetyHelper.html#method-i-raw)\n - [https://www.netsparker.com/blog/web-security/preventing-xss-ruby-on-rails-web-applications/](https://www.netsparker.com/blog/web-security/preventing-xss-ruby-on-rails-web-applications/)\n", + "text": "'raw()' bypasses HTML escaping. If external data can reach here, this exposes your application to cross-site scripting (XSS) attacks. If you must do this, construct individual strings and mark them as safe for HTML rendering with `html_safe()`." + }, + "helpUri": "https://semgrep.dev/r/ruby.rails.security.audit.xss.avoid-raw.avoid-raw", + "id": "ruby.rails.security.audit.xss.avoid-raw.avoid-raw", + "name": "ruby.rails.security.audit.xss.avoid-raw.avoid-raw", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: ruby.rails.security.audit.xss.avoid-raw.avoid-raw" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Do not set FLASK_ENV to \"development\" since that sets `debug=True` in Flask. Use \"dev\" or a similar term instead." + }, + "help": { + "markdown": "Do not set FLASK_ENV to \"development\" since that sets `debug=True` in Flask. Use \"dev\" or a similar term instead.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/yaml.kubernetes.security.env.flask-debugging-enabled.flask-debugging-enabled)\n - [https://flask.palletsprojects.com/en/2.0.x/debugging/](https://flask.palletsprojects.com/en/2.0.x/debugging/)\n - [https://flask.palletsprojects.com/en/2.0.x/config/#ENV](https://flask.palletsprojects.com/en/2.0.x/config/#ENV)\n", + "text": "Do not set FLASK_ENV to \"development\" since that sets `debug=True` in Flask. Use \"dev\" or a similar term instead." + }, + "helpUri": "https://semgrep.dev/r/yaml.kubernetes.security.env.flask-debugging-enabled.flask-debugging-enabled", + "id": "yaml.kubernetes.security.env.flask-debugging-enabled.flask-debugging-enabled", + "name": "yaml.kubernetes.security.env.flask-debugging-enabled.flask-debugging-enabled", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-489: Active Debug Code", + "LOW CONFIDENCE", + "OWASP-A06:2017 - Security Misconfiguration", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: yaml.kubernetes.security.env.flask-debugging-enabled.flask-debugging-enabled" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "NullCipher was detected. This will not encrypt anything; the cipher text will be the same as the plain text. Use a valid, secure cipher: Cipher.getInstance(\"AES/CBC/PKCS7PADDING\"). See https://owasp.org/www-community/Using_the_Java_Cryptographic_Extensions for more information." + }, + "help": { + "markdown": "NullCipher was detected. This will not encrypt anything; the cipher text will be the same as the plain text. Use a valid, secure cipher: Cipher.getInstance(\"AES/CBC/PKCS7PADDING\"). See https://owasp.org/www-community/Using_the_Java_Cryptographic_Extensions for more information.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/kotlin.lang.security.no-null-cipher.no-null-cipher)\n - [https://owasp.org/Top10/A02_2021-Cryptographic_Failures](https://owasp.org/Top10/A02_2021-Cryptographic_Failures)\n", + "text": "NullCipher was detected. This will not encrypt anything; the cipher text will be the same as the plain text. Use a valid, secure cipher: Cipher.getInstance(\"AES/CBC/PKCS7PADDING\"). See https://owasp.org/www-community/Using_the_Java_Cryptographic_Extensions for more information." + }, + "helpUri": "https://semgrep.dev/r/kotlin.lang.security.no-null-cipher.no-null-cipher", + "id": "kotlin.lang.security.no-null-cipher.no-null-cipher", + "name": "kotlin.lang.security.no-null-cipher.no-null-cipher", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-327: Use of a Broken or Risky Cryptographic Algorithm", + "MEDIUM CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: kotlin.lang.security.no-null-cipher.no-null-cipher" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected the use of `$TRUST`. This can introduce a Cross-Site-Scripting (XSS) vulnerability if this comes from user-provided input. If you have to use `$TRUST`, ensure it does not come from user-input or use the appropriate prevention mechanism e.g. input validation or sanitization depending on the context." + }, + "help": { + "markdown": "Detected the use of `$TRUST`. This can introduce a Cross-Site-Scripting (XSS) vulnerability if this comes from user-provided input. If you have to use `$TRUST`, ensure it does not come from user-input or use the appropriate prevention mechanism e.g. input validation or sanitization depending on the context.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/typescript.angular.security.audit.angular-domsanitizer.angular-bypasssecuritytrust)\n - [https://angular.io/api/platform-browser/DomSanitizer](https://angular.io/api/platform-browser/DomSanitizer)\n - [https://cheatsheetseries.owasp.org/cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.html](https://cheatsheetseries.owasp.org/cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.html)\n", + "text": "Detected the use of `$TRUST`. This can introduce a Cross-Site-Scripting (XSS) vulnerability if this comes from user-provided input. If you have to use `$TRUST`, ensure it does not come from user-input or use the appropriate prevention mechanism e.g. input validation or sanitization depending on the context." + }, + "helpUri": "https://semgrep.dev/r/typescript.angular.security.audit.angular-domsanitizer.angular-bypasssecuritytrust", + "id": "typescript.angular.security.audit.angular-domsanitizer.angular-bypasssecuritytrust", + "name": "typescript.angular.security.audit.angular-domsanitizer.angular-bypasssecuritytrust", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "MEDIUM CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: typescript.angular.security.audit.angular-domsanitizer.angular-bypasssecuritytrust" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Artifactory token detected" + }, + "help": { + "markdown": "Artifactory token detected\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/generic.secrets.security.detected-artifactory-password.detected-artifactory-password)\n - [https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures](https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures)\n", + "text": "Artifactory token detected" + }, + "helpUri": "https://semgrep.dev/r/generic.secrets.security.detected-artifactory-password.detected-artifactory-password", + "id": "generic.secrets.security.detected-artifactory-password.detected-artifactory-password", + "name": "generic.secrets.security.detected-artifactory-password.detected-artifactory-password", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-798: Use of Hard-coded Credentials", + "LOW CONFIDENCE", + "OWASP-A07:2021 - Identification and Authentication Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: generic.secrets.security.detected-artifactory-password.detected-artifactory-password" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected string concatenation with a non-literal variable in a `mssql` JS SQL statement. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use parameterized queries or prepared statements instead. You can use parameterized statements like so: `$REQ.input('USER_ID', mssql.Int, id);`" + }, + "help": { + "markdown": "Detected string concatenation with a non-literal variable in a `mssql` JS SQL statement. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use parameterized queries or prepared statements instead. You can use parameterized statements like so: `$REQ.input('USER_ID', mssql.Int, id);`\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.lang.security.audit.sqli.node-mssql-sqli.node-mssql-sqli)\n - [https://www.npmjs.com/package/mssql](https://www.npmjs.com/package/mssql)\n", + "text": "Detected string concatenation with a non-literal variable in a `mssql` JS SQL statement. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use parameterized queries or prepared statements instead. You can use parameterized statements like so: `$REQ.input('USER_ID', mssql.Int, id);`" + }, + "helpUri": "https://semgrep.dev/r/javascript.lang.security.audit.sqli.node-mssql-sqli.node-mssql-sqli", + "id": "javascript.lang.security.audit.sqli.node-mssql-sqli.node-mssql-sqli", + "name": "javascript.lang.security.audit.sqli.node-mssql-sqli.node-mssql-sqli", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')", + "LOW CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.lang.security.audit.sqli.node-mssql-sqli.node-mssql-sqli" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Use $FORM.cleaned_data[] instead of request.POST[] after form.is_valid() has been executed to only access sanitized data" + }, + "help": { + "markdown": "Use $FORM.cleaned_data[] instead of request.POST[] after form.is_valid() has been executed to only access sanitized data\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.django.security.django-using-request-post-after-is-valid.django-using-request-post-after-is-valid)\n - [https://docs.djangoproject.com/en/4.2/ref/forms/api/#accessing-clean-data](https://docs.djangoproject.com/en/4.2/ref/forms/api/#accessing-clean-data)\n", + "text": "Use $FORM.cleaned_data[] instead of request.POST[] after form.is_valid() has been executed to only access sanitized data" + }, + "helpUri": "https://semgrep.dev/r/python.django.security.django-using-request-post-after-is-valid.django-using-request-post-after-is-valid", + "id": "python.django.security.django-using-request-post-after-is-valid.django-using-request-post-after-is-valid", + "name": "python.django.security.django-using-request-post-after-is-valid.django-using-request-post-after-is-valid", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-20: Improper Input Validation", + "MEDIUM CONFIDENCE", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.django.security.django-using-request-post-after-is-valid.django-using-request-post-after-is-valid" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "the `encoding` argument to Popen is only available on Python 3.6+" + }, + "help": { + "markdown": "the `encoding` argument to Popen is only available on Python 3.6+\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.lang.compatibility.python36.python36-compatibility-Popen2)\n", + "text": "the `encoding` argument to Popen is only available on Python 3.6+" + }, + "helpUri": "https://semgrep.dev/r/python.lang.compatibility.python36.python36-compatibility-Popen2", + "id": "python.lang.compatibility.python36.python36-compatibility-Popen2", + "name": "python.lang.compatibility.python36.python36-compatibility-Popen2", + "properties": { + "precision": "very-high", + "tags": [] + }, + "shortDescription": { + "text": "Semgrep Finding: python.lang.compatibility.python36.python36-compatibility-Popen2" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected string concatenation with a non-literal variable in a node-postgres JS SQL statement. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use parameterized queries or prepared statements instead. You can use parameterized statements like so: `client.query('SELECT $1 from table', [userinput])`" + }, + "help": { + "markdown": "Detected string concatenation with a non-literal variable in a node-postgres JS SQL statement. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use parameterized queries or prepared statements instead. You can use parameterized statements like so: `client.query('SELECT $1 from table', [userinput])`\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.lang.security.audit.sqli.node-postgres-sqli.node-postgres-sqli)\n - [https://node-postgres.com/features/queries](https://node-postgres.com/features/queries)\n", + "text": "Detected string concatenation with a non-literal variable in a node-postgres JS SQL statement. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use parameterized queries or prepared statements instead. You can use parameterized statements like so: `client.query('SELECT $1 from table', [userinput])`" + }, + "helpUri": "https://semgrep.dev/r/javascript.lang.security.audit.sqli.node-postgres-sqli.node-postgres-sqli", + "id": "javascript.lang.security.audit.sqli.node-postgres-sqli.node-postgres-sqli", + "name": "javascript.lang.security.audit.sqli.node-postgres-sqli.node-postgres-sqli", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes", + "LOW CONFIDENCE", + "OWASP-A08:2021 - Software and Data Integrity Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.lang.security.audit.sqli.node-postgres-sqli.node-postgres-sqli" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Checks for setting the environment variable NODE_TLS_REJECT_UNAUTHORIZED to 0, which disables TLS verification. This should only be used for debugging purposes. Setting the option rejectUnauthorized to false bypasses verification against the list of trusted CAs, which also leads to insecure transport. These options lead to vulnerability to MTM attacks, and should not be used." + }, + "help": { + "markdown": "Checks for setting the environment variable NODE_TLS_REJECT_UNAUTHORIZED to 0, which disables TLS verification. This should only be used for debugging purposes. Setting the option rejectUnauthorized to false bypasses verification against the list of trusted CAs, which also leads to insecure transport. These options lead to vulnerability to MTM attacks, and should not be used.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/problem-based-packs.insecure-transport.js-node.bypass-tls-verification.bypass-tls-verification)\n - [https://nodejs.org/api/https.html#https_https_request_options_callback](https://nodejs.org/api/https.html#https_https_request_options_callback)\n - [https://stackoverflow.com/questions/20433287/node-js-request-cert-has-expired#answer-29397100](https://stackoverflow.com/questions/20433287/node-js-request-cert-has-expired#answer-29397100)\n", + "text": "Checks for setting the environment variable NODE_TLS_REJECT_UNAUTHORIZED to 0, which disables TLS verification. This should only be used for debugging purposes. Setting the option rejectUnauthorized to false bypasses verification against the list of trusted CAs, which also leads to insecure transport. These options lead to vulnerability to MTM attacks, and should not be used." + }, + "helpUri": "https://semgrep.dev/r/problem-based-packs.insecure-transport.js-node.bypass-tls-verification.bypass-tls-verification", + "id": "problem-based-packs.insecure-transport.js-node.bypass-tls-verification.bypass-tls-verification", + "name": "problem-based-packs.insecure-transport.js-node.bypass-tls-verification.bypass-tls-verification", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-319: Cleartext Transmission of Sensitive Information", + "MEDIUM CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: problem-based-packs.insecure-transport.js-node.bypass-tls-verification.bypass-tls-verification" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "This rule is deprecated." + }, + "help": { + "markdown": "This rule is deprecated.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ruby.rails.security.audit.rails-check-header-dos.rails-check-header-dos)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "This rule is deprecated." + }, + "helpUri": "https://semgrep.dev/r/ruby.rails.security.audit.rails-check-header-dos.rails-check-header-dos", + "id": "ruby.rails.security.audit.rails-check-header-dos.rails-check-header-dos", + "name": "ruby.rails.security.audit.rails-check-header-dos.rails-check-header-dos", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-20: Improper Input Validation", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: ruby.rails.security.audit.rails-check-header-dos.rails-check-header-dos" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Default session middleware settings: `expires` not set. Use it to set expiration date for persistent cookies." + }, + "help": { + "markdown": "Default session middleware settings: `expires` not set. Use it to set expiration date for persistent cookies.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.express.security.audit.express-cookie-settings.express-cookie-session-no-expires)\n - [https://owasp.org/Top10/A04_2021-Insecure_Design](https://owasp.org/Top10/A04_2021-Insecure_Design)\n", + "text": "Default session middleware settings: `expires` not set. Use it to set expiration date for persistent cookies." + }, + "helpUri": "https://semgrep.dev/r/javascript.express.security.audit.express-cookie-settings.express-cookie-session-no-expires", + "id": "javascript.express.security.audit.express-cookie-settings.express-cookie-session-no-expires", + "name": "javascript.express.security.audit.express-cookie-settings.express-cookie-session-no-expires", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-522: Insufficiently Protected Credentials", + "MEDIUM CONFIDENCE", + "OWASP-A02:2017 - Broken Authentication", + "OWASP-A04:2021 - Insecure Design", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.express.security.audit.express-cookie-settings.express-cookie-session-no-expires" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Default session middleware settings: `secure` not set. It ensures the browser only sends the cookie over HTTPS." + }, + "help": { + "markdown": "Default session middleware settings: `secure` not set. It ensures the browser only sends the cookie over HTTPS.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.express.security.audit.express-cookie-settings.express-cookie-session-no-secure)\n - [https://owasp.org/Top10/A04_2021-Insecure_Design](https://owasp.org/Top10/A04_2021-Insecure_Design)\n", + "text": "Default session middleware settings: `secure` not set. It ensures the browser only sends the cookie over HTTPS." + }, + "helpUri": "https://semgrep.dev/r/javascript.express.security.audit.express-cookie-settings.express-cookie-session-no-secure", + "id": "javascript.express.security.audit.express-cookie-settings.express-cookie-session-no-secure", + "name": "javascript.express.security.audit.express-cookie-settings.express-cookie-session-no-secure", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-522: Insufficiently Protected Credentials", + "MEDIUM CONFIDENCE", + "OWASP-A02:2017 - Broken Authentication", + "OWASP-A04:2021 - Insecure Design", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.express.security.audit.express-cookie-settings.express-cookie-session-no-secure" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "source_hash' is only available on Python 3.7+. This does not work in lower versions, and therefore is not backwards compatible. Instead, use another hash function." + }, + "help": { + "markdown": "source_hash' is only available on Python 3.7+. This does not work in lower versions, and therefore is not backwards compatible. Instead, use another hash function.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.lang.compatibility.python37.python37-compatibility-importlib)\n", + "text": "source_hash' is only available on Python 3.7+. This does not work in lower versions, and therefore is not backwards compatible. Instead, use another hash function." + }, + "helpUri": "https://semgrep.dev/r/python.lang.compatibility.python37.python37-compatibility-importlib", + "id": "python.lang.compatibility.python37.python37-compatibility-importlib", + "name": "python.lang.compatibility.python37.python37-compatibility-importlib", + "properties": { + "precision": "very-high", + "tags": [] + }, + "shortDescription": { + "text": "Semgrep Finding: python.lang.compatibility.python37.python37-compatibility-importlib" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "The syntax `<%== ... %>` is an alias for `html_safe`. This means the content inside these tags will be rendered as raw HTML. This may expose your application to cross-site scripting. If you need raw HTML, prefer using the more explicit `html_safe` and be sure to correctly sanitize variables using a library such as DOMPurify." + }, + "help": { + "markdown": "The syntax `<%== ... %>` is an alias for `html_safe`. This means the content inside these tags will be rendered as raw HTML. This may expose your application to cross-site scripting. If you need raw HTML, prefer using the more explicit `html_safe` and be sure to correctly sanitize variables using a library such as DOMPurify.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ruby.rails.security.audit.xss.templates.alias-for-html-safe.alias-for-html-safe)\n - [https://medium.com/sumone-technical-blog/a-pretty-way-to-unescape-html-in-a-ruby-on-rails-application-efc22b850027](https://medium.com/sumone-technical-blog/a-pretty-way-to-unescape-html-in-a-ruby-on-rails-application-efc22b850027)\n - [https://stackoverflow.com/questions/4251284/raw-vs-html-safe-vs-h-to-unescape-html#:~:text===](https://stackoverflow.com/questions/4251284/raw-vs-html-safe-vs-h-to-unescape-html#:~:text===)\n", + "text": "The syntax `<%== ... %>` is an alias for `html_safe`. This means the content inside these tags will be rendered as raw HTML. This may expose your application to cross-site scripting. If you need raw HTML, prefer using the more explicit `html_safe` and be sure to correctly sanitize variables using a library such as DOMPurify." + }, + "helpUri": "https://semgrep.dev/r/ruby.rails.security.audit.xss.templates.alias-for-html-safe.alias-for-html-safe", + "id": "ruby.rails.security.audit.xss.templates.alias-for-html-safe.alias-for-html-safe", + "name": "ruby.rails.security.audit.xss.templates.alias-for-html-safe.alias-for-html-safe", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: ruby.rails.security.audit.xss.templates.alias-for-html-safe.alias-for-html-safe" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected use of express.csrf() middleware before express.methodOverride(). This can allow GET requests (which are not checked by csrf) to turn into POST requests later." + }, + "help": { + "markdown": "Detected use of express.csrf() middleware before express.methodOverride(). This can allow GET requests (which are not checked by csrf) to turn into POST requests later.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.lang.security.detect-no-csrf-before-method-override.detect-no-csrf-before-method-override)\n - [https://github.com/nodesecurity/eslint-plugin-security/blob/master/docs/bypass-connect-csrf-protection-by-abusing.md](https://github.com/nodesecurity/eslint-plugin-security/blob/master/docs/bypass-connect-csrf-protection-by-abusing.md)\n", + "text": "Detected use of express.csrf() middleware before express.methodOverride(). This can allow GET requests (which are not checked by csrf) to turn into POST requests later." + }, + "helpUri": "https://semgrep.dev/r/javascript.lang.security.detect-no-csrf-before-method-override.detect-no-csrf-before-method-override", + "id": "javascript.lang.security.detect-no-csrf-before-method-override.detect-no-csrf-before-method-override", + "name": "javascript.lang.security.detect-no-csrf-before-method-override.detect-no-csrf-before-method-override", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-352: Cross-Site Request Forgery (CSRF)", + "LOW CONFIDENCE", + "OWASP-A01:2021 - Broken Access Control", + "OWASP-A05:2017 - Broken Access Control", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.lang.security.detect-no-csrf-before-method-override.detect-no-csrf-before-method-override" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "If an attacker can supply values that the application then uses to determine which method or field to invoke, the potential exists for the attacker to create control flow paths through the application that were not intended by the application developers. This attack vector may allow the attacker to bypass authentication or access control checks or otherwise cause the application to behave in an unexpected manner." + }, + "help": { + "markdown": "If an attacker can supply values that the application then uses to determine which method or field to invoke, the potential exists for the attacker to create control flow paths through the application that were not intended by the application developers. This attack vector may allow the attacker to bypass authentication or access control checks or otherwise cause the application to behave in an unexpected manner.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/go.lang.security.audit.unsafe-reflect-by-name.unsafe-reflect-by-name)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "If an attacker can supply values that the application then uses to determine which method or field to invoke, the potential exists for the attacker to create control flow paths through the application that were not intended by the application developers. This attack vector may allow the attacker to bypass authentication or access control checks or otherwise cause the application to behave in an unexpected manner." + }, + "helpUri": "https://semgrep.dev/r/go.lang.security.audit.unsafe-reflect-by-name.unsafe-reflect-by-name", + "id": "go.lang.security.audit.unsafe-reflect-by-name.unsafe-reflect-by-name", + "name": "go.lang.security.audit.unsafe-reflect-by-name.unsafe-reflect-by-name", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-470: Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: go.lang.security.audit.unsafe-reflect-by-name.unsafe-reflect-by-name" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "No slippage check in a Uniswap v2/v3 trade" + }, + "help": { + "markdown": "No slippage check in a Uniswap v2/v3 trade\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/solidity.security.no-slippage-check.no-slippage-check)\n - [https://uniswapv3book.com/docs/milestone_3/slippage-protection/](https://uniswapv3book.com/docs/milestone_3/slippage-protection/)\n", + "text": "No slippage check in a Uniswap v2/v3 trade" + }, + "helpUri": "https://semgrep.dev/r/solidity.security.no-slippage-check.no-slippage-check", + "id": "solidity.security.no-slippage-check.no-slippage-check", + "name": "solidity.security.no-slippage-check.no-slippage-check", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-682: Incorrect Calculation", + "MEDIUM CONFIDENCE", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: solidity.security.no-slippage-check.no-slippage-check" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "$sceDelegateProvider allowlisting can introduce security issues if wildcards are used." + }, + "help": { + "markdown": "$sceDelegateProvider allowlisting can introduce security issues if wildcards are used.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.angular.security.detect-angular-resource-loading.detect-angular-resource-loading)\n - [https://docs.angularjs.org/api/ng/service/$sce#trustAsJs](https://docs.angularjs.org/api/ng/service/$sce#trustAsJs)\n - [https://owasp.org/www-chapter-london/assets/slides/OWASPLondon20170727_AngularJS.pdf](https://owasp.org/www-chapter-london/assets/slides/OWASPLondon20170727_AngularJS.pdf)\n", + "text": "$sceDelegateProvider allowlisting can introduce security issues if wildcards are used." + }, + "helpUri": "https://semgrep.dev/r/javascript.angular.security.detect-angular-resource-loading.detect-angular-resource-loading", + "id": "javascript.angular.security.detect-angular-resource-loading.detect-angular-resource-loading", + "name": "javascript.angular.security.detect-angular-resource-loading.detect-angular-resource-loading", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.angular.security.detect-angular-resource-loading.detect-angular-resource-loading" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected an explicit unescape in a Mustache template, using triple braces '{{{...}}}' or ampersand '&'. If external data can reach these locations, your application is exposed to a cross-site scripting (XSS) vulnerability. If you must do this, ensure no external data can reach this location." + }, + "help": { + "markdown": "Detected an explicit unescape in a Mustache template, using triple braces '{{{...}}}' or ampersand '&'. If external data can reach these locations, your application is exposed to a cross-site scripting (XSS) vulnerability. If you must do this, ensure no external data can reach this location.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.express.security.audit.xss.mustache.explicit-unescape.template-explicit-unescape)\n - [https://github.com/janl/mustache.js/#variables](https://github.com/janl/mustache.js/#variables)\n - [https://ractive.js.org/v0.x/0.7/mustaches#variables](https://ractive.js.org/v0.x/0.7/mustaches#variables)\n", + "text": "Detected an explicit unescape in a Mustache template, using triple braces '{{{...}}}' or ampersand '&'. If external data can reach these locations, your application is exposed to a cross-site scripting (XSS) vulnerability. If you must do this, ensure no external data can reach this location." + }, + "helpUri": "https://semgrep.dev/r/javascript.express.security.audit.xss.mustache.explicit-unescape.template-explicit-unescape", + "id": "javascript.express.security.audit.xss.mustache.explicit-unescape.template-explicit-unescape", + "name": "javascript.express.security.audit.xss.mustache.explicit-unescape.template-explicit-unescape", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.express.security.audit.xss.mustache.explicit-unescape.template-explicit-unescape" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "'open_out' behaves differently on Windows and on Unix-like systems with respect to line endings. To get the same behavior everywhere, use 'open_out_bin' or 'open_out_gen [Open_binary]'. If you really want LF-to-CRLF translations to take place when running on Windows, use 'open_out_gen [Open_text]'." + }, + "help": { + "markdown": "'open_out' behaves differently on Windows and on Unix-like systems with respect to line endings. To get the same behavior everywhere, use 'open_out_bin' or 'open_out_gen [Open_binary]'. If you really want LF-to-CRLF translations to take place when running on Windows, use 'open_out_gen [Open_text]'.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ocaml.lang.portability.crlf-support.prefer-write-in-binary-mode)\n", + "text": "'open_out' behaves differently on Windows and on Unix-like systems with respect to line endings. To get the same behavior everywhere, use 'open_out_bin' or 'open_out_gen [Open_binary]'. If you really want LF-to-CRLF translations to take place when running on Windows, use 'open_out_gen [Open_text]'." + }, + "helpUri": "https://semgrep.dev/r/ocaml.lang.portability.crlf-support.prefer-write-in-binary-mode", + "id": "ocaml.lang.portability.crlf-support.prefer-write-in-binary-mode", + "name": "ocaml.lang.portability.crlf-support.prefer-write-in-binary-mode", + "properties": { + "precision": "very-high", + "tags": [] + }, + "shortDescription": { + "text": "Semgrep Finding: ocaml.lang.portability.crlf-support.prefer-write-in-binary-mode" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Found an insecure gRPC connection. This creates a connection without encryption to a gRPC client/server. A malicious attacker could tamper with the gRPC message, which could compromise the machine." + }, + "help": { + "markdown": "Found an insecure gRPC connection. This creates a connection without encryption to a gRPC client/server. A malicious attacker could tamper with the gRPC message, which could compromise the machine.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.grpc.security.grpc-nodejs-insecure-connection.grpc-nodejs-insecure-connection)\n - [https://blog.gopheracademy.com/advent-2017/go-grpc-beyond-basics/#:~:text=disables%20transport%20security](https://blog.gopheracademy.com/advent-2017/go-grpc-beyond-basics/#:~:text=disables%20transport%20security)\n", + "text": "Found an insecure gRPC connection. This creates a connection without encryption to a gRPC client/server. A malicious attacker could tamper with the gRPC message, which could compromise the machine." + }, + "helpUri": "https://semgrep.dev/r/javascript.grpc.security.grpc-nodejs-insecure-connection.grpc-nodejs-insecure-connection", + "id": "javascript.grpc.security.grpc-nodejs-insecure-connection.grpc-nodejs-insecure-connection", + "name": "javascript.grpc.security.grpc-nodejs-insecure-connection.grpc-nodejs-insecure-connection", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-502: Deserialization of Untrusted Data", + "LOW CONFIDENCE", + "OWASP-A08:2017 - Insecure Deserialization", + "OWASP-A08:2021 - Software and Data Integrity Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.grpc.security.grpc-nodejs-insecure-connection.grpc-nodejs-insecure-connection" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Cannot determine what '$UNK' is and it is used with a '` is not properly encoded." + }, + "help": { + "markdown": "Unencoded JSON in HTML context is vulnerable to cross-site scripting, because `` is not properly encoded.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/csharp.razor.security.html-raw-json.html-raw-json)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "Unencoded JSON in HTML context is vulnerable to cross-site scripting, because `` is not properly encoded." + }, + "helpUri": "https://semgrep.dev/r/csharp.razor.security.html-raw-json.html-raw-json", + "id": "csharp.razor.security.html-raw-json.html-raw-json", + "name": "csharp.razor.security.html-raw-json.html-raw-json", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: csharp.razor.security.html-raw-json.html-raw-json" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Calling mb_ereg_replace with user input in the options can lead to arbitrary code execution. The eval modifier (`e`) evaluates the replacement argument as code." + }, + "help": { + "markdown": "Calling mb_ereg_replace with user input in the options can lead to arbitrary code execution. The eval modifier (`e`) evaluates the replacement argument as code.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/php.lang.security.mb-ereg-replace-eval.mb-ereg-replace-eval)\n - [https://www.php.net/manual/en/function.mb-ereg-replace.php](https://www.php.net/manual/en/function.mb-ereg-replace.php)\n - [https://www.php.net/manual/en/function.mb-regex-set-options.php](https://www.php.net/manual/en/function.mb-regex-set-options.php)\n", + "text": "Calling mb_ereg_replace with user input in the options can lead to arbitrary code execution. The eval modifier (`e`) evaluates the replacement argument as code." + }, + "helpUri": "https://semgrep.dev/r/php.lang.security.mb-ereg-replace-eval.mb-ereg-replace-eval", + "id": "php.lang.security.mb-ereg-replace-eval.mb-ereg-replace-eval", + "name": "php.lang.security.mb-ereg-replace-eval.mb-ereg-replace-eval", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-94: Improper Control of Generation of Code ('Code Injection')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: php.lang.security.mb-ereg-replace-eval.mb-ereg-replace-eval" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected non-static command inside $EXEC. Audit the input to '$EXEC'. If unverified user data can reach this call site, this is a code injection vulnerability. A malicious actor can inject a malicious script to execute arbitrary code." + }, + "help": { + "markdown": "Detected non-static command inside $EXEC. Audit the input to '$EXEC'. If unverified user data can reach this call site, this is a code injection vulnerability. A malicious actor can inject a malicious script to execute arbitrary code.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ruby.lang.security.dangerous-exec.dangerous-exec)\n - [https://guides.rubyonrails.org/security.html#command-line-injection](https://guides.rubyonrails.org/security.html#command-line-injection)\n", + "text": "Detected non-static command inside $EXEC. Audit the input to '$EXEC'. If unverified user data can reach this call site, this is a code injection vulnerability. A malicious actor can inject a malicious script to execute arbitrary code." + }, + "helpUri": "https://semgrep.dev/r/ruby.lang.security.dangerous-exec.dangerous-exec", + "id": "ruby.lang.security.dangerous-exec.dangerous-exec", + "name": "ruby.lang.security.dangerous-exec.dangerous-exec", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-94: Improper Control of Generation of Code ('Code Injection')", + "MEDIUM CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: ruby.lang.security.dangerous-exec.dangerous-exec" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Ensure EFS filesystem is encrypted at rest using KMS CMKs. CMKs gives you control over the encryption key in terms of access and rotation." + }, + "help": { + "markdown": "Ensure EFS filesystem is encrypted at rest using KMS CMKs. CMKs gives you control over the encryption key in terms of access and rotation.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.aws.security.aws-efs-filesystem-encrypted-with-cmk.aws-efs-filesystem-encrypted-with-cmk)\n - [https://owasp.org/Top10/A02_2021-Cryptographic_Failures](https://owasp.org/Top10/A02_2021-Cryptographic_Failures)\n", + "text": "Ensure EFS filesystem is encrypted at rest using KMS CMKs. CMKs gives you control over the encryption key in terms of access and rotation." + }, + "helpUri": "https://semgrep.dev/r/terraform.aws.security.aws-efs-filesystem-encrypted-with-cmk.aws-efs-filesystem-encrypted-with-cmk", + "id": "terraform.aws.security.aws-efs-filesystem-encrypted-with-cmk.aws-efs-filesystem-encrypted-with-cmk", + "name": "terraform.aws.security.aws-efs-filesystem-encrypted-with-cmk.aws-efs-filesystem-encrypted-with-cmk", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-320: CWE CATEGORY: Key Management Errors", + "MEDIUM CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.aws.security.aws-efs-filesystem-encrypted-with-cmk.aws-efs-filesystem-encrypted-with-cmk" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Checks for outgoing connections to ftp servers with the 'net/ftp' package. FTP does not encrypt traffic, possibly leading to PII being sent plaintext over the network. Instead, connect via the SFTP protocol." + }, + "help": { + "markdown": "Checks for outgoing connections to ftp servers with the 'net/ftp' package. FTP does not encrypt traffic, possibly leading to PII being sent plaintext over the network. Instead, connect via the SFTP protocol.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/problem-based-packs.insecure-transport.ruby-stdlib.net-ftp-request.net-ftp-request)\n - [https://docs.ruby-lang.org/en/2.0.0/Net/FTP.html](https://docs.ruby-lang.org/en/2.0.0/Net/FTP.html)\n", + "text": "Checks for outgoing connections to ftp servers with the 'net/ftp' package. FTP does not encrypt traffic, possibly leading to PII being sent plaintext over the network. Instead, connect via the SFTP protocol." + }, + "helpUri": "https://semgrep.dev/r/problem-based-packs.insecure-transport.ruby-stdlib.net-ftp-request.net-ftp-request", + "id": "problem-based-packs.insecure-transport.ruby-stdlib.net-ftp-request.net-ftp-request", + "name": "problem-based-packs.insecure-transport.ruby-stdlib.net-ftp-request.net-ftp-request", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-319: Cleartext Transmission of Sensitive Information", + "MEDIUM CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: problem-based-packs.insecure-transport.ruby-stdlib.net-ftp-request.net-ftp-request" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "The package `net/http/cgi` is on the import blocklist. The package is vulnerable to httpoxy attacks (CVE-2015-5386). It is recommended to use `net/http` or a web framework to build a web application instead." + }, + "help": { + "markdown": "The package `net/http/cgi` is on the import blocklist. The package is vulnerable to httpoxy attacks (CVE-2015-5386). It is recommended to use `net/http` or a web framework to build a web application instead.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/go.lang.security.audit.crypto.bad_imports.insecure-module-used)\n - [https://godoc.org/golang.org/x/crypto/sha3](https://godoc.org/golang.org/x/crypto/sha3)\n", + "text": "The package `net/http/cgi` is on the import blocklist. The package is vulnerable to httpoxy attacks (CVE-2015-5386). It is recommended to use `net/http` or a web framework to build a web application instead." + }, + "helpUri": "https://semgrep.dev/r/go.lang.security.audit.crypto.bad_imports.insecure-module-used", + "id": "go.lang.security.audit.crypto.bad_imports.insecure-module-used", + "name": "go.lang.security.audit.crypto.bad_imports.insecure-module-used", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-327: Use of a Broken or Risky Cryptographic Algorithm", + "MEDIUM CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: go.lang.security.audit.crypto.bad_imports.insecure-module-used" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Found a formatted string in BashOperator: $CMD. This could be vulnerable to injection. Be extra sure your variables are not controllable by external sources." + }, + "help": { + "markdown": "Found a formatted string in BashOperator: $CMD. This could be vulnerable to injection. Be extra sure your variables are not controllable by external sources.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.airflow.security.audit.formatted-string-bashoperator.formatted-string-bashoperator)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "Found a formatted string in BashOperator: $CMD. This could be vulnerable to injection. Be extra sure your variables are not controllable by external sources." + }, + "helpUri": "https://semgrep.dev/r/python.airflow.security.audit.formatted-string-bashoperator.formatted-string-bashoperator", + "id": "python.airflow.security.audit.formatted-string-bashoperator.formatted-string-bashoperator", + "name": "python.airflow.security.audit.formatted-string-bashoperator.formatted-string-bashoperator", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')", + "LOW CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.airflow.security.audit.formatted-string-bashoperator.formatted-string-bashoperator" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "$type extension has the potential to be unsafe, so use it with common sense and known json sources and not public facing ones to be safe" + }, + "help": { + "markdown": "$type extension has the potential to be unsafe, so use it with common sense and known json sources and not public facing ones to be safe\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/csharp.lang.security.insecure-deserialization.fast-json.insecure-fastjson-deserialization)\n - [https://github.com/mgholam/fastJSON#security-warning-update](https://github.com/mgholam/fastJSON#security-warning-update)\n", + "text": "$type extension has the potential to be unsafe, so use it with common sense and known json sources and not public facing ones to be safe" + }, + "helpUri": "https://semgrep.dev/r/csharp.lang.security.insecure-deserialization.fast-json.insecure-fastjson-deserialization", + "id": "csharp.lang.security.insecure-deserialization.fast-json.insecure-fastjson-deserialization", + "name": "csharp.lang.security.insecure-deserialization.fast-json.insecure-fastjson-deserialization", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-502: Deserialization of Untrusted Data", + "LOW CONFIDENCE", + "OWASP-A08:2017 - Insecure Deserialization", + "OWASP-A08:2021 - Software and Data Integrity Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: csharp.lang.security.insecure-deserialization.fast-json.insecure-fastjson-deserialization" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "You should probably use Filename.get_temp_dirname()." + }, + "help": { + "markdown": "You should probably use Filename.get_temp_dirname().\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ocaml.lang.portability.slash-tmp.not-portable-tmp-string)\n", + "text": "You should probably use Filename.get_temp_dirname()." + }, + "helpUri": "https://semgrep.dev/r/ocaml.lang.portability.slash-tmp.not-portable-tmp-string", + "id": "ocaml.lang.portability.slash-tmp.not-portable-tmp-string", + "name": "ocaml.lang.portability.slash-tmp.not-portable-tmp-string", + "properties": { + "precision": "very-high", + "tags": [] + }, + "shortDescription": { + "text": "Semgrep Finding: ocaml.lang.portability.slash-tmp.not-portable-tmp-string" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected direct use of jinja2. If not done properly, this may bypass HTML escaping which opens up the application to cross-site scripting (XSS) vulnerabilities. Prefer using the Flask method 'render_template()' and templates with a '.html' extension in order to prevent XSS." + }, + "help": { + "markdown": "Detected direct use of jinja2. If not done properly, this may bypass HTML escaping which opens up the application to cross-site scripting (XSS) vulnerabilities. Prefer using the Flask method 'render_template()' and templates with a '.html' extension in order to prevent XSS.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.flask.security.xss.audit.direct-use-of-jinja2.direct-use-of-jinja2)\n - [https://jinja.palletsprojects.com/en/2.11.x/api/#basics](https://jinja.palletsprojects.com/en/2.11.x/api/#basics)\n", + "text": "Detected direct use of jinja2. If not done properly, this may bypass HTML escaping which opens up the application to cross-site scripting (XSS) vulnerabilities. Prefer using the Flask method 'render_template()' and templates with a '.html' extension in order to prevent XSS." + }, + "helpUri": "https://semgrep.dev/r/python.flask.security.xss.audit.direct-use-of-jinja2.direct-use-of-jinja2", + "id": "python.flask.security.xss.audit.direct-use-of-jinja2.direct-use-of-jinja2", + "name": "python.flask.security.xss.audit.direct-use-of-jinja2.direct-use-of-jinja2", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.flask.security.xss.audit.direct-use-of-jinja2.direct-use-of-jinja2" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "When using `System.Text.RegularExpressions` to process untrusted input, pass a timeout. A malicious user can provide input to `RegularExpressions` that abuses the backtracking behaviour of this regular expression engine. This will lead to excessive CPU usage, causing a Denial-of-Service attack" + }, + "help": { + "markdown": "When using `System.Text.RegularExpressions` to process untrusted input, pass a timeout. A malicious user can provide input to `RegularExpressions` that abuses the backtracking behaviour of this regular expression engine. This will lead to excessive CPU usage, causing a Denial-of-Service attack\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/csharp.lang.security.regular-expression-dos.regular-expression-dos.regular-expression-dos)\n - [https://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_ReDoS](https://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_ReDoS)\n - [https://docs.microsoft.com/en-us/dotnet/standard/base-types/regular-expressions#regular-expression-examples](https://docs.microsoft.com/en-us/dotnet/standard/base-types/regular-expressions#regular-expression-examples)\n", + "text": "When using `System.Text.RegularExpressions` to process untrusted input, pass a timeout. A malicious user can provide input to `RegularExpressions` that abuses the backtracking behaviour of this regular expression engine. This will lead to excessive CPU usage, causing a Denial-of-Service attack" + }, + "helpUri": "https://semgrep.dev/r/csharp.lang.security.regular-expression-dos.regular-expression-dos.regular-expression-dos", + "id": "csharp.lang.security.regular-expression-dos.regular-expression-dos.regular-expression-dos", + "name": "csharp.lang.security.regular-expression-dos.regular-expression-dos.regular-expression-dos", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-1333: Inefficient Regular Expression Complexity", + "MEDIUM CONFIDENCE", + "OWASP-A01:2017 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: csharp.lang.security.regular-expression-dos.regular-expression-dos.regular-expression-dos" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Ensure FSX Lustre file system is encrypted at rest using KMS CMKs. CMKs gives you control over the encryption key in terms of access and rotation." + }, + "help": { + "markdown": "Ensure FSX Lustre file system is encrypted at rest using KMS CMKs. CMKs gives you control over the encryption key in terms of access and rotation.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.aws.security.aws-fsx-lustre-filesystem-encrypted-with-cmk.aws-fsx-lustre-filesystem-encrypted-with-cmk)\n - [https://owasp.org/Top10/A04_2021-Insecure_Design](https://owasp.org/Top10/A04_2021-Insecure_Design)\n", + "text": "Ensure FSX Lustre file system is encrypted at rest using KMS CMKs. CMKs gives you control over the encryption key in terms of access and rotation." + }, + "helpUri": "https://semgrep.dev/r/terraform.aws.security.aws-fsx-lustre-filesystem-encrypted-with-cmk.aws-fsx-lustre-filesystem-encrypted-with-cmk", + "id": "terraform.aws.security.aws-fsx-lustre-filesystem-encrypted-with-cmk.aws-fsx-lustre-filesystem-encrypted-with-cmk", + "name": "terraform.aws.security.aws-fsx-lustre-filesystem-encrypted-with-cmk.aws-fsx-lustre-filesystem-encrypted-with-cmk", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-311: Missing Encryption of Sensitive Data", + "LOW CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "OWASP-A04:2021 - Insecure Design", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.aws.security.aws-fsx-lustre-filesystem-encrypted-with-cmk.aws-fsx-lustre-filesystem-encrypted-with-cmk" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Found user-controlled request data passed into a HttpResponseBadRequest. This could be vulnerable to XSS, leading to attackers gaining access to user cookies and protected information. Ensure that the request data is properly escaped or sanitzed." + }, + "help": { + "markdown": "Found user-controlled request data passed into a HttpResponseBadRequest. This could be vulnerable to XSS, leading to attackers gaining access to user cookies and protected information. Ensure that the request data is properly escaped or sanitzed.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.django.security.injection.reflected-data-httpresponsebadrequest.reflected-data-httpresponsebadrequest)\n - [https://django-book.readthedocs.io/en/latest/chapter20.html#cross-site-scripting-xss](https://django-book.readthedocs.io/en/latest/chapter20.html#cross-site-scripting-xss)\n", + "text": "Found user-controlled request data passed into a HttpResponseBadRequest. This could be vulnerable to XSS, leading to attackers gaining access to user cookies and protected information. Ensure that the request data is properly escaped or sanitzed." + }, + "helpUri": "https://semgrep.dev/r/python.django.security.injection.reflected-data-httpresponsebadrequest.reflected-data-httpresponsebadrequest", + "id": "python.django.security.injection.reflected-data-httpresponsebadrequest.reflected-data-httpresponsebadrequest", + "name": "python.django.security.injection.reflected-data-httpresponsebadrequest.reflected-data-httpresponsebadrequest", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "MEDIUM CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.django.security.injection.reflected-data-httpresponsebadrequest.reflected-data-httpresponsebadrequest" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Prefer Argon2id where possible. Per RFC9016, section 4 IETF recommends selecting Argon2id unless you can guarantee an adversary has no direct access to the computing environment." + }, + "help": { + "markdown": "Prefer Argon2id where possible. Per RFC9016, section 4 IETF recommends selecting Argon2id unless you can guarantee an adversary has no direct access to the computing environment.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.argon2.security.unsafe-argon2-config.unsafe-argon2-config)\n - [https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html](https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html)\n - [https://eprint.iacr.org/2016/759.pdf](https://eprint.iacr.org/2016/759.pdf)\n - [https://www.cs.tau.ac.il/~tromer/papers/cache-joc-20090619.pdf](https://www.cs.tau.ac.il/~tromer/papers/cache-joc-20090619.pdf)\n - [https://datatracker.ietf.org/doc/html/rfc9106#section-4](https://datatracker.ietf.org/doc/html/rfc9106#section-4)\n", + "text": "Prefer Argon2id where possible. Per RFC9016, section 4 IETF recommends selecting Argon2id unless you can guarantee an adversary has no direct access to the computing environment." + }, + "helpUri": "https://semgrep.dev/r/javascript.argon2.security.unsafe-argon2-config.unsafe-argon2-config", + "id": "javascript.argon2.security.unsafe-argon2-config.unsafe-argon2-config", + "name": "javascript.argon2.security.unsafe-argon2-config.unsafe-argon2-config", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-916: Use of Password Hash With Insufficient Computational Effort", + "MEDIUM CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.argon2.security.unsafe-argon2-config.unsafe-argon2-config" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "The following request $REQUEST.$METHOD() was found to be crafted from user-input `$REQ` which can lead to Server-Side Request Forgery (SSRF) vulnerabilities. It is recommended where possible to not allow user-input to craft the base request, but to be treated as part of the path or query parameter. When user-input is necessary to craft the request, it is recommeneded to follow OWASP best practices to prevent abuse. " + }, + "help": { + "markdown": "The following request $REQUEST.$METHOD() was found to be crafted from user-input `$REQ` which can lead to Server-Side Request Forgery (SSRF) vulnerabilities. It is recommended where possible to not allow user-input to craft the base request, but to be treated as part of the path or query parameter. When user-input is necessary to craft the request, it is recommeneded to follow OWASP best practices to prevent abuse. \n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.express.security.audit.express-ssrf.express-ssrf)\n - [https://cheatsheetseries.owasp.org/cheatsheets/Server_Side_Request_Forgery_Prevention_Cheat_Sheet.html](https://cheatsheetseries.owasp.org/cheatsheets/Server_Side_Request_Forgery_Prevention_Cheat_Sheet.html)\n", + "text": "The following request $REQUEST.$METHOD() was found to be crafted from user-input `$REQ` which can lead to Server-Side Request Forgery (SSRF) vulnerabilities. It is recommended where possible to not allow user-input to craft the base request, but to be treated as part of the path or query parameter. When user-input is necessary to craft the request, it is recommeneded to follow OWASP best practices to prevent abuse. " + }, + "helpUri": "https://semgrep.dev/r/javascript.express.security.audit.express-ssrf.express-ssrf", + "id": "javascript.express.security.audit.express-ssrf.express-ssrf", + "name": "javascript.express.security.audit.express-ssrf.express-ssrf", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-918: Server-Side Request Forgery (SSRF)", + "MEDIUM CONFIDENCE", + "OWASP-A10:2021 - Server-Side Request Forgery (SSRF)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.express.security.audit.express-ssrf.express-ssrf" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Triple DES (3DES or DESede) is considered deprecated. AES is the recommended cipher. Upgrade to use AES." + }, + "help": { + "markdown": "Triple DES (3DES or DESede) is considered deprecated. AES is the recommended cipher. Upgrade to use AES.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.lang.security.audit.crypto.desede-is-deprecated.desede-is-deprecated)\n - [https://csrc.nist.gov/News/2017/Update-to-Current-Use-and-Deprecation-of-TDEA](https://csrc.nist.gov/News/2017/Update-to-Current-Use-and-Deprecation-of-TDEA)\n", + "text": "Triple DES (3DES or DESede) is considered deprecated. AES is the recommended cipher. Upgrade to use AES." + }, + "helpUri": "https://semgrep.dev/r/java.lang.security.audit.crypto.desede-is-deprecated.desede-is-deprecated", + "id": "java.lang.security.audit.crypto.desede-is-deprecated.desede-is-deprecated", + "name": "java.lang.security.audit.crypto.desede-is-deprecated.desede-is-deprecated", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-326: Inadequate Encryption Strength", + "HIGH CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.lang.security.audit.crypto.desede-is-deprecated.desede-is-deprecated" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "If user input reaches `HoverProvider` while `supportHml` is set to `true` it may introduce an XSS vulnerability. Do not produce HTML for hovers with dynamically generated input." + }, + "help": { + "markdown": "If user input reaches `HoverProvider` while `supportHml` is set to `true` it may introduce an XSS vulnerability. Do not produce HTML for hovers with dynamically generated input.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.monaco-editor.security.audit.monaco-hover-htmlsupport.monaco-hover-htmlsupport)\n - [https://github.com/microsoft/monaco-editor/issues/801](https://github.com/microsoft/monaco-editor/issues/801)\n", + "text": "If user input reaches `HoverProvider` while `supportHml` is set to `true` it may introduce an XSS vulnerability. Do not produce HTML for hovers with dynamically generated input." + }, + "helpUri": "https://semgrep.dev/r/javascript.monaco-editor.security.audit.monaco-hover-htmlsupport.monaco-hover-htmlsupport", + "id": "javascript.monaco-editor.security.audit.monaco-hover-htmlsupport.monaco-hover-htmlsupport", + "name": "javascript.monaco-editor.security.audit.monaco-hover-htmlsupport.monaco-hover-htmlsupport", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.monaco-editor.security.audit.monaco-hover-htmlsupport.monaco-hover-htmlsupport" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "This rule is deprecated." + }, + "help": { + "markdown": "This rule is deprecated.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ruby.rails.security.audit.rails-check-page-caching-gem.rails-check-page-caching-gem)\n - [https://nvd.nist.gov/vuln/detail/CVE-2020-8159](https://nvd.nist.gov/vuln/detail/CVE-2020-8159)\n - [https://groups.google.com/g/rubyonrails-security/c/CFRVkEytdP8](https://groups.google.com/g/rubyonrails-security/c/CFRVkEytdP8)\n", + "text": "This rule is deprecated." + }, + "helpUri": "https://semgrep.dev/r/ruby.rails.security.audit.rails-check-page-caching-gem.rails-check-page-caching-gem", + "id": "ruby.rails.security.audit.rails-check-page-caching-gem.rails-check-page-caching-gem", + "name": "ruby.rails.security.audit.rails-check-page-caching-gem.rails-check-page-caching-gem", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')", + "LOW CONFIDENCE", + "OWASP-A01:2021 - Broken Access Control", + "OWASP-A05:2017 - Broken Access Control", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: ruby.rails.security.audit.rails-check-page-caching-gem.rails-check-page-caching-gem" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected MD5 hash algorithm which is considered insecure. MD5 is not collision resistant and is therefore not suitable as a cryptographic signature. Use HMAC instead." + }, + "help": { + "markdown": "Detected MD5 hash algorithm which is considered insecure. MD5 is not collision resistant and is therefore not suitable as a cryptographic signature. Use HMAC instead.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.lang.security.audit.crypto.use-of-md5-digest-utils.use-of-md5-digest-utils)\n - [https://owasp.org/Top10/A02_2021-Cryptographic_Failures](https://owasp.org/Top10/A02_2021-Cryptographic_Failures)\n", + "text": "Detected MD5 hash algorithm which is considered insecure. MD5 is not collision resistant and is therefore not suitable as a cryptographic signature. Use HMAC instead." + }, + "helpUri": "https://semgrep.dev/r/java.lang.security.audit.crypto.use-of-md5-digest-utils.use-of-md5-digest-utils", + "id": "java.lang.security.audit.crypto.use-of-md5-digest-utils.use-of-md5-digest-utils", + "name": "java.lang.security.audit.crypto.use-of-md5-digest-utils.use-of-md5-digest-utils", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-328: Use of Weak Hash", + "HIGH CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.lang.security.audit.crypto.use-of-md5-digest-utils.use-of-md5-digest-utils" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Found user data in a call to 'eval'. This is extremely dangerous because it can enable an attacker to execute remote code. See https://owasp.org/www-community/attacks/Code_Injection for more information." + }, + "help": { + "markdown": "Found user data in a call to 'eval'. This is extremely dangerous because it can enable an attacker to execute remote code. See https://owasp.org/www-community/attacks/Code_Injection for more information.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.django.security.injection.code.user-eval-format-string.user-eval-format-string)\n - [https://nedbatchelder.com/blog/201206/eval_really_is_dangerous.html](https://nedbatchelder.com/blog/201206/eval_really_is_dangerous.html)\n", + "text": "Found user data in a call to 'eval'. This is extremely dangerous because it can enable an attacker to execute remote code. See https://owasp.org/www-community/attacks/Code_Injection for more information." + }, + "helpUri": "https://semgrep.dev/r/python.django.security.injection.code.user-eval-format-string.user-eval-format-string", + "id": "python.django.security.injection.code.user-eval-format-string.user-eval-format-string", + "name": "python.django.security.injection.code.user-eval-format-string.user-eval-format-string", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')", + "MEDIUM CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.django.security.injection.code.user-eval-format-string.user-eval-format-string" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected input from a HTTPServletRequest going into a XPath evaluate or compile command. This could lead to xpath injection if variables passed into the evaluate or compile commands are not properly sanitized. Xpath injection could lead to unauthorized access to sensitive information in XML documents. Instead, thoroughly sanitize user input or use parameterized xpath queries if you can." + }, + "help": { + "markdown": "Detected input from a HTTPServletRequest going into a XPath evaluate or compile command. This could lead to xpath injection if variables passed into the evaluate or compile commands are not properly sanitized. Xpath injection could lead to unauthorized access to sensitive information in XML documents. Instead, thoroughly sanitize user input or use parameterized xpath queries if you can.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.lang.security.audit.tainted-xpath-from-http-request.tainted-xpath-from-http-request)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "Detected input from a HTTPServletRequest going into a XPath evaluate or compile command. This could lead to xpath injection if variables passed into the evaluate or compile commands are not properly sanitized. Xpath injection could lead to unauthorized access to sensitive information in XML documents. Instead, thoroughly sanitize user input or use parameterized xpath queries if you can." + }, + "helpUri": "https://semgrep.dev/r/java.lang.security.audit.tainted-xpath-from-http-request.tainted-xpath-from-http-request", + "id": "java.lang.security.audit.tainted-xpath-from-http-request.tainted-xpath-from-http-request", + "name": "java.lang.security.audit.tainted-xpath-from-http-request.tainted-xpath-from-http-request", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-643: Improper Neutralization of Data within XPath Expressions ('XPath Injection')", + "MEDIUM CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.lang.security.audit.tainted-xpath-from-http-request.tainted-xpath-from-http-request" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Avoid using insecure deserialization library, backed by `pickle`, `_pickle`, `cpickle`, `dill`, `shelve`, or `yaml`, which are known to lead to remote code execution vulnerabilities." + }, + "help": { + "markdown": "Avoid using insecure deserialization library, backed by `pickle`, `_pickle`, `cpickle`, `dill`, `shelve`, or `yaml`, which are known to lead to remote code execution vulnerabilities.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.django.security.audit.avoid-insecure-deserialization.avoid-insecure-deserialization)\n - [https://docs.python.org/3/library/pickle.html](https://docs.python.org/3/library/pickle.html)\n", + "text": "Avoid using insecure deserialization library, backed by `pickle`, `_pickle`, `cpickle`, `dill`, `shelve`, or `yaml`, which are known to lead to remote code execution vulnerabilities." + }, + "helpUri": "https://semgrep.dev/r/python.django.security.audit.avoid-insecure-deserialization.avoid-insecure-deserialization", + "id": "python.django.security.audit.avoid-insecure-deserialization.avoid-insecure-deserialization", + "name": "python.django.security.audit.avoid-insecure-deserialization.avoid-insecure-deserialization", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-502: Deserialization of Untrusted Data", + "MEDIUM CONFIDENCE", + "OWASP-A08:2017 - Insecure Deserialization", + "OWASP-A08:2021 - Software and Data Integrity Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.django.security.audit.avoid-insecure-deserialization.avoid-insecure-deserialization" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "A specially crafted calldata may be used to impersonate other accounts" + }, + "help": { + "markdown": "A specially crafted calldata may be used to impersonate other accounts\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/solidity.security.superfluid-ctx-injection.superfluid-ctx-injection)\n - [https://rekt.news/superfluid-rekt/](https://rekt.news/superfluid-rekt/)\n - [https://medium.com/superfluid-blog/08-02-22-exploit-post-mortem-15ff9c97cdd](https://medium.com/superfluid-blog/08-02-22-exploit-post-mortem-15ff9c97cdd)\n - [https://polygonscan.com/address/0x07711bb6dfbc99a1df1f2d7f57545a67519941e7](https://polygonscan.com/address/0x07711bb6dfbc99a1df1f2d7f57545a67519941e7)\n", + "text": "A specially crafted calldata may be used to impersonate other accounts" + }, + "helpUri": "https://semgrep.dev/r/solidity.security.superfluid-ctx-injection.superfluid-ctx-injection", + "id": "solidity.security.superfluid-ctx-injection.superfluid-ctx-injection", + "name": "solidity.security.superfluid-ctx-injection.superfluid-ctx-injection", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-20: Improper Input Validation", + "HIGH CONFIDENCE", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: solidity.security.superfluid-ctx-injection.superfluid-ctx-injection" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected the decoding of a JWT token without a verify step. Don't use `ParseUnverified` unless you know what you're doing This method parses the token but doesn't validate the signature. It's only ever useful in cases where you know the signature is valid (because it has been checked previously in the stack) and you want to extract values from it." + }, + "help": { + "markdown": "Detected the decoding of a JWT token without a verify step. Don't use `ParseUnverified` unless you know what you're doing This method parses the token but doesn't validate the signature. It's only ever useful in cases where you know the signature is valid (because it has been checked previously in the stack) and you want to extract values from it.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/go.jwt-go.security.audit.jwt-parse-unverified.jwt-go-parse-unverified)\n - [https://owasp.org/Top10/A08_2021-Software_and_Data_Integrity_Failures](https://owasp.org/Top10/A08_2021-Software_and_Data_Integrity_Failures)\n", + "text": "Detected the decoding of a JWT token without a verify step. Don't use `ParseUnverified` unless you know what you're doing This method parses the token but doesn't validate the signature. It's only ever useful in cases where you know the signature is valid (because it has been checked previously in the stack) and you want to extract values from it." + }, + "helpUri": "https://semgrep.dev/r/go.jwt-go.security.audit.jwt-parse-unverified.jwt-go-parse-unverified", + "id": "go.jwt-go.security.audit.jwt-parse-unverified.jwt-go-parse-unverified", + "name": "go.jwt-go.security.audit.jwt-parse-unverified.jwt-go-parse-unverified", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-345: Insufficient Verification of Data Authenticity", + "MEDIUM CONFIDENCE", + "OWASP-A08:2021 - Software and Data Integrity Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: go.jwt-go.security.audit.jwt-parse-unverified.jwt-go-parse-unverified" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "CodeClimate detected" + }, + "help": { + "markdown": "CodeClimate detected\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/generic.secrets.security.detected-codeclimate.detected-codeclimate)\n - [https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures](https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures)\n", + "text": "CodeClimate detected" + }, + "helpUri": "https://semgrep.dev/r/generic.secrets.security.detected-codeclimate.detected-codeclimate", + "id": "generic.secrets.security.detected-codeclimate.detected-codeclimate", + "name": "generic.secrets.security.detected-codeclimate.detected-codeclimate", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-798: Use of Hard-coded Credentials", + "LOW CONFIDENCE", + "OWASP-A07:2021 - Identification and Authentication Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: generic.secrets.security.detected-codeclimate.detected-codeclimate" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Detected use of xmlrpc. xmlrpc is not inherently safe from vulnerabilities. Use defusedxml.xmlrpc instead." + }, + "help": { + "markdown": "Detected use of xmlrpc. xmlrpc is not inherently safe from vulnerabilities. Use defusedxml.xmlrpc instead.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.lang.security.use-defused-xmlrpc.use-defused-xmlrpc)\n - [https://pypi.org/project/defusedxml/](https://pypi.org/project/defusedxml/)\n - [https://docs.python.org/3/library/xml.html#xml-vulnerabilities](https://docs.python.org/3/library/xml.html#xml-vulnerabilities)\n", + "text": "Detected use of xmlrpc. xmlrpc is not inherently safe from vulnerabilities. Use defusedxml.xmlrpc instead." + }, + "helpUri": "https://semgrep.dev/r/python.lang.security.use-defused-xmlrpc.use-defused-xmlrpc", + "id": "python.lang.security.use-defused-xmlrpc.use-defused-xmlrpc", + "name": "python.lang.security.use-defused-xmlrpc.use-defused-xmlrpc", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-776: Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion')", + "LOW CONFIDENCE", + "OWASP-A04:2017 - XML External Entities (XXE)", + "OWASP-A05:2021 - Security Misconfiguration", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.lang.security.use-defused-xmlrpc.use-defused-xmlrpc" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Functions reliant on pickle can result in arbitrary code execution. Consider using fickling or switching to a safer serialization method" + }, + "help": { + "markdown": "Functions reliant on pickle can result in arbitrary code execution. Consider using fickling or switching to a safer serialization method\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/trailofbits.python.pickles-in-pandas.pickles-in-pandas)\n - [https://blog.trailofbits.com/2021/03/15/never-a-dill-moment-exploiting-machine-learning-pickle-files/](https://blog.trailofbits.com/2021/03/15/never-a-dill-moment-exploiting-machine-learning-pickle-files/)\n", + "text": "Functions reliant on pickle can result in arbitrary code execution. Consider using fickling or switching to a safer serialization method" + }, + "helpUri": "https://semgrep.dev/r/trailofbits.python.pickles-in-pandas.pickles-in-pandas", + "id": "trailofbits.python.pickles-in-pandas.pickles-in-pandas", + "name": "trailofbits.python.pickles-in-pandas.pickles-in-pandas", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-502: Deserialization of Untrusted Data", + "MEDIUM CONFIDENCE", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: trailofbits.python.pickles-in-pandas.pickles-in-pandas" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Use of AES with no settings detected. By default, java.crypto.Cipher uses ECB mode. ECB doesn't provide message confidentiality and is not semantically secure so should not be used. Instead, use a strong, secure cipher: java.crypto.Cipher.getInstance(\"AES/CBC/PKCS7PADDING\"). See https://owasp.org/www-community/Using_the_Java_Cryptographic_Extensions for more information." + }, + "help": { + "markdown": "Use of AES with no settings detected. By default, java.crypto.Cipher uses ECB mode. ECB doesn't provide message confidentiality and is not semantically secure so should not be used. Instead, use a strong, secure cipher: java.crypto.Cipher.getInstance(\"AES/CBC/PKCS7PADDING\"). See https://owasp.org/www-community/Using_the_Java_Cryptographic_Extensions for more information.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.lang.security.audit.crypto.use-of-default-aes.use-of-default-aes)\n - [https://owasp.org/Top10/A02_2021-Cryptographic_Failures](https://owasp.org/Top10/A02_2021-Cryptographic_Failures)\n - [https://googleprojectzero.blogspot.com/2022/10/rc4-is-still-considered-harmful.html](https://googleprojectzero.blogspot.com/2022/10/rc4-is-still-considered-harmful.html)\n", + "text": "Use of AES with no settings detected. By default, java.crypto.Cipher uses ECB mode. ECB doesn't provide message confidentiality and is not semantically secure so should not be used. Instead, use a strong, secure cipher: java.crypto.Cipher.getInstance(\"AES/CBC/PKCS7PADDING\"). See https://owasp.org/www-community/Using_the_Java_Cryptographic_Extensions for more information." + }, + "helpUri": "https://semgrep.dev/r/java.lang.security.audit.crypto.use-of-default-aes.use-of-default-aes", + "id": "java.lang.security.audit.crypto.use-of-default-aes.use-of-default-aes", + "name": "java.lang.security.audit.crypto.use-of-default-aes.use-of-default-aes", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-327: Use of a Broken or Risky Cryptographic Algorithm", + "HIGH CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.lang.security.audit.crypto.use-of-default-aes.use-of-default-aes" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Untrusted user input in `importlib.import_module()` function allows an attacker to load arbitrary code. Avoid dynamic values in `importlib.import_module()` or use a whitelist to prevent running untrusted code." + }, + "help": { + "markdown": "Untrusted user input in `importlib.import_module()` function allows an attacker to load arbitrary code. Avoid dynamic values in `importlib.import_module()` or use a whitelist to prevent running untrusted code.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.lang.security.audit.non-literal-import.non-literal-import)\n - [https://owasp.org/Top10/A01_2021-Broken_Access_Control](https://owasp.org/Top10/A01_2021-Broken_Access_Control)\n", + "text": "Untrusted user input in `importlib.import_module()` function allows an attacker to load arbitrary code. Avoid dynamic values in `importlib.import_module()` or use a whitelist to prevent running untrusted code." + }, + "helpUri": "https://semgrep.dev/r/python.lang.security.audit.non-literal-import.non-literal-import", + "id": "python.lang.security.audit.non-literal-import.non-literal-import", + "name": "python.lang.security.audit.non-literal-import.non-literal-import", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-706: Use of Incorrectly-Resolved Name or Reference", + "LOW CONFIDENCE", + "OWASP-A01:2021 - Broken Access Control", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.lang.security.audit.non-literal-import.non-literal-import" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected ARC4 cipher algorithm which is considered insecure. This algorithm is not cryptographically secure and can be reversed easily. Use AES instead." + }, + "help": { + "markdown": "Detected ARC4 cipher algorithm which is considered insecure. This algorithm is not cryptographically secure and can be reversed easily. Use AES instead.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.pycryptodome.security.insecure-cipher-algorithm-rc4.insecure-cipher-algorithm-rc4)\n - [https://cwe.mitre.org/data/definitions/326.html](https://cwe.mitre.org/data/definitions/326.html)\n", + "text": "Detected ARC4 cipher algorithm which is considered insecure. This algorithm is not cryptographically secure and can be reversed easily. Use AES instead." + }, + "helpUri": "https://semgrep.dev/r/python.pycryptodome.security.insecure-cipher-algorithm-rc4.insecure-cipher-algorithm-rc4", + "id": "python.pycryptodome.security.insecure-cipher-algorithm-rc4.insecure-cipher-algorithm-rc4", + "name": "python.pycryptodome.security.insecure-cipher-algorithm-rc4.insecure-cipher-algorithm-rc4", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-327: Use of a Broken or Risky Cryptographic Algorithm", + "MEDIUM CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.pycryptodome.security.insecure-cipher-algorithm-rc4.insecure-cipher-algorithm-rc4" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "A expression is built with a dynamic value. The source of the value(s) should be verified to avoid that unfiltered values fall into this risky code evaluation." + }, + "help": { + "markdown": "A expression is built with a dynamic value. The source of the value(s) should be verified to avoid that unfiltered values fall into this risky code evaluation.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.lang.security.audit.ognl-injection.ognl-injection)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "A expression is built with a dynamic value. The source of the value(s) should be verified to avoid that unfiltered values fall into this risky code evaluation." + }, + "helpUri": "https://semgrep.dev/r/java.lang.security.audit.ognl-injection.ognl-injection", + "id": "java.lang.security.audit.ognl-injection.ognl-injection", + "name": "java.lang.security.audit.ognl-injection.ognl-injection", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-94: Improper Control of Generation of Code ('Code Injection')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.lang.security.audit.ognl-injection.ognl-injection" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "ERC777 tokensReceived() reentrancy" + }, + "help": { + "markdown": "ERC777 tokensReceived() reentrancy\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/solidity.security.erc777-reentrancy.erc777-reentrancy)\n - [https://mirror.xyz/baconcoin.eth/LHaPiX38mnx8eJ2RVKNXHttHfweQMKNGmEnX4KUksk0](https://mirror.xyz/baconcoin.eth/LHaPiX38mnx8eJ2RVKNXHttHfweQMKNGmEnX4KUksk0)\n - [https://etherscan.io/address/0xf53f00f844b381963a47fde3325011566870b31f](https://etherscan.io/address/0xf53f00f844b381963a47fde3325011566870b31f)\n", + "text": "ERC777 tokensReceived() reentrancy" + }, + "helpUri": "https://semgrep.dev/r/solidity.security.erc777-reentrancy.erc777-reentrancy", + "id": "solidity.security.erc777-reentrancy.erc777-reentrancy", + "name": "solidity.security.erc777-reentrancy.erc777-reentrancy", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-841: Improper Enforcement of Behavioral Workflow", + "HIGH CONFIDENCE", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: solidity.security.erc777-reentrancy.erc777-reentrancy" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected non-static command inside `...`. If unverified user data can reach this call site, this is a code injection vulnerability. A malicious actor can inject a malicious script to execute arbitrary code." + }, + "help": { + "markdown": "Detected non-static command inside `...`. If unverified user data can reach this call site, this is a code injection vulnerability. A malicious actor can inject a malicious script to execute arbitrary code.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ruby.lang.security.dangerous-subshell.dangerous-subshell)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "Detected non-static command inside `...`. If unverified user data can reach this call site, this is a code injection vulnerability. A malicious actor can inject a malicious script to execute arbitrary code." + }, + "helpUri": "https://semgrep.dev/r/ruby.lang.security.dangerous-subshell.dangerous-subshell", + "id": "ruby.lang.security.dangerous-subshell.dangerous-subshell", + "name": "ruby.lang.security.dangerous-subshell.dangerous-subshell", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-94: Improper Control of Generation of Code ('Code Injection')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: ruby.lang.security.dangerous-subshell.dangerous-subshell" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Unverified SSL context detected. This will permit insecure connections without verifying SSL certificates. Use 'ssl.create_default_context()' instead." + }, + "help": { + "markdown": "Unverified SSL context detected. This will permit insecure connections without verifying SSL certificates. Use 'ssl.create_default_context()' instead.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.lang.security.audit.paramiko.paramiko-exec-command.paramiko-exec-command)\n - [http://docs.paramiko.org/en/stable/api/client.html#paramiko.client.SSHClient.exec_command](http://docs.paramiko.org/en/stable/api/client.html#paramiko.client.SSHClient.exec_command)\n - [https://github.com/PyCQA/bandit/blob/d5f8fa0d89d7b11442fc6ec80ca42953974354c8/bandit/plugins/injection_paramiko.py](https://github.com/PyCQA/bandit/blob/d5f8fa0d89d7b11442fc6ec80ca42953974354c8/bandit/plugins/injection_paramiko.py)\n", + "text": "Unverified SSL context detected. This will permit insecure connections without verifying SSL certificates. Use 'ssl.create_default_context()' instead." + }, + "helpUri": "https://semgrep.dev/r/python.lang.security.audit.paramiko.paramiko-exec-command.paramiko-exec-command", + "id": "python.lang.security.audit.paramiko.paramiko-exec-command.paramiko-exec-command", + "name": "python.lang.security.audit.paramiko.paramiko-exec-command.paramiko-exec-command", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')", + "LOW CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.lang.security.audit.paramiko.paramiko-exec-command.paramiko-exec-command" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Database instance has no logging. Missing logs can cause missing important event information." + }, + "help": { + "markdown": "Database instance has no logging. Missing logs can cause missing important event information.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.aws.security.aws-db-instance-no-logging.aws-db-instance-no-logging)\n - [https://owasp.org/Top10/A04_2021-Insecure_Design](https://owasp.org/Top10/A04_2021-Insecure_Design)\n", + "text": "Database instance has no logging. Missing logs can cause missing important event information." + }, + "helpUri": "https://semgrep.dev/r/terraform.aws.security.aws-db-instance-no-logging.aws-db-instance-no-logging", + "id": "terraform.aws.security.aws-db-instance-no-logging.aws-db-instance-no-logging", + "name": "terraform.aws.security.aws-db-instance-no-logging.aws-db-instance-no-logging", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-311: Missing Encryption of Sensitive Data", + "MEDIUM CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "OWASP-A04:2021 - Insecure Design", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.aws.security.aws-db-instance-no-logging.aws-db-instance-no-logging" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected data rendered directly to the end user via 'HttpResponse' or a similar object. This bypasses Django's built-in cross-site scripting (XSS) defenses and could result in an XSS vulnerability. Use Django's template engine to safely render HTML." + }, + "help": { + "markdown": "Detected data rendered directly to the end user via 'HttpResponse' or a similar object. This bypasses Django's built-in cross-site scripting (XSS) defenses and could result in an XSS vulnerability. Use Django's template engine to safely render HTML.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.django.security.audit.xss.direct-use-of-httpresponse.direct-use-of-httpresponse)\n - [https://docs.djangoproject.com/en/3.1/intro/tutorial03/#a-shortcut-render](https://docs.djangoproject.com/en/3.1/intro/tutorial03/#a-shortcut-render)\n - [https://docs.djangoproject.com/en/3.1/topics/http/shortcuts/#render](https://docs.djangoproject.com/en/3.1/topics/http/shortcuts/#render)\n", + "text": "Detected data rendered directly to the end user via 'HttpResponse' or a similar object. This bypasses Django's built-in cross-site scripting (XSS) defenses and could result in an XSS vulnerability. Use Django's template engine to safely render HTML." + }, + "helpUri": "https://semgrep.dev/r/python.django.security.audit.xss.direct-use-of-httpresponse.direct-use-of-httpresponse", + "id": "python.django.security.audit.xss.direct-use-of-httpresponse.direct-use-of-httpresponse", + "name": "python.django.security.audit.xss.direct-use-of-httpresponse.direct-use-of-httpresponse", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.django.security.audit.xss.direct-use-of-httpresponse.direct-use-of-httpresponse" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "DOCTYPE declarations are enabled for $DBFACTORY. Without prohibiting external entity declarations, this is vulnerable to XML external entity attacks. Disable this by setting the feature \"http://apache.org/xml/features/disallow-doctype-decl\" to true. Alternatively, allow DOCTYPE declarations and only prohibit external entities declarations. This can be done by setting the features \"http://xml.org/sax/features/external-general-entities\" and \"http://xml.org/sax/features/external-parameter-entities\" to false." + }, + "help": { + "markdown": "DOCTYPE declarations are enabled for $DBFACTORY. Without prohibiting external entity declarations, this is vulnerable to XML external entity attacks. Disable this by setting the feature \"http://apache.org/xml/features/disallow-doctype-decl\" to true. Alternatively, allow DOCTYPE declarations and only prohibit external entities declarations. This can be done by setting the features \"http://xml.org/sax/features/external-general-entities\" and \"http://xml.org/sax/features/external-parameter-entities\" to false.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.lang.security.audit.xxe.documentbuilderfactory-disallow-doctype-decl-false.documentbuilderfactory-disallow-doctype-decl-false)\n - [https://semgrep.dev/blog/2022/xml-security-in-java](https://semgrep.dev/blog/2022/xml-security-in-java)\n - [https://semgrep.dev/docs/cheat-sheets/java-xxe/](https://semgrep.dev/docs/cheat-sheets/java-xxe/)\n - [https://blog.sonarsource.com/secure-xml-processor](https://blog.sonarsource.com/secure-xml-processor)\n - [https://xerces.apache.org/xerces2-j/features.html](https://xerces.apache.org/xerces2-j/features.html)\n", + "text": "DOCTYPE declarations are enabled for $DBFACTORY. Without prohibiting external entity declarations, this is vulnerable to XML external entity attacks. Disable this by setting the feature \"http://apache.org/xml/features/disallow-doctype-decl\" to true. Alternatively, allow DOCTYPE declarations and only prohibit external entities declarations. This can be done by setting the features \"http://xml.org/sax/features/external-general-entities\" and \"http://xml.org/sax/features/external-parameter-entities\" to false." + }, + "helpUri": "https://semgrep.dev/r/java.lang.security.audit.xxe.documentbuilderfactory-disallow-doctype-decl-false.documentbuilderfactory-disallow-doctype-decl-false", + "id": "java.lang.security.audit.xxe.documentbuilderfactory-disallow-doctype-decl-false.documentbuilderfactory-disallow-doctype-decl-false", + "name": "java.lang.security.audit.xxe.documentbuilderfactory-disallow-doctype-decl-false.documentbuilderfactory-disallow-doctype-decl-false", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-611: Improper Restriction of XML External Entity Reference", + "HIGH CONFIDENCE", + "OWASP-A04:2017 - XML External Entities (XXE)", + "OWASP-A05:2021 - Security Misconfiguration", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.lang.security.audit.xxe.documentbuilderfactory-disallow-doctype-decl-false.documentbuilderfactory-disallow-doctype-decl-false" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected a template variable where autoescaping is explicitly disabled with '| safeseq' filter. This allows rendering of raw HTML in this segment. Ensure no user data is rendered here, otherwise this is a cross-site scripting (XSS) vulnerability. If you must do this, use `mark_safe` in your Python code." + }, + "help": { + "markdown": "Detected a template variable where autoescaping is explicitly disabled with '| safeseq' filter. This allows rendering of raw HTML in this segment. Ensure no user data is rendered here, otherwise this is a cross-site scripting (XSS) vulnerability. If you must do this, use `mark_safe` in your Python code.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.django.security.audit.xss.template-var-unescaped-with-safeseq.template-var-unescaped-with-safeseq)\n - [https://docs.djangoproject.com/en/3.0/ref/templates/builtins/#safeseq](https://docs.djangoproject.com/en/3.0/ref/templates/builtins/#safeseq)\n", + "text": "Detected a template variable where autoescaping is explicitly disabled with '| safeseq' filter. This allows rendering of raw HTML in this segment. Ensure no user data is rendered here, otherwise this is a cross-site scripting (XSS) vulnerability. If you must do this, use `mark_safe` in your Python code." + }, + "helpUri": "https://semgrep.dev/r/python.django.security.audit.xss.template-var-unescaped-with-safeseq.template-var-unescaped-with-safeseq", + "id": "python.django.security.audit.xss.template-var-unescaped-with-safeseq.template-var-unescaped-with-safeseq", + "name": "python.django.security.audit.xss.template-var-unescaped-with-safeseq.template-var-unescaped-with-safeseq", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.django.security.audit.xss.template-var-unescaped-with-safeseq.template-var-unescaped-with-safeseq" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Distinct, Having, Group_by, Order_by, and Filter in SQLAlchemy can cause sql injections if the developer inputs raw SQL into the before-mentioned clauses. This pattern captures relevant cases in which the developer inputs raw SQL into the distinct, having, group_by, order_by or filter clauses and injects user-input into the raw SQL with any function besides \"bindparams\". Use bindParams to securely bind user-input to SQL statements." + }, + "help": { + "markdown": "Distinct, Having, Group_by, Order_by, and Filter in SQLAlchemy can cause sql injections if the developer inputs raw SQL into the before-mentioned clauses. This pattern captures relevant cases in which the developer inputs raw SQL into the distinct, having, group_by, order_by or filter clauses and injects user-input into the raw SQL with any function besides \"bindparams\". Use bindParams to securely bind user-input to SQL statements.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.pyramid.security.sqlalchemy-sql-injection.pyramid-sqlalchemy-sql-injection)\n - [https://docs.sqlalchemy.org/en/14/tutorial/data_select.html#tutorial-selecting-data](https://docs.sqlalchemy.org/en/14/tutorial/data_select.html#tutorial-selecting-data)\n", + "text": "Distinct, Having, Group_by, Order_by, and Filter in SQLAlchemy can cause sql injections if the developer inputs raw SQL into the before-mentioned clauses. This pattern captures relevant cases in which the developer inputs raw SQL into the distinct, having, group_by, order_by or filter clauses and injects user-input into the raw SQL with any function besides \"bindparams\". Use bindParams to securely bind user-input to SQL statements." + }, + "helpUri": "https://semgrep.dev/r/python.pyramid.security.sqlalchemy-sql-injection.pyramid-sqlalchemy-sql-injection", + "id": "python.pyramid.security.sqlalchemy-sql-injection.pyramid-sqlalchemy-sql-injection", + "name": "python.pyramid.security.sqlalchemy-sql-injection.pyramid-sqlalchemy-sql-injection", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')", + "MEDIUM CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.pyramid.security.sqlalchemy-sql-injection.pyramid-sqlalchemy-sql-injection" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Checks for requests sent to http:// URLs. This is dangerous as the server is attempting to connect to a website that does not encrypt traffic with TLS. Instead, only send requests to https:// URLs." + }, + "help": { + "markdown": "Checks for requests sent to http:// URLs. This is dangerous as the server is attempting to connect to a website that does not encrypt traffic with TLS. Instead, only send requests to https:// URLs.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/problem-based-packs.insecure-transport.js-node.http-request.http-request)\n - [https://nodejs.org/api/http.html#http_http_request_options_callback](https://nodejs.org/api/http.html#http_http_request_options_callback)\n", + "text": "Checks for requests sent to http:// URLs. This is dangerous as the server is attempting to connect to a website that does not encrypt traffic with TLS. Instead, only send requests to https:// URLs." + }, + "helpUri": "https://semgrep.dev/r/problem-based-packs.insecure-transport.js-node.http-request.http-request", + "id": "problem-based-packs.insecure-transport.js-node.http-request.http-request", + "name": "problem-based-packs.insecure-transport.js-node.http-request.http-request", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-319: Cleartext Transmission of Sensitive Information", + "MEDIUM CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: problem-based-packs.insecure-transport.js-node.http-request.http-request" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Remote debugging protocol does not perform any authentication, so exposing it too widely can be a security risk." + }, + "help": { + "markdown": "Remote debugging protocol does not perform any authentication, so exposing it too widely can be a security risk.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.puppeteer.security.audit.puppeteer-exposed-chrome-devtools.puppeteer-exposed-chrome-devtools)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "Remote debugging protocol does not perform any authentication, so exposing it too widely can be a security risk." + }, + "helpUri": "https://semgrep.dev/r/javascript.puppeteer.security.audit.puppeteer-exposed-chrome-devtools.puppeteer-exposed-chrome-devtools", + "id": "javascript.puppeteer.security.audit.puppeteer-exposed-chrome-devtools.puppeteer-exposed-chrome-devtools", + "name": "javascript.puppeteer.security.audit.puppeteer-exposed-chrome-devtools.puppeteer-exposed-chrome-devtools", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-94: Improper Control of Generation of Code ('Code Injection')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.puppeteer.security.audit.puppeteer-exposed-chrome-devtools.puppeteer-exposed-chrome-devtools" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "User data from `$REQ` is being compiled into the template, which can lead to a Server Side Template Injection (SSTI) vulnerability." + }, + "help": { + "markdown": "User data from `$REQ` is being compiled into the template, which can lead to a Server Side Template Injection (SSTI) vulnerability.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.express.security.express-insecure-template-usage.express-insecure-template-usage)\n - [https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_Cheat_Sheet.html](https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_Cheat_Sheet.html)\n", + "text": "User data from `$REQ` is being compiled into the template, which can lead to a Server Side Template Injection (SSTI) vulnerability." + }, + "helpUri": "https://semgrep.dev/r/javascript.express.security.express-insecure-template-usage.express-insecure-template-usage", + "id": "javascript.express.security.express-insecure-template-usage.express-insecure-template-usage", + "name": "javascript.express.security.express-insecure-template-usage.express-insecure-template-usage", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine", + "MEDIUM CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.express.security.express-insecure-template-usage.express-insecure-template-usage" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected the decoding of a JWT token without a verify step. JWT tokens must be verified before use, otherwise the token's integrity is unknown. This means a malicious actor could forge a JWT token with any claims. Call '.verify()' before using the token." + }, + "help": { + "markdown": "Detected the decoding of a JWT token without a verify step. JWT tokens must be verified before use, otherwise the token's integrity is unknown. This means a malicious actor could forge a JWT token with any claims. Call '.verify()' before using the token.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.jsonwebtoken.security.audit.jwt-decode-without-verify.jwt-decode-without-verify)\n - [https://owasp.org/Top10/A08_2021-Software_and_Data_Integrity_Failures](https://owasp.org/Top10/A08_2021-Software_and_Data_Integrity_Failures)\n", + "text": "Detected the decoding of a JWT token without a verify step. JWT tokens must be verified before use, otherwise the token's integrity is unknown. This means a malicious actor could forge a JWT token with any claims. Call '.verify()' before using the token." + }, + "helpUri": "https://semgrep.dev/r/javascript.jsonwebtoken.security.audit.jwt-decode-without-verify.jwt-decode-without-verify", + "id": "javascript.jsonwebtoken.security.audit.jwt-decode-without-verify.jwt-decode-without-verify", + "name": "javascript.jsonwebtoken.security.audit.jwt-decode-without-verify.jwt-decode-without-verify", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-345: Insufficient Verification of Data Authenticity", + "LOW CONFIDENCE", + "OWASP-A08:2021 - Software and Data Integrity Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.jsonwebtoken.security.audit.jwt-decode-without-verify.jwt-decode-without-verify" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "If unverified user data can reach the `evaluate` method it can result in Server-Side Request Forgery vulnerabilities" + }, + "help": { + "markdown": "If unverified user data can reach the `evaluate` method it can result in Server-Side Request Forgery vulnerabilities\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.puppeteer.security.audit.puppeteer-evaluate-arg-injection.puppeteer-evaluate-arg-injection)\n - [https://owasp.org/Top10/A10_2021-Server-Side_Request_Forgery_%28SSRF%29](https://owasp.org/Top10/A10_2021-Server-Side_Request_Forgery_%28SSRF%29)\n", + "text": "If unverified user data can reach the `evaluate` method it can result in Server-Side Request Forgery vulnerabilities" + }, + "helpUri": "https://semgrep.dev/r/javascript.puppeteer.security.audit.puppeteer-evaluate-arg-injection.puppeteer-evaluate-arg-injection", + "id": "javascript.puppeteer.security.audit.puppeteer-evaluate-arg-injection.puppeteer-evaluate-arg-injection", + "name": "javascript.puppeteer.security.audit.puppeteer-evaluate-arg-injection.puppeteer-evaluate-arg-injection", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-918: Server-Side Request Forgery (SSRF)", + "LOW CONFIDENCE", + "OWASP-A10:2021 - Server-Side Request Forgery (SSRF)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.puppeteer.security.audit.puppeteer-evaluate-arg-injection.puppeteer-evaluate-arg-injection" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Hardcoded JWT secret or private key is used. This is a Insufficiently Protected Credentials weakness: https://cwe.mitre.org/data/definitions/522.html Consider using an appropriate security mechanism to protect the credentials (e.g. keeping secrets in environment variables)" + }, + "help": { + "markdown": "Hardcoded JWT secret or private key is used. This is a Insufficiently Protected Credentials weakness: https://cwe.mitre.org/data/definitions/522.html Consider using an appropriate security mechanism to protect the credentials (e.g. keeping secrets in environment variables)\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/scala.jwt-scala.security.jwt-scala-hardcode.jwt-scala-hardcode)\n - [https://jwt-scala.github.io/jwt-scala/](https://jwt-scala.github.io/jwt-scala/)\n", + "text": "Hardcoded JWT secret or private key is used. This is a Insufficiently Protected Credentials weakness: https://cwe.mitre.org/data/definitions/522.html Consider using an appropriate security mechanism to protect the credentials (e.g. keeping secrets in environment variables)" + }, + "helpUri": "https://semgrep.dev/r/scala.jwt-scala.security.jwt-scala-hardcode.jwt-scala-hardcode", + "id": "scala.jwt-scala.security.jwt-scala-hardcode.jwt-scala-hardcode", + "name": "scala.jwt-scala.security.jwt-scala-hardcode.jwt-scala-hardcode", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-522: Insufficiently Protected Credentials", + "HIGH CONFIDENCE", + "OWASP-A02:2017 - Broken Authentication", + "OWASP-A04:2021 - Insecure Design", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: scala.jwt-scala.security.jwt-scala-hardcode.jwt-scala-hardcode" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Calling `unserialize()` with user input in the pattern can lead to arbitrary code execution. Consider using JSON or structured data approaches (e.g. Google Protocol Buffers)." + }, + "help": { + "markdown": "Calling `unserialize()` with user input in the pattern can lead to arbitrary code execution. Consider using JSON or structured data approaches (e.g. Google Protocol Buffers).\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/php.lang.security.unserialize-use.unserialize-use)\n - [https://www.php.net/manual/en/function.unserialize.php](https://www.php.net/manual/en/function.unserialize.php)\n - [https://owasp.org/www-project-top-ten/2017/A8_2017-Insecure_Deserialization.html](https://owasp.org/www-project-top-ten/2017/A8_2017-Insecure_Deserialization.html)\n", + "text": "Calling `unserialize()` with user input in the pattern can lead to arbitrary code execution. Consider using JSON or structured data approaches (e.g. Google Protocol Buffers)." + }, + "helpUri": "https://semgrep.dev/r/php.lang.security.unserialize-use.unserialize-use", + "id": "php.lang.security.unserialize-use.unserialize-use", + "name": "php.lang.security.unserialize-use.unserialize-use", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-502: Deserialization of Untrusted Data", + "LOW CONFIDENCE", + "OWASP-A08:2017 - Insecure Deserialization", + "OWASP-A08:2021 - Software and Data Integrity Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: php.lang.security.unserialize-use.unserialize-use" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Make sure that unverified user data can not reach `vm2`." + }, + "help": { + "markdown": "Make sure that unverified user data can not reach `vm2`.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.vm2.security.audit.vm2-context-injection.vm2-context-injection)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "Make sure that unverified user data can not reach `vm2`." + }, + "helpUri": "https://semgrep.dev/r/javascript.vm2.security.audit.vm2-context-injection.vm2-context-injection", + "id": "javascript.vm2.security.audit.vm2-context-injection.vm2-context-injection", + "name": "javascript.vm2.security.audit.vm2-context-injection.vm2-context-injection", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-94: Improper Control of Generation of Code ('Code Injection')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.vm2.security.audit.vm2-context-injection.vm2-context-injection" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detection of $HTML from non-constant definition. This can inadvertently expose users to cross-site scripting (XSS) attacks if this comes from user-provided input. If you have to use $HTML, consider using a sanitization library such as DOMPurify to sanitize your HTML." + }, + "help": { + "markdown": "Detection of $HTML from non-constant definition. This can inadvertently expose users to cross-site scripting (XSS) attacks if this comes from user-provided input. If you have to use $HTML, consider using a sanitization library such as DOMPurify to sanitize your HTML.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/typescript.react.security.audit.react-unsanitized-method.react-unsanitized-method)\n - [https://developer.mozilla.org/en-US/docs/Web/API/Document/writeln](https://developer.mozilla.org/en-US/docs/Web/API/Document/writeln)\n - [https://developer.mozilla.org/en-US/docs/Web/API/Document/write](https://developer.mozilla.org/en-US/docs/Web/API/Document/write)\n - [https://developer.mozilla.org/en-US/docs/Web/API/Element/insertAdjacentHTML](https://developer.mozilla.org/en-US/docs/Web/API/Element/insertAdjacentHTML)\n", + "text": "Detection of $HTML from non-constant definition. This can inadvertently expose users to cross-site scripting (XSS) attacks if this comes from user-provided input. If you have to use $HTML, consider using a sanitization library such as DOMPurify to sanitize your HTML." + }, + "helpUri": "https://semgrep.dev/r/typescript.react.security.audit.react-unsanitized-method.react-unsanitized-method", + "id": "typescript.react.security.audit.react-unsanitized-method.react-unsanitized-method", + "name": "typescript.react.security.audit.react-unsanitized-method.react-unsanitized-method", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "MEDIUM CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: typescript.react.security.audit.react-unsanitized-method.react-unsanitized-method" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "XmlReaderSettings found with DtdProcessing.Parse on an XmlReader handling a string argument from a public method. Enabling Document Type Definition (DTD) parsing may cause XML External Entity (XXE) injection if supplied with user-controllable data." + }, + "help": { + "markdown": "XmlReaderSettings found with DtdProcessing.Parse on an XmlReader handling a string argument from a public method. Enabling Document Type Definition (DTD) parsing may cause XML External Entity (XXE) injection if supplied with user-controllable data.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/csharp.lang.security.xxe.xmltextreader-unsafe-defaults.xmltextreader-unsafe-defaults)\n - [https://www.jardinesoftware.net/2016/05/26/xxe-and-net/](https://www.jardinesoftware.net/2016/05/26/xxe-and-net/)\n - [https://docs.microsoft.com/en-us/dotnet/api/system.xml.xmldocument.xmlresolver?view=net-6.0#remarks](https://docs.microsoft.com/en-us/dotnet/api/system.xml.xmldocument.xmlresolver?view=net-6.0#remarks)\n", + "text": "XmlReaderSettings found with DtdProcessing.Parse on an XmlReader handling a string argument from a public method. Enabling Document Type Definition (DTD) parsing may cause XML External Entity (XXE) injection if supplied with user-controllable data." + }, + "helpUri": "https://semgrep.dev/r/csharp.lang.security.xxe.xmltextreader-unsafe-defaults.xmltextreader-unsafe-defaults", + "id": "csharp.lang.security.xxe.xmltextreader-unsafe-defaults.xmltextreader-unsafe-defaults", + "name": "csharp.lang.security.xxe.xmltextreader-unsafe-defaults.xmltextreader-unsafe-defaults", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-611: Improper Restriction of XML External Entity Reference", + "MEDIUM CONFIDENCE", + "OWASP-A04:2017 - XML External Entities (XXE)", + "OWASP-A05:2021 - Security Misconfiguration", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: csharp.lang.security.xxe.xmltextreader-unsafe-defaults.xmltextreader-unsafe-defaults" + } + }, + { + "defaultConfiguration": { + "level": "note" + }, + "fullDescription": { + "text": "this rule has been deprecated." + }, + "help": { + "markdown": "this rule has been deprecated.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.lang.security.audit.vm-injection.vm-runincontext-code-injection)\n - [https://nodejs.org/dist/latest-v16.x/docs/api/vm.html](https://nodejs.org/dist/latest-v16.x/docs/api/vm.html)\n", + "text": "this rule has been deprecated." + }, + "helpUri": "https://semgrep.dev/r/javascript.lang.security.audit.vm-injection.vm-runincontext-code-injection", + "id": "javascript.lang.security.audit.vm-injection.vm-runincontext-code-injection", + "name": "javascript.lang.security.audit.vm-injection.vm-runincontext-code-injection", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-94: Improper Control of Generation of Code ('Code Injection')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.lang.security.audit.vm-injection.vm-runincontext-code-injection" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "multiprocessing.Process.kill() is only available on Python 3.7+ and is therefore not backwards compatible. Instead, use terminate()." + }, + "help": { + "markdown": "multiprocessing.Process.kill() is only available on Python 3.7+ and is therefore not backwards compatible. Instead, use terminate().\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.lang.compatibility.python37.python37-compatibility-multiprocess2)\n", + "text": "multiprocessing.Process.kill() is only available on Python 3.7+ and is therefore not backwards compatible. Instead, use terminate()." + }, + "helpUri": "https://semgrep.dev/r/python.lang.compatibility.python37.python37-compatibility-multiprocess2", + "id": "python.lang.compatibility.python37.python37-compatibility-multiprocess2", + "name": "python.lang.compatibility.python37.python37-compatibility-multiprocess2", + "properties": { + "precision": "very-high", + "tags": [] + }, + "shortDescription": { + "text": "Semgrep Finding: python.lang.compatibility.python37.python37-compatibility-multiprocess2" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Found dynamic content used for the external process. This is dangerous if arbitrary data can reach this function call because it allows a malicious actor to execute commands. Ensure your variables are not controlled by users or sufficiently sanitized." + }, + "help": { + "markdown": "Found dynamic content used for the external process. This is dangerous if arbitrary data can reach this function call because it allows a malicious actor to execute commands. Ensure your variables are not controlled by users or sufficiently sanitized.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/scala.lang.security.audit.dangerous-seq-run.dangerous-seq-run)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "Found dynamic content used for the external process. This is dangerous if arbitrary data can reach this function call because it allows a malicious actor to execute commands. Ensure your variables are not controlled by users or sufficiently sanitized." + }, + "helpUri": "https://semgrep.dev/r/scala.lang.security.audit.dangerous-seq-run.dangerous-seq-run", + "id": "scala.lang.security.audit.dangerous-seq-run.dangerous-seq-run", + "name": "scala.lang.security.audit.dangerous-seq-run.dangerous-seq-run", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')", + "LOW CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: scala.lang.security.audit.dangerous-seq-run.dangerous-seq-run" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Data from request ($DATA) is passed to redirect(). This is an open redirect and could be exploited. Ensure you are redirecting to safe URLs by using django.utils.http.is_safe_url(). See https://cwe.mitre.org/data/definitions/601.html for more information." + }, + "help": { + "markdown": "Data from request ($DATA) is passed to redirect(). This is an open redirect and could be exploited. Ensure you are redirecting to safe URLs by using django.utils.http.is_safe_url(). See https://cwe.mitre.org/data/definitions/601.html for more information.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.django.security.injection.open-redirect.open-redirect)\n - [https://www.djm.org.uk/posts/djangos-little-protections-word-redirect-dangers/](https://www.djm.org.uk/posts/djangos-little-protections-word-redirect-dangers/)\n - [https://github.com/django/django/blob/d1b7bd030b1db111e1a3505b1fc029ab964382cc/django/utils/http.py#L231](https://github.com/django/django/blob/d1b7bd030b1db111e1a3505b1fc029ab964382cc/django/utils/http.py#L231)\n", + "text": "Data from request ($DATA) is passed to redirect(). This is an open redirect and could be exploited. Ensure you are redirecting to safe URLs by using django.utils.http.is_safe_url(). See https://cwe.mitre.org/data/definitions/601.html for more information." + }, + "helpUri": "https://semgrep.dev/r/python.django.security.injection.open-redirect.open-redirect", + "id": "python.django.security.injection.open-redirect.open-redirect", + "name": "python.django.security.injection.open-redirect.open-redirect", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-601: URL Redirection to Untrusted Site ('Open Redirect')", + "MEDIUM CONFIDENCE", + "OWASP-A01:2021 - Broken Access Control", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.django.security.injection.open-redirect.open-redirect" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "https://find-sec-bugs.github.io/bugs.htm#PERMISSIVE_CORS Permissive CORS policy will allow a malicious application to communicate with the victim application in an inappropriate way, leading to spoofing, data theft, relay and other attacks." + }, + "help": { + "markdown": "https://find-sec-bugs.github.io/bugs.htm#PERMISSIVE_CORS Permissive CORS policy will allow a malicious application to communicate with the victim application in an inappropriate way, leading to spoofing, data theft, relay and other attacks.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.lang.security.audit.permissive-cors.permissive-cors)\n - [https://owasp.org/Top10/A04_2021-Insecure_Design](https://owasp.org/Top10/A04_2021-Insecure_Design)\n", + "text": "https://find-sec-bugs.github.io/bugs.htm#PERMISSIVE_CORS Permissive CORS policy will allow a malicious application to communicate with the victim application in an inappropriate way, leading to spoofing, data theft, relay and other attacks." + }, + "helpUri": "https://semgrep.dev/r/java.lang.security.audit.permissive-cors.permissive-cors", + "id": "java.lang.security.audit.permissive-cors.permissive-cors", + "name": "java.lang.security.audit.permissive-cors.permissive-cors", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-183: Permissive List of Allowed Inputs", + "LOW CONFIDENCE", + "OWASP-A04:2021 - Insecure Design", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.lang.security.audit.permissive-cors.permissive-cors" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected SQL statement that is tainted by `$EVENT` object. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use parameterized queries or prepared statements instead. You can use parameterized statements like so: `connection.query('SELECT $1 from table', [userinput])`" + }, + "help": { + "markdown": "Detected SQL statement that is tainted by `$EVENT` object. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use parameterized queries or prepared statements instead. You can use parameterized statements like so: `connection.query('SELECT $1 from table', [userinput])`\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.aws-lambda.security.mysql-sqli.mysql-sqli)\n - [https://www.npmjs.com/package/mysql2](https://www.npmjs.com/package/mysql2)\n", + "text": "Detected SQL statement that is tainted by `$EVENT` object. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use parameterized queries or prepared statements instead. You can use parameterized statements like so: `connection.query('SELECT $1 from table', [userinput])`" + }, + "helpUri": "https://semgrep.dev/r/javascript.aws-lambda.security.mysql-sqli.mysql-sqli", + "id": "javascript.aws-lambda.security.mysql-sqli.mysql-sqli", + "name": "javascript.aws-lambda.security.mysql-sqli.mysql-sqli", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')", + "MEDIUM CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.aws-lambda.security.mysql-sqli.mysql-sqli" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Checks for redefinitions of the checkServerTrusted function in the X509TrustManager class that disables TLS/SSL certificate verification. This should only be used for debugging purposes because it leads to vulnerability to MTM attacks." + }, + "help": { + "markdown": "Checks for redefinitions of the checkServerTrusted function in the X509TrustManager class that disables TLS/SSL certificate verification. This should only be used for debugging purposes because it leads to vulnerability to MTM attacks.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/problem-based-packs.insecure-transport.java-stdlib.bypass-tls-verification.bypass-tls-verification)\n - [https://riptutorial.com/java/example/16517/temporarily-disable-ssl-verification--for-testing-purposes-](https://riptutorial.com/java/example/16517/temporarily-disable-ssl-verification--for-testing-purposes-)\n - [https://stackoverflow.com/questions/35530558/how-to-fix-unsafe-implementation-of-x509trustmanager-in-android-app?rq=1](https://stackoverflow.com/questions/35530558/how-to-fix-unsafe-implementation-of-x509trustmanager-in-android-app?rq=1)\n", + "text": "Checks for redefinitions of the checkServerTrusted function in the X509TrustManager class that disables TLS/SSL certificate verification. This should only be used for debugging purposes because it leads to vulnerability to MTM attacks." + }, + "helpUri": "https://semgrep.dev/r/problem-based-packs.insecure-transport.java-stdlib.bypass-tls-verification.bypass-tls-verification", + "id": "problem-based-packs.insecure-transport.java-stdlib.bypass-tls-verification.bypass-tls-verification", + "name": "problem-based-packs.insecure-transport.java-stdlib.bypass-tls-verification.bypass-tls-verification", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-319: Cleartext Transmission of Sensitive Information", + "MEDIUM CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: problem-based-packs.insecure-transport.java-stdlib.bypass-tls-verification.bypass-tls-verification" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected SSL that will accept an unverified connection. This makes the connections susceptible to man-in-the-middle attacks. Use 'OpenSSL::SSL::VERIFY_PEER' instead." + }, + "help": { + "markdown": "Detected SSL that will accept an unverified connection. This makes the connections susceptible to man-in-the-middle attacks. Use 'OpenSSL::SSL::VERIFY_PEER' instead.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ruby.lang.security.ssl-mode-no-verify.ssl-mode-no-verify)\n - [https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures](https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures)\n", + "text": "Detected SSL that will accept an unverified connection. This makes the connections susceptible to man-in-the-middle attacks. Use 'OpenSSL::SSL::VERIFY_PEER' instead." + }, + "helpUri": "https://semgrep.dev/r/ruby.lang.security.ssl-mode-no-verify.ssl-mode-no-verify", + "id": "ruby.lang.security.ssl-mode-no-verify.ssl-mode-no-verify", + "name": "ruby.lang.security.ssl-mode-no-verify.ssl-mode-no-verify", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-295: Improper Certificate Validation", + "MEDIUM CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "OWASP-A07:2021 - Identification and Authentication Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: ruby.lang.security.ssl-mode-no-verify.ssl-mode-no-verify" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Ensure AWS Sagemaker domains are encrypted at rest using KMS CMKs. CMKs gives you control over the encryption key in terms of access and rotation." + }, + "help": { + "markdown": "Ensure AWS Sagemaker domains are encrypted at rest using KMS CMKs. CMKs gives you control over the encryption key in terms of access and rotation.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.aws.security.aws-sagemaker-domain-encrypted-with-cmk.aws-sagemaker-domain-encrypted-with-cmk)\n - [https://owasp.org/Top10/A02_2021-Cryptographic_Failures](https://owasp.org/Top10/A02_2021-Cryptographic_Failures)\n", + "text": "Ensure AWS Sagemaker domains are encrypted at rest using KMS CMKs. CMKs gives you control over the encryption key in terms of access and rotation." + }, + "helpUri": "https://semgrep.dev/r/terraform.aws.security.aws-sagemaker-domain-encrypted-with-cmk.aws-sagemaker-domain-encrypted-with-cmk", + "id": "terraform.aws.security.aws-sagemaker-domain-encrypted-with-cmk.aws-sagemaker-domain-encrypted-with-cmk", + "name": "terraform.aws.security.aws-sagemaker-domain-encrypted-with-cmk.aws-sagemaker-domain-encrypted-with-cmk", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-320: CWE CATEGORY: Key Management Errors", + "LOW CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.aws.security.aws-sagemaker-domain-encrypted-with-cmk.aws-sagemaker-domain-encrypted-with-cmk" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Scala applications built with `debug` set to true in production may leak debug information to attackers. Debug mode also affects performance and reliability. Remove it from configuration." + }, + "help": { + "markdown": "Scala applications built with `debug` set to true in production may leak debug information to attackers. Debug mode also affects performance and reliability. Remove it from configuration.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/scala.lang.security.audit.scalac-debug.scalac-debug)\n - [https://docs.scala-lang.org/overviews/compiler-options/index.html](https://docs.scala-lang.org/overviews/compiler-options/index.html)\n", + "text": "Scala applications built with `debug` set to true in production may leak debug information to attackers. Debug mode also affects performance and reliability. Remove it from configuration." + }, + "helpUri": "https://semgrep.dev/r/scala.lang.security.audit.scalac-debug.scalac-debug", + "id": "scala.lang.security.audit.scalac-debug.scalac-debug", + "name": "scala.lang.security.audit.scalac-debug.scalac-debug", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-489: Active Debug Code", + "MEDIUM CONFIDENCE", + "OWASP-A05:2021 - Security Misconfiguration", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: scala.lang.security.audit.scalac-debug.scalac-debug" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Provisioners are a tool of last resort and should be avoided where possible. Provisioner behavior cannot be mapped by Terraform as part of a plan, and execute arbitrary shell commands by design." + }, + "help": { + "markdown": "Provisioners are a tool of last resort and should be avoided where possible. Provisioner behavior cannot be mapped by Terraform as part of a plan, and execute arbitrary shell commands by design.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.aws.security.aws-provisioner-exec.aws-provisioner-exec)\n - [https://developer.hashicorp.com/terraform/language/resources/provisioners/remote-exec](https://developer.hashicorp.com/terraform/language/resources/provisioners/remote-exec)\n - [https://developer.hashicorp.com/terraform/language/resources/provisioners/local-exec](https://developer.hashicorp.com/terraform/language/resources/provisioners/local-exec)\n", + "text": "Provisioners are a tool of last resort and should be avoided where possible. Provisioner behavior cannot be mapped by Terraform as part of a plan, and execute arbitrary shell commands by design." + }, + "helpUri": "https://semgrep.dev/r/terraform.aws.security.aws-provisioner-exec.aws-provisioner-exec", + "id": "terraform.aws.security.aws-provisioner-exec.aws-provisioner-exec", + "name": "terraform.aws.security.aws-provisioner-exec.aws-provisioner-exec", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')", + "CWE-94: Improper Control of Generation of Code ('Code Injection')", + "HIGH CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.aws.security.aws-provisioner-exec.aws-provisioner-exec" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "The last user in the container is 'root'. This is a security hazard because if an attacker gains control of the container they will have root access. Switch back to another user after running commands as 'root'." + }, + "help": { + "markdown": "The last user in the container is 'root'. This is a security hazard because if an attacker gains control of the container they will have root access. Switch back to another user after running commands as 'root'.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/dockerfile.security.last-user-is-root.last-user-is-root)\n - [https://github.com/hadolint/hadolint/wiki/DL3002](https://github.com/hadolint/hadolint/wiki/DL3002)\n", + "text": "The last user in the container is 'root'. This is a security hazard because if an attacker gains control of the container they will have root access. Switch back to another user after running commands as 'root'." + }, + "helpUri": "https://semgrep.dev/r/dockerfile.security.last-user-is-root.last-user-is-root", + "id": "dockerfile.security.last-user-is-root.last-user-is-root", + "name": "dockerfile.security.last-user-is-root.last-user-is-root", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-269: Improper Privilege Management", + "MEDIUM CONFIDENCE", + "OWASP-A04:2021 - Insecure Design", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: dockerfile.security.last-user-is-root.last-user-is-root" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Checks for requests sent via Apache HTTP Components to http:// URLS. This is dangerous because the server is attempting to connect to a website that does not encrypt traffic with TLS. Instead, send requests only to https:// URLS." + }, + "help": { + "markdown": "Checks for requests sent via Apache HTTP Components to http:// URLS. This is dangerous because the server is attempting to connect to a website that does not encrypt traffic with TLS. Instead, send requests only to https:// URLS.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/problem-based-packs.insecure-transport.java-stdlib.http-components-request.http-components-request)\n - [https://hc.apache.org/httpcomponents-client-ga/quickstart.html](https://hc.apache.org/httpcomponents-client-ga/quickstart.html)\n", + "text": "Checks for requests sent via Apache HTTP Components to http:// URLS. This is dangerous because the server is attempting to connect to a website that does not encrypt traffic with TLS. Instead, send requests only to https:// URLS." + }, + "helpUri": "https://semgrep.dev/r/problem-based-packs.insecure-transport.java-stdlib.http-components-request.http-components-request", + "id": "problem-based-packs.insecure-transport.java-stdlib.http-components-request.http-components-request", + "name": "problem-based-packs.insecure-transport.java-stdlib.http-components-request.http-components-request", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-319: Cleartext Transmission of Sensitive Information", + "MEDIUM CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: problem-based-packs.insecure-transport.java-stdlib.http-components-request.http-components-request" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detection of dangerouslySetInnerHTML from non-constant definition. This can inadvertently expose users to cross-site scripting (XSS) attacks if this comes from user-provided input. If you have to use dangerouslySetInnerHTML, consider using a sanitization library such as DOMPurify to sanitize your HTML." + }, + "help": { + "markdown": "Detection of dangerouslySetInnerHTML from non-constant definition. This can inadvertently expose users to cross-site scripting (XSS) attacks if this comes from user-provided input. If you have to use dangerouslySetInnerHTML, consider using a sanitization library such as DOMPurify to sanitize your HTML.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/typescript.react.security.audit.react-dangerouslysetinnerhtml.react-dangerouslysetinnerhtml)\n - [https://react.dev/reference/react-dom/components/common#dangerously-setting-the-inner-html](https://react.dev/reference/react-dom/components/common#dangerously-setting-the-inner-html)\n", + "text": "Detection of dangerouslySetInnerHTML from non-constant definition. This can inadvertently expose users to cross-site scripting (XSS) attacks if this comes from user-provided input. If you have to use dangerouslySetInnerHTML, consider using a sanitization library such as DOMPurify to sanitize your HTML." + }, + "helpUri": "https://semgrep.dev/r/typescript.react.security.audit.react-dangerouslysetinnerhtml.react-dangerouslysetinnerhtml", + "id": "typescript.react.security.audit.react-dangerouslysetinnerhtml.react-dangerouslysetinnerhtml", + "name": "typescript.react.security.audit.react-dangerouslysetinnerhtml.react-dangerouslysetinnerhtml", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "MEDIUM CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: typescript.react.security.audit.react-dangerouslysetinnerhtml.react-dangerouslysetinnerhtml" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "In Kubernetes, each pod runs in its own isolated environment with its own set of security policies. However, certain container images may contain `setuid` or `setgid` binaries that could allow an attacker to perform privilege escalation and gain access to sensitive resources. To mitigate this risk, it's recommended to add a `securityContext` to the container in the pod, with the parameter `allowPrivilegeEscalation` set to `false`. This will prevent the container from running any privileged processes and limit the impact of any potential attacks. By adding the `allowPrivilegeEscalation` parameter to your the `securityContext`, you can help to ensure that your containerized applications are more secure and less vulnerable to privilege escalation attacks." + }, + "help": { + "markdown": "In Kubernetes, each pod runs in its own isolated environment with its own set of security policies. However, certain container images may contain `setuid` or `setgid` binaries that could allow an attacker to perform privilege escalation and gain access to sensitive resources. To mitigate this risk, it's recommended to add a `securityContext` to the container in the pod, with the parameter `allowPrivilegeEscalation` set to `false`. This will prevent the container from running any privileged processes and limit the impact of any potential attacks. By adding the `allowPrivilegeEscalation` parameter to your the `securityContext`, you can help to ensure that your containerized applications are more secure and less vulnerable to privilege escalation attacks.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/yaml.kubernetes.security.allow-privilege-escalation.allow-privilege-escalation)\n - [https://kubernetes.io/docs/concepts/policy/pod-security-policy/#privilege-escalation](https://kubernetes.io/docs/concepts/policy/pod-security-policy/#privilege-escalation)\n - [https://kubernetes.io/docs/tasks/configure-pod-container/security-context/](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/)\n - [https://www.kernel.org/doc/Documentation/prctl/no_new_privs.txt](https://www.kernel.org/doc/Documentation/prctl/no_new_privs.txt)\n - [https://cheatsheetseries.owasp.org/cheatsheets/Docker_Security_Cheat_Sheet.html#rule-4-add-no-new-privileges-flag](https://cheatsheetseries.owasp.org/cheatsheets/Docker_Security_Cheat_Sheet.html#rule-4-add-no-new-privileges-flag)\n", + "text": "In Kubernetes, each pod runs in its own isolated environment with its own set of security policies. However, certain container images may contain `setuid` or `setgid` binaries that could allow an attacker to perform privilege escalation and gain access to sensitive resources. To mitigate this risk, it's recommended to add a `securityContext` to the container in the pod, with the parameter `allowPrivilegeEscalation` set to `false`. This will prevent the container from running any privileged processes and limit the impact of any potential attacks. By adding the `allowPrivilegeEscalation` parameter to your the `securityContext`, you can help to ensure that your containerized applications are more secure and less vulnerable to privilege escalation attacks." + }, + "helpUri": "https://semgrep.dev/r/yaml.kubernetes.security.allow-privilege-escalation.allow-privilege-escalation", + "id": "yaml.kubernetes.security.allow-privilege-escalation.allow-privilege-escalation", + "name": "yaml.kubernetes.security.allow-privilege-escalation.allow-privilege-escalation", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-732: Incorrect Permission Assignment for Critical Resource", + "MEDIUM CONFIDENCE", + "OWASP-A05:2021 - Security Misconfiguration", + "OWASP-A06:2017 - Security Misconfiguration", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: yaml.kubernetes.security.allow-privilege-escalation.allow-privilege-escalation" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Found user-controlled request data passed into '.write(...)'. This could be dangerous if a malicious actor is able to control data into sensitive files. For example, a malicious actor could force rolling of critical log files, or cause a denial-of-service by using up available disk space. Instead, ensure that request data is properly escaped or sanitized." + }, + "help": { + "markdown": "Found user-controlled request data passed into '.write(...)'. This could be dangerous if a malicious actor is able to control data into sensitive files. For example, a malicious actor could force rolling of critical log files, or cause a denial-of-service by using up available disk space. Instead, ensure that request data is properly escaped or sanitized.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.django.security.injection.request-data-write.request-data-write)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "Found user-controlled request data passed into '.write(...)'. This could be dangerous if a malicious actor is able to control data into sensitive files. For example, a malicious actor could force rolling of critical log files, or cause a denial-of-service by using up available disk space. Instead, ensure that request data is properly escaped or sanitized." + }, + "helpUri": "https://semgrep.dev/r/python.django.security.injection.request-data-write.request-data-write", + "id": "python.django.security.injection.request-data-write.request-data-write", + "name": "python.django.security.injection.request-data-write.request-data-write", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-93: Improper Neutralization of CRLF Sequences ('CRLF Injection')", + "MEDIUM CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.django.security.injection.request-data-write.request-data-write" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Found potential SQL injection due to unsafe SQL query construction via $X. Where possible, prefer parameterized queries." + }, + "help": { + "markdown": "Found potential SQL injection due to unsafe SQL query construction via $X. Where possible, prefer parameterized queries.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ruby.rails.security.brakeman.check-sql.check-sql)\n - [https://owasp.org/www-community/attacks/SQL_Injection](https://owasp.org/www-community/attacks/SQL_Injection)\n - [https://github.com/presidentbeef/brakeman/blob/main/test/apps/rails3.1/app/models/product.rb](https://github.com/presidentbeef/brakeman/blob/main/test/apps/rails3.1/app/models/product.rb)\n", + "text": "Found potential SQL injection due to unsafe SQL query construction via $X. Where possible, prefer parameterized queries." + }, + "helpUri": "https://semgrep.dev/r/ruby.rails.security.brakeman.check-sql.check-sql", + "id": "ruby.rails.security.brakeman.check-sql.check-sql", + "name": "ruby.rails.security.brakeman.check-sql.check-sql", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')", + "MEDIUM CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: ruby.rails.security.brakeman.check-sql.check-sql" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "XmlReaderSettings found with DtdProcessing.Parse on an XmlReader handling a string argument from a public method. Enabling Document Type Definition (DTD) parsing may cause XML External Entity (XXE) injection if supplied with user-controllable data." + }, + "help": { + "markdown": "XmlReaderSettings found with DtdProcessing.Parse on an XmlReader handling a string argument from a public method. Enabling Document Type Definition (DTD) parsing may cause XML External Entity (XXE) injection if supplied with user-controllable data.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/csharp.lang.security.xxe.xmlreadersettings-unsafe-parser-override.xmlreadersettings-unsafe-parser-override)\n - [https://www.jardinesoftware.net/2016/05/26/xxe-and-net/](https://www.jardinesoftware.net/2016/05/26/xxe-and-net/)\n - [https://docs.microsoft.com/en-us/dotnet/api/system.xml.xmldocument.xmlresolver?view=net-6.0#remarks](https://docs.microsoft.com/en-us/dotnet/api/system.xml.xmldocument.xmlresolver?view=net-6.0#remarks)\n", + "text": "XmlReaderSettings found with DtdProcessing.Parse on an XmlReader handling a string argument from a public method. Enabling Document Type Definition (DTD) parsing may cause XML External Entity (XXE) injection if supplied with user-controllable data." + }, + "helpUri": "https://semgrep.dev/r/csharp.lang.security.xxe.xmlreadersettings-unsafe-parser-override.xmlreadersettings-unsafe-parser-override", + "id": "csharp.lang.security.xxe.xmlreadersettings-unsafe-parser-override.xmlreadersettings-unsafe-parser-override", + "name": "csharp.lang.security.xxe.xmlreadersettings-unsafe-parser-override.xmlreadersettings-unsafe-parser-override", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-611: Improper Restriction of XML External Entity Reference", + "MEDIUM CONFIDENCE", + "OWASP-A04:2017 - XML External Entities (XXE)", + "OWASP-A05:2021 - Security Misconfiguration", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: csharp.lang.security.xxe.xmlreadersettings-unsafe-parser-override.xmlreadersettings-unsafe-parser-override" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected usage of the `notevil` package, which is unmaintained and has vulnerabilities. Using any sort of `eval()` functionality can be very dangerous, but if you must, the `eval` package is an up to date alternative. Be sure that only trusted input reaches an `eval()` function." + }, + "help": { + "markdown": "Detected usage of the `notevil` package, which is unmaintained and has vulnerabilities. Using any sort of `eval()` functionality can be very dangerous, but if you must, the `eval` package is an up to date alternative. Be sure that only trusted input reaches an `eval()` function.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.express.security.audit.express-detect-notevil-usage.express-detect-notevil-usage)\n - [https://github.com/mmckegg/notevil](https://github.com/mmckegg/notevil)\n", + "text": "Detected usage of the `notevil` package, which is unmaintained and has vulnerabilities. Using any sort of `eval()` functionality can be very dangerous, but if you must, the `eval` package is an up to date alternative. Be sure that only trusted input reaches an `eval()` function." + }, + "helpUri": "https://semgrep.dev/r/javascript.express.security.audit.express-detect-notevil-usage.express-detect-notevil-usage", + "id": "javascript.express.security.audit.express-detect-notevil-usage.express-detect-notevil-usage", + "name": "javascript.express.security.audit.express-detect-notevil-usage.express-detect-notevil-usage", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-1104: Use of Unmaintained Third Party Components", + "LOW CONFIDENCE", + "OWASP-A06:2021 - Vulnerable and Outdated Components", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.express.security.audit.express-detect-notevil-usage.express-detect-notevil-usage" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected SQL statement that is tainted by `$REQ` object. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, it is recommended to use parameterized queries or prepared statements. An example of parameterized queries like so: `knex.raw('SELECT $1 from table', [userinput])` can help prevent SQLi." + }, + "help": { + "markdown": "Detected SQL statement that is tainted by `$REQ` object. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, it is recommended to use parameterized queries or prepared statements. An example of parameterized queries like so: `knex.raw('SELECT $1 from table', [userinput])` can help prevent SQLi.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.lang.security.audit.sqli.node-knex-sqli.node-knex-sqli)\n - [https://knexjs.org/#Builder-fromRaw](https://knexjs.org/#Builder-fromRaw)\n - [https://knexjs.org/#Builder-whereRaw](https://knexjs.org/#Builder-whereRaw)\n - [https://cheatsheetseries.owasp.org/cheatsheets/SQL_Injection_Prevention_Cheat_Sheet.html](https://cheatsheetseries.owasp.org/cheatsheets/SQL_Injection_Prevention_Cheat_Sheet.html)\n", + "text": "Detected SQL statement that is tainted by `$REQ` object. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, it is recommended to use parameterized queries or prepared statements. An example of parameterized queries like so: `knex.raw('SELECT $1 from table', [userinput])` can help prevent SQLi." + }, + "helpUri": "https://semgrep.dev/r/javascript.lang.security.audit.sqli.node-knex-sqli.node-knex-sqli", + "id": "javascript.lang.security.audit.sqli.node-knex-sqli.node-knex-sqli", + "name": "javascript.lang.security.audit.sqli.node-knex-sqli.node-knex-sqli", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')", + "MEDIUM CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.lang.security.audit.sqli.node-knex-sqli.node-knex-sqli" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Add \"encryption: $Y.BucketEncryption.KMS_MANAGED\" or \"encryption: $Y.BucketEncryption.S3_MANAGED\" to the bucket props for Bucket construct $X" + }, + "help": { + "markdown": "Add \"encryption: $Y.BucketEncryption.KMS_MANAGED\" or \"encryption: $Y.BucketEncryption.S3_MANAGED\" to the bucket props for Bucket construct $X\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/typescript.aws-cdk.security.audit.awscdk-bucket-encryption.awscdk-bucket-encryption)\n - [https://docs.aws.amazon.com/AmazonS3/latest/userguide/security-best-practices.html](https://docs.aws.amazon.com/AmazonS3/latest/userguide/security-best-practices.html)\n", + "text": "Add \"encryption: $Y.BucketEncryption.KMS_MANAGED\" or \"encryption: $Y.BucketEncryption.S3_MANAGED\" to the bucket props for Bucket construct $X" + }, + "helpUri": "https://semgrep.dev/r/typescript.aws-cdk.security.audit.awscdk-bucket-encryption.awscdk-bucket-encryption", + "id": "typescript.aws-cdk.security.audit.awscdk-bucket-encryption.awscdk-bucket-encryption", + "name": "typescript.aws-cdk.security.audit.awscdk-bucket-encryption.awscdk-bucket-encryption", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-311: Missing Encryption of Sensitive Data", + "MEDIUM CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "OWASP-A04:2021 - Insecure Design", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: typescript.aws-cdk.security.audit.awscdk-bucket-encryption.awscdk-bucket-encryption" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "A hard-coded credential was detected. It is not recommended to store credentials in source-code, as this risks secrets being leaked and used by either an internal or external malicious adversary. It is recommended to use environment variables to securely provide credentials or retrieve credentials from a secure vault or HSM (Hardware Security Module)." + }, + "help": { + "markdown": "A hard-coded credential was detected. It is not recommended to store credentials in source-code, as this risks secrets being leaked and used by either an internal or external malicious adversary. It is recommended to use environment variables to securely provide credentials or retrieve credentials from a secure vault or HSM (Hardware Security Module).\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.java-jwt.security.jwt-hardcode.java-jwt-hardcoded-secret)\n - [https://cheatsheetseries.owasp.org/cheatsheets/Secrets_Management_Cheat_Sheet.html](https://cheatsheetseries.owasp.org/cheatsheets/Secrets_Management_Cheat_Sheet.html)\n", + "text": "A hard-coded credential was detected. It is not recommended to store credentials in source-code, as this risks secrets being leaked and used by either an internal or external malicious adversary. It is recommended to use environment variables to securely provide credentials or retrieve credentials from a secure vault or HSM (Hardware Security Module)." + }, + "helpUri": "https://semgrep.dev/r/java.java-jwt.security.jwt-hardcode.java-jwt-hardcoded-secret", + "id": "java.java-jwt.security.jwt-hardcode.java-jwt-hardcoded-secret", + "name": "java.java-jwt.security.jwt-hardcode.java-jwt-hardcoded-secret", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-798: Use of Hard-coded Credentials", + "HIGH CONFIDENCE", + "OWASP-A07:2021 - Identification and Authentication Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.java-jwt.security.jwt-hardcode.java-jwt-hardcoded-secret" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Data that is possible user-controlled from a python request is passed to `raw()`. This could lead to SQL injection and attackers gaining access to protected information. Instead, use django's QuerySets, which are built with query parameterization and therefore not vulnerable to sql injection. For example, you could use `Entry.objects.filter(date=2006)`." + }, + "help": { + "markdown": "Data that is possible user-controlled from a python request is passed to `raw()`. This could lead to SQL injection and attackers gaining access to protected information. Instead, use django's QuerySets, which are built with query parameterization and therefore not vulnerable to sql injection. For example, you could use `Entry.objects.filter(date=2006)`.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.django.security.injection.sql.sql-injection-using-raw.sql-injection-using-raw)\n - [https://docs.djangoproject.com/en/3.0/topics/security/#sql-injection-protection](https://docs.djangoproject.com/en/3.0/topics/security/#sql-injection-protection)\n", + "text": "Data that is possible user-controlled from a python request is passed to `raw()`. This could lead to SQL injection and attackers gaining access to protected information. Instead, use django's QuerySets, which are built with query parameterization and therefore not vulnerable to sql injection. For example, you could use `Entry.objects.filter(date=2006)`." + }, + "helpUri": "https://semgrep.dev/r/python.django.security.injection.sql.sql-injection-using-raw.sql-injection-using-raw", + "id": "python.django.security.injection.sql.sql-injection-using-raw.sql-injection-using-raw", + "name": "python.django.security.injection.sql.sql-injection-using-raw.sql-injection-using-raw", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')", + "MEDIUM CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.django.security.injection.sql.sql-injection-using-raw.sql-injection-using-raw" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "SSL verification disabled, this allows for MitM attacks" + }, + "help": { + "markdown": "SSL verification disabled, this allows for MitM attacks\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/rust.lang.security.ssl-verify-none.ssl-verify-none)\n - [https://docs.rs/openssl/latest/openssl/ssl/struct.SslContextBuilder.html#method.set_verify](https://docs.rs/openssl/latest/openssl/ssl/struct.SslContextBuilder.html#method.set_verify)\n", + "text": "SSL verification disabled, this allows for MitM attacks" + }, + "helpUri": "https://semgrep.dev/r/rust.lang.security.ssl-verify-none.ssl-verify-none", + "id": "rust.lang.security.ssl-verify-none.ssl-verify-none", + "name": "rust.lang.security.ssl-verify-none.ssl-verify-none", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-295: Improper Certificate Validation", + "HIGH CONFIDENCE", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: rust.lang.security.ssl-verify-none.ssl-verify-none" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected a 'urllib.request.Request()' object using an insecure transport protocol, 'http://'. This connection will not be encrypted. Use 'https://' instead." + }, + "help": { + "markdown": "Detected a 'urllib.request.Request()' object using an insecure transport protocol, 'http://'. This connection will not be encrypted. Use 'https://' instead.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.lang.security.audit.insecure-transport.urllib.insecure-request-object.insecure-request-object)\n - [https://docs.python.org/3/library/urllib.request.html#urllib.request.Request](https://docs.python.org/3/library/urllib.request.html#urllib.request.Request)\n", + "text": "Detected a 'urllib.request.Request()' object using an insecure transport protocol, 'http://'. This connection will not be encrypted. Use 'https://' instead." + }, + "helpUri": "https://semgrep.dev/r/python.lang.security.audit.insecure-transport.urllib.insecure-request-object.insecure-request-object", + "id": "python.lang.security.audit.insecure-transport.urllib.insecure-request-object.insecure-request-object", + "name": "python.lang.security.audit.insecure-transport.urllib.insecure-request-object.insecure-request-object", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-319: Cleartext Transmission of Sensitive Information", + "LOW CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.lang.security.audit.insecure-transport.urllib.insecure-request-object.insecure-request-object" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "A hard-coded credential was detected. It is not recommended to store credentials in source-code, as this risks secrets being leaked and used by either an internal or external malicious adversary. It is recommended to use environment variables to securely provide credentials or retrieve credentials from a secure vault or HSM (Hardware Security Module)." + }, + "help": { + "markdown": "A hard-coded credential was detected. It is not recommended to store credentials in source-code, as this risks secrets being leaked and used by either an internal or external malicious adversary. It is recommended to use environment variables to securely provide credentials or retrieve credentials from a secure vault or HSM (Hardware Security Module).\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.jose.security.jwt-hardcode.hardcoded-jwt-secret)\n - [https://cheatsheetseries.owasp.org/cheatsheets/Secrets_Management_Cheat_Sheet.html](https://cheatsheetseries.owasp.org/cheatsheets/Secrets_Management_Cheat_Sheet.html)\n", + "text": "A hard-coded credential was detected. It is not recommended to store credentials in source-code, as this risks secrets being leaked and used by either an internal or external malicious adversary. It is recommended to use environment variables to securely provide credentials or retrieve credentials from a secure vault or HSM (Hardware Security Module)." + }, + "helpUri": "https://semgrep.dev/r/javascript.jose.security.jwt-hardcode.hardcoded-jwt-secret", + "id": "javascript.jose.security.jwt-hardcode.hardcoded-jwt-secret", + "name": "javascript.jose.security.jwt-hardcode.hardcoded-jwt-secret", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-798: Use of Hard-coded Credentials", + "HIGH CONFIDENCE", + "OWASP-A07:2021 - Identification and Authentication Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.jose.security.jwt-hardcode.hardcoded-jwt-secret" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Session key based on user input risks session poisoning. The user can determine the key used for the session, and thus write any session variable. Session variables are typically trusted to be set only by the application, and manipulating the session can result in access control issues." + }, + "help": { + "markdown": "Session key based on user input risks session poisoning. The user can determine the key used for the session, and thus write any session variable. Session variables are typically trusted to be set only by the application, and manipulating the session can result in access control issues.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/php.lang.security.injection.tainted-session.tainted-session)\n - [https://en.wikipedia.org/wiki/Session_poisoning](https://en.wikipedia.org/wiki/Session_poisoning)\n", + "text": "Session key based on user input risks session poisoning. The user can determine the key used for the session, and thus write any session variable. Session variables are typically trusted to be set only by the application, and manipulating the session can result in access control issues." + }, + "helpUri": "https://semgrep.dev/r/php.lang.security.injection.tainted-session.tainted-session", + "id": "php.lang.security.injection.tainted-session.tainted-session", + "name": "php.lang.security.injection.tainted-session.tainted-session", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-284: Improper Access Control", + "MEDIUM CONFIDENCE", + "OWASP-A01:2021 - Broken Access Control", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: php.lang.security.injection.tainted-session.tainted-session" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Found usage of the `$FLAVOR` library, which is vulnerable to attacks such as XML external entity (XXE) attacks" + }, + "help": { + "markdown": "Found usage of the `$FLAVOR` library, which is vulnerable to attacks such as XML external entity (XXE) attacks\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/trailofbits.python.lxml-in-pandas.lxml-in-pandas)\n - [https://lxml.de/FAQ.html](https://lxml.de/FAQ.html)\n", + "text": "Found usage of the `$FLAVOR` library, which is vulnerable to attacks such as XML external entity (XXE) attacks" + }, + "helpUri": "https://semgrep.dev/r/trailofbits.python.lxml-in-pandas.lxml-in-pandas", + "id": "trailofbits.python.lxml-in-pandas.lxml-in-pandas", + "name": "trailofbits.python.lxml-in-pandas.lxml-in-pandas", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-611: Improper Restriction of XML External Entity Reference", + "HIGH CONFIDENCE", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: trailofbits.python.lxml-in-pandas.lxml-in-pandas" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "User data flows into the host portion of this manually-constructed URL. This could allow an attacker to send data to their own server, potentially exposing sensitive data such as cookies or authorization information sent with this request. They could also probe internal servers or other resources that the server runnig this code can access. (This is called server-side request forgery, or SSRF.) Do not allow arbitrary hosts. Use the `ssrf_filter` gem and guard the url construction with `SsrfFilter(...)`, or create an allowlist for approved hosts." + }, + "help": { + "markdown": "User data flows into the host portion of this manually-constructed URL. This could allow an attacker to send data to their own server, potentially exposing sensitive data such as cookies or authorization information sent with this request. They could also probe internal servers or other resources that the server runnig this code can access. (This is called server-side request forgery, or SSRF.) Do not allow arbitrary hosts. Use the `ssrf_filter` gem and guard the url construction with `SsrfFilter(...)`, or create an allowlist for approved hosts.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ruby.rails.security.injection.tainted-url-host.tainted-url-host)\n - [https://cheatsheetseries.owasp.org/cheatsheets/Server_Side_Request_Forgery_Prevention_Cheat_Sheet.html](https://cheatsheetseries.owasp.org/cheatsheets/Server_Side_Request_Forgery_Prevention_Cheat_Sheet.html)\n - [https://github.com/arkadiyt/ssrf_filter](https://github.com/arkadiyt/ssrf_filter)\n", + "text": "User data flows into the host portion of this manually-constructed URL. This could allow an attacker to send data to their own server, potentially exposing sensitive data such as cookies or authorization information sent with this request. They could also probe internal servers or other resources that the server runnig this code can access. (This is called server-side request forgery, or SSRF.) Do not allow arbitrary hosts. Use the `ssrf_filter` gem and guard the url construction with `SsrfFilter(...)`, or create an allowlist for approved hosts." + }, + "helpUri": "https://semgrep.dev/r/ruby.rails.security.injection.tainted-url-host.tainted-url-host", + "id": "ruby.rails.security.injection.tainted-url-host.tainted-url-host", + "name": "ruby.rails.security.injection.tainted-url-host.tainted-url-host", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "MEDIUM CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: ruby.rails.security.injection.tainted-url-host.tainted-url-host" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Ensure CloudTrail logs are encrypted at rest using KMS CMKs. CMKs gives you control over the encryption key in terms of access and rotation." + }, + "help": { + "markdown": "Ensure CloudTrail logs are encrypted at rest using KMS CMKs. CMKs gives you control over the encryption key in terms of access and rotation.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.aws.security.aws-cloudtrail-encrypted-with-cmk.aws-cloudtrail-encrypted-with-cmk)\n - [https://owasp.org/Top10/A02_2021-Cryptographic_Failures](https://owasp.org/Top10/A02_2021-Cryptographic_Failures)\n", + "text": "Ensure CloudTrail logs are encrypted at rest using KMS CMKs. CMKs gives you control over the encryption key in terms of access and rotation." + }, + "helpUri": "https://semgrep.dev/r/terraform.aws.security.aws-cloudtrail-encrypted-with-cmk.aws-cloudtrail-encrypted-with-cmk", + "id": "terraform.aws.security.aws-cloudtrail-encrypted-with-cmk.aws-cloudtrail-encrypted-with-cmk", + "name": "terraform.aws.security.aws-cloudtrail-encrypted-with-cmk.aws-cloudtrail-encrypted-with-cmk", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-320: CWE CATEGORY: Key Management Errors", + "LOW CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.aws.security.aws-cloudtrail-encrypted-with-cmk.aws-cloudtrail-encrypted-with-cmk" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Allowing user input to `send_file` allows a malicious user to potentially read arbitrary files from the server. Avoid accepting user input in `send_file` or normalize with `File.basename(...)`" + }, + "help": { + "markdown": "Allowing user input to `send_file` allows a malicious user to potentially read arbitrary files from the server. Avoid accepting user input in `send_file` or normalize with `File.basename(...)`\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ruby.rails.security.brakeman.check-send-file.check-send-file)\n - [https://owasp.org/www-community/attacks/Path_Traversal](https://owasp.org/www-community/attacks/Path_Traversal)\n - [https://owasp.org/Top10/A01_2021-Broken_Access_Control/](https://owasp.org/Top10/A01_2021-Broken_Access_Control/)\n", + "text": "Allowing user input to `send_file` allows a malicious user to potentially read arbitrary files from the server. Avoid accepting user input in `send_file` or normalize with `File.basename(...)`" + }, + "helpUri": "https://semgrep.dev/r/ruby.rails.security.brakeman.check-send-file.check-send-file", + "id": "ruby.rails.security.brakeman.check-send-file.check-send-file", + "name": "ruby.rails.security.brakeman.check-send-file.check-send-file", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-73: External Control of File Name or Path", + "MEDIUM CONFIDENCE", + "OWASP-A04:2021 - Insecure Design", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: ruby.rails.security.brakeman.check-send-file.check-send-file" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Semgrep found potential reverse shell behavior" + }, + "help": { + "markdown": "Semgrep found potential reverse shell behavior\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.lang.security.audit.java-reverse-shell.java-reverse-shell)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "Semgrep found potential reverse shell behavior" + }, + "helpUri": "https://semgrep.dev/r/java.lang.security.audit.java-reverse-shell.java-reverse-shell", + "id": "java.lang.security.audit.java-reverse-shell.java-reverse-shell", + "name": "java.lang.security.audit.java-reverse-shell.java-reverse-shell", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')", + "LOW CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.lang.security.audit.java-reverse-shell.java-reverse-shell" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "The ECR Repository isn't configured to scan images on push" + }, + "help": { + "markdown": "The ECR Repository isn't configured to scan images on push\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.lang.security.ecr-image-scan-on-push.ecr-image-scan-on-push)\n - [https://owasp.org/Top10/A06_2021-Vulnerable_and_Outdated_Components](https://owasp.org/Top10/A06_2021-Vulnerable_and_Outdated_Components)\n", + "text": "The ECR Repository isn't configured to scan images on push" + }, + "helpUri": "https://semgrep.dev/r/terraform.lang.security.ecr-image-scan-on-push.ecr-image-scan-on-push", + "id": "terraform.lang.security.ecr-image-scan-on-push.ecr-image-scan-on-push", + "name": "terraform.lang.security.ecr-image-scan-on-push.ecr-image-scan-on-push", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-1104: Use of Unmaintained Third Party Components", + "LOW CONFIDENCE", + "OWASP-A06:2021 - Vulnerable and Outdated Components", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.lang.security.ecr-image-scan-on-push.ecr-image-scan-on-push" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Network ACLs allow you to reduce your exposure to risk by limiting what can access your key vault. The default action of the Network ACL should be set to deny for when IPs are not matched. Azure services can be allowed to bypass." + }, + "help": { + "markdown": "Network ACLs allow you to reduce your exposure to risk by limiting what can access your key vault. The default action of the Network ACL should be set to deny for when IPs are not matched. Azure services can be allowed to bypass.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.azure.security.keyvault.keyvault-specify-network-acl.keyvault-specify-network-acl)\n - [https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/key_vault#network_acls](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/key_vault#network_acls)\n - [https://docs.microsoft.com/en-us/azure/key-vault/general/network-security](https://docs.microsoft.com/en-us/azure/key-vault/general/network-security)\n", + "text": "Network ACLs allow you to reduce your exposure to risk by limiting what can access your key vault. The default action of the Network ACL should be set to deny for when IPs are not matched. Azure services can be allowed to bypass." + }, + "helpUri": "https://semgrep.dev/r/terraform.azure.security.keyvault.keyvault-specify-network-acl.keyvault-specify-network-acl", + "id": "terraform.azure.security.keyvault.keyvault-specify-network-acl.keyvault-specify-network-acl", + "name": "terraform.azure.security.keyvault.keyvault-specify-network-acl.keyvault-specify-network-acl", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-284: Improper Access Control", + "LOW CONFIDENCE", + "OWASP-A01:2021 - Broken Access Control", + "OWASP-A05:2017 - Broken Access Control", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.azure.security.keyvault.keyvault-specify-network-acl.keyvault-specify-network-acl" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "'reflect.MakeFunc' detected. This will sidestep protections that are normally afforded by Go's type system. Audit this call and be sure that user input cannot be used to affect the code generated by MakeFunc; otherwise, you will have a serious security vulnerability." + }, + "help": { + "markdown": "'reflect.MakeFunc' detected. This will sidestep protections that are normally afforded by Go's type system. Audit this call and be sure that user input cannot be used to affect the code generated by MakeFunc; otherwise, you will have a serious security vulnerability.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/go.lang.security.audit.reflect-makefunc.reflect-makefunc)\n - [https://owasp.org/Top10/A01_2021-Broken_Access_Control](https://owasp.org/Top10/A01_2021-Broken_Access_Control)\n", + "text": "'reflect.MakeFunc' detected. This will sidestep protections that are normally afforded by Go's type system. Audit this call and be sure that user input cannot be used to affect the code generated by MakeFunc; otherwise, you will have a serious security vulnerability." + }, + "helpUri": "https://semgrep.dev/r/go.lang.security.audit.reflect-makefunc.reflect-makefunc", + "id": "go.lang.security.audit.reflect-makefunc.reflect-makefunc", + "name": "go.lang.security.audit.reflect-makefunc.reflect-makefunc", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-913: Improper Control of Dynamically-Managed Code Resources", + "LOW CONFIDENCE", + "OWASP-A01:2021 - Broken Access Control", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: go.lang.security.audit.reflect-makefunc.reflect-makefunc" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "If unverified user data can reach the `goto` method it can result in Server-Side Request Forgery vulnerabilities" + }, + "help": { + "markdown": "If unverified user data can reach the `goto` method it can result in Server-Side Request Forgery vulnerabilities\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.playwright.security.audit.playwright-goto-injection.playwright-goto-injection)\n - [https://owasp.org/Top10/A10_2021-Server-Side_Request_Forgery_%28SSRF%29](https://owasp.org/Top10/A10_2021-Server-Side_Request_Forgery_%28SSRF%29)\n", + "text": "If unverified user data can reach the `goto` method it can result in Server-Side Request Forgery vulnerabilities" + }, + "helpUri": "https://semgrep.dev/r/javascript.playwright.security.audit.playwright-goto-injection.playwright-goto-injection", + "id": "javascript.playwright.security.audit.playwright-goto-injection.playwright-goto-injection", + "name": "javascript.playwright.security.audit.playwright-goto-injection.playwright-goto-injection", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-918: Server-Side Request Forgery (SSRF)", + "LOW CONFIDENCE", + "OWASP-A10:2021 - Server-Side Request Forgery (SSRF)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.playwright.security.audit.playwright-goto-injection.playwright-goto-injection" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Unverified SSL context detected. This will permit insecure connections without verifying SSL certificates. Use 'ssl.create_default_context' instead." + }, + "help": { + "markdown": "Unverified SSL context detected. This will permit insecure connections without verifying SSL certificates. Use 'ssl.create_default_context' instead.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.lang.security.unverified-ssl-context.unverified-ssl-context)\n - [https://docs.python.org/3/library/ssl.html#ssl-security](https://docs.python.org/3/library/ssl.html#ssl-security)\n - [https://docs.python.org/3/library/http.client.html#http.client.HTTPSConnection](https://docs.python.org/3/library/http.client.html#http.client.HTTPSConnection)\n", + "text": "Unverified SSL context detected. This will permit insecure connections without verifying SSL certificates. Use 'ssl.create_default_context' instead." + }, + "helpUri": "https://semgrep.dev/r/python.lang.security.unverified-ssl-context.unverified-ssl-context", + "id": "python.lang.security.unverified-ssl-context.unverified-ssl-context", + "name": "python.lang.security.unverified-ssl-context.unverified-ssl-context", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-295: Improper Certificate Validation", + "MEDIUM CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "OWASP-A07:2021 - Identification and Authentication Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.lang.security.unverified-ssl-context.unverified-ssl-context" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "The AWS CodeBuild Project is unencrypted. The AWS KMS encryption key protects projects in the CodeBuild. To create your own, create a aws_kms_key resource or use the ARN string of a key in your account." + }, + "help": { + "markdown": "The AWS CodeBuild Project is unencrypted. The AWS KMS encryption key protects projects in the CodeBuild. To create your own, create a aws_kms_key resource or use the ARN string of a key in your account.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.aws.security.aws-codebuild-project-unencrypted.aws-codebuild-project-unencrypted)\n - [https://owasp.org/Top10/A02_2021-Cryptographic_Failures](https://owasp.org/Top10/A02_2021-Cryptographic_Failures)\n", + "text": "The AWS CodeBuild Project is unencrypted. The AWS KMS encryption key protects projects in the CodeBuild. To create your own, create a aws_kms_key resource or use the ARN string of a key in your account." + }, + "helpUri": "https://semgrep.dev/r/terraform.aws.security.aws-codebuild-project-unencrypted.aws-codebuild-project-unencrypted", + "id": "terraform.aws.security.aws-codebuild-project-unencrypted.aws-codebuild-project-unencrypted", + "name": "terraform.aws.security.aws-codebuild-project-unencrypted.aws-codebuild-project-unencrypted", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-320: CWE CATEGORY: Key Management Errors", + "MEDIUM CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.aws.security.aws-codebuild-project-unencrypted.aws-codebuild-project-unencrypted" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected 'urllib.urlopen()' using 'http://'. This request will not be encrypted. Use 'https://' instead." + }, + "help": { + "markdown": "Detected 'urllib.urlopen()' using 'http://'. This request will not be encrypted. Use 'https://' instead.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.lang.security.audit.insecure-transport.urllib.insecure-urlopen.insecure-urlopen)\n - [https://docs.python.org/3/library/urllib.request.html#urllib.request.urlopen](https://docs.python.org/3/library/urllib.request.html#urllib.request.urlopen)\n", + "text": "Detected 'urllib.urlopen()' using 'http://'. This request will not be encrypted. Use 'https://' instead." + }, + "helpUri": "https://semgrep.dev/r/python.lang.security.audit.insecure-transport.urllib.insecure-urlopen.insecure-urlopen", + "id": "python.lang.security.audit.insecure-transport.urllib.insecure-urlopen.insecure-urlopen", + "name": "python.lang.security.audit.insecure-transport.urllib.insecure-urlopen.insecure-urlopen", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-319: Cleartext Transmission of Sensitive Information", + "LOW CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.lang.security.audit.insecure-transport.urllib.insecure-urlopen.insecure-urlopen" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected public S3 bucket policy. This policy allows anyone to access certain properties of or items in the bucket. Do not do this unless you will never have sensitive data inside the bucket." + }, + "help": { + "markdown": "Detected public S3 bucket policy. This policy allows anyone to access certain properties of or items in the bucket. Do not do this unless you will never have sensitive data inside the bucket.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/json.aws.security.public-s3-policy-statement.public-s3-policy-statement)\n - [https://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteAccessPermissionsReqd.html](https://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteAccessPermissionsReqd.html)\n", + "text": "Detected public S3 bucket policy. This policy allows anyone to access certain properties of or items in the bucket. Do not do this unless you will never have sensitive data inside the bucket." + }, + "helpUri": "https://semgrep.dev/r/json.aws.security.public-s3-policy-statement.public-s3-policy-statement", + "id": "json.aws.security.public-s3-policy-statement.public-s3-policy-statement", + "name": "json.aws.security.public-s3-policy-statement.public-s3-policy-statement", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-264: CWE CATEGORY: Permissions, Privileges, and Access Controls", + "MEDIUM CONFIDENCE", + "OWASP-A01:2021 - Broken Access Control", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: json.aws.security.public-s3-policy-statement.public-s3-policy-statement" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected the use of eval(). eval() can be dangerous if used to evaluate dynamic content. If this content can be input from outside the program, this may be a code injection vulnerability. Ensure evaluated content is not definable by external sources." + }, + "help": { + "markdown": "Detected the use of eval(). eval() can be dangerous if used to evaluate dynamic content. If this content can be input from outside the program, this may be a code injection vulnerability. Ensure evaluated content is not definable by external sources.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.lang.security.audit.eval-detected.eval-detected)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "Detected the use of eval(). eval() can be dangerous if used to evaluate dynamic content. If this content can be input from outside the program, this may be a code injection vulnerability. Ensure evaluated content is not definable by external sources." + }, + "helpUri": "https://semgrep.dev/r/python.lang.security.audit.eval-detected.eval-detected", + "id": "python.lang.security.audit.eval-detected.eval-detected", + "name": "python.lang.security.audit.eval-detected.eval-detected", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.lang.security.audit.eval-detected.eval-detected" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Detected calls to child_process from a function argument `$FUNC`. This could lead to a command injection if the input is user controllable. Try to avoid calls to child_process, and if it is needed ensure user input is correctly sanitized or sandboxed. " + }, + "help": { + "markdown": "Detected calls to child_process from a function argument `$FUNC`. This could lead to a command injection if the input is user controllable. Try to avoid calls to child_process, and if it is needed ensure user input is correctly sanitized or sandboxed. \n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.lang.security.detect-child-process.detect-child-process)\n - [https://cheatsheetseries.owasp.org/cheatsheets/Nodejs_Security_Cheat_Sheet.html#do-not-use-dangerous-functions](https://cheatsheetseries.owasp.org/cheatsheets/Nodejs_Security_Cheat_Sheet.html#do-not-use-dangerous-functions)\n", + "text": "Detected calls to child_process from a function argument `$FUNC`. This could lead to a command injection if the input is user controllable. Try to avoid calls to child_process, and if it is needed ensure user input is correctly sanitized or sandboxed. " + }, + "helpUri": "https://semgrep.dev/r/javascript.lang.security.detect-child-process.detect-child-process", + "id": "javascript.lang.security.detect-child-process.detect-child-process", + "name": "javascript.lang.security.detect-child-process.detect-child-process", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')", + "LOW CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.lang.security.detect-child-process.detect-child-process" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Semgrep found a Python reverse shell using $BINPATH to $IP at $PORT" + }, + "help": { + "markdown": "Semgrep found a Python reverse shell using $BINPATH to $IP at $PORT\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.lang.security.audit.python-reverse-shell.python-reverse-shell)\n - [https://cwe.mitre.org/data/definitions/553.html](https://cwe.mitre.org/data/definitions/553.html)\n", + "text": "Semgrep found a Python reverse shell using $BINPATH to $IP at $PORT" + }, + "helpUri": "https://semgrep.dev/r/python.lang.security.audit.python-reverse-shell.python-reverse-shell", + "id": "python.lang.security.audit.python-reverse-shell.python-reverse-shell", + "name": "python.lang.security.audit.python-reverse-shell.python-reverse-shell", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-553: Command Shell in Externally Accessible Directory", + "LOW CONFIDENCE", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.lang.security.audit.python-reverse-shell.python-reverse-shell" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "The AWS RDS has no retention. Missing retention can cause losing important event information. To fix this, set a `backup_retention_period`." + }, + "help": { + "markdown": "The AWS RDS has no retention. Missing retention can cause losing important event information. To fix this, set a `backup_retention_period`.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.aws.security.aws-rds-backup-no-retention.aws-rds-backup-no-retention)\n - [https://owasp.org/Top10/A02_2021-Cryptographic_Failures](https://owasp.org/Top10/A02_2021-Cryptographic_Failures)\n", + "text": "The AWS RDS has no retention. Missing retention can cause losing important event information. To fix this, set a `backup_retention_period`." + }, + "helpUri": "https://semgrep.dev/r/terraform.aws.security.aws-rds-backup-no-retention.aws-rds-backup-no-retention", + "id": "terraform.aws.security.aws-rds-backup-no-retention.aws-rds-backup-no-retention", + "name": "terraform.aws.security.aws-rds-backup-no-retention.aws-rds-backup-no-retention", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-320: CWE CATEGORY: Key Management Errors", + "MEDIUM CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.aws.security.aws-rds-backup-no-retention.aws-rds-backup-no-retention" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "The AWS CodeBuild Project Artifacts are unencrypted. The AWS KMS encryption key protects artifacts in the CodeBuild Projects. To create your own, create a aws_kms_key resource or use the ARN string of a key in your account." + }, + "help": { + "markdown": "The AWS CodeBuild Project Artifacts are unencrypted. The AWS KMS encryption key protects artifacts in the CodeBuild Projects. To create your own, create a aws_kms_key resource or use the ARN string of a key in your account.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.aws.security.aws-codebuild-project-artifacts-unencrypted.aws-codebuild-project-artifacts-unencrypted)\n - [https://owasp.org/Top10/A02_2021-Cryptographic_Failures](https://owasp.org/Top10/A02_2021-Cryptographic_Failures)\n", + "text": "The AWS CodeBuild Project Artifacts are unencrypted. The AWS KMS encryption key protects artifacts in the CodeBuild Projects. To create your own, create a aws_kms_key resource or use the ARN string of a key in your account." + }, + "helpUri": "https://semgrep.dev/r/terraform.aws.security.aws-codebuild-project-artifacts-unencrypted.aws-codebuild-project-artifacts-unencrypted", + "id": "terraform.aws.security.aws-codebuild-project-artifacts-unencrypted.aws-codebuild-project-artifacts-unencrypted", + "name": "terraform.aws.security.aws-codebuild-project-artifacts-unencrypted.aws-codebuild-project-artifacts-unencrypted", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-320: CWE CATEGORY: Key Management Errors", + "LOW CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.aws.security.aws-codebuild-project-artifacts-unencrypted.aws-codebuild-project-artifacts-unencrypted" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "A hard-coded credential was detected. It is not recommended to store credentials in source-code, as this risks secrets being leaked and used by either an internal or external malicious adversary. It is recommended to use environment variables to securely provide credentials or retrieve credentials from a secure vault or HSM (Hardware Security Module)." + }, + "help": { + "markdown": "A hard-coded credential was detected. It is not recommended to store credentials in source-code, as this risks secrets being leaked and used by either an internal or external malicious adversary. It is recommended to use environment variables to securely provide credentials or retrieve credentials from a secure vault or HSM (Hardware Security Module).\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.aws.security.aws-lambda-environment-credentials.aws-lambda-environment-credentials)\n - [https://cheatsheetseries.owasp.org/cheatsheets/Secrets_Management_Cheat_Sheet.html](https://cheatsheetseries.owasp.org/cheatsheets/Secrets_Management_Cheat_Sheet.html)\n", + "text": "A hard-coded credential was detected. It is not recommended to store credentials in source-code, as this risks secrets being leaked and used by either an internal or external malicious adversary. It is recommended to use environment variables to securely provide credentials or retrieve credentials from a secure vault or HSM (Hardware Security Module)." + }, + "helpUri": "https://semgrep.dev/r/terraform.aws.security.aws-lambda-environment-credentials.aws-lambda-environment-credentials", + "id": "terraform.aws.security.aws-lambda-environment-credentials.aws-lambda-environment-credentials", + "name": "terraform.aws.security.aws-lambda-environment-credentials.aws-lambda-environment-credentials", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-326: Inadequate Encryption Strength", + "MEDIUM CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.aws.security.aws-lambda-environment-credentials.aws-lambda-environment-credentials" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "TypeNameHandling $TYPEHANDLER is unsafe and can lead to arbitrary code execution in the context of the process. Use a custom SerializationBinder whenever using a setting other than TypeNameHandling.None." + }, + "help": { + "markdown": "TypeNameHandling $TYPEHANDLER is unsafe and can lead to arbitrary code execution in the context of the process. Use a custom SerializationBinder whenever using a setting other than TypeNameHandling.None.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/csharp.lang.security.insecure-deserialization.newtonsoft.insecure-newtonsoft-deserialization)\n - [https://www.newtonsoft.com/json/help/html/T_Newtonsoft_Json_TypeNameHandling.htm#remarks](https://www.newtonsoft.com/json/help/html/T_Newtonsoft_Json_TypeNameHandling.htm#remarks)\n", + "text": "TypeNameHandling $TYPEHANDLER is unsafe and can lead to arbitrary code execution in the context of the process. Use a custom SerializationBinder whenever using a setting other than TypeNameHandling.None." + }, + "helpUri": "https://semgrep.dev/r/csharp.lang.security.insecure-deserialization.newtonsoft.insecure-newtonsoft-deserialization", + "id": "csharp.lang.security.insecure-deserialization.newtonsoft.insecure-newtonsoft-deserialization", + "name": "csharp.lang.security.insecure-deserialization.newtonsoft.insecure-newtonsoft-deserialization", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-502: Deserialization of Untrusted Data", + "LOW CONFIDENCE", + "OWASP-A08:2017 - Insecure Deserialization", + "OWASP-A08:2021 - Software and Data Integrity Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: csharp.lang.security.insecure-deserialization.newtonsoft.insecure-newtonsoft-deserialization" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Default session middleware settings: `httpOnly` not set. It ensures the cookie is sent only over HTTP(S), not client JavaScript, helping to protect against cross-site scripting attacks." + }, + "help": { + "markdown": "Default session middleware settings: `httpOnly` not set. It ensures the cookie is sent only over HTTP(S), not client JavaScript, helping to protect against cross-site scripting attacks.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.express.security.audit.express-cookie-settings.express-cookie-session-no-httponly)\n - [https://owasp.org/Top10/A04_2021-Insecure_Design](https://owasp.org/Top10/A04_2021-Insecure_Design)\n", + "text": "Default session middleware settings: `httpOnly` not set. It ensures the cookie is sent only over HTTP(S), not client JavaScript, helping to protect against cross-site scripting attacks." + }, + "helpUri": "https://semgrep.dev/r/javascript.express.security.audit.express-cookie-settings.express-cookie-session-no-httponly", + "id": "javascript.express.security.audit.express-cookie-settings.express-cookie-session-no-httponly", + "name": "javascript.express.security.audit.express-cookie-settings.express-cookie-session-no-httponly", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-522: Insufficiently Protected Credentials", + "MEDIUM CONFIDENCE", + "OWASP-A02:2017 - Broken Authentication", + "OWASP-A04:2021 - Insecure Design", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.express.security.audit.express-cookie-settings.express-cookie-session-no-httponly" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected string concatenation with a non-literal variable in an aiopg Python SQL statement. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use parameterized queries instead. You can create parameterized queries like so: 'cur.execute(\"SELECT %s FROM table\", (user_value,))'." + }, + "help": { + "markdown": "Detected string concatenation with a non-literal variable in an aiopg Python SQL statement. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use parameterized queries instead. You can create parameterized queries like so: 'cur.execute(\"SELECT %s FROM table\", (user_value,))'.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.lang.security.audit.sqli.aiopg-sqli.aiopg-sqli)\n - [https://github.com/aio-libs/aiopg](https://github.com/aio-libs/aiopg)\n", + "text": "Detected string concatenation with a non-literal variable in an aiopg Python SQL statement. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use parameterized queries instead. You can create parameterized queries like so: 'cur.execute(\"SELECT %s FROM table\", (user_value,))'." + }, + "helpUri": "https://semgrep.dev/r/python.lang.security.audit.sqli.aiopg-sqli.aiopg-sqli", + "id": "python.lang.security.audit.sqli.aiopg-sqli.aiopg-sqli", + "name": "python.lang.security.audit.sqli.aiopg-sqli.aiopg-sqli", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')", + "LOW CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.lang.security.audit.sqli.aiopg-sqli.aiopg-sqli" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Checks for requests to http (unencrypted) sites using grequests, a popular HTTP client library. This is dangerous because it could result in plaintext PII being passed around the network." + }, + "help": { + "markdown": "Checks for requests to http (unencrypted) sites using grequests, a popular HTTP client library. This is dangerous because it could result in plaintext PII being passed around the network.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/problem-based-packs.insecure-transport.go-stdlib.grequests-http-request.grequests-http-request)\n - [https://godoc.org/github.com/levigross/grequests#DoRegularRequest](https://godoc.org/github.com/levigross/grequests#DoRegularRequest)\n - [https://github.com/levigross/grequests](https://github.com/levigross/grequests)\n", + "text": "Checks for requests to http (unencrypted) sites using grequests, a popular HTTP client library. This is dangerous because it could result in plaintext PII being passed around the network." + }, + "helpUri": "https://semgrep.dev/r/problem-based-packs.insecure-transport.go-stdlib.grequests-http-request.grequests-http-request", + "id": "problem-based-packs.insecure-transport.go-stdlib.grequests-http-request.grequests-http-request", + "name": "problem-based-packs.insecure-transport.go-stdlib.grequests-http-request.grequests-http-request", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-319: Cleartext Transmission of Sensitive Information", + "MEDIUM CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: problem-based-packs.insecure-transport.go-stdlib.grequests-http-request.grequests-http-request" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Seam Logging API support an expression language to introduce bean property to log messages. The expression language can also be the source to unwanted code execution. In this context, an expression is built with a dynamic value. The source of the value(s) should be verified to avoid that unfiltered values fall into this risky code evaluation." + }, + "help": { + "markdown": "Seam Logging API support an expression language to introduce bean property to log messages. The expression language can also be the source to unwanted code execution. In this context, an expression is built with a dynamic value. The source of the value(s) should be verified to avoid that unfiltered values fall into this risky code evaluation.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.jboss.security.seam-log-injection.seam-log-injection)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "Seam Logging API support an expression language to introduce bean property to log messages. The expression language can also be the source to unwanted code execution. In this context, an expression is built with a dynamic value. The source of the value(s) should be verified to avoid that unfiltered values fall into this risky code evaluation." + }, + "helpUri": "https://semgrep.dev/r/java.jboss.security.seam-log-injection.seam-log-injection", + "id": "java.jboss.security.seam-log-injection.seam-log-injection", + "name": "java.jboss.security.seam-log-injection.seam-log-injection", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.jboss.security.seam-log-injection.seam-log-injection" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected SQL statement that is tainted by `$EVENT` object. This could lead to SQL injection if variables in the SQL statement are not properly sanitized. Use parameterized SQL queries or properly sanitize user input instead." + }, + "help": { + "markdown": "Detected SQL statement that is tainted by `$EVENT` object. This could lead to SQL injection if variables in the SQL statement are not properly sanitized. Use parameterized SQL queries or properly sanitize user input instead.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.aws-lambda.security.tainted-sqli.tainted-sqli)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "Detected SQL statement that is tainted by `$EVENT` object. This could lead to SQL injection if variables in the SQL statement are not properly sanitized. Use parameterized SQL queries or properly sanitize user input instead." + }, + "helpUri": "https://semgrep.dev/r/java.aws-lambda.security.tainted-sqli.tainted-sqli", + "id": "java.aws-lambda.security.tainted-sqli.tainted-sqli", + "name": "java.aws-lambda.security.tainted-sqli.tainted-sqli", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')", + "MEDIUM CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.aws-lambda.security.tainted-sqli.tainted-sqli" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "The use of $sce.trustAsJs can be dangerous if unsanitized user input flows through this API." + }, + "help": { + "markdown": "The use of $sce.trustAsJs can be dangerous if unsanitized user input flows through this API.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.angular.security.detect-angular-trust-as-js-method.detect-angular-trust-as-js-method)\n - [https://docs.angularjs.org/api/ng/service/$sce#trustAsJs](https://docs.angularjs.org/api/ng/service/$sce#trustAsJs)\n - [https://owasp.org/www-chapter-london/assets/slides/OWASPLondon20170727_AngularJS.pdf](https://owasp.org/www-chapter-london/assets/slides/OWASPLondon20170727_AngularJS.pdf)\n", + "text": "The use of $sce.trustAsJs can be dangerous if unsanitized user input flows through this API." + }, + "helpUri": "https://semgrep.dev/r/javascript.angular.security.detect-angular-trust-as-js-method.detect-angular-trust-as-js-method", + "id": "javascript.angular.security.detect-angular-trust-as-js-method.detect-angular-trust-as-js-method", + "name": "javascript.angular.security.detect-angular-trust-as-js-method.detect-angular-trust-as-js-method", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.angular.security.detect-angular-trust-as-js-method.detect-angular-trust-as-js-method" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Missing `RUnlock` on an `RWMutex` lock before returning from a function" + }, + "help": { + "markdown": "Missing `RUnlock` on an `RWMutex` lock before returning from a function\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/trailofbits.go.missing-runlock-on-rwmutex.missing-runlock-on-rwmutex)\n - [https://pkg.go.dev/sync#RWMutex](https://pkg.go.dev/sync#RWMutex)\n - [https://blog.trailofbits.com/2020/06/09/how-to-check-if-a-mutex-is-locked-in-go/](https://blog.trailofbits.com/2020/06/09/how-to-check-if-a-mutex-is-locked-in-go/)\n", + "text": "Missing `RUnlock` on an `RWMutex` lock before returning from a function" + }, + "helpUri": "https://semgrep.dev/r/trailofbits.go.missing-runlock-on-rwmutex.missing-runlock-on-rwmutex", + "id": "trailofbits.go.missing-runlock-on-rwmutex.missing-runlock-on-rwmutex", + "name": "trailofbits.go.missing-runlock-on-rwmutex.missing-runlock-on-rwmutex", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-667: Improper Locking", + "MEDIUM CONFIDENCE", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: trailofbits.go.missing-runlock-on-rwmutex.missing-runlock-on-rwmutex" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "ERC677 callAfterTransfer() reentrancy" + }, + "help": { + "markdown": "ERC677 callAfterTransfer() reentrancy\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/solidity.security.erc677-reentrancy.erc677-reentrancy)\n - [https://twitter.com/peckshield/status/1509431646818234369](https://twitter.com/peckshield/status/1509431646818234369)\n - [https://twitter.com/blocksecteam/status/1509466576848064512](https://twitter.com/blocksecteam/status/1509466576848064512)\n - [https://explorer.fuse.io/address/0x139Eb08579eec664d461f0B754c1F8B569044611](https://explorer.fuse.io/address/0x139Eb08579eec664d461f0B754c1F8B569044611)\n - [https://explorer.fuse.io/address/0x5De15b5543c178C111915d6B8ae929Af01a8cC58](https://explorer.fuse.io/address/0x5De15b5543c178C111915d6B8ae929Af01a8cC58)\n", + "text": "ERC677 callAfterTransfer() reentrancy" + }, + "helpUri": "https://semgrep.dev/r/solidity.security.erc677-reentrancy.erc677-reentrancy", + "id": "solidity.security.erc677-reentrancy.erc677-reentrancy", + "name": "solidity.security.erc677-reentrancy.erc677-reentrancy", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-841: Improper Enforcement of Behavioral Workflow", + "HIGH CONFIDENCE", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: solidity.security.erc677-reentrancy.erc677-reentrancy" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Ensure ImageBuilder component is encrypted at rest using KMS CMKs. CMKs gives you control over the encryption key in terms of access and rotation." + }, + "help": { + "markdown": "Ensure ImageBuilder component is encrypted at rest using KMS CMKs. CMKs gives you control over the encryption key in terms of access and rotation.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.aws.security.aws-imagebuilder-component-encrypted-with-cmk.aws-imagebuilder-component-encrypted-with-cmk)\n - [https://owasp.org/Top10/A02_2021-Cryptographic_Failures](https://owasp.org/Top10/A02_2021-Cryptographic_Failures)\n", + "text": "Ensure ImageBuilder component is encrypted at rest using KMS CMKs. CMKs gives you control over the encryption key in terms of access and rotation." + }, + "helpUri": "https://semgrep.dev/r/terraform.aws.security.aws-imagebuilder-component-encrypted-with-cmk.aws-imagebuilder-component-encrypted-with-cmk", + "id": "terraform.aws.security.aws-imagebuilder-component-encrypted-with-cmk.aws-imagebuilder-component-encrypted-with-cmk", + "name": "terraform.aws.security.aws-imagebuilder-component-encrypted-with-cmk.aws-imagebuilder-component-encrypted-with-cmk", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-320: CWE CATEGORY: Key Management Errors", + "LOW CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.aws.security.aws-imagebuilder-component-encrypted-with-cmk.aws-imagebuilder-component-encrypted-with-cmk" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "XML external entities are not explicitly disabled for this XMLInputFactory. This could be vulnerable to XML external entity vulnerabilities. Explicitly disable external entities by setting \"javax.xml.stream.isSupportingExternalEntities\" to false." + }, + "help": { + "markdown": "XML external entities are not explicitly disabled for this XMLInputFactory. This could be vulnerable to XML external entity vulnerabilities. Explicitly disable external entities by setting \"javax.xml.stream.isSupportingExternalEntities\" to false.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.lang.security.xmlinputfactory-possible-xxe.xmlinputfactory-possible-xxe)\n - [https://semgrep.dev/blog/2022/xml-security-in-java](https://semgrep.dev/blog/2022/xml-security-in-java)\n - [https://semgrep.dev/docs/cheat-sheets/java-xxe/](https://semgrep.dev/docs/cheat-sheets/java-xxe/)\n - [https://www.blackhat.com/docs/us-15/materials/us-15-Wang-FileCry-The-New-Age-Of-XXE-java-wp.pdf](https://www.blackhat.com/docs/us-15/materials/us-15-Wang-FileCry-The-New-Age-Of-XXE-java-wp.pdf)\n - [https://cheatsheetseries.owasp.org/cheatsheets/XML_External_Entity_Prevention_Cheat_Sheet.html#xmlinputfactory-a-stax-parser](https://cheatsheetseries.owasp.org/cheatsheets/XML_External_Entity_Prevention_Cheat_Sheet.html#xmlinputfactory-a-stax-parser)\n", + "text": "XML external entities are not explicitly disabled for this XMLInputFactory. This could be vulnerable to XML external entity vulnerabilities. Explicitly disable external entities by setting \"javax.xml.stream.isSupportingExternalEntities\" to false." + }, + "helpUri": "https://semgrep.dev/r/java.lang.security.xmlinputfactory-possible-xxe.xmlinputfactory-possible-xxe", + "id": "java.lang.security.xmlinputfactory-possible-xxe.xmlinputfactory-possible-xxe", + "name": "java.lang.security.xmlinputfactory-possible-xxe.xmlinputfactory-possible-xxe", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-611: Improper Restriction of XML External Entity Reference", + "MEDIUM CONFIDENCE", + "OWASP-A04:2017 - XML External Entities (XXE)", + "OWASP-A05:2021 - Security Misconfiguration", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.lang.security.xmlinputfactory-possible-xxe.xmlinputfactory-possible-xxe" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "A parameter being passed directly into `Http` most likely lead to SSRF. This could allow an attacker to send data to their own server, potentially exposing sensitive data sent with this request. They could also probe internal servers or other resources that the server runnig this code can access. Do not allow arbitrary hosts. Instead, create an allowlist for approved hosts hardcode the correct host." + }, + "help": { + "markdown": "A parameter being passed directly into `Http` most likely lead to SSRF. This could allow an attacker to send data to their own server, potentially exposing sensitive data sent with this request. They could also probe internal servers or other resources that the server runnig this code can access. Do not allow arbitrary hosts. Instead, create an allowlist for approved hosts hardcode the correct host.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/scala.lang.security.audit.scalaj-http-ssrf.scalaj-http-ssrf)\n - [https://cheatsheetseries.owasp.org/cheatsheets/Server_Side_Request_Forgery_Prevention_Cheat_Sheet.html](https://cheatsheetseries.owasp.org/cheatsheets/Server_Side_Request_Forgery_Prevention_Cheat_Sheet.html)\n - [https://github.com/scalaj/scalaj-http#simplified-http](https://github.com/scalaj/scalaj-http#simplified-http)\n", + "text": "A parameter being passed directly into `Http` most likely lead to SSRF. This could allow an attacker to send data to their own server, potentially exposing sensitive data sent with this request. They could also probe internal servers or other resources that the server runnig this code can access. Do not allow arbitrary hosts. Instead, create an allowlist for approved hosts hardcode the correct host." + }, + "helpUri": "https://semgrep.dev/r/scala.lang.security.audit.scalaj-http-ssrf.scalaj-http-ssrf", + "id": "scala.lang.security.audit.scalaj-http-ssrf.scalaj-http-ssrf", + "name": "scala.lang.security.audit.scalaj-http-ssrf.scalaj-http-ssrf", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-918: Server-Side Request Forgery (SSRF)", + "LOW CONFIDENCE", + "OWASP-A10:2021 - Server-Side Request Forgery (SSRF)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: scala.lang.security.audit.scalaj-http-ssrf.scalaj-http-ssrf" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Potential arbitrary code execution, piped to eval" + }, + "help": { + "markdown": "Potential arbitrary code execution, piped to eval\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.thenify.security.audit.multiargs-code-execution.multiargs-code-execution)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "Potential arbitrary code execution, piped to eval" + }, + "helpUri": "https://semgrep.dev/r/javascript.thenify.security.audit.multiargs-code-execution.multiargs-code-execution", + "id": "javascript.thenify.security.audit.multiargs-code-execution.multiargs-code-execution", + "name": "javascript.thenify.security.audit.multiargs-code-execution.multiargs-code-execution", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-94: Improper Control of Generation of Code ('Code Injection')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.thenify.security.audit.multiargs-code-execution.multiargs-code-execution" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected the decoding of a JWT token without a verify step. JWT tokens must be verified before use, otherwise the token's integrity is unknown. This means a malicious actor could forge a JWT token with any claims." + }, + "help": { + "markdown": "Detected the decoding of a JWT token without a verify step. JWT tokens must be verified before use, otherwise the token's integrity is unknown. This means a malicious actor could forge a JWT token with any claims.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ruby.jwt.security.audit.jwt-decode-without-verify.ruby-jwt-decode-without-verify)\n - [https://owasp.org/Top10/A08_2021-Software_and_Data_Integrity_Failures](https://owasp.org/Top10/A08_2021-Software_and_Data_Integrity_Failures)\n", + "text": "Detected the decoding of a JWT token without a verify step. JWT tokens must be verified before use, otherwise the token's integrity is unknown. This means a malicious actor could forge a JWT token with any claims." + }, + "helpUri": "https://semgrep.dev/r/ruby.jwt.security.audit.jwt-decode-without-verify.ruby-jwt-decode-without-verify", + "id": "ruby.jwt.security.audit.jwt-decode-without-verify.ruby-jwt-decode-without-verify", + "name": "ruby.jwt.security.audit.jwt-decode-without-verify.ruby-jwt-decode-without-verify", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-345: Insufficient Verification of Data Authenticity", + "LOW CONFIDENCE", + "OWASP-A08:2021 - Software and Data Integrity Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: ruby.jwt.security.audit.jwt-decode-without-verify.ruby-jwt-decode-without-verify" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Container or pod is running in privileged mode. This grants the container the equivalent of root capabilities on the host machine. This can lead to container escapes, privilege escalation, and other security concerns. Remove the 'privileged' key to disable this capability." + }, + "help": { + "markdown": "Container or pod is running in privileged mode. This grants the container the equivalent of root capabilities on the host machine. This can lead to container escapes, privilege escalation, and other security concerns. Remove the 'privileged' key to disable this capability.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/yaml.kubernetes.security.privileged-container.privileged-container)\n - [https://kubernetes.io/docs/concepts/policy/pod-security-policy/#privileged](https://kubernetes.io/docs/concepts/policy/pod-security-policy/#privileged)\n - [https://kubernetes.io/docs/tasks/configure-pod-container/security-context/](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/)\n - [https://cheatsheetseries.owasp.org/cheatsheets/Docker_Security_Cheat_Sheet.html](https://cheatsheetseries.owasp.org/cheatsheets/Docker_Security_Cheat_Sheet.html)\n", + "text": "Container or pod is running in privileged mode. This grants the container the equivalent of root capabilities on the host machine. This can lead to container escapes, privilege escalation, and other security concerns. Remove the 'privileged' key to disable this capability." + }, + "helpUri": "https://semgrep.dev/r/yaml.kubernetes.security.privileged-container.privileged-container", + "id": "yaml.kubernetes.security.privileged-container.privileged-container", + "name": "yaml.kubernetes.security.privileged-container.privileged-container", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-250: Execution with Unnecessary Privileges", + "MEDIUM CONFIDENCE", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: yaml.kubernetes.security.privileged-container.privileged-container" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "The `eval()` function evaluates JavaScript code represented as a string. Executing JavaScript from a string is an enormous security risk. It is far too easy for a bad actor to run arbitrary code when you use `eval()`. Ensure evaluated content is not definable by external sources." + }, + "help": { + "markdown": "The `eval()` function evaluates JavaScript code represented as a string. Executing JavaScript from a string is an enormous security risk. It is far too easy for a bad actor to run arbitrary code when you use `eval()`. Ensure evaluated content is not definable by external sources.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.aws-lambda.security.tainted-eval.tainted-eval)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "The `eval()` function evaluates JavaScript code represented as a string. Executing JavaScript from a string is an enormous security risk. It is far too easy for a bad actor to run arbitrary code when you use `eval()`. Ensure evaluated content is not definable by external sources." + }, + "helpUri": "https://semgrep.dev/r/javascript.aws-lambda.security.tainted-eval.tainted-eval", + "id": "javascript.aws-lambda.security.tainted-eval.tainted-eval", + "name": "javascript.aws-lambda.security.tainted-eval.tainted-eval", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.aws-lambda.security.tainted-eval.tainted-eval" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Make sure that unverified user data can not reach `sandbox`." + }, + "help": { + "markdown": "Make sure that unverified user data can not reach `sandbox`.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.sandbox.security.audit.sandbox-code-injection.sandbox-code-injection)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "Make sure that unverified user data can not reach `sandbox`." + }, + "helpUri": "https://semgrep.dev/r/javascript.sandbox.security.audit.sandbox-code-injection.sandbox-code-injection", + "id": "javascript.sandbox.security.audit.sandbox-code-injection.sandbox-code-injection", + "name": "javascript.sandbox.security.audit.sandbox-code-injection.sandbox-code-injection", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-94: Improper Control of Generation of Code ('Code Injection')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.sandbox.security.audit.sandbox-code-injection.sandbox-code-injection" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "'syscall' is essentially unsafe and unportable. The DL (https://apidock.com/ruby/Fiddle) library is preferred for safer and a bit more portable programming." + }, + "help": { + "markdown": "'syscall' is essentially unsafe and unportable. The DL (https://apidock.com/ruby/Fiddle) library is preferred for safer and a bit more portable programming.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ruby.lang.security.dangerous-syscall.dangerous-syscall)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "'syscall' is essentially unsafe and unportable. The DL (https://apidock.com/ruby/Fiddle) library is preferred for safer and a bit more portable programming." + }, + "helpUri": "https://semgrep.dev/r/ruby.lang.security.dangerous-syscall.dangerous-syscall", + "id": "ruby.lang.security.dangerous-syscall.dangerous-syscall", + "name": "ruby.lang.security.dangerous-syscall.dangerous-syscall", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-94: Improper Control of Generation of Code ('Code Injection')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: ruby.lang.security.dangerous-syscall.dangerous-syscall" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "A formatted or concatenated string was detected as input to a ProcessBuilder call. This is dangerous if a variable is controlled by user input and could result in a command injection. Ensure your variables are not controlled by users or sufficiently sanitized." + }, + "help": { + "markdown": "A formatted or concatenated string was detected as input to a ProcessBuilder call. This is dangerous if a variable is controlled by user input and could result in a command injection. Ensure your variables are not controlled by users or sufficiently sanitized.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.lang.security.audit.command-injection-process-builder.command-injection-process-builder)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "A formatted or concatenated string was detected as input to a ProcessBuilder call. This is dangerous if a variable is controlled by user input and could result in a command injection. Ensure your variables are not controlled by users or sufficiently sanitized." + }, + "helpUri": "https://semgrep.dev/r/java.lang.security.audit.command-injection-process-builder.command-injection-process-builder", + "id": "java.lang.security.audit.command-injection-process-builder.command-injection-process-builder", + "name": "java.lang.security.audit.command-injection-process-builder.command-injection-process-builder", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')", + "LOW CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.lang.security.audit.command-injection-process-builder.command-injection-process-builder" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Iteration over a possibly empty map `$C`. This is likely a bug or redundant code" + }, + "help": { + "markdown": "Iteration over a possibly empty map `$C`. This is likely a bug or redundant code\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/trailofbits.go.iterate-over-empty-map.iterate-over-empty-map)\n - [https://blog.trailofbits.com/2019/11/07/attacking-go-vr-ttps/](https://blog.trailofbits.com/2019/11/07/attacking-go-vr-ttps/)\n", + "text": "Iteration over a possibly empty map `$C`. This is likely a bug or redundant code" + }, + "helpUri": "https://semgrep.dev/r/trailofbits.go.iterate-over-empty-map.iterate-over-empty-map", + "id": "trailofbits.go.iterate-over-empty-map.iterate-over-empty-map", + "name": "trailofbits.go.iterate-over-empty-map.iterate-over-empty-map", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-665: Improper Initialization", + "MEDIUM CONFIDENCE", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: trailofbits.go.iterate-over-empty-map.iterate-over-empty-map" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Use of RC4 was detected. RC4 is vulnerable to several attacks, including stream cipher attacks and bit flipping attacks. Instead, use a strong, secure cipher: Cipher.getInstance(\"AES/CBC/PKCS7PADDING\"). See https://owasp.org/www-community/Using_the_Java_Cryptographic_Extensions for more information." + }, + "help": { + "markdown": "Use of RC4 was detected. RC4 is vulnerable to several attacks, including stream cipher attacks and bit flipping attacks. Instead, use a strong, secure cipher: Cipher.getInstance(\"AES/CBC/PKCS7PADDING\"). See https://owasp.org/www-community/Using_the_Java_Cryptographic_Extensions for more information.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.lang.security.audit.crypto.use-of-rc4.use-of-rc4)\n - [https://owasp.org/Top10/A02_2021-Cryptographic_Failures](https://owasp.org/Top10/A02_2021-Cryptographic_Failures)\n - [https://googleprojectzero.blogspot.com/2022/10/rc4-is-still-considered-harmful.html](https://googleprojectzero.blogspot.com/2022/10/rc4-is-still-considered-harmful.html)\n", + "text": "Use of RC4 was detected. RC4 is vulnerable to several attacks, including stream cipher attacks and bit flipping attacks. Instead, use a strong, secure cipher: Cipher.getInstance(\"AES/CBC/PKCS7PADDING\"). See https://owasp.org/www-community/Using_the_Java_Cryptographic_Extensions for more information." + }, + "helpUri": "https://semgrep.dev/r/java.lang.security.audit.crypto.use-of-rc4.use-of-rc4", + "id": "java.lang.security.audit.crypto.use-of-rc4.use-of-rc4", + "name": "java.lang.security.audit.crypto.use-of-rc4.use-of-rc4", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-327: Use of a Broken or Risky Cryptographic Algorithm", + "HIGH CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.lang.security.audit.crypto.use-of-rc4.use-of-rc4" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Possibility of prototype polluting function detected. By adding or modifying attributes of an object prototype, it is possible to create attributes that exist on every object, or replace critical attributes with malicious ones. This can be problematic if the software depends on existence or non-existence of certain attributes, or uses pre-defined attributes of object prototype (such as hasOwnProperty, toString or valueOf). Possible mitigations might be: freezing the object prototype, using an object without prototypes (via Object.create(null) ), blocking modifications of attributes that resolve to object prototype, using Map instead of object." + }, + "help": { + "markdown": "Possibility of prototype polluting function detected. By adding or modifying attributes of an object prototype, it is possible to create attributes that exist on every object, or replace critical attributes with malicious ones. This can be problematic if the software depends on existence or non-existence of certain attributes, or uses pre-defined attributes of object prototype (such as hasOwnProperty, toString or valueOf). Possible mitigations might be: freezing the object prototype, using an object without prototypes (via Object.create(null) ), blocking modifications of attributes that resolve to object prototype, using Map instead of object.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.lang.security.audit.prototype-pollution.prototype-pollution-loop.prototype-pollution-loop)\n - [https://github.com/HoLyVieR/prototype-pollution-nsec18/blob/master/paper/JavaScript_prototype_pollution_attack_in_NodeJS.pdf](https://github.com/HoLyVieR/prototype-pollution-nsec18/blob/master/paper/JavaScript_prototype_pollution_attack_in_NodeJS.pdf)\n", + "text": "Possibility of prototype polluting function detected. By adding or modifying attributes of an object prototype, it is possible to create attributes that exist on every object, or replace critical attributes with malicious ones. This can be problematic if the software depends on existence or non-existence of certain attributes, or uses pre-defined attributes of object prototype (such as hasOwnProperty, toString or valueOf). Possible mitigations might be: freezing the object prototype, using an object without prototypes (via Object.create(null) ), blocking modifications of attributes that resolve to object prototype, using Map instead of object." + }, + "helpUri": "https://semgrep.dev/r/javascript.lang.security.audit.prototype-pollution.prototype-pollution-loop.prototype-pollution-loop", + "id": "javascript.lang.security.audit.prototype-pollution.prototype-pollution-loop.prototype-pollution-loop", + "name": "javascript.lang.security.audit.prototype-pollution.prototype-pollution-loop.prototype-pollution-loop", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes", + "LOW CONFIDENCE", + "OWASP-A08:2021 - Software and Data Integrity Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.lang.security.audit.prototype-pollution.prototype-pollution-loop.prototype-pollution-loop" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Data is being eval'd from a `curl` command. An attacker with control of the server in the `curl` command could inject malicious code into the `eval`, resulting in a system comrpomise. Avoid eval'ing untrusted data if you can. If you must do this, consider checking the SHA sum of the content returned by the server to verify its integrity." + }, + "help": { + "markdown": "Data is being eval'd from a `curl` command. An attacker with control of the server in the `curl` command could inject malicious code into the `eval`, resulting in a system comrpomise. Avoid eval'ing untrusted data if you can. If you must do this, consider checking the SHA sum of the content returned by the server to verify its integrity.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/yaml.github-actions.security.curl-eval.curl-eval)\n - [https://docs.github.com/en/actions/learn-github-actions/security-hardening-for-github-actions#understanding-the-risk-of-script-injections](https://docs.github.com/en/actions/learn-github-actions/security-hardening-for-github-actions#understanding-the-risk-of-script-injections)\n", + "text": "Data is being eval'd from a `curl` command. An attacker with control of the server in the `curl` command could inject malicious code into the `eval`, resulting in a system comrpomise. Avoid eval'ing untrusted data if you can. If you must do this, consider checking the SHA sum of the content returned by the server to verify its integrity." + }, + "helpUri": "https://semgrep.dev/r/yaml.github-actions.security.curl-eval.curl-eval", + "id": "yaml.github-actions.security.curl-eval.curl-eval", + "name": "yaml.github-actions.security.curl-eval.curl-eval", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')", + "LOW CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: yaml.github-actions.security.curl-eval.curl-eval" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "A session cookie was detected without setting the 'HttpOnly' flag. The 'HttpOnly' flag for cookies instructs the browser to forbid client-side scripts from reading the cookie which mitigates XSS attacks. Set the 'HttpOnly' flag by setting 'HttpOnly' to 'true' in the Options struct." + }, + "help": { + "markdown": "A session cookie was detected without setting the 'HttpOnly' flag. The 'HttpOnly' flag for cookies instructs the browser to forbid client-side scripts from reading the cookie which mitigates XSS attacks. Set the 'HttpOnly' flag by setting 'HttpOnly' to 'true' in the Options struct.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/go.gorilla.security.audit.session-cookie-missing-httponly.session-cookie-missing-httponly)\n - [https://github.com/0c34/govwa/blob/139693e56406b5684d2a6ae22c0af90717e149b8/user/session/session.go#L69](https://github.com/0c34/govwa/blob/139693e56406b5684d2a6ae22c0af90717e149b8/user/session/session.go#L69)\n", + "text": "A session cookie was detected without setting the 'HttpOnly' flag. The 'HttpOnly' flag for cookies instructs the browser to forbid client-side scripts from reading the cookie which mitigates XSS attacks. Set the 'HttpOnly' flag by setting 'HttpOnly' to 'true' in the Options struct." + }, + "helpUri": "https://semgrep.dev/r/go.gorilla.security.audit.session-cookie-missing-httponly.session-cookie-missing-httponly", + "id": "go.gorilla.security.audit.session-cookie-missing-httponly.session-cookie-missing-httponly", + "name": "go.gorilla.security.audit.session-cookie-missing-httponly.session-cookie-missing-httponly", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-1004: Sensitive Cookie Without 'HttpOnly' Flag", + "MEDIUM CONFIDENCE", + "OWASP-A05:2021 - Security Misconfiguration", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: go.gorilla.security.audit.session-cookie-missing-httponly.session-cookie-missing-httponly" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Found user-controllable input to Ruby reflection functionality. This allows a remote user to influence runtime behavior, up to and including arbitrary remote code execution. Do not provide user-controllable input to reflection functionality. Do not call symbol conversion on user-controllable input." + }, + "help": { + "markdown": "Found user-controllable input to Ruby reflection functionality. This allows a remote user to influence runtime behavior, up to and including arbitrary remote code execution. Do not provide user-controllable input to reflection functionality. Do not call symbol conversion on user-controllable input.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ruby.rails.security.brakeman.check-unsafe-reflection.check-unsafe-reflection)\n - [https://github.com/presidentbeef/brakeman/blob/main/test/apps/rails2/app/controllers/application_controller.rb](https://github.com/presidentbeef/brakeman/blob/main/test/apps/rails2/app/controllers/application_controller.rb)\n", + "text": "Found user-controllable input to Ruby reflection functionality. This allows a remote user to influence runtime behavior, up to and including arbitrary remote code execution. Do not provide user-controllable input to reflection functionality. Do not call symbol conversion on user-controllable input." + }, + "helpUri": "https://semgrep.dev/r/ruby.rails.security.brakeman.check-unsafe-reflection.check-unsafe-reflection", + "id": "ruby.rails.security.brakeman.check-unsafe-reflection.check-unsafe-reflection", + "name": "ruby.rails.security.brakeman.check-unsafe-reflection.check-unsafe-reflection", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-94: Improper Control of Generation of Code ('Code Injection')", + "MEDIUM CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: ruby.rails.security.brakeman.check-unsafe-reflection.check-unsafe-reflection" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Ensure all Elasticsearch has node-to-node encryption enabled.\t" + }, + "help": { + "markdown": "Ensure all Elasticsearch has node-to-node encryption enabled.\t\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.aws.security.aws-elasticsearch-nodetonode-encryption.aws-elasticsearch-nodetonode-encryption-not-enabled)\n - [https://owasp.org/Top10/A02_2021-Cryptographic_Failures](https://owasp.org/Top10/A02_2021-Cryptographic_Failures)\n", + "text": "Ensure all Elasticsearch has node-to-node encryption enabled.\t" + }, + "helpUri": "https://semgrep.dev/r/terraform.aws.security.aws-elasticsearch-nodetonode-encryption.aws-elasticsearch-nodetonode-encryption-not-enabled", + "id": "terraform.aws.security.aws-elasticsearch-nodetonode-encryption.aws-elasticsearch-nodetonode-encryption-not-enabled", + "name": "terraform.aws.security.aws-elasticsearch-nodetonode-encryption.aws-elasticsearch-nodetonode-encryption-not-enabled", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-326: Inadequate Encryption Strength", + "MEDIUM CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.aws.security.aws-elasticsearch-nodetonode-encryption.aws-elasticsearch-nodetonode-encryption-not-enabled" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected a 'urllib.request.Request()' object using an insecure transport protocol, 'ftp://'. This connection will not be encrypted. Consider using SFTP instead. urllib does not support SFTP natively, so consider using a library which supports SFTP." + }, + "help": { + "markdown": "Detected a 'urllib.request.Request()' object using an insecure transport protocol, 'ftp://'. This connection will not be encrypted. Consider using SFTP instead. urllib does not support SFTP natively, so consider using a library which supports SFTP.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.lang.security.audit.insecure-transport.urllib.insecure-request-object-ftp.insecure-request-object-ftp)\n - [https://docs.python.org/3/library/urllib.request.html#urllib.request.Request](https://docs.python.org/3/library/urllib.request.html#urllib.request.Request)\n", + "text": "Detected a 'urllib.request.Request()' object using an insecure transport protocol, 'ftp://'. This connection will not be encrypted. Consider using SFTP instead. urllib does not support SFTP natively, so consider using a library which supports SFTP." + }, + "helpUri": "https://semgrep.dev/r/python.lang.security.audit.insecure-transport.urllib.insecure-request-object-ftp.insecure-request-object-ftp", + "id": "python.lang.security.audit.insecure-transport.urllib.insecure-request-object-ftp.insecure-request-object-ftp", + "name": "python.lang.security.audit.insecure-transport.urllib.insecure-request-object-ftp.insecure-request-object-ftp", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-319: Cleartext Transmission of Sensitive Information", + "LOW CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.lang.security.audit.insecure-transport.urllib.insecure-request-object-ftp.insecure-request-object-ftp" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "User data flows into the host portion of this manually-constructed HTML. This can introduce a Cross-Site-Scripting (XSS) vulnerability if this comes from user-provided input. Consider using a sanitization library such as DOMPurify to sanitize the HTML within." + }, + "help": { + "markdown": "User data flows into the host portion of this manually-constructed HTML. This can introduce a Cross-Site-Scripting (XSS) vulnerability if this comes from user-provided input. Consider using a sanitization library such as DOMPurify to sanitize the HTML within.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.express.security.injection.raw-html-format.raw-html-format)\n - [https://cheatsheetseries.owasp.org/cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.html](https://cheatsheetseries.owasp.org/cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.html)\n", + "text": "User data flows into the host portion of this manually-constructed HTML. This can introduce a Cross-Site-Scripting (XSS) vulnerability if this comes from user-provided input. Consider using a sanitization library such as DOMPurify to sanitize the HTML within." + }, + "helpUri": "https://semgrep.dev/r/javascript.express.security.injection.raw-html-format.raw-html-format", + "id": "javascript.express.security.injection.raw-html-format.raw-html-format", + "name": "javascript.express.security.injection.raw-html-format.raw-html-format", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "MEDIUM CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.express.security.injection.raw-html-format.raw-html-format" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected input from a HTTPServletRequest going into an LDAP query. This could lead to LDAP injection if the input is not properly sanitized, which could result in attackers modifying objects in the LDAP tree structure. Ensure data passed to an LDAP query is not controllable or properly sanitize the data." + }, + "help": { + "markdown": "Detected input from a HTTPServletRequest going into an LDAP query. This could lead to LDAP injection if the input is not properly sanitized, which could result in attackers modifying objects in the LDAP tree structure. Ensure data passed to an LDAP query is not controllable or properly sanitize the data.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.lang.security.audit.tainted-ldapi-from-http-request.tainted-ldapi-from-http-request)\n - [https://sensei.securecodewarrior.com/recipes/scw%3Ajava%3ALDAP-injection](https://sensei.securecodewarrior.com/recipes/scw%3Ajava%3ALDAP-injection)\n", + "text": "Detected input from a HTTPServletRequest going into an LDAP query. This could lead to LDAP injection if the input is not properly sanitized, which could result in attackers modifying objects in the LDAP tree structure. Ensure data passed to an LDAP query is not controllable or properly sanitize the data." + }, + "helpUri": "https://semgrep.dev/r/java.lang.security.audit.tainted-ldapi-from-http-request.tainted-ldapi-from-http-request", + "id": "java.lang.security.audit.tainted-ldapi-from-http-request.tainted-ldapi-from-http-request", + "name": "java.lang.security.audit.tainted-ldapi-from-http-request.tainted-ldapi-from-http-request", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-90: Improper Neutralization of Special Elements used in an LDAP Query ('LDAP Injection')", + "MEDIUM CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.lang.security.audit.tainted-ldapi-from-http-request.tainted-ldapi-from-http-request" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "String-formatted SQL query detected. This could lead to SQL injection if the string is not sanitized properly. Audit this call to ensure the SQL is not manipulable by external data." + }, + "help": { + "markdown": "String-formatted SQL query detected. This could lead to SQL injection if the string is not sanitized properly. Audit this call to ensure the SQL is not manipulable by external data.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/go.lang.security.audit.database.string-formatted-query.string-formatted-query)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "String-formatted SQL query detected. This could lead to SQL injection if the string is not sanitized properly. Audit this call to ensure the SQL is not manipulable by external data." + }, + "helpUri": "https://semgrep.dev/r/go.lang.security.audit.database.string-formatted-query.string-formatted-query", + "id": "go.lang.security.audit.database.string-formatted-query.string-formatted-query", + "name": "go.lang.security.audit.database.string-formatted-query.string-formatted-query", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')", + "LOW CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: go.lang.security.audit.database.string-formatted-query.string-formatted-query" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Using an arbitrary object ('$PARAMTYPE $PARAM') with Java RMI is an insecure deserialization vulnerability. This object can be manipulated by a malicious actor allowing them to execute code on your system. Instead, use an integer ID to look up your object, or consider alternative serialization schemes such as JSON." + }, + "help": { + "markdown": "Using an arbitrary object ('$PARAMTYPE $PARAM') with Java RMI is an insecure deserialization vulnerability. This object can be manipulated by a malicious actor allowing them to execute code on your system. Instead, use an integer ID to look up your object, or consider alternative serialization schemes such as JSON.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.rmi.security.server-dangerous-object-deserialization.server-dangerous-object-deserialization)\n - [https://frohoff.github.io/appseccali-marshalling-pickles/](https://frohoff.github.io/appseccali-marshalling-pickles/)\n - [https://book.hacktricks.xyz/network-services-pentesting/1099-pentesting-java-rmi](https://book.hacktricks.xyz/network-services-pentesting/1099-pentesting-java-rmi)\n - [https://youtu.be/t_aw1mDNhzI](https://youtu.be/t_aw1mDNhzI)\n - [https://github.com/qtc-de/remote-method-guesser](https://github.com/qtc-de/remote-method-guesser)\n - [https://github.com/openjdk/jdk/blob/master/src/java.rmi/share/classes/sun/rmi/server/UnicastRef.java#L303C4-L331](https://github.com/openjdk/jdk/blob/master/src/java.rmi/share/classes/sun/rmi/server/UnicastRef.java#L303C4-L331)\n", + "text": "Using an arbitrary object ('$PARAMTYPE $PARAM') with Java RMI is an insecure deserialization vulnerability. This object can be manipulated by a malicious actor allowing them to execute code on your system. Instead, use an integer ID to look up your object, or consider alternative serialization schemes such as JSON." + }, + "helpUri": "https://semgrep.dev/r/java.rmi.security.server-dangerous-object-deserialization.server-dangerous-object-deserialization", + "id": "java.rmi.security.server-dangerous-object-deserialization.server-dangerous-object-deserialization", + "name": "java.rmi.security.server-dangerous-object-deserialization.server-dangerous-object-deserialization", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-502: Deserialization of Untrusted Data", + "LOW CONFIDENCE", + "OWASP-A08:2017 - Insecure Deserialization", + "OWASP-A08:2021 - Software and Data Integrity Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.rmi.security.server-dangerous-object-deserialization.server-dangerous-object-deserialization" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "ELB has no logging. Missing logs can cause missing important event information." + }, + "help": { + "markdown": "ELB has no logging. Missing logs can cause missing important event information.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.aws.security.aws-elb-access-logs-not-enabled.aws-elb-access-logs-not-enabled)\n - [https://owasp.org/Top10/A02_2021-Cryptographic_Failures](https://owasp.org/Top10/A02_2021-Cryptographic_Failures)\n", + "text": "ELB has no logging. Missing logs can cause missing important event information." + }, + "helpUri": "https://semgrep.dev/r/terraform.aws.security.aws-elb-access-logs-not-enabled.aws-elb-access-logs-not-enabled", + "id": "terraform.aws.security.aws-elb-access-logs-not-enabled.aws-elb-access-logs-not-enabled", + "name": "terraform.aws.security.aws-elb-access-logs-not-enabled.aws-elb-access-logs-not-enabled", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-326: Inadequate Encryption Strength", + "LOW CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.aws.security.aws-elb-access-logs-not-enabled.aws-elb-access-logs-not-enabled" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "'html_safe()' does not make the supplied string safe. 'html_safe()' bypasses HTML escaping. If external data can reach here, this exposes your application to cross-site scripting (XSS) attacks. Ensure no external data reaches here." + }, + "help": { + "markdown": "'html_safe()' does not make the supplied string safe. 'html_safe()' bypasses HTML escaping. If external data can reach here, this exposes your application to cross-site scripting (XSS) attacks. Ensure no external data reaches here.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ruby.rails.security.audit.xss.avoid-html-safe.avoid-html-safe)\n - [https://github.com/presidentbeef/brakeman/blob/main/docs/warning_types/cross_site_scripting/index.markdown](https://github.com/presidentbeef/brakeman/blob/main/docs/warning_types/cross_site_scripting/index.markdown)\n - [https://www.netsparker.com/blog/web-security/preventing-xss-ruby-on-rails-web-applications/](https://www.netsparker.com/blog/web-security/preventing-xss-ruby-on-rails-web-applications/)\n", + "text": "'html_safe()' does not make the supplied string safe. 'html_safe()' bypasses HTML escaping. If external data can reach here, this exposes your application to cross-site scripting (XSS) attacks. Ensure no external data reaches here." + }, + "helpUri": "https://semgrep.dev/r/ruby.rails.security.audit.xss.avoid-html-safe.avoid-html-safe", + "id": "ruby.rails.security.audit.xss.avoid-html-safe.avoid-html-safe", + "name": "ruby.rails.security.audit.xss.avoid-html-safe.avoid-html-safe", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: ruby.rails.security.audit.xss.avoid-html-safe.avoid-html-safe" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Be careful with `flask.make_response()`. If this response is rendered onto a webpage, this could create a cross-site scripting (XSS) vulnerability. `flask.make_response()` will not autoescape HTML. If you are rendering HTML, write your HTML in a template file and use `flask.render_template()` which will take care of escaping. If you are returning data from an API, consider using `flask.jsonify()`." + }, + "help": { + "markdown": "Be careful with `flask.make_response()`. If this response is rendered onto a webpage, this could create a cross-site scripting (XSS) vulnerability. `flask.make_response()` will not autoescape HTML. If you are rendering HTML, write your HTML in a template file and use `flask.render_template()` which will take care of escaping. If you are returning data from an API, consider using `flask.jsonify()`.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.flask.security.audit.xss.make-response-with-unknown-content.make-response-with-unknown-content)\n - [https://github.com/python-security/pyt//blob/093a077bcf12d1f58ddeb2d73ddc096623985fb0/examples/vulnerable_code/XSS_assign_to_other_var.py#L11](https://github.com/python-security/pyt//blob/093a077bcf12d1f58ddeb2d73ddc096623985fb0/examples/vulnerable_code/XSS_assign_to_other_var.py#L11)\n - [https://flask.palletsprojects.com/en/1.1.x/api/#flask.Flask.make_response](https://flask.palletsprojects.com/en/1.1.x/api/#flask.Flask.make_response)\n - [https://flask.palletsprojects.com/en/1.1.x/api/#response-objects](https://flask.palletsprojects.com/en/1.1.x/api/#response-objects)\n", + "text": "Be careful with `flask.make_response()`. If this response is rendered onto a webpage, this could create a cross-site scripting (XSS) vulnerability. `flask.make_response()` will not autoescape HTML. If you are rendering HTML, write your HTML in a template file and use `flask.render_template()` which will take care of escaping. If you are returning data from an API, consider using `flask.jsonify()`." + }, + "helpUri": "https://semgrep.dev/r/python.flask.security.audit.xss.make-response-with-unknown-content.make-response-with-unknown-content", + "id": "python.flask.security.audit.xss.make-response-with-unknown-content.make-response-with-unknown-content", + "name": "python.flask.security.audit.xss.make-response-with-unknown-content.make-response-with-unknown-content", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.flask.security.audit.xss.make-response-with-unknown-content.make-response-with-unknown-content" + } + }, + { + "defaultConfiguration": { + "level": "note" + }, + "fullDescription": { + "text": "Detected string concatenation with a non-literal variable in a util.format / console.log function. If an attacker injects a format specifier in the string, it will forge the log message. Try to use constant values for the format string." + }, + "help": { + "markdown": "Detected string concatenation with a non-literal variable in a util.format / console.log function. If an attacker injects a format specifier in the string, it will forge the log message. Try to use constant values for the format string.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.lang.security.audit.unsafe-formatstring.unsafe-formatstring)\n - [https://cwe.mitre.org/data/definitions/134.html](https://cwe.mitre.org/data/definitions/134.html)\n", + "text": "Detected string concatenation with a non-literal variable in a util.format / console.log function. If an attacker injects a format specifier in the string, it will forge the log message. Try to use constant values for the format string." + }, + "helpUri": "https://semgrep.dev/r/javascript.lang.security.audit.unsafe-formatstring.unsafe-formatstring", + "id": "javascript.lang.security.audit.unsafe-formatstring.unsafe-formatstring", + "name": "javascript.lang.security.audit.unsafe-formatstring.unsafe-formatstring", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-134: Use of Externally-Controlled Format String", + "LOW CONFIDENCE", + "OWASP-A01:2021 - Broken Access Control", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.lang.security.audit.unsafe-formatstring.unsafe-formatstring" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "A hard-coded credential was detected. It is not recommended to store credentials in source-code, as this risks secrets being leaked and used by either an internal or external malicious adversary. It is recommended to use environment variables to securely provide credentials or retrieve credentials from a secure vault or HSM (Hardware Security Module)." + }, + "help": { + "markdown": "A hard-coded credential was detected. It is not recommended to store credentials in source-code, as this risks secrets being leaked and used by either an internal or external malicious adversary. It is recommended to use environment variables to securely provide credentials or retrieve credentials from a secure vault or HSM (Hardware Security Module).\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.jsonwebtoken.security.jwt-hardcode.hardcoded-jwt-secret)\n - [https://cheatsheetseries.owasp.org/cheatsheets/Secrets_Management_Cheat_Sheet.html](https://cheatsheetseries.owasp.org/cheatsheets/Secrets_Management_Cheat_Sheet.html)\n", + "text": "A hard-coded credential was detected. It is not recommended to store credentials in source-code, as this risks secrets being leaked and used by either an internal or external malicious adversary. It is recommended to use environment variables to securely provide credentials or retrieve credentials from a secure vault or HSM (Hardware Security Module)." + }, + "helpUri": "https://semgrep.dev/r/javascript.jsonwebtoken.security.jwt-hardcode.hardcoded-jwt-secret", + "id": "javascript.jsonwebtoken.security.jwt-hardcode.hardcoded-jwt-secret", + "name": "javascript.jsonwebtoken.security.jwt-hardcode.hardcoded-jwt-secret", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-798: Use of Hard-coded Credentials", + "HIGH CONFIDENCE", + "OWASP-A07:2021 - Identification and Authentication Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.jsonwebtoken.security.jwt-hardcode.hardcoded-jwt-secret" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Detected user input used to manually construct a SQL string. This is usually bad practice because manual construction could accidentally result in a SQL injection. An attacker could use a SQL injection to steal or modify contents of the database. Instead, use a parameterized query which is available by default in most database engines. Alternatively, consider using an object-relational mapper (ORM) such as SQLAlchemy which will protect your queries." + }, + "help": { + "markdown": "Detected user input used to manually construct a SQL string. This is usually bad practice because manual construction could accidentally result in a SQL injection. An attacker could use a SQL injection to steal or modify contents of the database. Instead, use a parameterized query which is available by default in most database engines. Alternatively, consider using an object-relational mapper (ORM) such as SQLAlchemy which will protect your queries.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.flask.security.injection.tainted-sql-string.tainted-sql-string)\n - [https://docs.sqlalchemy.org/en/14/core/tutorial.html#using-textual-sql](https://docs.sqlalchemy.org/en/14/core/tutorial.html#using-textual-sql)\n - [https://www.tutorialspoint.com/sqlalchemy/sqlalchemy_quick_guide.htm](https://www.tutorialspoint.com/sqlalchemy/sqlalchemy_quick_guide.htm)\n - [https://docs.sqlalchemy.org/en/14/core/tutorial.html#using-more-specific-text-with-table-expression-literal-column-and-expression-column](https://docs.sqlalchemy.org/en/14/core/tutorial.html#using-more-specific-text-with-table-expression-literal-column-and-expression-column)\n", + "text": "Detected user input used to manually construct a SQL string. This is usually bad practice because manual construction could accidentally result in a SQL injection. An attacker could use a SQL injection to steal or modify contents of the database. Instead, use a parameterized query which is available by default in most database engines. Alternatively, consider using an object-relational mapper (ORM) such as SQLAlchemy which will protect your queries." + }, + "helpUri": "https://semgrep.dev/r/python.flask.security.injection.tainted-sql-string.tainted-sql-string", + "id": "python.flask.security.injection.tainted-sql-string.tainted-sql-string", + "name": "python.flask.security.injection.tainted-sql-string.tainted-sql-string", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-704: Incorrect Type Conversion or Cast", + "MEDIUM CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.flask.security.injection.tainted-sql-string.tainted-sql-string" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "PayPal Braintree Access Token detected" + }, + "help": { + "markdown": "PayPal Braintree Access Token detected\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/generic.secrets.security.detected-paypal-braintree-access-token.detected-paypal-braintree-access-token)\n - [https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures](https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures)\n", + "text": "PayPal Braintree Access Token detected" + }, + "helpUri": "https://semgrep.dev/r/generic.secrets.security.detected-paypal-braintree-access-token.detected-paypal-braintree-access-token", + "id": "generic.secrets.security.detected-paypal-braintree-access-token.detected-paypal-braintree-access-token", + "name": "generic.secrets.security.detected-paypal-braintree-access-token.detected-paypal-braintree-access-token", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-798: Use of Hard-coded Credentials", + "LOW CONFIDENCE", + "OWASP-A07:2021 - Identification and Authentication Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: generic.secrets.security.detected-paypal-braintree-access-token.detected-paypal-braintree-access-token" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Storage Analytics logs detailed information about successful and failed requests to a storage service. This information can be used to monitor individual requests and to diagnose issues with a storage service. Requests are logged on a best-effort basis." + }, + "help": { + "markdown": "Storage Analytics logs detailed information about successful and failed requests to a storage service. This information can be used to monitor individual requests and to diagnose issues with a storage service. Requests are logged on a best-effort basis.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.azure.security.storage.storage-queue-services-logging.storage-queue-services-logging)\n - [https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/storage_account#logging](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/storage_account#logging)\n - [https://docs.microsoft.com/en-us/azure/storage/common/storage-analytics-logging?tabs=dotnet](https://docs.microsoft.com/en-us/azure/storage/common/storage-analytics-logging?tabs=dotnet)\n", + "text": "Storage Analytics logs detailed information about successful and failed requests to a storage service. This information can be used to monitor individual requests and to diagnose issues with a storage service. Requests are logged on a best-effort basis." + }, + "helpUri": "https://semgrep.dev/r/terraform.azure.security.storage.storage-queue-services-logging.storage-queue-services-logging", + "id": "terraform.azure.security.storage.storage-queue-services-logging.storage-queue-services-logging", + "name": "terraform.azure.security.storage.storage-queue-services-logging.storage-queue-services-logging", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-778: Insufficient Logging", + "LOW CONFIDENCE", + "OWASP-A09:2021 - Security Logging and Monitoring Failures", + "OWASP-A10:2017 - Insufficient Logging & Monitoring", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.azure.security.storage.storage-queue-services-logging.storage-queue-services-logging" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Found a formatted template string passed to 'template.URL()'. 'template.URL()' does not escape contents, and this could result in XSS (cross-site scripting) and therefore confidential data being stolen. Sanitize data coming into this function or make sure that no user-controlled input is coming into the function." + }, + "help": { + "markdown": "Found a formatted template string passed to 'template.URL()'. 'template.URL()' does not escape contents, and this could result in XSS (cross-site scripting) and therefore confidential data being stolen. Sanitize data coming into this function or make sure that no user-controlled input is coming into the function.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/go.lang.security.audit.net.unescaped-data-in-url.unescaped-data-in-url)\n - [https://golang.org/pkg/html/template/#URL](https://golang.org/pkg/html/template/#URL)\n", + "text": "Found a formatted template string passed to 'template.URL()'. 'template.URL()' does not escape contents, and this could result in XSS (cross-site scripting) and therefore confidential data being stolen. Sanitize data coming into this function or make sure that no user-controlled input is coming into the function." + }, + "helpUri": "https://semgrep.dev/r/go.lang.security.audit.net.unescaped-data-in-url.unescaped-data-in-url", + "id": "go.lang.security.audit.net.unescaped-data-in-url.unescaped-data-in-url", + "name": "go.lang.security.audit.net.unescaped-data-in-url.unescaped-data-in-url", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: go.lang.security.audit.net.unescaped-data-in-url.unescaped-data-in-url" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Ensure S3 object copies are encrypted at rest using KMS CMKs. CMKs gives you control over the encryption key in terms of access and rotation." + }, + "help": { + "markdown": "Ensure S3 object copies are encrypted at rest using KMS CMKs. CMKs gives you control over the encryption key in terms of access and rotation.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.aws.security.aws-s3-object-copy-encrypted-with-cmk.aws-s3-object-copy-encrypted-with-cmk)\n - [https://owasp.org/Top10/A02_2021-Cryptographic_Failures](https://owasp.org/Top10/A02_2021-Cryptographic_Failures)\n", + "text": "Ensure S3 object copies are encrypted at rest using KMS CMKs. CMKs gives you control over the encryption key in terms of access and rotation." + }, + "helpUri": "https://semgrep.dev/r/terraform.aws.security.aws-s3-object-copy-encrypted-with-cmk.aws-s3-object-copy-encrypted-with-cmk", + "id": "terraform.aws.security.aws-s3-object-copy-encrypted-with-cmk.aws-s3-object-copy-encrypted-with-cmk", + "name": "terraform.aws.security.aws-s3-object-copy-encrypted-with-cmk.aws-s3-object-copy-encrypted-with-cmk", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-320: CWE CATEGORY: Key Management Errors", + "LOW CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.aws.security.aws-s3-object-copy-encrypted-with-cmk.aws-s3-object-copy-encrypted-with-cmk" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Data from request is passed to os.path.join() and to open(). This is a path traversal vulnerability, which can lead to sensitive data being leaked. To mitigate, consider using os.path.abspath or os.path.realpath or Path library." + }, + "help": { + "markdown": "Data from request is passed to os.path.join() and to open(). This is a path traversal vulnerability, which can lead to sensitive data being leaked. To mitigate, consider using os.path.abspath or os.path.realpath or Path library.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.django.security.injection.path-traversal.path-traversal-join.path-traversal-join)\n - [https://owasp.org/www-community/attacks/Path_Traversal](https://owasp.org/www-community/attacks/Path_Traversal)\n", + "text": "Data from request is passed to os.path.join() and to open(). This is a path traversal vulnerability, which can lead to sensitive data being leaked. To mitigate, consider using os.path.abspath or os.path.realpath or Path library." + }, + "helpUri": "https://semgrep.dev/r/python.django.security.injection.path-traversal.path-traversal-join.path-traversal-join", + "id": "python.django.security.injection.path-traversal.path-traversal-join.path-traversal-join", + "name": "python.django.security.injection.path-traversal.path-traversal-join.path-traversal-join", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')", + "LOW CONFIDENCE", + "OWASP-A01:2021 - Broken Access Control", + "OWASP-A05:2017 - Broken Access Control", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.django.security.injection.path-traversal.path-traversal-join.path-traversal-join" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected SHA1 hash algorithm which is considered insecure. SHA1 is not collision resistant and is therefore not suitable as a cryptographic signature. Use SHA256 or SHA3 instead." + }, + "help": { + "markdown": "Detected SHA1 hash algorithm which is considered insecure. SHA1 is not collision resistant and is therefore not suitable as a cryptographic signature. Use SHA256 or SHA3 instead.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.pycryptodome.security.insecure-hash-algorithm.insecure-hash-algorithm-sha1)\n - [https://www.schneier.com/blog/archives/2012/10/when_will_we_se.html](https://www.schneier.com/blog/archives/2012/10/when_will_we_se.html)\n - [https://www.trendmicro.com/vinfo/us/security/news/vulnerabilities-and-exploits/sha-1-collision-signals-the-end-of-the-algorithm-s-viability](https://www.trendmicro.com/vinfo/us/security/news/vulnerabilities-and-exploits/sha-1-collision-signals-the-end-of-the-algorithm-s-viability)\n - [http://2012.sharcs.org/slides/stevens.pdf](http://2012.sharcs.org/slides/stevens.pdf)\n - [https://pycryptodome.readthedocs.io/en/latest/src/hash/sha3_256.html](https://pycryptodome.readthedocs.io/en/latest/src/hash/sha3_256.html)\n", + "text": "Detected SHA1 hash algorithm which is considered insecure. SHA1 is not collision resistant and is therefore not suitable as a cryptographic signature. Use SHA256 or SHA3 instead." + }, + "helpUri": "https://semgrep.dev/r/python.pycryptodome.security.insecure-hash-algorithm.insecure-hash-algorithm-sha1", + "id": "python.pycryptodome.security.insecure-hash-algorithm.insecure-hash-algorithm-sha1", + "name": "python.pycryptodome.security.insecure-hash-algorithm.insecure-hash-algorithm-sha1", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-327: Use of a Broken or Risky Cryptographic Algorithm", + "MEDIUM CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.pycryptodome.security.insecure-hash-algorithm.insecure-hash-algorithm-sha1" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Potentially sensitive data was observed to be stored in UserDefaults, which is not adequate protection of sensitive information. For data of a sensitive nature, applications should leverage the Keychain." + }, + "help": { + "markdown": "Potentially sensitive data was observed to be stored in UserDefaults, which is not adequate protection of sensitive information. For data of a sensitive nature, applications should leverage the Keychain.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/swift.lang.storage.sensitive-storage-userdefaults.swift-user-defaults)\n - [https://developer.apple.com/library/archive/documentation/Security/Conceptual/SecureCodingGuide/Articles/ValidatingInput.html](https://developer.apple.com/library/archive/documentation/Security/Conceptual/SecureCodingGuide/Articles/ValidatingInput.html)\n - [https://mas.owasp.org/MASVS/controls/MASVS-STORAGE-1/](https://mas.owasp.org/MASVS/controls/MASVS-STORAGE-1/)\n", + "text": "Potentially sensitive data was observed to be stored in UserDefaults, which is not adequate protection of sensitive information. For data of a sensitive nature, applications should leverage the Keychain." + }, + "helpUri": "https://semgrep.dev/r/swift.lang.storage.sensitive-storage-userdefaults.swift-user-defaults", + "id": "swift.lang.storage.sensitive-storage-userdefaults.swift-user-defaults", + "name": "swift.lang.storage.sensitive-storage-userdefaults.swift-user-defaults", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-311: Missing Encryption of Sensitive Data", + "MEDIUM CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "OWASP-A04:2021 - Insecure Design", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: swift.lang.storage.sensitive-storage-userdefaults.swift-user-defaults" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "'mark_safe()' is used to mark a string as \"safe\" for HTML output. This disables escaping and could therefore subject the content to XSS attacks. Use 'django.utils.html.format_html()' to build HTML for rendering instead." + }, + "help": { + "markdown": "'mark_safe()' is used to mark a string as \"safe\" for HTML output. This disables escaping and could therefore subject the content to XSS attacks. Use 'django.utils.html.format_html()' to build HTML for rendering instead.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.django.security.audit.avoid-mark-safe.avoid-mark-safe)\n - [https://docs.djangoproject.com/en/3.0/ref/utils/#django.utils.safestring.mark_safe](https://docs.djangoproject.com/en/3.0/ref/utils/#django.utils.safestring.mark_safe)\n - [https://docs.djangoproject.com/en/3.0/ref/utils/#django.utils.html.format_html](https://docs.djangoproject.com/en/3.0/ref/utils/#django.utils.html.format_html)\n", + "text": "'mark_safe()' is used to mark a string as \"safe\" for HTML output. This disables escaping and could therefore subject the content to XSS attacks. Use 'django.utils.html.format_html()' to build HTML for rendering instead." + }, + "helpUri": "https://semgrep.dev/r/python.django.security.audit.avoid-mark-safe.avoid-mark-safe", + "id": "python.django.security.audit.avoid-mark-safe.avoid-mark-safe", + "name": "python.django.security.audit.avoid-mark-safe.avoid-mark-safe", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.django.security.audit.avoid-mark-safe.avoid-mark-safe" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "The software constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component." + }, + "help": { + "markdown": "The software constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/csharp.lang.security.injections.os-command.os-command-injection)\n - [https://owasp.org/www-community/attacks/Command_Injection](https://owasp.org/www-community/attacks/Command_Injection)\n", + "text": "The software constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component." + }, + "helpUri": "https://semgrep.dev/r/csharp.lang.security.injections.os-command.os-command-injection", + "id": "csharp.lang.security.injections.os-command.os-command-injection", + "name": "csharp.lang.security.injections.os-command.os-command-injection", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')", + "LOW CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: csharp.lang.security.injections.os-command.os-command-injection" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "These permissions `$BITS` are widely permissive and grant access to more people than may be necessary. A good default is `0o644` which gives read and write access to yourself and read access to everyone else." + }, + "help": { + "markdown": "These permissions `$BITS` are widely permissive and grant access to more people than may be necessary. A good default is `0o644` which gives read and write access to yourself and read access to everyone else.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.lang.security.audit.insecure-file-permissions.insecure-file-permissions)\n - [https://owasp.org/Top10/A01_2021-Broken_Access_Control](https://owasp.org/Top10/A01_2021-Broken_Access_Control)\n", + "text": "These permissions `$BITS` are widely permissive and grant access to more people than may be necessary. A good default is `0o644` which gives read and write access to yourself and read access to everyone else." + }, + "helpUri": "https://semgrep.dev/r/python.lang.security.audit.insecure-file-permissions.insecure-file-permissions", + "id": "python.lang.security.audit.insecure-file-permissions.insecure-file-permissions", + "name": "python.lang.security.audit.insecure-file-permissions.insecure-file-permissions", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-276: Incorrect Default Permissions", + "MEDIUM CONFIDENCE", + "OWASP-A01:2021 - Broken Access Control", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.lang.security.audit.insecure-file-permissions.insecure-file-permissions" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Checks for requests to http and ftp (unencrypted) sites using OpenURI." + }, + "help": { + "markdown": "Checks for requests to http and ftp (unencrypted) sites using OpenURI.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/problem-based-packs.insecure-transport.ruby-stdlib.openuri-request.openuri-request)\n - [https://ruby-doc.org/stdlib-2.6.3/libdoc/open-uri/rdoc/OpenURI.html](https://ruby-doc.org/stdlib-2.6.3/libdoc/open-uri/rdoc/OpenURI.html)\n", + "text": "Checks for requests to http and ftp (unencrypted) sites using OpenURI." + }, + "helpUri": "https://semgrep.dev/r/problem-based-packs.insecure-transport.ruby-stdlib.openuri-request.openuri-request", + "id": "problem-based-packs.insecure-transport.ruby-stdlib.openuri-request.openuri-request", + "name": "problem-based-packs.insecure-transport.ruby-stdlib.openuri-request.openuri-request", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-319: Cleartext Transmission of Sensitive Information", + "MEDIUM CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: problem-based-packs.insecure-transport.ruby-stdlib.openuri-request.openuri-request" + } + }, + { + "defaultConfiguration": { + "level": "note" + }, + "fullDescription": { + "text": "Detected an AppService that was not configured to use a client certificate. Add `client_cert_enabled = true` in your resource block." + }, + "help": { + "markdown": "Detected an AppService that was not configured to use a client certificate. Add `client_cert_enabled = true` in your resource block.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.azure.security.appservice.appservice-require-client-cert.appservice-require-client-cert)\n - [https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/app_service#client_cert_enabled](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/app_service#client_cert_enabled)\n", + "text": "Detected an AppService that was not configured to use a client certificate. Add `client_cert_enabled = true` in your resource block." + }, + "helpUri": "https://semgrep.dev/r/terraform.azure.security.appservice.appservice-require-client-cert.appservice-require-client-cert", + "id": "terraform.azure.security.appservice.appservice-require-client-cert.appservice-require-client-cert", + "name": "terraform.azure.security.appservice.appservice-require-client-cert.appservice-require-client-cert", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-295: Improper Certificate Validation", + "MEDIUM CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "OWASP-A07:2021 - Identification and Authentication Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.azure.security.appservice.appservice-require-client-cert.appservice-require-client-cert" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected RC4 cipher algorithm which is insecure. The algorithm has many known vulnerabilities. Use AES instead." + }, + "help": { + "markdown": "Detected RC4 cipher algorithm which is insecure. The algorithm has many known vulnerabilities. Use AES instead.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/go.lang.security.audit.crypto.use_of_weak_crypto.use-of-rc4)\n - [https://owasp.org/Top10/A02_2021-Cryptographic_Failures](https://owasp.org/Top10/A02_2021-Cryptographic_Failures)\n", + "text": "Detected RC4 cipher algorithm which is insecure. The algorithm has many known vulnerabilities. Use AES instead." + }, + "helpUri": "https://semgrep.dev/r/go.lang.security.audit.crypto.use_of_weak_crypto.use-of-rc4", + "id": "go.lang.security.audit.crypto.use_of_weak_crypto.use-of-rc4", + "name": "go.lang.security.audit.crypto.use_of_weak_crypto.use-of-rc4", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-327: Use of a Broken or Risky Cryptographic Algorithm", + "MEDIUM CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: go.lang.security.audit.crypto.use_of_weak_crypto.use-of-rc4" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Detected admin access granted in your policy. This means anyone with this policy can perform administrative actions. Instead, limit actions and resources to what you need according to least privilege." + }, + "help": { + "markdown": "Detected admin access granted in your policy. This means anyone with this policy can perform administrative actions. Instead, limit actions and resources to what you need according to least privilege.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.aws.security.aws-iam-admin-policy-ssoadmin.aws-iam-admin-policy-ssoadmin)\n - [https://cwe.mitre.org/data/definitions/732.html](https://cwe.mitre.org/data/definitions/732.html)\n", + "text": "Detected admin access granted in your policy. This means anyone with this policy can perform administrative actions. Instead, limit actions and resources to what you need according to least privilege." + }, + "helpUri": "https://semgrep.dev/r/terraform.aws.security.aws-iam-admin-policy-ssoadmin.aws-iam-admin-policy-ssoadmin", + "id": "terraform.aws.security.aws-iam-admin-policy-ssoadmin.aws-iam-admin-policy-ssoadmin", + "name": "terraform.aws.security.aws-iam-admin-policy-ssoadmin.aws-iam-admin-policy-ssoadmin", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-732: Incorrect Permission Assignment for Critical Resource", + "MEDIUM CONFIDENCE", + "OWASP-A05:2021 - Security Misconfiguration", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.aws.security.aws-iam-admin-policy-ssoadmin.aws-iam-admin-policy-ssoadmin" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected template variable interpolation in an HTML tag. This is potentially vulnerable to cross-site scripting (XSS) attacks because a malicious actor has control over HTML but without the need to use escaped characters. Use explicit tags instead." + }, + "help": { + "markdown": "Detected template variable interpolation in an HTML tag. This is potentially vulnerable to cross-site scripting (XSS) attacks because a malicious actor has control over HTML but without the need to use escaped characters. Use explicit tags instead.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/go.lang.security.audit.xss.no-interpolation-in-tag.no-interpolation-in-tag)\n - [https://github.com/golang/go/issues/19669](https://github.com/golang/go/issues/19669)\n - [https://blogtitle.github.io/robn-go-security-pearls-cross-site-scripting-xss/](https://blogtitle.github.io/robn-go-security-pearls-cross-site-scripting-xss/)\n", + "text": "Detected template variable interpolation in an HTML tag. This is potentially vulnerable to cross-site scripting (XSS) attacks because a malicious actor has control over HTML but without the need to use escaped characters. Use explicit tags instead." + }, + "helpUri": "https://semgrep.dev/r/go.lang.security.audit.xss.no-interpolation-in-tag.no-interpolation-in-tag", + "id": "go.lang.security.audit.xss.no-interpolation-in-tag.no-interpolation-in-tag", + "name": "go.lang.security.audit.xss.no-interpolation-in-tag.no-interpolation-in-tag", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: go.lang.security.audit.xss.no-interpolation-in-tag.no-interpolation-in-tag" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "MailChimp API Key detected" + }, + "help": { + "markdown": "MailChimp API Key detected\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/generic.secrets.security.detected-mailchimp-api-key.detected-mailchimp-api-key)\n - [https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures](https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures)\n", + "text": "MailChimp API Key detected" + }, + "helpUri": "https://semgrep.dev/r/generic.secrets.security.detected-mailchimp-api-key.detected-mailchimp-api-key", + "id": "generic.secrets.security.detected-mailchimp-api-key.detected-mailchimp-api-key", + "name": "generic.secrets.security.detected-mailchimp-api-key.detected-mailchimp-api-key", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-798: Use of Hard-coded Credentials", + "LOW CONFIDENCE", + "OWASP-A07:2021 - Identification and Authentication Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: generic.secrets.security.detected-mailchimp-api-key.detected-mailchimp-api-key" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Checks for requests sent via HttpClient to http:// URLS. This is dangerous because the server is attempting to connect to a website that does not encrypt traffic with TLS. Instead, send requests only to https:// URLS." + }, + "help": { + "markdown": "Checks for requests sent via HttpClient to http:// URLS. This is dangerous because the server is attempting to connect to a website that does not encrypt traffic with TLS. Instead, send requests only to https:// URLS.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/problem-based-packs.insecure-transport.java-stdlib.httpclient-http-request.httpclient-http-request)\n - [https://openjdk.java.net/groups/net/httpclient/intro.html](https://openjdk.java.net/groups/net/httpclient/intro.html)\n", + "text": "Checks for requests sent via HttpClient to http:// URLS. This is dangerous because the server is attempting to connect to a website that does not encrypt traffic with TLS. Instead, send requests only to https:// URLS." + }, + "helpUri": "https://semgrep.dev/r/problem-based-packs.insecure-transport.java-stdlib.httpclient-http-request.httpclient-http-request", + "id": "problem-based-packs.insecure-transport.java-stdlib.httpclient-http-request.httpclient-http-request", + "name": "problem-based-packs.insecure-transport.java-stdlib.httpclient-http-request.httpclient-http-request", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-319: Cleartext Transmission of Sensitive Information", + "MEDIUM CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: problem-based-packs.insecure-transport.java-stdlib.httpclient-http-request.httpclient-http-request" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Checks for requests sent via http.$FUNC to http:// URLS. This is dangerous because the server is attempting to connect to a website that does not encrypt traffic with TLS. Instead, send requests only to https:// URLS." + }, + "help": { + "markdown": "Checks for requests sent via http.$FUNC to http:// URLS. This is dangerous because the server is attempting to connect to a website that does not encrypt traffic with TLS. Instead, send requests only to https:// URLS.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/problem-based-packs.insecure-transport.go-stdlib.http-request.http-request)\n - [https://golang.org/pkg/net/http/#Get](https://golang.org/pkg/net/http/#Get)\n", + "text": "Checks for requests sent via http.$FUNC to http:// URLS. This is dangerous because the server is attempting to connect to a website that does not encrypt traffic with TLS. Instead, send requests only to https:// URLS." + }, + "helpUri": "https://semgrep.dev/r/problem-based-packs.insecure-transport.go-stdlib.http-request.http-request", + "id": "problem-based-packs.insecure-transport.go-stdlib.http-request.http-request", + "name": "problem-based-packs.insecure-transport.go-stdlib.http-request.http-request", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-319: Cleartext Transmission of Sensitive Information", + "MEDIUM CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: problem-based-packs.insecure-transport.go-stdlib.http-request.http-request" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected SHA1 hash algorithm which is considered insecure. SHA1 is not collision resistant and is therefore not suitable as a cryptographic signature. Use SHA256 or SHA3 instead." + }, + "help": { + "markdown": "Detected SHA1 hash algorithm which is considered insecure. SHA1 is not collision resistant and is therefore not suitable as a cryptographic signature. Use SHA256 or SHA3 instead.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.lang.security.insecure-hash-algorithms.insecure-hash-algorithm-sha1)\n - [https://www.schneier.com/blog/archives/2012/10/when_will_we_se.html](https://www.schneier.com/blog/archives/2012/10/when_will_we_se.html)\n - [https://www.trendmicro.com/vinfo/us/security/news/vulnerabilities-and-exploits/sha-1-collision-signals-the-end-of-the-algorithm-s-viability](https://www.trendmicro.com/vinfo/us/security/news/vulnerabilities-and-exploits/sha-1-collision-signals-the-end-of-the-algorithm-s-viability)\n - [http://2012.sharcs.org/slides/stevens.pdf](http://2012.sharcs.org/slides/stevens.pdf)\n - [https://pycryptodome.readthedocs.io/en/latest/src/hash/sha3_256.html](https://pycryptodome.readthedocs.io/en/latest/src/hash/sha3_256.html)\n", + "text": "Detected SHA1 hash algorithm which is considered insecure. SHA1 is not collision resistant and is therefore not suitable as a cryptographic signature. Use SHA256 or SHA3 instead." + }, + "helpUri": "https://semgrep.dev/r/python.lang.security.insecure-hash-algorithms.insecure-hash-algorithm-sha1", + "id": "python.lang.security.insecure-hash-algorithms.insecure-hash-algorithm-sha1", + "name": "python.lang.security.insecure-hash-algorithms.insecure-hash-algorithm-sha1", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-327: Use of a Broken or Risky Cryptographic Algorithm", + "MEDIUM CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.lang.security.insecure-hash-algorithms.insecure-hash-algorithm-sha1" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Found request data as an index to 'globals()'. This is extremely dangerous because it allows an attacker to execute arbitrary code on the system. Refactor your code not to use 'globals()'." + }, + "help": { + "markdown": "Found request data as an index to 'globals()'. This is extremely dangerous because it allows an attacker to execute arbitrary code on the system. Refactor your code not to use 'globals()'.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.django.security.injection.code.globals-misuse-code-execution.globals-misuse-code-execution)\n - [https://github.com/mpirnat/lets-be-bad-guys/blob/d92768fb3ade32956abd53bd6bb06e19d634a084/badguys/vulnerable/views.py#L181-L186](https://github.com/mpirnat/lets-be-bad-guys/blob/d92768fb3ade32956abd53bd6bb06e19d634a084/badguys/vulnerable/views.py#L181-L186)\n", + "text": "Found request data as an index to 'globals()'. This is extremely dangerous because it allows an attacker to execute arbitrary code on the system. Refactor your code not to use 'globals()'." + }, + "helpUri": "https://semgrep.dev/r/python.django.security.injection.code.globals-misuse-code-execution.globals-misuse-code-execution", + "id": "python.django.security.injection.code.globals-misuse-code-execution.globals-misuse-code-execution", + "name": "python.django.security.injection.code.globals-misuse-code-execution.globals-misuse-code-execution", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-96: Improper Neutralization of Directives in Statically Saved Code ('Static Code Injection')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.django.security.injection.code.globals-misuse-code-execution.globals-misuse-code-execution" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected ARC4 cipher algorithm which is considered insecure. The algorithm is considered weak and has been deprecated. Use AES instead." + }, + "help": { + "markdown": "Detected ARC4 cipher algorithm which is considered insecure. The algorithm is considered weak and has been deprecated. Use AES instead.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.cryptography.security.insecure-cipher-algorithms-arc4.insecure-cipher-algorithm-arc4)\n - [https://tools.ietf.org/html/rfc5469](https://tools.ietf.org/html/rfc5469)\n", + "text": "Detected ARC4 cipher algorithm which is considered insecure. The algorithm is considered weak and has been deprecated. Use AES instead." + }, + "helpUri": "https://semgrep.dev/r/python.cryptography.security.insecure-cipher-algorithms-arc4.insecure-cipher-algorithm-arc4", + "id": "python.cryptography.security.insecure-cipher-algorithms-arc4.insecure-cipher-algorithm-arc4", + "name": "python.cryptography.security.insecure-cipher-algorithms-arc4.insecure-cipher-algorithm-arc4", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-327: Use of a Broken or Risky Cryptographic Algorithm", + "MEDIUM CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.cryptography.security.insecure-cipher-algorithms-arc4.insecure-cipher-algorithm-arc4" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Found user controlled content when spawning a process. This is dangerous because it allows a malicious actor to execute commands." + }, + "help": { + "markdown": "Found user controlled content when spawning a process. This is dangerous because it allows a malicious actor to execute commands.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.lang.security.dangerous-os-exec.dangerous-os-exec)\n - [https://semgrep.dev/docs/cheat-sheets/python-command-injection/](https://semgrep.dev/docs/cheat-sheets/python-command-injection/)\n", + "text": "Found user controlled content when spawning a process. This is dangerous because it allows a malicious actor to execute commands." + }, + "helpUri": "https://semgrep.dev/r/python.lang.security.dangerous-os-exec.dangerous-os-exec", + "id": "python.lang.security.dangerous-os-exec.dangerous-os-exec", + "name": "python.lang.security.dangerous-os-exec.dangerous-os-exec", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')", + "MEDIUM CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.lang.security.dangerous-os-exec.dangerous-os-exec" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected a dynamic value being used with urllib. urllib supports 'file://' schemes, so a dynamic value controlled by a malicious actor may allow them to read arbitrary files. Audit uses of urllib calls to ensure user data cannot control the URLs, or consider using the 'requests' library instead." + }, + "help": { + "markdown": "Detected a dynamic value being used with urllib. urllib supports 'file://' schemes, so a dynamic value controlled by a malicious actor may allow them to read arbitrary files. Audit uses of urllib calls to ensure user data cannot control the URLs, or consider using the 'requests' library instead.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.lang.security.audit.dynamic-urllib-use-detected.dynamic-urllib-use-detected)\n - [https://cwe.mitre.org/data/definitions/939.html](https://cwe.mitre.org/data/definitions/939.html)\n", + "text": "Detected a dynamic value being used with urllib. urllib supports 'file://' schemes, so a dynamic value controlled by a malicious actor may allow them to read arbitrary files. Audit uses of urllib calls to ensure user data cannot control the URLs, or consider using the 'requests' library instead." + }, + "helpUri": "https://semgrep.dev/r/python.lang.security.audit.dynamic-urllib-use-detected.dynamic-urllib-use-detected", + "id": "python.lang.security.audit.dynamic-urllib-use-detected.dynamic-urllib-use-detected", + "name": "python.lang.security.audit.dynamic-urllib-use-detected.dynamic-urllib-use-detected", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-939: Improper Authorization in Handler for Custom URL Scheme", + "LOW CONFIDENCE", + "OWASP-A01:2017 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.lang.security.audit.dynamic-urllib-use-detected.dynamic-urllib-use-detected" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Password is exposed through JWT token payload. This is not encrypted and the password could be compromised. Do not store passwords in JWT tokens." + }, + "help": { + "markdown": "Password is exposed through JWT token payload. This is not encrypted and the password could be compromised. Do not store passwords in JWT tokens.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ruby.jwt.security.jwt-exposed-credentials.ruby-jwt-exposed-credentials)\n - [https://cwe.mitre.org/data/definitions/522.html](https://cwe.mitre.org/data/definitions/522.html)\n", + "text": "Password is exposed through JWT token payload. This is not encrypted and the password could be compromised. Do not store passwords in JWT tokens." + }, + "helpUri": "https://semgrep.dev/r/ruby.jwt.security.jwt-exposed-credentials.ruby-jwt-exposed-credentials", + "id": "ruby.jwt.security.jwt-exposed-credentials.ruby-jwt-exposed-credentials", + "name": "ruby.jwt.security.jwt-exposed-credentials.ruby-jwt-exposed-credentials", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-522: Insufficiently Protected Credentials", + "LOW CONFIDENCE", + "OWASP-A02:2017 - Broken Authentication", + "OWASP-A04:2021 - Insecure Design", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: ruby.jwt.security.jwt-exposed-credentials.ruby-jwt-exposed-credentials" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "The application exports an activity. Any application on the device can launch the exported activity which may compromise the integrity of your application or its data. Ensure that any exported activities do not have privileged access to your application's control plane." + }, + "help": { + "markdown": "The application exports an activity. Any application on the device can launch the exported activity which may compromise the integrity of your application or its data. Ensure that any exported activities do not have privileged access to your application's control plane.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.android.security.exported_activity.exported_activity)\n - [https://cwe.mitre.org/data/definitions/926.html](https://cwe.mitre.org/data/definitions/926.html)\n", + "text": "The application exports an activity. Any application on the device can launch the exported activity which may compromise the integrity of your application or its data. Ensure that any exported activities do not have privileged access to your application's control plane." + }, + "helpUri": "https://semgrep.dev/r/java.android.security.exported_activity.exported_activity", + "id": "java.android.security.exported_activity.exported_activity", + "name": "java.android.security.exported_activity.exported_activity", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-926: Improper Export of Android Application Components", + "MEDIUM CONFIDENCE", + "OWASP-A5:2021 Security Misconfiguration", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.android.security.exported_activity.exported_activity" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Slack Token detected" + }, + "help": { + "markdown": "Slack Token detected\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/generic.secrets.security.detected-slack-token.detected-slack-token)\n - [https://github.com/davidburkitt/python-secret-scanner/blob/335a1f6dab8de59cf39063e57aea39a58951e939/patterns.txt#L58](https://github.com/davidburkitt/python-secret-scanner/blob/335a1f6dab8de59cf39063e57aea39a58951e939/patterns.txt#L58)\n", + "text": "Slack Token detected" + }, + "helpUri": "https://semgrep.dev/r/generic.secrets.security.detected-slack-token.detected-slack-token", + "id": "generic.secrets.security.detected-slack-token.detected-slack-token", + "name": "generic.secrets.security.detected-slack-token.detected-slack-token", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-798: Use of Hard-coded Credentials", + "LOW CONFIDENCE", + "OWASP-A07:2021 - Identification and Authentication Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: generic.secrets.security.detected-slack-token.detected-slack-token" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Found user-controlled request data being passed into a file open, which is them passed as an argument into the FileResponse. This is dangerous because an attacker could specify an arbitrary file to read, which could result in leaking important data. Be sure to validate or sanitize the user-inputted filename in the request data before using it in FileResponse." + }, + "help": { + "markdown": "Found user-controlled request data being passed into a file open, which is them passed as an argument into the FileResponse. This is dangerous because an attacker could specify an arbitrary file to read, which could result in leaking important data. Be sure to validate or sanitize the user-inputted filename in the request data before using it in FileResponse.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.django.security.injection.request-data-fileresponse.request-data-fileresponse)\n - [https://django-book.readthedocs.io/en/latest/chapter20.html#cross-site-scripting-xss](https://django-book.readthedocs.io/en/latest/chapter20.html#cross-site-scripting-xss)\n", + "text": "Found user-controlled request data being passed into a file open, which is them passed as an argument into the FileResponse. This is dangerous because an attacker could specify an arbitrary file to read, which could result in leaking important data. Be sure to validate or sanitize the user-inputted filename in the request data before using it in FileResponse." + }, + "helpUri": "https://semgrep.dev/r/python.django.security.injection.request-data-fileresponse.request-data-fileresponse", + "id": "python.django.security.injection.request-data-fileresponse.request-data-fileresponse", + "name": "python.django.security.injection.request-data-fileresponse.request-data-fileresponse", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')", + "MEDIUM CONFIDENCE", + "OWASP-A01:2021 - Broken Access Control", + "OWASP-A05:2017 - Broken Access Control", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.django.security.injection.request-data-fileresponse.request-data-fileresponse" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "If unverified user data can reach the `evaluate` method it can result in Server-Side Request Forgery vulnerabilities" + }, + "help": { + "markdown": "If unverified user data can reach the `evaluate` method it can result in Server-Side Request Forgery vulnerabilities\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.playwright.security.audit.playwright-evaluate-arg-injection.playwright-evaluate-arg-injection)\n - [https://owasp.org/Top10/A10_2021-Server-Side_Request_Forgery_%28SSRF%29](https://owasp.org/Top10/A10_2021-Server-Side_Request_Forgery_%28SSRF%29)\n", + "text": "If unverified user data can reach the `evaluate` method it can result in Server-Side Request Forgery vulnerabilities" + }, + "helpUri": "https://semgrep.dev/r/javascript.playwright.security.audit.playwright-evaluate-arg-injection.playwright-evaluate-arg-injection", + "id": "javascript.playwright.security.audit.playwright-evaluate-arg-injection.playwright-evaluate-arg-injection", + "name": "javascript.playwright.security.audit.playwright-evaluate-arg-injection.playwright-evaluate-arg-injection", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-918: Server-Side Request Forgery (SSRF)", + "LOW CONFIDENCE", + "OWASP-A10:2021 - Server-Side Request Forgery (SSRF)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.playwright.security.audit.playwright-evaluate-arg-injection.playwright-evaluate-arg-injection" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected a potential path traversal. A malicious actor could control the location of this file, to include going backwards in the directory with '../'. To address this, ensure that user-controlled variables in file paths are sanitized. You may also consider using a utility method such as org.apache.commons.io.FilenameUtils.getName(...) to only retrieve the file name from the path." + }, + "help": { + "markdown": "Detected a potential path traversal. A malicious actor could control the location of this file, to include going backwards in the directory with '../'. To address this, ensure that user-controlled variables in file paths are sanitized. You may also consider using a utility method such as org.apache.commons.io.FilenameUtils.getName(...) to only retrieve the file name from the path.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.jax-rs.security.jax-rs-path-traversal.jax-rs-path-traversal)\n - [https://www.owasp.org/index.php/Path_Traversal](https://www.owasp.org/index.php/Path_Traversal)\n", + "text": "Detected a potential path traversal. A malicious actor could control the location of this file, to include going backwards in the directory with '../'. To address this, ensure that user-controlled variables in file paths are sanitized. You may also consider using a utility method such as org.apache.commons.io.FilenameUtils.getName(...) to only retrieve the file name from the path." + }, + "helpUri": "https://semgrep.dev/r/java.jax-rs.security.jax-rs-path-traversal.jax-rs-path-traversal", + "id": "java.jax-rs.security.jax-rs-path-traversal.jax-rs-path-traversal", + "name": "java.jax-rs.security.jax-rs-path-traversal.jax-rs-path-traversal", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')", + "MEDIUM CONFIDENCE", + "OWASP-A01:2021 - Broken Access Control", + "OWASP-A05:2017 - Broken Access Control", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.jax-rs.security.jax-rs-path-traversal.jax-rs-path-traversal" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Service '$SERVICE' is explicitly disabling SELinux separation. This runs the service as an unconfined type. Remove 'label:disable' to prevent this." + }, + "help": { + "markdown": "Service '$SERVICE' is explicitly disabling SELinux separation. This runs the service as an unconfined type. Remove 'label:disable' to prevent this.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/yaml.docker-compose.security.selinux-separation-disabled.selinux-separation-disabled)\n - [https://www.projectatomic.io/blog/2016/03/dwalsh_selinux_containers/](https://www.projectatomic.io/blog/2016/03/dwalsh_selinux_containers/)\n - [https://docs.docker.com/engine/reference/run/#security-configuration](https://docs.docker.com/engine/reference/run/#security-configuration)\n", + "text": "Service '$SERVICE' is explicitly disabling SELinux separation. This runs the service as an unconfined type. Remove 'label:disable' to prevent this." + }, + "helpUri": "https://semgrep.dev/r/yaml.docker-compose.security.selinux-separation-disabled.selinux-separation-disabled", + "id": "yaml.docker-compose.security.selinux-separation-disabled.selinux-separation-disabled", + "name": "yaml.docker-compose.security.selinux-separation-disabled.selinux-separation-disabled", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-284: Improper Access Control", + "LOW CONFIDENCE", + "OWASP-A01:2021 - Broken Access Control", + "OWASP-A05:2017 - Broken Access Control", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: yaml.docker-compose.security.selinux-separation-disabled.selinux-separation-disabled" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Data from request object is passed to a new server-side request. This could lead to a server-side request forgery (SSRF), which could result in attackers gaining access to private organization data. To mitigate, ensure that schemes and hosts are validated against an allowlist, do not forward the response to the user, and ensure proper authentication and transport-layer security in the proxied request." + }, + "help": { + "markdown": "Data from request object is passed to a new server-side request. This could lead to a server-side request forgery (SSRF), which could result in attackers gaining access to private organization data. To mitigate, ensure that schemes and hosts are validated against an allowlist, do not forward the response to the user, and ensure proper authentication and transport-layer security in the proxied request.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.django.security.injection.ssrf.ssrf-injection-urllib.ssrf-injection-urllib)\n - [https://owasp.org/www-community/attacks/Server_Side_Request_Forgery](https://owasp.org/www-community/attacks/Server_Side_Request_Forgery)\n", + "text": "Data from request object is passed to a new server-side request. This could lead to a server-side request forgery (SSRF), which could result in attackers gaining access to private organization data. To mitigate, ensure that schemes and hosts are validated against an allowlist, do not forward the response to the user, and ensure proper authentication and transport-layer security in the proxied request." + }, + "helpUri": "https://semgrep.dev/r/python.django.security.injection.ssrf.ssrf-injection-urllib.ssrf-injection-urllib", + "id": "python.django.security.injection.ssrf.ssrf-injection-urllib.ssrf-injection-urllib", + "name": "python.django.security.injection.ssrf.ssrf-injection-urllib.ssrf-injection-urllib", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-918: Server-Side Request Forgery (SSRF)", + "MEDIUM CONFIDENCE", + "OWASP-A10:2021 - Server-Side Request Forgery (SSRF)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.django.security.injection.ssrf.ssrf-injection-urllib.ssrf-injection-urllib" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "If possible, it is better to rely on automatic pinning in PyTorch to avoid undefined behavior and for efficiency " + }, + "help": { + "markdown": "If possible, it is better to rely on automatic pinning in PyTorch to avoid undefined behavior and for efficiency \n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/trailofbits.python.automatic-memory-pinning.automatic-memory-pinning)\n - [https://pytorch.org/docs/stable/data.html#memory-pinning](https://pytorch.org/docs/stable/data.html#memory-pinning)\n", + "text": "If possible, it is better to rely on automatic pinning in PyTorch to avoid undefined behavior and for efficiency " + }, + "helpUri": "https://semgrep.dev/r/trailofbits.python.automatic-memory-pinning.automatic-memory-pinning", + "id": "trailofbits.python.automatic-memory-pinning.automatic-memory-pinning", + "name": "trailofbits.python.automatic-memory-pinning.automatic-memory-pinning", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-676: Use of Potentially Dangerous Function", + "HIGH CONFIDENCE", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: trailofbits.python.automatic-memory-pinning.automatic-memory-pinning" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected SHA1 hash algorithm which is considered insecure. SHA1 is not collision resistant and is therefore not suitable as a cryptographic signature. Use SHA256 or SHA3 instead." + }, + "help": { + "markdown": "Detected SHA1 hash algorithm which is considered insecure. SHA1 is not collision resistant and is therefore not suitable as a cryptographic signature. Use SHA256 or SHA3 instead.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.cryptography.security.insecure-hash-algorithms.insecure-hash-algorithm-sha1)\n - [https://www.schneier.com/blog/archives/2012/10/when_will_we_se.html](https://www.schneier.com/blog/archives/2012/10/when_will_we_se.html)\n - [https://www.trendmicro.com/vinfo/us/security/news/vulnerabilities-and-exploits/sha-1-collision-signals-the-end-of-the-algorithm-s-viability](https://www.trendmicro.com/vinfo/us/security/news/vulnerabilities-and-exploits/sha-1-collision-signals-the-end-of-the-algorithm-s-viability)\n - [http://2012.sharcs.org/slides/stevens.pdf](http://2012.sharcs.org/slides/stevens.pdf)\n - [https://pycryptodome.readthedocs.io/en/latest/src/hash/sha3_256.html](https://pycryptodome.readthedocs.io/en/latest/src/hash/sha3_256.html)\n", + "text": "Detected SHA1 hash algorithm which is considered insecure. SHA1 is not collision resistant and is therefore not suitable as a cryptographic signature. Use SHA256 or SHA3 instead." + }, + "helpUri": "https://semgrep.dev/r/python.cryptography.security.insecure-hash-algorithms.insecure-hash-algorithm-sha1", + "id": "python.cryptography.security.insecure-hash-algorithms.insecure-hash-algorithm-sha1", + "name": "python.cryptography.security.insecure-hash-algorithms.insecure-hash-algorithm-sha1", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-327: Use of a Broken or Risky Cryptographic Algorithm", + "MEDIUM CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.cryptography.security.insecure-hash-algorithms.insecure-hash-algorithm-sha1" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Found a formatted template string passed to 'template.HTML()'. 'template.HTML()' does not escape contents. Be absolutely sure there is no user-controlled data in this template. If user data can reach this template, you may have a XSS vulnerability." + }, + "help": { + "markdown": "Found a formatted template string passed to 'template.HTML()'. 'template.HTML()' does not escape contents. Be absolutely sure there is no user-controlled data in this template. If user data can reach this template, you may have a XSS vulnerability.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/go.lang.security.audit.net.formatted-template-string.formatted-template-string)\n - [https://golang.org/pkg/html/template/#HTML](https://golang.org/pkg/html/template/#HTML)\n", + "text": "Found a formatted template string passed to 'template.HTML()'. 'template.HTML()' does not escape contents. Be absolutely sure there is no user-controlled data in this template. If user data can reach this template, you may have a XSS vulnerability." + }, + "helpUri": "https://semgrep.dev/r/go.lang.security.audit.net.formatted-template-string.formatted-template-string", + "id": "go.lang.security.audit.net.formatted-template-string.formatted-template-string", + "name": "go.lang.security.audit.net.formatted-template-string.formatted-template-string", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "MEDIUM CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: go.lang.security.audit.net.formatted-template-string.formatted-template-string" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "The AWS Kinesis stream does not encrypt data at rest. The data could be read if the Kinesis stream storage layer is compromised. Enable Kinesis stream server-side encryption." + }, + "help": { + "markdown": "The AWS Kinesis stream does not encrypt data at rest. The data could be read if the Kinesis stream storage layer is compromised. Enable Kinesis stream server-side encryption.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.aws.security.aws-kinesis-stream-unencrypted.aws-kinesis-stream-unencrypted)\n - [https://owasp.org/Top10/A04_2021-Insecure_Design](https://owasp.org/Top10/A04_2021-Insecure_Design)\n - [https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/kinesis_stream#encryption_type](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/kinesis_stream#encryption_type)\n - [https://docs.aws.amazon.com/streams/latest/dev/server-side-encryption.html](https://docs.aws.amazon.com/streams/latest/dev/server-side-encryption.html)\n", + "text": "The AWS Kinesis stream does not encrypt data at rest. The data could be read if the Kinesis stream storage layer is compromised. Enable Kinesis stream server-side encryption." + }, + "helpUri": "https://semgrep.dev/r/terraform.aws.security.aws-kinesis-stream-unencrypted.aws-kinesis-stream-unencrypted", + "id": "terraform.aws.security.aws-kinesis-stream-unencrypted.aws-kinesis-stream-unencrypted", + "name": "terraform.aws.security.aws-kinesis-stream-unencrypted.aws-kinesis-stream-unencrypted", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-311: Missing Encryption of Sensitive Data", + "MEDIUM CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "OWASP-A04:2021 - Insecure Design", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.aws.security.aws-kinesis-stream-unencrypted.aws-kinesis-stream-unencrypted" + } + }, + { + "defaultConfiguration": { + "level": "note" + }, + "fullDescription": { + "text": "this rule has been deprecated." + }, + "help": { + "markdown": "this rule has been deprecated.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/typescript.react.security.audit.react-http-leak.react-http-leak)\n - [https://github.com/cure53/HTTPLeaks](https://github.com/cure53/HTTPLeaks)\n", + "text": "this rule has been deprecated." + }, + "helpUri": "https://semgrep.dev/r/typescript.react.security.audit.react-http-leak.react-http-leak", + "id": "typescript.react.security.audit.react-http-leak.react-http-leak", + "name": "typescript.react.security.audit.react-http-leak.react-http-leak", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-200: Exposure of Sensitive Information to an Unauthorized Actor", + "LOW CONFIDENCE", + "OWASP-A01:2021 - Broken Access Control", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: typescript.react.security.audit.react-http-leak.react-http-leak" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected an insufficient curve size for EC. NIST recommends a key size of 224 or higher. For example, use 'ec.SECP256R1'." + }, + "help": { + "markdown": "Detected an insufficient curve size for EC. NIST recommends a key size of 224 or higher. For example, use 'ec.SECP256R1'.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.cryptography.security.insufficient-ec-key-size.insufficient-ec-key-size)\n - [https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-57Pt3r1.pdf](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-57Pt3r1.pdf)\n - [https://cryptography.io/en/latest/hazmat/primitives/asymmetric/ec/#elliptic-curves](https://cryptography.io/en/latest/hazmat/primitives/asymmetric/ec/#elliptic-curves)\n", + "text": "Detected an insufficient curve size for EC. NIST recommends a key size of 224 or higher. For example, use 'ec.SECP256R1'." + }, + "helpUri": "https://semgrep.dev/r/python.cryptography.security.insufficient-ec-key-size.insufficient-ec-key-size", + "id": "python.cryptography.security.insufficient-ec-key-size.insufficient-ec-key-size", + "name": "python.cryptography.security.insufficient-ec-key-size.insufficient-ec-key-size", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-326: Inadequate Encryption Strength", + "MEDIUM CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.cryptography.security.insufficient-ec-key-size.insufficient-ec-key-size" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Downcasting or changing sign of an integer with `$CAST_METHOD` method" + }, + "help": { + "markdown": "Downcasting or changing sign of an integer with `$CAST_METHOD` method\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/trailofbits.go.string-to-int-signedness-cast.string-to-int-signedness-cast)\n - [https://github.com/golang/go/issues/30209](https://github.com/golang/go/issues/30209)\n", + "text": "Downcasting or changing sign of an integer with `$CAST_METHOD` method" + }, + "helpUri": "https://semgrep.dev/r/trailofbits.go.string-to-int-signedness-cast.string-to-int-signedness-cast", + "id": "trailofbits.go.string-to-int-signedness-cast.string-to-int-signedness-cast", + "name": "trailofbits.go.string-to-int-signedness-cast.string-to-int-signedness-cast", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-681: Incorrect Conversion between Numeric Types", + "HIGH CONFIDENCE", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: trailofbits.go.string-to-int-signedness-cast.string-to-int-signedness-cast" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "ERC721 onERC721Received() reentrancy" + }, + "help": { + "markdown": "ERC721 onERC721Received() reentrancy\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/solidity.security.erc721-reentrancy.erc721-reentrancy)\n - [https://blocksecteam.medium.com/when-safemint-becomes-unsafe-lessons-from-the-hypebears-security-incident-2965209bda2a](https://blocksecteam.medium.com/when-safemint-becomes-unsafe-lessons-from-the-hypebears-security-incident-2965209bda2a)\n - [https://etherscan.io/address/0x14e0a1f310e2b7e321c91f58847e98b8c802f6ef](https://etherscan.io/address/0x14e0a1f310e2b7e321c91f58847e98b8c802f6ef)\n", + "text": "ERC721 onERC721Received() reentrancy" + }, + "helpUri": "https://semgrep.dev/r/solidity.security.erc721-reentrancy.erc721-reentrancy", + "id": "solidity.security.erc721-reentrancy.erc721-reentrancy", + "name": "solidity.security.erc721-reentrancy.erc721-reentrancy", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-841: Improper Enforcement of Behavioral Workflow", + "HIGH CONFIDENCE", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: solidity.security.erc721-reentrancy.erc721-reentrancy" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "This rule is deprecated." + }, + "help": { + "markdown": "This rule is deprecated.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ruby.rails.security.audit.mail-to-erb.mail-to-erb)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "This rule is deprecated." + }, + "helpUri": "https://semgrep.dev/r/ruby.rails.security.audit.mail-to-erb.mail-to-erb", + "id": "ruby.rails.security.audit.mail-to-erb.mail-to-erb", + "name": "ruby.rails.security.audit.mail-to-erb.mail-to-erb", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: ruby.rails.security.audit.mail-to-erb.mail-to-erb" + } + }, + { + "defaultConfiguration": { + "level": "note" + }, + "fullDescription": { + "text": "this rule has been deprecated." + }, + "help": { + "markdown": "this rule has been deprecated.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/typescript.react.security.react-controlled-component-password.react-controlled-component-password)\n - [https://semgrep.dev](https://semgrep.dev)\n", + "text": "this rule has been deprecated." + }, + "helpUri": "https://semgrep.dev/r/typescript.react.security.react-controlled-component-password.react-controlled-component-password", + "id": "typescript.react.security.react-controlled-component-password.react-controlled-component-password", + "name": "typescript.react.security.react-controlled-component-password.react-controlled-component-password", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: typescript.react.security.react-controlled-component-password.react-controlled-component-password" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Data is being eval'd from a `curl` command. An attacker with control of the server in the `curl` command could inject malicious code into the `eval`, resulting in a system comrpomise. Avoid eval'ing untrusted data if you can. If you must do this, consider checking the SHA sum of the content returned by the server to verify its integrity." + }, + "help": { + "markdown": "Data is being eval'd from a `curl` command. An attacker with control of the server in the `curl` command could inject malicious code into the `eval`, resulting in a system comrpomise. Avoid eval'ing untrusted data if you can. If you must do this, consider checking the SHA sum of the content returned by the server to verify its integrity.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/bash.curl.security.curl-eval.curl-eval)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "Data is being eval'd from a `curl` command. An attacker with control of the server in the `curl` command could inject malicious code into the `eval`, resulting in a system comrpomise. Avoid eval'ing untrusted data if you can. If you must do this, consider checking the SHA sum of the content returned by the server to verify its integrity." + }, + "helpUri": "https://semgrep.dev/r/bash.curl.security.curl-eval.curl-eval", + "id": "bash.curl.security.curl-eval.curl-eval", + "name": "bash.curl.security.curl-eval.curl-eval", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')", + "MEDIUM CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: bash.curl.security.curl-eval.curl-eval" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "If an attacker controls the x in require(x) then they can cause code to load that was not intended to run on the server." + }, + "help": { + "markdown": "If an attacker controls the x in require(x) then they can cause code to load that was not intended to run on the server.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.express.security.require-request.require-request)\n - [https://github.com/google/node-sec-roadmap/blob/master/chapter-2/dynamism.md#dynamism-when-you-need-it](https://github.com/google/node-sec-roadmap/blob/master/chapter-2/dynamism.md#dynamism-when-you-need-it)\n", + "text": "If an attacker controls the x in require(x) then they can cause code to load that was not intended to run on the server." + }, + "helpUri": "https://semgrep.dev/r/javascript.express.security.require-request.require-request", + "id": "javascript.express.security.require-request.require-request", + "name": "javascript.express.security.require-request.require-request", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-706: Use of Incorrectly-Resolved Name or Reference", + "MEDIUM CONFIDENCE", + "OWASP-A01:2021 - Broken Access Control", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.express.security.require-request.require-request" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "'render text: ...' actually sets the content-type to 'text/html'. If external data can reach here, this exposes your application to cross-site scripting (XSS) attacks. Instead, use 'render plain: ...' to render non-HTML text." + }, + "help": { + "markdown": "'render text: ...' actually sets the content-type to 'text/html'. If external data can reach here, this exposes your application to cross-site scripting (XSS) attacks. Instead, use 'render plain: ...' to render non-HTML text.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ruby.rails.security.audit.xss.avoid-render-text.avoid-render-text)\n - [https://brakemanpro.com/2017/09/08/cross-site-scripting-in-rails#inline-renders---even-worse-than-xss](https://brakemanpro.com/2017/09/08/cross-site-scripting-in-rails#inline-renders---even-worse-than-xss)\n", + "text": "'render text: ...' actually sets the content-type to 'text/html'. If external data can reach here, this exposes your application to cross-site scripting (XSS) attacks. Instead, use 'render plain: ...' to render non-HTML text." + }, + "helpUri": "https://semgrep.dev/r/ruby.rails.security.audit.xss.avoid-render-text.avoid-render-text", + "id": "ruby.rails.security.audit.xss.avoid-render-text.avoid-render-text", + "name": "ruby.rails.security.audit.xss.avoid-render-text.avoid-render-text", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: ruby.rails.security.audit.xss.avoid-render-text.avoid-render-text" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Detected non-static command inside Write. Audit the input to '$CW.Write'. If unverified user data can reach this call site, this is a code injection vulnerability. A malicious actor can inject a malicious script to execute arbitrary code." + }, + "help": { + "markdown": "Detected non-static command inside Write. Audit the input to '$CW.Write'. If unverified user data can reach this call site, this is a code injection vulnerability. A malicious actor can inject a malicious script to execute arbitrary code.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/go.lang.security.audit.dangerous-command-write.dangerous-command-write)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "Detected non-static command inside Write. Audit the input to '$CW.Write'. If unverified user data can reach this call site, this is a code injection vulnerability. A malicious actor can inject a malicious script to execute arbitrary code." + }, + "helpUri": "https://semgrep.dev/r/go.lang.security.audit.dangerous-command-write.dangerous-command-write", + "id": "go.lang.security.audit.dangerous-command-write.dangerous-command-write", + "name": "go.lang.security.audit.dangerous-command-write.dangerous-command-write", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')", + "LOW CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: go.lang.security.audit.dangerous-command-write.dangerous-command-write" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected XOR cipher algorithm which is considered insecure. This algorithm is not cryptographically secure and can be reversed easily. Use AES instead." + }, + "help": { + "markdown": "Detected XOR cipher algorithm which is considered insecure. This algorithm is not cryptographically secure and can be reversed easily. Use AES instead.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.pycryptodome.security.insecure-cipher-algorithm.insecure-cipher-algorithm-xor)\n - [https://stackoverflow.com/questions/1135186/whats-wrong-with-xor-encryption](https://stackoverflow.com/questions/1135186/whats-wrong-with-xor-encryption)\n", + "text": "Detected XOR cipher algorithm which is considered insecure. This algorithm is not cryptographically secure and can be reversed easily. Use AES instead." + }, + "helpUri": "https://semgrep.dev/r/python.pycryptodome.security.insecure-cipher-algorithm.insecure-cipher-algorithm-xor", + "id": "python.pycryptodome.security.insecure-cipher-algorithm.insecure-cipher-algorithm-xor", + "name": "python.pycryptodome.security.insecure-cipher-algorithm.insecure-cipher-algorithm-xor", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-327: Use of a Broken or Risky Cryptographic Algorithm", + "MEDIUM CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.pycryptodome.security.insecure-cipher-algorithm.insecure-cipher-algorithm-xor" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Detected input from a HTTPServletRequest going into the environment variables of an 'exec' command. Instead, call the command with user-supplied arguments by using the overloaded method with one String array as the argument. `exec({\"command\", \"arg1\", \"arg2\"})`." + }, + "help": { + "markdown": "Detected input from a HTTPServletRequest going into the environment variables of an 'exec' command. Instead, call the command with user-supplied arguments by using the overloaded method with one String array as the argument. `exec({\"command\", \"arg1\", \"arg2\"})`.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.lang.security.audit.tainted-env-from-http-request.tainted-env-from-http-request)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "Detected input from a HTTPServletRequest going into the environment variables of an 'exec' command. Instead, call the command with user-supplied arguments by using the overloaded method with one String array as the argument. `exec({\"command\", \"arg1\", \"arg2\"})`." + }, + "helpUri": "https://semgrep.dev/r/java.lang.security.audit.tainted-env-from-http-request.tainted-env-from-http-request", + "id": "java.lang.security.audit.tainted-env-from-http-request.tainted-env-from-http-request", + "name": "java.lang.security.audit.tainted-env-from-http-request.tainted-env-from-http-request", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-454: External Initialization of Trusted Variables or Data Stores", + "MEDIUM CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.lang.security.audit.tainted-env-from-http-request.tainted-env-from-http-request" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "User data detected in os.system. This could be vulnerable to a command injection and should be avoided. If this must be done, use the 'subprocess' module instead and pass the arguments as a list." + }, + "help": { + "markdown": "User data detected in os.system. This could be vulnerable to a command injection and should be avoided. If this must be done, use the 'subprocess' module instead and pass the arguments as a list.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.flask.security.injection.os-system-injection.os-system-injection)\n - [https://owasp.org/www-community/attacks/Command_Injection](https://owasp.org/www-community/attacks/Command_Injection)\n", + "text": "User data detected in os.system. This could be vulnerable to a command injection and should be avoided. If this must be done, use the 'subprocess' module instead and pass the arguments as a list." + }, + "helpUri": "https://semgrep.dev/r/python.flask.security.injection.os-system-injection.os-system-injection", + "id": "python.flask.security.injection.os-system-injection.os-system-injection", + "name": "python.flask.security.injection.os-system-injection.os-system-injection", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')", + "MEDIUM CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.flask.security.injection.os-system-injection.os-system-injection" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected a SQL query based on user input. This could lead to SQL injection, which could potentially result in sensitive data being exfiltrated by attackers. Instead, use parameterized queries and prepared statements." + }, + "help": { + "markdown": "Detected a SQL query based on user input. This could lead to SQL injection, which could potentially result in sensitive data being exfiltrated by attackers. Instead, use parameterized queries and prepared statements.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/php.laravel.security.laravel-sql-injection.laravel-sql-injection)\n - [https://laravel.com/docs/8.x/queries](https://laravel.com/docs/8.x/queries)\n", + "text": "Detected a SQL query based on user input. This could lead to SQL injection, which could potentially result in sensitive data being exfiltrated by attackers. Instead, use parameterized queries and prepared statements." + }, + "helpUri": "https://semgrep.dev/r/php.laravel.security.laravel-sql-injection.laravel-sql-injection", + "id": "php.laravel.security.laravel-sql-injection.laravel-sql-injection", + "name": "php.laravel.security.laravel-sql-injection.laravel-sql-injection", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')", + "MEDIUM CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: php.laravel.security.laravel-sql-injection.laravel-sql-injection" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Remote debugging protocol does not perform any authentication, so exposing it too widely can be a security risk." + }, + "help": { + "markdown": "Remote debugging protocol does not perform any authentication, so exposing it too widely can be a security risk.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.playwright.security.audit.playwright-exposed-chrome-devtools.playwright-exposed-chrome-devtools)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "Remote debugging protocol does not perform any authentication, so exposing it too widely can be a security risk." + }, + "helpUri": "https://semgrep.dev/r/javascript.playwright.security.audit.playwright-exposed-chrome-devtools.playwright-exposed-chrome-devtools", + "id": "javascript.playwright.security.audit.playwright-exposed-chrome-devtools.playwright-exposed-chrome-devtools", + "name": "javascript.playwright.security.audit.playwright-exposed-chrome-devtools.playwright-exposed-chrome-devtools", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-94: Improper Control of Generation of Code ('Code Injection')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.playwright.security.audit.playwright-exposed-chrome-devtools.playwright-exposed-chrome-devtools" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Avoid using `jsonpickle`, which is known to lead to code execution vulnerabilities. When unpickling, the serialized data could be manipulated to run arbitrary code. Instead, consider serializing the relevant data using `json` module." + }, + "help": { + "markdown": "Avoid using `jsonpickle`, which is known to lead to code execution vulnerabilities. When unpickling, the serialized data could be manipulated to run arbitrary code. Instead, consider serializing the relevant data using `json` module.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.lang.security.deserialization.avoid-jsonpickle.avoid-jsonpickle)\n - [https://github.com/jsonpickle/jsonpickle#jsonpickle](https://github.com/jsonpickle/jsonpickle#jsonpickle)\n - [https://www.exploit-db.com/exploits/49585](https://www.exploit-db.com/exploits/49585)\n", + "text": "Avoid using `jsonpickle`, which is known to lead to code execution vulnerabilities. When unpickling, the serialized data could be manipulated to run arbitrary code. Instead, consider serializing the relevant data using `json` module." + }, + "helpUri": "https://semgrep.dev/r/python.lang.security.deserialization.avoid-jsonpickle.avoid-jsonpickle", + "id": "python.lang.security.deserialization.avoid-jsonpickle.avoid-jsonpickle", + "name": "python.lang.security.deserialization.avoid-jsonpickle.avoid-jsonpickle", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-502: Deserialization of Untrusted Data", + "LOW CONFIDENCE", + "OWASP-A08:2017 - Insecure Deserialization", + "OWASP-A08:2021 - Software and Data Integrity Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.lang.security.deserialization.avoid-jsonpickle.avoid-jsonpickle" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Using user input when accessing files is potentially dangerous. A malicious actor could use this to modify or access files they have no right to." + }, + "help": { + "markdown": "Using user input when accessing files is potentially dangerous. A malicious actor could use this to modify or access files they have no right to.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ruby.rails.security.audit.avoid-tainted-http-request.avoid-tainted-http-request)\n - [https://github.com/presidentbeef/brakeman/blob/main/docs/warning_types/file_access/index.markdown](https://github.com/presidentbeef/brakeman/blob/main/docs/warning_types/file_access/index.markdown)\n", + "text": "Using user input when accessing files is potentially dangerous. A malicious actor could use this to modify or access files they have no right to." + }, + "helpUri": "https://semgrep.dev/r/ruby.rails.security.audit.avoid-tainted-http-request.avoid-tainted-http-request", + "id": "ruby.rails.security.audit.avoid-tainted-http-request.avoid-tainted-http-request", + "name": "ruby.rails.security.audit.avoid-tainted-http-request.avoid-tainted-http-request", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-918: Server-Side Request Forgery (SSRF)", + "MEDIUM CONFIDENCE", + "OWASP-A10:2021 - Server-Side Request Forgery (SSRF)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: ruby.rails.security.audit.avoid-tainted-http-request.avoid-tainted-http-request" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected a template variable used in an anchor tag with the 'href' attribute. This allows a malicious actor to input the 'javascript:' URI and is subject to cross- site scripting (XSS) attacks. If using a relative URL, start with a literal forward slash and concatenate the URL, like this: href='/{{link}}'. You may also consider setting the Content Security Policy (CSP) header." + }, + "help": { + "markdown": "Detected a template variable used in an anchor tag with the 'href' attribute. This allows a malicious actor to input the 'javascript:' URI and is subject to cross- site scripting (XSS) attacks. If using a relative URL, start with a literal forward slash and concatenate the URL, like this: href='/{{link}}'. You may also consider setting the Content Security Policy (CSP) header.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.express.security.audit.xss.mustache.var-in-href.var-in-href)\n - [https://flask.palletsprojects.com/en/1.1.x/security/#cross-site-scripting-xss#:~:text=javascript:%20URI](https://flask.palletsprojects.com/en/1.1.x/security/#cross-site-scripting-xss#:~:text=javascript:%20URI)\n - [https://github.com/pugjs/pug/issues/2952](https://github.com/pugjs/pug/issues/2952)\n", + "text": "Detected a template variable used in an anchor tag with the 'href' attribute. This allows a malicious actor to input the 'javascript:' URI and is subject to cross- site scripting (XSS) attacks. If using a relative URL, start with a literal forward slash and concatenate the URL, like this: href='/{{link}}'. You may also consider setting the Content Security Policy (CSP) header." + }, + "helpUri": "https://semgrep.dev/r/javascript.express.security.audit.xss.mustache.var-in-href.var-in-href", + "id": "javascript.express.security.audit.xss.mustache.var-in-href.var-in-href", + "name": "javascript.express.security.audit.xss.mustache.var-in-href.var-in-href", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.express.security.audit.xss.mustache.var-in-href.var-in-href" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "NPM registry authentication token detected" + }, + "help": { + "markdown": "NPM registry authentication token detected\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/generic.secrets.security.detected-npm-registry-auth-token.detected-npm-registry-auth-token)\n - [https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures](https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures)\n", + "text": "NPM registry authentication token detected" + }, + "helpUri": "https://semgrep.dev/r/generic.secrets.security.detected-npm-registry-auth-token.detected-npm-registry-auth-token", + "id": "generic.secrets.security.detected-npm-registry-auth-token.detected-npm-registry-auth-token", + "name": "generic.secrets.security.detected-npm-registry-auth-token.detected-npm-registry-auth-token", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-798: Use of Hard-coded Credentials", + "LOW CONFIDENCE", + "OWASP-A07:2021 - Identification and Authentication Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: generic.secrets.security.detected-npm-registry-auth-token.detected-npm-registry-auth-token" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected 'urllib.urlopen()' using 'ftp://'. This request will not be encrypted. Consider using SFTP instead. urllib does not support SFTP, so consider switching to a library which supports SFTP." + }, + "help": { + "markdown": "Detected 'urllib.urlopen()' using 'ftp://'. This request will not be encrypted. Consider using SFTP instead. urllib does not support SFTP, so consider switching to a library which supports SFTP.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.lang.security.audit.insecure-transport.urllib.insecure-urlopen-ftp.insecure-urlopen-ftp)\n - [https://docs.python.org/3/library/urllib.request.html#urllib.request.urlopen](https://docs.python.org/3/library/urllib.request.html#urllib.request.urlopen)\n", + "text": "Detected 'urllib.urlopen()' using 'ftp://'. This request will not be encrypted. Consider using SFTP instead. urllib does not support SFTP, so consider switching to a library which supports SFTP." + }, + "helpUri": "https://semgrep.dev/r/python.lang.security.audit.insecure-transport.urllib.insecure-urlopen-ftp.insecure-urlopen-ftp", + "id": "python.lang.security.audit.insecure-transport.urllib.insecure-urlopen-ftp.insecure-urlopen-ftp", + "name": "python.lang.security.audit.insecure-transport.urllib.insecure-urlopen-ftp.insecure-urlopen-ftp", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-319: Cleartext Transmission of Sensitive Information", + "LOW CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.lang.security.audit.insecure-transport.urllib.insecure-urlopen-ftp.insecure-urlopen-ftp" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected user input flowing into a manually constructed HTML string. You may be accidentally bypassing secure methods of rendering HTML by manually constructing HTML and this could create a cross-site scripting vulnerability, which could let attackers steal sensitive user data. Use the `render template` and make template files which will safely render HTML instead, or inspect that the HTML is absolutely rendered safely with a function like `sanitize`." + }, + "help": { + "markdown": "Detected user input flowing into a manually constructed HTML string. You may be accidentally bypassing secure methods of rendering HTML by manually constructing HTML and this could create a cross-site scripting vulnerability, which could let attackers steal sensitive user data. Use the `render template` and make template files which will safely render HTML instead, or inspect that the HTML is absolutely rendered safely with a function like `sanitize`.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ruby.rails.security.injection.raw-html-format.raw-html-format)\n - [https://www.netsparker.com/blog/web-security/preventing-xss-ruby-on-rails-web-applications/](https://www.netsparker.com/blog/web-security/preventing-xss-ruby-on-rails-web-applications/)\n - [https://api.rubyonrails.org/classes/ActionView/Helpers/SanitizeHelper.html](https://api.rubyonrails.org/classes/ActionView/Helpers/SanitizeHelper.html)\n", + "text": "Detected user input flowing into a manually constructed HTML string. You may be accidentally bypassing secure methods of rendering HTML by manually constructing HTML and this could create a cross-site scripting vulnerability, which could let attackers steal sensitive user data. Use the `render template` and make template files which will safely render HTML instead, or inspect that the HTML is absolutely rendered safely with a function like `sanitize`." + }, + "helpUri": "https://semgrep.dev/r/ruby.rails.security.injection.raw-html-format.raw-html-format", + "id": "ruby.rails.security.injection.raw-html-format.raw-html-format", + "name": "ruby.rails.security.injection.raw-html-format.raw-html-format", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "MEDIUM CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: ruby.rails.security.injection.raw-html-format.raw-html-format" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "By default, AWS CloudWatch Log Group is encrypted using AWS-managed keys. However, for added security, it's recommended to configure your own AWS KMS encryption key to protect your log group in CloudWatch. You can either create a new aws_kms_key resource or use the ARN of an existing key in your AWS account to do so." + }, + "help": { + "markdown": "By default, AWS CloudWatch Log Group is encrypted using AWS-managed keys. However, for added security, it's recommended to configure your own AWS KMS encryption key to protect your log group in CloudWatch. You can either create a new aws_kms_key resource or use the ARN of an existing key in your AWS account to do so.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.aws.security.aws-cloudwatch-log-group-unencrypted.aws-cloudwatch-log-group-unencrypted)\n - [https://cwe.mitre.org/data/definitions/732.html](https://cwe.mitre.org/data/definitions/732.html)\n", + "text": "By default, AWS CloudWatch Log Group is encrypted using AWS-managed keys. However, for added security, it's recommended to configure your own AWS KMS encryption key to protect your log group in CloudWatch. You can either create a new aws_kms_key resource or use the ARN of an existing key in your AWS account to do so." + }, + "helpUri": "https://semgrep.dev/r/terraform.aws.security.aws-cloudwatch-log-group-unencrypted.aws-cloudwatch-log-group-unencrypted", + "id": "terraform.aws.security.aws-cloudwatch-log-group-unencrypted.aws-cloudwatch-log-group-unencrypted", + "name": "terraform.aws.security.aws-cloudwatch-log-group-unencrypted.aws-cloudwatch-log-group-unencrypted", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-732: Incorrect Permission Assignment for Critical Resource", + "LOW CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.aws.security.aws-cloudwatch-log-group-unencrypted.aws-cloudwatch-log-group-unencrypted" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Stacktrace information is displayed in a non-Development environment. Accidentally disclosing sensitive stack trace information in a production environment aids an attacker in reconnaissance and information gathering." + }, + "help": { + "markdown": "Stacktrace information is displayed in a non-Development environment. Accidentally disclosing sensitive stack trace information in a production environment aids an attacker in reconnaissance and information gathering.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/csharp.lang.security.stacktrace-disclosure.stacktrace-disclosure)\n - [https://cwe.mitre.org/data/definitions/209.html](https://cwe.mitre.org/data/definitions/209.html)\n - [https://owasp.org/Top10/A04_2021-Insecure_Design/](https://owasp.org/Top10/A04_2021-Insecure_Design/)\n", + "text": "Stacktrace information is displayed in a non-Development environment. Accidentally disclosing sensitive stack trace information in a production environment aids an attacker in reconnaissance and information gathering." + }, + "helpUri": "https://semgrep.dev/r/csharp.lang.security.stacktrace-disclosure.stacktrace-disclosure", + "id": "csharp.lang.security.stacktrace-disclosure.stacktrace-disclosure", + "name": "csharp.lang.security.stacktrace-disclosure.stacktrace-disclosure", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-209: Generation of Error Message Containing Sensitive Information", + "HIGH CONFIDENCE", + "OWASP-A04:2021 - Insecure Design", + "OWASP-A06:2017 - Security Misconfiguration", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: csharp.lang.security.stacktrace-disclosure.stacktrace-disclosure" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "The Connection.recv() method automatically unpickles the data it receives, which can be a security risk unless you can trust the process which sent the message. Therefore, unless the connection object was produced using Pipe() you should only use the recv() and send() methods after performing some sort of authentication. See more dettails: https://docs.python.org/3/library/multiprocessing.html?highlight=security#multiprocessing.connection.Connection" + }, + "help": { + "markdown": "The Connection.recv() method automatically unpickles the data it receives, which can be a security risk unless you can trust the process which sent the message. Therefore, unless the connection object was produced using Pipe() you should only use the recv() and send() methods after performing some sort of authentication. See more dettails: https://docs.python.org/3/library/multiprocessing.html?highlight=security#multiprocessing.connection.Connection\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.lang.security.audit.conn_recv.multiprocessing-recv)\n - [https://docs.python.org/3/library/multiprocessing.html?highlight=security#multiprocessing.connection.Connection](https://docs.python.org/3/library/multiprocessing.html?highlight=security#multiprocessing.connection.Connection)\n", + "text": "The Connection.recv() method automatically unpickles the data it receives, which can be a security risk unless you can trust the process which sent the message. Therefore, unless the connection object was produced using Pipe() you should only use the recv() and send() methods after performing some sort of authentication. See more dettails: https://docs.python.org/3/library/multiprocessing.html?highlight=security#multiprocessing.connection.Connection" + }, + "helpUri": "https://semgrep.dev/r/python.lang.security.audit.conn_recv.multiprocessing-recv", + "id": "python.lang.security.audit.conn_recv.multiprocessing-recv", + "name": "python.lang.security.audit.conn_recv.multiprocessing-recv", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-502: Deserialization of Untrusted Data", + "LOW CONFIDENCE", + "OWASP-A08:2017 - Insecure Deserialization", + "OWASP-A08:2021 - Software and Data Integrity Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.lang.security.audit.conn_recv.multiprocessing-recv" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "If unverified user data can reach the XML Parser it can result in XML External or Internal Entity (XXE) Processing vulnerabilities" + }, + "help": { + "markdown": "If unverified user data can reach the XML Parser it can result in XML External or Internal Entity (XXE) Processing vulnerabilities\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.xml2json.security.audit.xml2json-xxe.xml2json-xxe)\n - [https://owasp.org/Top10/A05_2021-Security_Misconfiguration](https://owasp.org/Top10/A05_2021-Security_Misconfiguration)\n", + "text": "If unverified user data can reach the XML Parser it can result in XML External or Internal Entity (XXE) Processing vulnerabilities" + }, + "helpUri": "https://semgrep.dev/r/javascript.xml2json.security.audit.xml2json-xxe.xml2json-xxe", + "id": "javascript.xml2json.security.audit.xml2json-xxe.xml2json-xxe", + "name": "javascript.xml2json.security.audit.xml2json-xxe.xml2json-xxe", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-611: Improper Restriction of XML External Entity Reference", + "LOW CONFIDENCE", + "OWASP-A04:2017 - XML External Entities (XXE)", + "OWASP-A05:2021 - Security Misconfiguration", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.xml2json.security.audit.xml2json-xxe.xml2json-xxe" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected Flask app with debug=True. Do not deploy to production with this flag enabled as it will leak sensitive information. Instead, consider using Flask configuration variables or setting 'debug' using system environment variables." + }, + "help": { + "markdown": "Detected Flask app with debug=True. Do not deploy to production with this flag enabled as it will leak sensitive information. Instead, consider using Flask configuration variables or setting 'debug' using system environment variables.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.flask.security.audit.debug-enabled.debug-enabled)\n - [https://labs.detectify.com/2015/10/02/how-patreon-got-hacked-publicly-exposed-werkzeug-debugger/](https://labs.detectify.com/2015/10/02/how-patreon-got-hacked-publicly-exposed-werkzeug-debugger/)\n", + "text": "Detected Flask app with debug=True. Do not deploy to production with this flag enabled as it will leak sensitive information. Instead, consider using Flask configuration variables or setting 'debug' using system environment variables." + }, + "helpUri": "https://semgrep.dev/r/python.flask.security.audit.debug-enabled.debug-enabled", + "id": "python.flask.security.audit.debug-enabled.debug-enabled", + "name": "python.flask.security.audit.debug-enabled.debug-enabled", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-489: Active Debug Code", + "HIGH CONFIDENCE", + "OWASP-A06:2017 - Security Misconfiguration", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.flask.security.audit.debug-enabled.debug-enabled" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "DocumentBuilderFactory being instantiated without calling the setFeature functions that are generally used for disabling entity processing, which can allow for XXE vulnerabilities" + }, + "help": { + "markdown": "DocumentBuilderFactory being instantiated without calling the setFeature functions that are generally used for disabling entity processing, which can allow for XXE vulnerabilities\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/contrib.owasp.java.xxe.documentbuilderfactory.owasp.java.xxe.javax.xml.parsers.DocumentBuilderFactory)\n - [https://www.programcreek.com/java-api-examples/?api=javax.xml.parsers.DocumentBuilderFactory](https://www.programcreek.com/java-api-examples/?api=javax.xml.parsers.DocumentBuilderFactory)\n", + "text": "DocumentBuilderFactory being instantiated without calling the setFeature functions that are generally used for disabling entity processing, which can allow for XXE vulnerabilities" + }, + "helpUri": "https://semgrep.dev/r/contrib.owasp.java.xxe.documentbuilderfactory.owasp.java.xxe.javax.xml.parsers.DocumentBuilderFactory", + "id": "contrib.owasp.java.xxe.documentbuilderfactory.owasp.java.xxe.javax.xml.parsers.DocumentBuilderFactory", + "name": "contrib.owasp.java.xxe.documentbuilderfactory.owasp.java.xxe.javax.xml.parsers.DocumentBuilderFactory", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-611: Improper Restriction of XML External Entity Reference", + "HIGH CONFIDENCE", + "OWASP-A04:2017 - XML External Entities (XXE)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: contrib.owasp.java.xxe.documentbuilderfactory.owasp.java.xxe.javax.xml.parsers.DocumentBuilderFactory" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Make sure that unverified user data can not reach vm.runInContext." + }, + "help": { + "markdown": "Make sure that unverified user data can not reach vm.runInContext.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.lang.security.audit.vm-injection.vm-runincontext-context-injection)\n - [https://nodejs.org/dist/latest-v16.x/docs/api/vm.html](https://nodejs.org/dist/latest-v16.x/docs/api/vm.html)\n", + "text": "Make sure that unverified user data can not reach vm.runInContext." + }, + "helpUri": "https://semgrep.dev/r/javascript.lang.security.audit.vm-injection.vm-runincontext-context-injection", + "id": "javascript.lang.security.audit.vm-injection.vm-runincontext-context-injection", + "name": "javascript.lang.security.audit.vm-injection.vm-runincontext-context-injection", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-94: Improper Control of Generation of Code ('Code Injection')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.lang.security.audit.vm-injection.vm-runincontext-context-injection" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "certificate verification explicitly disabled, insecure connections possible" + }, + "help": { + "markdown": "certificate verification explicitly disabled, insecure connections possible\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.lang.security.audit.network.disabled-cert-validation.disabled-cert-validation)\n - [https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures](https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures)\n", + "text": "certificate verification explicitly disabled, insecure connections possible" + }, + "helpUri": "https://semgrep.dev/r/python.lang.security.audit.network.disabled-cert-validation.disabled-cert-validation", + "id": "python.lang.security.audit.network.disabled-cert-validation.disabled-cert-validation", + "name": "python.lang.security.audit.network.disabled-cert-validation.disabled-cert-validation", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-295: Improper Certificate Validation", + "MEDIUM CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "OWASP-A07:2021 - Identification and Authentication Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.lang.security.audit.network.disabled-cert-validation.disabled-cert-validation" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "EC2 instances should not have a public IP address attached in order to block public access to the instances. To fix this, set your `associate_public_ip_address` to `\"false\"`." + }, + "help": { + "markdown": "EC2 instances should not have a public IP address attached in order to block public access to the instances. To fix this, set your `associate_public_ip_address` to `\"false\"`.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.aws.security.aws-ec2-has-public-ip.aws-ec2-has-public-ip)\n - [https://owasp.org/Top10/A01_2021-Broken_Access_Control](https://owasp.org/Top10/A01_2021-Broken_Access_Control)\n", + "text": "EC2 instances should not have a public IP address attached in order to block public access to the instances. To fix this, set your `associate_public_ip_address` to `\"false\"`." + }, + "helpUri": "https://semgrep.dev/r/terraform.aws.security.aws-ec2-has-public-ip.aws-ec2-has-public-ip", + "id": "terraform.aws.security.aws-ec2-has-public-ip.aws-ec2-has-public-ip", + "name": "terraform.aws.security.aws-ec2-has-public-ip.aws-ec2-has-public-ip", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-284: Improper Access Control", + "MEDIUM CONFIDENCE", + "OWASP-A01:2021 - Broken Access Control", + "OWASP-A05:2017 - Broken Access Control", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.aws.security.aws-ec2-has-public-ip.aws-ec2-has-public-ip" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected a possible ZeroDivisionError." + }, + "help": { + "markdown": "Detected a possible ZeroDivisionError.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ruby.lang.security.divide-by-zero.divide-by-zero)\n - [https://github.com/presidentbeef/brakeman/blob/main/lib/brakeman/checks/check_divide_by_zero.rb](https://github.com/presidentbeef/brakeman/blob/main/lib/brakeman/checks/check_divide_by_zero.rb)\n", + "text": "Detected a possible ZeroDivisionError." + }, + "helpUri": "https://semgrep.dev/r/ruby.lang.security.divide-by-zero.divide-by-zero", + "id": "ruby.lang.security.divide-by-zero.divide-by-zero", + "name": "ruby.lang.security.divide-by-zero.divide-by-zero", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-369: Divide By Zero", + "MEDIUM CONFIDENCE", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: ruby.lang.security.divide-by-zero.divide-by-zero" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected SQL statement that is tainted by `event` object. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use parameterized queries or prepared statements instead. You can use parameterized statements like so: `conn.exec_params('SELECT $1 AS a, $2 AS b, $3 AS c', [1, 2, nil])`" + }, + "help": { + "markdown": "Detected SQL statement that is tainted by `event` object. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use parameterized queries or prepared statements instead. You can use parameterized statements like so: `conn.exec_params('SELECT $1 AS a, $2 AS b, $3 AS c', [1, 2, nil])`\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ruby.aws-lambda.security.pg-sqli.pg-sqli)\n - [https://www.rubydoc.info/gems/pg/PG/Connection](https://www.rubydoc.info/gems/pg/PG/Connection)\n", + "text": "Detected SQL statement that is tainted by `event` object. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use parameterized queries or prepared statements instead. You can use parameterized statements like so: `conn.exec_params('SELECT $1 AS a, $2 AS b, $3 AS c', [1, 2, nil])`" + }, + "helpUri": "https://semgrep.dev/r/ruby.aws-lambda.security.pg-sqli.pg-sqli", + "id": "ruby.aws-lambda.security.pg-sqli.pg-sqli", + "name": "ruby.aws-lambda.security.pg-sqli.pg-sqli", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')", + "MEDIUM CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: ruby.aws-lambda.security.pg-sqli.pg-sqli" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Checks for creation of telnet servers or attempts to connect through telnet. This is insecure as the telnet protocol supports no encryption, and data passes through unencrypted." + }, + "help": { + "markdown": "Checks for creation of telnet servers or attempts to connect through telnet. This is insecure as the telnet protocol supports no encryption, and data passes through unencrypted.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/problem-based-packs.insecure-transport.ruby-stdlib.net-telnet-request.net-telnet-request)\n - [https://docs.ruby-lang.org/en/2.2.0/Net/Telnet.html](https://docs.ruby-lang.org/en/2.2.0/Net/Telnet.html)\n - [https://www.rubydoc.info/gems/net-ssh-telnet2/0.1.0/Net/SSH/Telnet](https://www.rubydoc.info/gems/net-ssh-telnet2/0.1.0/Net/SSH/Telnet)\n", + "text": "Checks for creation of telnet servers or attempts to connect through telnet. This is insecure as the telnet protocol supports no encryption, and data passes through unencrypted." + }, + "helpUri": "https://semgrep.dev/r/problem-based-packs.insecure-transport.ruby-stdlib.net-telnet-request.net-telnet-request", + "id": "problem-based-packs.insecure-transport.ruby-stdlib.net-telnet-request.net-telnet-request", + "name": "problem-based-packs.insecure-transport.ruby-stdlib.net-telnet-request.net-telnet-request", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-319: Cleartext Transmission of Sensitive Information", + "MEDIUM CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: problem-based-packs.insecure-transport.ruby-stdlib.net-telnet-request.net-telnet-request" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "If unverified user data can reach the `wkhtmltopdf` methods it can result in Server-Side Request Forgery vulnerabilities" + }, + "help": { + "markdown": "If unverified user data can reach the `wkhtmltopdf` methods it can result in Server-Side Request Forgery vulnerabilities\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.express.security.express-wkhtml-injection.express-wkhtmltopdf-injection)\n - [https://www.npmjs.com/package/wkhtmltopdf](https://www.npmjs.com/package/wkhtmltopdf)\n", + "text": "If unverified user data can reach the `wkhtmltopdf` methods it can result in Server-Side Request Forgery vulnerabilities" + }, + "helpUri": "https://semgrep.dev/r/javascript.express.security.express-wkhtml-injection.express-wkhtmltopdf-injection", + "id": "javascript.express.security.express-wkhtml-injection.express-wkhtmltopdf-injection", + "name": "javascript.express.security.express-wkhtml-injection.express-wkhtmltopdf-injection", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-918: Server-Side Request Forgery (SSRF)", + "LOW CONFIDENCE", + "OWASP-A10:2021 - Server-Side Request Forgery (SSRF)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.express.security.express-wkhtml-injection.express-wkhtmltopdf-injection" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Detected string concatenation with a non-literal variable in a go-pg ORM SQL statement. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, do not use strings concatenated with user-controlled input. Instead, use parameterized statements." + }, + "help": { + "markdown": "Detected string concatenation with a non-literal variable in a go-pg ORM SQL statement. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, do not use strings concatenated with user-controlled input. Instead, use parameterized statements.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/go.lang.security.audit.sqli.pg-orm-sqli.pg-orm-sqli)\n - [https://pg.uptrace.dev/queries/](https://pg.uptrace.dev/queries/)\n", + "text": "Detected string concatenation with a non-literal variable in a go-pg ORM SQL statement. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, do not use strings concatenated with user-controlled input. Instead, use parameterized statements." + }, + "helpUri": "https://semgrep.dev/r/go.lang.security.audit.sqli.pg-orm-sqli.pg-orm-sqli", + "id": "go.lang.security.audit.sqli.pg-orm-sqli.pg-orm-sqli", + "name": "go.lang.security.audit.sqli.pg-orm-sqli.pg-orm-sqli", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')", + "LOW CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: go.lang.security.audit.sqli.pg-orm-sqli.pg-orm-sqli" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Running flask app with host 0.0.0.0 could expose the server publicly." + }, + "help": { + "markdown": "Running flask app with host 0.0.0.0 could expose the server publicly.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.flask.security.audit.app-run-param-config.avoid_app_run_with_bad_host)\n - [https://owasp.org/Top10/A01_2021-Broken_Access_Control](https://owasp.org/Top10/A01_2021-Broken_Access_Control)\n", + "text": "Running flask app with host 0.0.0.0 could expose the server publicly." + }, + "helpUri": "https://semgrep.dev/r/python.flask.security.audit.app-run-param-config.avoid_app_run_with_bad_host", + "id": "python.flask.security.audit.app-run-param-config.avoid_app_run_with_bad_host", + "name": "python.flask.security.audit.app-run-param-config.avoid_app_run_with_bad_host", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-668: Exposure of Resource to Wrong Sphere", + "HIGH CONFIDENCE", + "OWASP-A01:2021 - Broken Access Control", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.flask.security.audit.app-run-param-config.avoid_app_run_with_bad_host" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Service is disabling TLS certificate verification when communicating with the server. This makes your HTTPS connections insecure. Remove the 'insecureSkipTLSVerify: true' key to secure communication." + }, + "help": { + "markdown": "Service is disabling TLS certificate verification when communicating with the server. This makes your HTTPS connections insecure. Remove the 'insecureSkipTLSVerify: true' key to secure communication.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/yaml.kubernetes.security.skip-tls-verify-service.skip-tls-verify-service)\n - [https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#apiservice-v1-apiregistration-k8s-io](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#apiservice-v1-apiregistration-k8s-io)\n", + "text": "Service is disabling TLS certificate verification when communicating with the server. This makes your HTTPS connections insecure. Remove the 'insecureSkipTLSVerify: true' key to secure communication." + }, + "helpUri": "https://semgrep.dev/r/yaml.kubernetes.security.skip-tls-verify-service.skip-tls-verify-service", + "id": "yaml.kubernetes.security.skip-tls-verify-service.skip-tls-verify-service", + "name": "yaml.kubernetes.security.skip-tls-verify-service.skip-tls-verify-service", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-319: Cleartext Transmission of Sensitive Information", + "MEDIUM CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: yaml.kubernetes.security.skip-tls-verify-service.skip-tls-verify-service" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected empty trust manager implementations. This is dangerous because it accepts any certificate, enabling man-in-the-middle attacks. Consider using a KeyStore and TrustManagerFactory instead. See https://stackoverflow.com/questions/2642777/trusting-all-certificates-using-httpclient-over-https for more information." + }, + "help": { + "markdown": "Detected empty trust manager implementations. This is dangerous because it accepts any certificate, enabling man-in-the-middle attacks. Consider using a KeyStore and TrustManagerFactory instead. See https://stackoverflow.com/questions/2642777/trusting-all-certificates-using-httpclient-over-https for more information.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.lang.security.audit.crypto.ssl.insecure-trust-manager.insecure-trust-manager)\n - [https://stackoverflow.com/questions/2642777/trusting-all-certificates-using-httpclient-over-https](https://stackoverflow.com/questions/2642777/trusting-all-certificates-using-httpclient-over-https)\n", + "text": "Detected empty trust manager implementations. This is dangerous because it accepts any certificate, enabling man-in-the-middle attacks. Consider using a KeyStore and TrustManagerFactory instead. See https://stackoverflow.com/questions/2642777/trusting-all-certificates-using-httpclient-over-https for more information." + }, + "helpUri": "https://semgrep.dev/r/java.lang.security.audit.crypto.ssl.insecure-trust-manager.insecure-trust-manager", + "id": "java.lang.security.audit.crypto.ssl.insecure-trust-manager.insecure-trust-manager", + "name": "java.lang.security.audit.crypto.ssl.insecure-trust-manager.insecure-trust-manager", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-295: Improper Certificate Validation", + "LOW CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "OWASP-A07:2021 - Identification and Authentication Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.lang.security.audit.crypto.ssl.insecure-trust-manager.insecure-trust-manager" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Detected possible DOM-based XSS. This occurs because a portion of the URL is being used to construct an element added directly to the page. For example, a malicious actor could send someone a link like this: http://www.some.site/page.html?default= which would add the script to the page. Consider allowlisting appropriate values or using an approach which does not involve the URL." + }, + "help": { + "markdown": "Detected possible DOM-based XSS. This occurs because a portion of the URL is being used to construct an element added directly to the page. For example, a malicious actor could send someone a link like this: http://www.some.site/page.html?default= which would add the script to the page. Consider allowlisting appropriate values or using an approach which does not involve the URL.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.browser.security.dom-based-xss.dom-based-xss)\n - [https://owasp.org/www-community/attacks/DOM_Based_XSS](https://owasp.org/www-community/attacks/DOM_Based_XSS)\n", + "text": "Detected possible DOM-based XSS. This occurs because a portion of the URL is being used to construct an element added directly to the page. For example, a malicious actor could send someone a link like this: http://www.some.site/page.html?default= which would add the script to the page. Consider allowlisting appropriate values or using an approach which does not involve the URL." + }, + "helpUri": "https://semgrep.dev/r/javascript.browser.security.dom-based-xss.dom-based-xss", + "id": "javascript.browser.security.dom-based-xss.dom-based-xss", + "name": "javascript.browser.security.dom-based-xss.dom-based-xss", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.browser.security.dom-based-xss.dom-based-xss" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Possible writing outside of the destination, make sure that the target path is nested in the intended destination" + }, + "help": { + "markdown": "Possible writing outside of the destination, make sure that the target path is nested in the intended destination\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.express.security.audit.express-path-join-resolve-traversal.express-path-join-resolve-traversal)\n - [https://owasp.org/www-community/attacks/Path_Traversal](https://owasp.org/www-community/attacks/Path_Traversal)\n", + "text": "Possible writing outside of the destination, make sure that the target path is nested in the intended destination" + }, + "helpUri": "https://semgrep.dev/r/javascript.express.security.audit.express-path-join-resolve-traversal.express-path-join-resolve-traversal", + "id": "javascript.express.security.audit.express-path-join-resolve-traversal.express-path-join-resolve-traversal", + "name": "javascript.express.security.audit.express-path-join-resolve-traversal.express-path-join-resolve-traversal", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')", + "MEDIUM CONFIDENCE", + "OWASP-A01:2021 - Broken Access Control", + "OWASP-A05:2017 - Broken Access Control", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.express.security.audit.express-path-join-resolve-traversal.express-path-join-resolve-traversal" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Cross-site scripting detected in HttpServletResponse writer with variable '$VAR'. User input was detected going directly from the HttpServletRequest into output. Ensure your data is properly encoded using org.owasp.encoder.Encode.forHtml: 'Encode.forHtml($VAR)'." + }, + "help": { + "markdown": "Cross-site scripting detected in HttpServletResponse writer with variable '$VAR'. User input was detected going directly from the HttpServletRequest into output. Ensure your data is properly encoded using org.owasp.encoder.Encode.forHtml: 'Encode.forHtml($VAR)'.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.lang.security.servletresponse-writer-xss.servletresponse-writer-xss)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "Cross-site scripting detected in HttpServletResponse writer with variable '$VAR'. User input was detected going directly from the HttpServletRequest into output. Ensure your data is properly encoded using org.owasp.encoder.Encode.forHtml: 'Encode.forHtml($VAR)'." + }, + "helpUri": "https://semgrep.dev/r/java.lang.security.servletresponse-writer-xss.servletresponse-writer-xss", + "id": "java.lang.security.servletresponse-writer-xss.servletresponse-writer-xss", + "name": "java.lang.security.servletresponse-writer-xss.servletresponse-writer-xss", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "MEDIUM CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.lang.security.servletresponse-writer-xss.servletresponse-writer-xss" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Avoiding SQL string concatenation: untrusted input concatenated with raw SQL query can result in SQL Injection. In order to execute raw query safely, prepared statement should be used. SQLAlchemy provides TextualSQL to easily used prepared statement with named parameters. For complex SQL composition, use SQL Expression Language or Schema Definition Language. In most cases, SQLAlchemy ORM will be a better option." + }, + "help": { + "markdown": "Avoiding SQL string concatenation: untrusted input concatenated with raw SQL query can result in SQL Injection. In order to execute raw query safely, prepared statement should be used. SQLAlchemy provides TextualSQL to easily used prepared statement with named parameters. For complex SQL composition, use SQL Expression Language or Schema Definition Language. In most cases, SQLAlchemy ORM will be a better option.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.sqlalchemy.security.sqlalchemy-execute-raw-query.sqlalchemy-execute-raw-query)\n - [https://docs.sqlalchemy.org/en/14/core/tutorial.html#using-textual-sql](https://docs.sqlalchemy.org/en/14/core/tutorial.html#using-textual-sql)\n - [https://www.tutorialspoint.com/sqlalchemy/sqlalchemy_quick_guide.htm](https://www.tutorialspoint.com/sqlalchemy/sqlalchemy_quick_guide.htm)\n - [https://docs.sqlalchemy.org/en/14/core/tutorial.html#using-more-specific-text-with-table-expression-literal-column-and-expression-column](https://docs.sqlalchemy.org/en/14/core/tutorial.html#using-more-specific-text-with-table-expression-literal-column-and-expression-column)\n", + "text": "Avoiding SQL string concatenation: untrusted input concatenated with raw SQL query can result in SQL Injection. In order to execute raw query safely, prepared statement should be used. SQLAlchemy provides TextualSQL to easily used prepared statement with named parameters. For complex SQL composition, use SQL Expression Language or Schema Definition Language. In most cases, SQLAlchemy ORM will be a better option." + }, + "helpUri": "https://semgrep.dev/r/python.sqlalchemy.security.sqlalchemy-execute-raw-query.sqlalchemy-execute-raw-query", + "id": "python.sqlalchemy.security.sqlalchemy-execute-raw-query.sqlalchemy-execute-raw-query", + "name": "python.sqlalchemy.security.sqlalchemy-execute-raw-query.sqlalchemy-execute-raw-query", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')", + "LOW CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.sqlalchemy.security.sqlalchemy-execute-raw-query.sqlalchemy-execute-raw-query" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Hardcoded variable `DEBUG` detected. Set this by using FLASK_DEBUG environment variable" + }, + "help": { + "markdown": "Hardcoded variable `DEBUG` detected. Set this by using FLASK_DEBUG environment variable\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.flask.security.audit.hardcoded-config.avoid_hardcoded_config_DEBUG)\n - [https://bento.dev/checks/flask/avoid-hardcoded-config/](https://bento.dev/checks/flask/avoid-hardcoded-config/)\n - [https://flask.palletsprojects.com/en/1.1.x/config/?highlight=configuration#builtin-configuration-values](https://flask.palletsprojects.com/en/1.1.x/config/?highlight=configuration#builtin-configuration-values)\n - [https://flask.palletsprojects.com/en/1.1.x/config/?highlight=configuration#environment-and-debug-features](https://flask.palletsprojects.com/en/1.1.x/config/?highlight=configuration#environment-and-debug-features)\n", + "text": "Hardcoded variable `DEBUG` detected. Set this by using FLASK_DEBUG environment variable" + }, + "helpUri": "https://semgrep.dev/r/python.flask.security.audit.hardcoded-config.avoid_hardcoded_config_DEBUG", + "id": "python.flask.security.audit.hardcoded-config.avoid_hardcoded_config_DEBUG", + "name": "python.flask.security.audit.hardcoded-config.avoid_hardcoded_config_DEBUG", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-489: Active Debug Code", + "LOW CONFIDENCE", + "OWASP-A05:2021 - Security Misconfiguration", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.flask.security.audit.hardcoded-config.avoid_hardcoded_config_DEBUG" + } + }, + { + "defaultConfiguration": { + "level": "note" + }, + "fullDescription": { + "text": "Detected a request using 'http://'. This request will be unencrypted. Use 'https://' instead." + }, + "help": { + "markdown": "Detected a request using 'http://'. This request will be unencrypted. Use 'https://' instead.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.lang.security.audit.insecure-transport.requests.request-session-http-in-with-context.request-session-http-in-with-context)\n - [https://owasp.org/Top10/A02_2021-Cryptographic_Failures](https://owasp.org/Top10/A02_2021-Cryptographic_Failures)\n", + "text": "Detected a request using 'http://'. This request will be unencrypted. Use 'https://' instead." + }, + "helpUri": "https://semgrep.dev/r/python.lang.security.audit.insecure-transport.requests.request-session-http-in-with-context.request-session-http-in-with-context", + "id": "python.lang.security.audit.insecure-transport.requests.request-session-http-in-with-context.request-session-http-in-with-context", + "name": "python.lang.security.audit.insecure-transport.requests.request-session-http-in-with-context.request-session-http-in-with-context", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-319: Cleartext Transmission of Sensitive Information", + "MEDIUM CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.lang.security.audit.insecure-transport.requests.request-session-http-in-with-context.request-session-http-in-with-context" + } + }, + { + "defaultConfiguration": { + "level": "note" + }, + "fullDescription": { + "text": "Registering the identity used by an App with AD allows it to interact with other services without using username and password. Set the `identity` block in your appservice." + }, + "help": { + "markdown": "Registering the identity used by an App with AD allows it to interact with other services without using username and password. Set the `identity` block in your appservice.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.azure.security.appservice.appservice-account-identity-registered.appservice-account-identity-registered)\n - [https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/app_service#identity](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/app_service#identity)\n", + "text": "Registering the identity used by an App with AD allows it to interact with other services without using username and password. Set the `identity` block in your appservice." + }, + "helpUri": "https://semgrep.dev/r/terraform.azure.security.appservice.appservice-account-identity-registered.appservice-account-identity-registered", + "id": "terraform.azure.security.appservice.appservice-account-identity-registered.appservice-account-identity-registered", + "name": "terraform.azure.security.appservice.appservice-account-identity-registered.appservice-account-identity-registered", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-287: Improper Authentication", + "LOW CONFIDENCE", + "OWASP-A02:2017 - Broken Authentication", + "OWASP-A07:2021 - Identification and Authentication Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.azure.security.appservice.appservice-account-identity-registered.appservice-account-identity-registered" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected MD5 hash algorithm which is considered insecure. MD5 is not collision resistant and is therefore not suitable as a cryptographic signature. Use HMAC instead." + }, + "help": { + "markdown": "Detected MD5 hash algorithm which is considered insecure. MD5 is not collision resistant and is therefore not suitable as a cryptographic signature. Use HMAC instead.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.lang.security.audit.crypto.use-of-md5.use-of-md5)\n - [https://owasp.org/Top10/A02_2021-Cryptographic_Failures](https://owasp.org/Top10/A02_2021-Cryptographic_Failures)\n", + "text": "Detected MD5 hash algorithm which is considered insecure. MD5 is not collision resistant and is therefore not suitable as a cryptographic signature. Use HMAC instead." + }, + "helpUri": "https://semgrep.dev/r/java.lang.security.audit.crypto.use-of-md5.use-of-md5", + "id": "java.lang.security.audit.crypto.use-of-md5.use-of-md5", + "name": "java.lang.security.audit.crypto.use-of-md5.use-of-md5", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-328: Use of Weak Hash", + "HIGH CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.lang.security.audit.crypto.use-of-md5.use-of-md5" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "The Origin header in the HTTP WebSocket handshake is used to guarantee that the connection accepted by the WebSocket is from a trusted origin domain. Failure to enforce can lead to Cross Site Request Forgery (CSRF). As per \"gorilla/websocket\" documentation: \"A CheckOrigin function should carefully validate the request origin to prevent cross-site request forgery.\"" + }, + "help": { + "markdown": "The Origin header in the HTTP WebSocket handshake is used to guarantee that the connection accepted by the WebSocket is from a trusted origin domain. Failure to enforce can lead to Cross Site Request Forgery (CSRF). As per \"gorilla/websocket\" documentation: \"A CheckOrigin function should carefully validate the request origin to prevent cross-site request forgery.\"\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/go.gorilla.security.audit.websocket-missing-origin-check.websocket-missing-origin-check)\n - [https://pkg.go.dev/github.com/gorilla/websocket#Upgrader](https://pkg.go.dev/github.com/gorilla/websocket#Upgrader)\n", + "text": "The Origin header in the HTTP WebSocket handshake is used to guarantee that the connection accepted by the WebSocket is from a trusted origin domain. Failure to enforce can lead to Cross Site Request Forgery (CSRF). As per \"gorilla/websocket\" documentation: \"A CheckOrigin function should carefully validate the request origin to prevent cross-site request forgery.\"" + }, + "helpUri": "https://semgrep.dev/r/go.gorilla.security.audit.websocket-missing-origin-check.websocket-missing-origin-check", + "id": "go.gorilla.security.audit.websocket-missing-origin-check.websocket-missing-origin-check", + "name": "go.gorilla.security.audit.websocket-missing-origin-check.websocket-missing-origin-check", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-352: Cross-Site Request Forgery (CSRF)", + "MEDIUM CONFIDENCE", + "OWASP-A01:2021 - Broken Access Control", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: go.gorilla.security.audit.websocket-missing-origin-check.websocket-missing-origin-check" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected usage of noassert in Buffer API, which allows the offset the be beyond the end of the buffer. This could result in writing or reading beyond the end of the buffer." + }, + "help": { + "markdown": "Detected usage of noassert in Buffer API, which allows the offset the be beyond the end of the buffer. This could result in writing or reading beyond the end of the buffer.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.lang.security.detect-buffer-noassert.detect-buffer-noassert)\n - [https://cwe.mitre.org/data/definitions/119.html](https://cwe.mitre.org/data/definitions/119.html)\n", + "text": "Detected usage of noassert in Buffer API, which allows the offset the be beyond the end of the buffer. This could result in writing or reading beyond the end of the buffer." + }, + "helpUri": "https://semgrep.dev/r/javascript.lang.security.detect-buffer-noassert.detect-buffer-noassert", + "id": "javascript.lang.security.detect-buffer-noassert.detect-buffer-noassert", + "name": "javascript.lang.security.detect-buffer-noassert.detect-buffer-noassert", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer", + "LOW CONFIDENCE", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.lang.security.detect-buffer-noassert.detect-buffer-noassert" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "The AWS SSM logs are unencrypted or disabled. Please enable logs and use AWS KMS encryption key to protect SSM logs. To create your own, create a aws_kms_key resource or use the ARN string of a key in your account." + }, + "help": { + "markdown": "The AWS SSM logs are unencrypted or disabled. Please enable logs and use AWS KMS encryption key to protect SSM logs. To create your own, create a aws_kms_key resource or use the ARN string of a key in your account.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.aws.security.aws-ssm-document-logging-issues.aws-ssm-document-logging-issues)\n - [https://owasp.org/Top10/A02_2021-Cryptographic_Failures](https://owasp.org/Top10/A02_2021-Cryptographic_Failures)\n", + "text": "The AWS SSM logs are unencrypted or disabled. Please enable logs and use AWS KMS encryption key to protect SSM logs. To create your own, create a aws_kms_key resource or use the ARN string of a key in your account." + }, + "helpUri": "https://semgrep.dev/r/terraform.aws.security.aws-ssm-document-logging-issues.aws-ssm-document-logging-issues", + "id": "terraform.aws.security.aws-ssm-document-logging-issues.aws-ssm-document-logging-issues", + "name": "terraform.aws.security.aws-ssm-document-logging-issues.aws-ssm-document-logging-issues", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-326: Inadequate Encryption Strength", + "LOW CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.aws.security.aws-ssm-document-logging-issues.aws-ssm-document-logging-issues" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "GCM IV/nonce is reused: encryption can be totally useless" + }, + "help": { + "markdown": "GCM IV/nonce is reused: encryption can be totally useless\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.lang.security.audit.crypto.gcm-nonce-reuse.gcm-nonce-reuse)\n - [https://owasp.org/Top10/A02_2021-Cryptographic_Failures](https://owasp.org/Top10/A02_2021-Cryptographic_Failures)\n", + "text": "GCM IV/nonce is reused: encryption can be totally useless" + }, + "helpUri": "https://semgrep.dev/r/java.lang.security.audit.crypto.gcm-nonce-reuse.gcm-nonce-reuse", + "id": "java.lang.security.audit.crypto.gcm-nonce-reuse.gcm-nonce-reuse", + "name": "java.lang.security.audit.crypto.gcm-nonce-reuse.gcm-nonce-reuse", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-323: Reusing a Nonce, Key Pair in Encryption", + "HIGH CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.lang.security.audit.crypto.gcm-nonce-reuse.gcm-nonce-reuse" + } + }, + { + "defaultConfiguration": { + "level": "note" + }, + "fullDescription": { + "text": "this rule has been deprecated." + }, + "help": { + "markdown": "this rule has been deprecated.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/typescript.react.security.audit.react-router-redirect.react-router-redirect)\n - [https://v5.reactrouter.com/web/api/Redirect](https://v5.reactrouter.com/web/api/Redirect)\n - [https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html](https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html)\n - [https://semgrep.dev](https://semgrep.dev)\n", + "text": "this rule has been deprecated." + }, + "helpUri": "https://semgrep.dev/r/typescript.react.security.audit.react-router-redirect.react-router-redirect", + "id": "typescript.react.security.audit.react-router-redirect.react-router-redirect", + "name": "typescript.react.security.audit.react-router-redirect.react-router-redirect", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: typescript.react.security.audit.react-router-redirect.react-router-redirect" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected MD5 hash algorithm which is considered insecure. MD5 is not collision resistant and is therefore not suitable as a cryptographic signature. Use SHA256 or SHA3 instead." + }, + "help": { + "markdown": "Detected MD5 hash algorithm which is considered insecure. MD5 is not collision resistant and is therefore not suitable as a cryptographic signature. Use SHA256 or SHA3 instead.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/go.lang.security.audit.crypto.use_of_weak_crypto.use-of-md5)\n - [https://owasp.org/Top10/A02_2021-Cryptographic_Failures](https://owasp.org/Top10/A02_2021-Cryptographic_Failures)\n", + "text": "Detected MD5 hash algorithm which is considered insecure. MD5 is not collision resistant and is therefore not suitable as a cryptographic signature. Use SHA256 or SHA3 instead." + }, + "helpUri": "https://semgrep.dev/r/go.lang.security.audit.crypto.use_of_weak_crypto.use-of-md5", + "id": "go.lang.security.audit.crypto.use_of_weak_crypto.use-of-md5", + "name": "go.lang.security.audit.crypto.use_of_weak_crypto.use-of-md5", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-327: Use of a Broken or Risky Cryptographic Algorithm", + "MEDIUM CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: go.lang.security.audit.crypto.use_of_weak_crypto.use-of-md5" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected a Context with autoescape disabled. If you are rendering any web pages, this exposes your application to cross-site scripting (XSS) vulnerabilities. Remove 'autoescape: False' or set it to 'True'." + }, + "help": { + "markdown": "Detected a Context with autoescape disabled. If you are rendering any web pages, this exposes your application to cross-site scripting (XSS) vulnerabilities. Remove 'autoescape: False' or set it to 'True'.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.django.security.audit.xss.context-autoescape-off.context-autoescape-off)\n - [https://docs.djangoproject.com/en/3.1/ref/settings/#templates](https://docs.djangoproject.com/en/3.1/ref/settings/#templates)\n - [https://docs.djangoproject.com/en/3.1/topics/templates/#django.template.backends.django.DjangoTemplates](https://docs.djangoproject.com/en/3.1/topics/templates/#django.template.backends.django.DjangoTemplates)\n", + "text": "Detected a Context with autoescape disabled. If you are rendering any web pages, this exposes your application to cross-site scripting (XSS) vulnerabilities. Remove 'autoescape: False' or set it to 'True'." + }, + "helpUri": "https://semgrep.dev/r/python.django.security.audit.xss.context-autoescape-off.context-autoescape-off", + "id": "python.django.security.audit.xss.context-autoescape-off.context-autoescape-off", + "name": "python.django.security.audit.xss.context-autoescape-off.context-autoescape-off", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.django.security.audit.xss.context-autoescape-off.context-autoescape-off" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected an insufficient key size for RSA. NIST recommends a key size of 2048 or higher." + }, + "help": { + "markdown": "Detected an insufficient key size for RSA. NIST recommends a key size of 2048 or higher.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.cryptography.security.insufficient-rsa-key-size.insufficient-rsa-key-size)\n - [https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-57Pt3r1.pdf](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-57Pt3r1.pdf)\n", + "text": "Detected an insufficient key size for RSA. NIST recommends a key size of 2048 or higher." + }, + "helpUri": "https://semgrep.dev/r/python.cryptography.security.insufficient-rsa-key-size.insufficient-rsa-key-size", + "id": "python.cryptography.security.insufficient-rsa-key-size.insufficient-rsa-key-size", + "name": "python.cryptography.security.insufficient-rsa-key-size.insufficient-rsa-key-size", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-326: Inadequate Encryption Strength", + "MEDIUM CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.cryptography.security.insufficient-rsa-key-size.insufficient-rsa-key-size" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Unencrypted request over HTTP detected." + }, + "help": { + "markdown": "Unencrypted request over HTTP detected.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/typescript.react.security.react-insecure-request.react-insecure-request)\n - [https://www.npmjs.com/package/axios](https://www.npmjs.com/package/axios)\n", + "text": "Unencrypted request over HTTP detected." + }, + "helpUri": "https://semgrep.dev/r/typescript.react.security.react-insecure-request.react-insecure-request", + "id": "typescript.react.security.react-insecure-request.react-insecure-request", + "name": "typescript.react.security.react-insecure-request.react-insecure-request", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-319: Cleartext Transmission of Sensitive Information", + "MEDIUM CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: typescript.react.security.react-insecure-request.react-insecure-request" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "top-level app.run(...) is ignored by flask. Consider putting app.run(...) behind a guard, like inside a function" + }, + "help": { + "markdown": "top-level app.run(...) is ignored by flask. Consider putting app.run(...) behind a guard, like inside a function\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.flask.security.audit.app-run-security-config.avoid_using_app_run_directly)\n - [https://owasp.org/Top10/A01_2021-Broken_Access_Control](https://owasp.org/Top10/A01_2021-Broken_Access_Control)\n", + "text": "top-level app.run(...) is ignored by flask. Consider putting app.run(...) behind a guard, like inside a function" + }, + "helpUri": "https://semgrep.dev/r/python.flask.security.audit.app-run-security-config.avoid_using_app_run_directly", + "id": "python.flask.security.audit.app-run-security-config.avoid_using_app_run_directly", + "name": "python.flask.security.audit.app-run-security-config.avoid_using_app_run_directly", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-668: Exposure of Resource to Wrong Sphere", + "MEDIUM CONFIDENCE", + "OWASP-A01:2021 - Broken Access Control", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.flask.security.audit.app-run-security-config.avoid_using_app_run_directly" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected a paramiko host key policy that implicitly trusts a server's host key. Host keys should be verified to ensure the connection is not to a malicious server. Use RejectPolicy or a custom subclass instead." + }, + "help": { + "markdown": "Detected a paramiko host key policy that implicitly trusts a server's host key. Host keys should be verified to ensure the connection is not to a malicious server. Use RejectPolicy or a custom subclass instead.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.lang.security.audit.paramiko-implicit-trust-host-key.paramiko-implicit-trust-host-key)\n - [http://docs.paramiko.org/en/stable/api/client.html#paramiko.client.AutoAddPolicy](http://docs.paramiko.org/en/stable/api/client.html#paramiko.client.AutoAddPolicy)\n", + "text": "Detected a paramiko host key policy that implicitly trusts a server's host key. Host keys should be verified to ensure the connection is not to a malicious server. Use RejectPolicy or a custom subclass instead." + }, + "helpUri": "https://semgrep.dev/r/python.lang.security.audit.paramiko-implicit-trust-host-key.paramiko-implicit-trust-host-key", + "id": "python.lang.security.audit.paramiko-implicit-trust-host-key.paramiko-implicit-trust-host-key", + "name": "python.lang.security.audit.paramiko-implicit-trust-host-key.paramiko-implicit-trust-host-key", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-322: Key Exchange without Entity Authentication", + "LOW CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.lang.security.audit.paramiko-implicit-trust-host-key.paramiko-implicit-trust-host-key" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Data from request object is passed to a new server-side request. This could lead to a server-side request forgery (SSRF). To mitigate, ensure that schemes and hosts are validated against an allowlist, do not forward the response to the user, and ensure proper authentication and transport-layer security in the proxied request." + }, + "help": { + "markdown": "Data from request object is passed to a new server-side request. This could lead to a server-side request forgery (SSRF). To mitigate, ensure that schemes and hosts are validated against an allowlist, do not forward the response to the user, and ensure proper authentication and transport-layer security in the proxied request.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.flask.security.injection.ssrf-requests.ssrf-requests)\n - [https://owasp.org/www-community/attacks/Server_Side_Request_Forgery](https://owasp.org/www-community/attacks/Server_Side_Request_Forgery)\n", + "text": "Data from request object is passed to a new server-side request. This could lead to a server-side request forgery (SSRF). To mitigate, ensure that schemes and hosts are validated against an allowlist, do not forward the response to the user, and ensure proper authentication and transport-layer security in the proxied request." + }, + "helpUri": "https://semgrep.dev/r/python.flask.security.injection.ssrf-requests.ssrf-requests", + "id": "python.flask.security.injection.ssrf-requests.ssrf-requests", + "name": "python.flask.security.injection.ssrf-requests.ssrf-requests", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-918: Server-Side Request Forgery (SSRF)", + "MEDIUM CONFIDENCE", + "OWASP-A10:2021 - Server-Side Request Forgery (SSRF)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.flask.security.injection.ssrf-requests.ssrf-requests" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Ensure that groups of actions that include iam:PassRole and could result in privilege escalation are not all allowed for the same user. These actions could result in an attacker gaining full admin access of an AWS account. Try not to use these actions in conjuction." + }, + "help": { + "markdown": "Ensure that groups of actions that include iam:PassRole and could result in privilege escalation are not all allowed for the same user. These actions could result in an attacker gaining full admin access of an AWS account. Try not to use these actions in conjuction.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.lang.security.iam.no-iam-priv-esc-roles.no-iam-priv-esc-roles)\n - [https://cloudsplaining.readthedocs.io/en/latest/glossary/privilege-escalation/](https://cloudsplaining.readthedocs.io/en/latest/glossary/privilege-escalation/)\n - [https://rhinosecuritylabs.com/aws/aws-privilege-escalation-methods-mitigation/](https://rhinosecuritylabs.com/aws/aws-privilege-escalation-methods-mitigation/)\n", + "text": "Ensure that groups of actions that include iam:PassRole and could result in privilege escalation are not all allowed for the same user. These actions could result in an attacker gaining full admin access of an AWS account. Try not to use these actions in conjuction." + }, + "helpUri": "https://semgrep.dev/r/terraform.lang.security.iam.no-iam-priv-esc-roles.no-iam-priv-esc-roles", + "id": "terraform.lang.security.iam.no-iam-priv-esc-roles.no-iam-priv-esc-roles", + "name": "terraform.lang.security.iam.no-iam-priv-esc-roles.no-iam-priv-esc-roles", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-269: Improper Privilege Management", + "LOW CONFIDENCE", + "OWASP-A04:2021 - Insecure Design", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.lang.security.iam.no-iam-priv-esc-roles.no-iam-priv-esc-roles" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Data is being piped into `bash` from a `curl` command. An attacker with control of the server in the `curl` command could inject malicious code into the pipe, resulting in a system compromise. Avoid piping untrusted data into `bash` or any other shell if you can. If you must do this, consider checking the SHA sum of the content returned by the server to verify its integrity." + }, + "help": { + "markdown": "Data is being piped into `bash` from a `curl` command. An attacker with control of the server in the `curl` command could inject malicious code into the pipe, resulting in a system compromise. Avoid piping untrusted data into `bash` or any other shell if you can. If you must do this, consider checking the SHA sum of the content returned by the server to verify its integrity.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/bash.curl.security.curl-pipe-bash.curl-pipe-bash)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "Data is being piped into `bash` from a `curl` command. An attacker with control of the server in the `curl` command could inject malicious code into the pipe, resulting in a system compromise. Avoid piping untrusted data into `bash` or any other shell if you can. If you must do this, consider checking the SHA sum of the content returned by the server to verify its integrity." + }, + "helpUri": "https://semgrep.dev/r/bash.curl.security.curl-pipe-bash.curl-pipe-bash", + "id": "bash.curl.security.curl-pipe-bash.curl-pipe-bash", + "name": "bash.curl.security.curl-pipe-bash.curl-pipe-bash", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: bash.curl.security.curl-pipe-bash.curl-pipe-bash" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "If unverified user data can reach the `addInitScript` method it can result in Server-Side Request Forgery vulnerabilities" + }, + "help": { + "markdown": "If unverified user data can reach the `addInitScript` method it can result in Server-Side Request Forgery vulnerabilities\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.playwright.security.audit.playwright-addinitscript-code-injection.playwright-addinitscript-code-injection)\n - [https://owasp.org/Top10/A10_2021-Server-Side_Request_Forgery_%28SSRF%29](https://owasp.org/Top10/A10_2021-Server-Side_Request_Forgery_%28SSRF%29)\n", + "text": "If unverified user data can reach the `addInitScript` method it can result in Server-Side Request Forgery vulnerabilities" + }, + "helpUri": "https://semgrep.dev/r/javascript.playwright.security.audit.playwright-addinitscript-code-injection.playwright-addinitscript-code-injection", + "id": "javascript.playwright.security.audit.playwright-addinitscript-code-injection.playwright-addinitscript-code-injection", + "name": "javascript.playwright.security.audit.playwright-addinitscript-code-injection.playwright-addinitscript-code-injection", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-918: Server-Side Request Forgery (SSRF)", + "LOW CONFIDENCE", + "OWASP-A10:2021 - Server-Side Request Forgery (SSRF)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.playwright.security.audit.playwright-addinitscript-code-injection.playwright-addinitscript-code-injection" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Checks for requests sent via Java Spring RestTemplate API to http:// URLS. This is dangerous because the server is attempting to connect to a website that does not encrypt traffic with TLS. Instead, send requests only to https:// URLS." + }, + "help": { + "markdown": "Checks for requests sent via Java Spring RestTemplate API to http:// URLS. This is dangerous because the server is attempting to connect to a website that does not encrypt traffic with TLS. Instead, send requests only to https:// URLS.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/problem-based-packs.insecure-transport.java-spring.spring-http-request.spring-http-request)\n - [https://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/web/client/RestTemplate.html#delete-java.lang.String-java.util.Map-](https://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/web/client/RestTemplate.html#delete-java.lang.String-java.util.Map-)\n - [https://www.baeldung.com/rest-template](https://www.baeldung.com/rest-template)\n", + "text": "Checks for requests sent via Java Spring RestTemplate API to http:// URLS. This is dangerous because the server is attempting to connect to a website that does not encrypt traffic with TLS. Instead, send requests only to https:// URLS." + }, + "helpUri": "https://semgrep.dev/r/problem-based-packs.insecure-transport.java-spring.spring-http-request.spring-http-request", + "id": "problem-based-packs.insecure-transport.java-spring.spring-http-request.spring-http-request", + "name": "problem-based-packs.insecure-transport.java-spring.spring-http-request.spring-http-request", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-319: Cleartext Transmission of Sensitive Information", + "MEDIUM CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: problem-based-packs.insecure-transport.java-spring.spring-http-request.spring-http-request" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Ensure DocDB is encrypted at rest using KMS CMKs. CMKs gives you control over the encryption key in terms of access and rotation." + }, + "help": { + "markdown": "Ensure DocDB is encrypted at rest using KMS CMKs. CMKs gives you control over the encryption key in terms of access and rotation.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.aws.security.aws-docdb-encrypted-with-cmk.aws-docdb-encrypted-with-cmk)\n - [https://owasp.org/Top10/A02_2021-Cryptographic_Failures](https://owasp.org/Top10/A02_2021-Cryptographic_Failures)\n", + "text": "Ensure DocDB is encrypted at rest using KMS CMKs. CMKs gives you control over the encryption key in terms of access and rotation." + }, + "helpUri": "https://semgrep.dev/r/terraform.aws.security.aws-docdb-encrypted-with-cmk.aws-docdb-encrypted-with-cmk", + "id": "terraform.aws.security.aws-docdb-encrypted-with-cmk.aws-docdb-encrypted-with-cmk", + "name": "terraform.aws.security.aws-docdb-encrypted-with-cmk.aws-docdb-encrypted-with-cmk", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-320: CWE CATEGORY: Key Management Errors", + "LOW CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.aws.security.aws-docdb-encrypted-with-cmk.aws-docdb-encrypted-with-cmk" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected MD4 hash algorithm which is considered insecure. MD4 is not collision resistant and is therefore not suitable as a cryptographic signature. Use SHA256 or SHA3 instead." + }, + "help": { + "markdown": "Detected MD4 hash algorithm which is considered insecure. MD4 is not collision resistant and is therefore not suitable as a cryptographic signature. Use SHA256 or SHA3 instead.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.pycryptodome.security.insecure-hash-algorithm-md4.insecure-hash-algorithm-md4)\n - [https://www.schneier.com/blog/archives/2012/10/when_will_we_se.html](https://www.schneier.com/blog/archives/2012/10/when_will_we_se.html)\n - [https://www.trendmicro.com/vinfo/us/security/news/vulnerabilities-and-exploits/sha-1-collision-signals-the-end-of-the-algorithm-s-viability](https://www.trendmicro.com/vinfo/us/security/news/vulnerabilities-and-exploits/sha-1-collision-signals-the-end-of-the-algorithm-s-viability)\n - [http://2012.sharcs.org/slides/stevens.pdf](http://2012.sharcs.org/slides/stevens.pdf)\n - [https://pycryptodome.readthedocs.io/en/latest/src/hash/sha3_256.html](https://pycryptodome.readthedocs.io/en/latest/src/hash/sha3_256.html)\n", + "text": "Detected MD4 hash algorithm which is considered insecure. MD4 is not collision resistant and is therefore not suitable as a cryptographic signature. Use SHA256 or SHA3 instead." + }, + "helpUri": "https://semgrep.dev/r/python.pycryptodome.security.insecure-hash-algorithm-md4.insecure-hash-algorithm-md4", + "id": "python.pycryptodome.security.insecure-hash-algorithm-md4.insecure-hash-algorithm-md4", + "name": "python.pycryptodome.security.insecure-hash-algorithm-md4.insecure-hash-algorithm-md4", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-327: Use of a Broken or Risky Cryptographic Algorithm", + "MEDIUM CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.pycryptodome.security.insecure-hash-algorithm-md4.insecure-hash-algorithm-md4" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "NullCipher was detected. This will not encrypt anything; the cipher text will be the same as the plain text. Use a valid, secure cipher: Cipher.getInstance(\"AES/CBC/PKCS7PADDING\"). See https://owasp.org/www-community/Using_the_Java_Cryptographic_Extensions for more information." + }, + "help": { + "markdown": "NullCipher was detected. This will not encrypt anything; the cipher text will be the same as the plain text. Use a valid, secure cipher: Cipher.getInstance(\"AES/CBC/PKCS7PADDING\"). See https://owasp.org/www-community/Using_the_Java_Cryptographic_Extensions for more information.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.lang.security.audit.crypto.no-null-cipher.no-null-cipher)\n - [https://owasp.org/Top10/A02_2021-Cryptographic_Failures](https://owasp.org/Top10/A02_2021-Cryptographic_Failures)\n", + "text": "NullCipher was detected. This will not encrypt anything; the cipher text will be the same as the plain text. Use a valid, secure cipher: Cipher.getInstance(\"AES/CBC/PKCS7PADDING\"). See https://owasp.org/www-community/Using_the_Java_Cryptographic_Extensions for more information." + }, + "helpUri": "https://semgrep.dev/r/java.lang.security.audit.crypto.no-null-cipher.no-null-cipher", + "id": "java.lang.security.audit.crypto.no-null-cipher.no-null-cipher", + "name": "java.lang.security.audit.crypto.no-null-cipher.no-null-cipher", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-327: Use of a Broken or Risky Cryptographic Algorithm", + "HIGH CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.lang.security.audit.crypto.no-null-cipher.no-null-cipher" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "The SimpleTypeResolver class is insecure and should not be used. Using SimpleTypeResolver to deserialize JSON could allow the remote client to execute malicious code within the app and take control of the web server." + }, + "help": { + "markdown": "The SimpleTypeResolver class is insecure and should not be used. Using SimpleTypeResolver to deserialize JSON could allow the remote client to execute malicious code within the app and take control of the web server.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/csharp.lang.security.insecure-deserialization.javascript-serializer.insecure-javascriptserializer-deserialization)\n - [https://docs.microsoft.com/en-us/dotnet/api/system.web.script.serialization.simpletyperesolver?view=netframework-4.8#remarks](https://docs.microsoft.com/en-us/dotnet/api/system.web.script.serialization.simpletyperesolver?view=netframework-4.8#remarks)\n", + "text": "The SimpleTypeResolver class is insecure and should not be used. Using SimpleTypeResolver to deserialize JSON could allow the remote client to execute malicious code within the app and take control of the web server." + }, + "helpUri": "https://semgrep.dev/r/csharp.lang.security.insecure-deserialization.javascript-serializer.insecure-javascriptserializer-deserialization", + "id": "csharp.lang.security.insecure-deserialization.javascript-serializer.insecure-javascriptserializer-deserialization", + "name": "csharp.lang.security.insecure-deserialization.javascript-serializer.insecure-javascriptserializer-deserialization", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-502: Deserialization of Untrusted Data", + "LOW CONFIDENCE", + "OWASP-A08:2017 - Insecure Deserialization", + "OWASP-A08:2021 - Software and Data Integrity Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: csharp.lang.security.insecure-deserialization.javascript-serializer.insecure-javascriptserializer-deserialization" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "The object is passed strictly to jwt.encode(...) Make sure that sensitive information is not exposed through JWT token payload." + }, + "help": { + "markdown": "The object is passed strictly to jwt.encode(...) Make sure that sensitive information is not exposed through JWT token payload.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.jwt.security.audit.jwt-exposed-data.jwt-python-exposed-data)\n - [https://owasp.org/Top10/A04_2021-Insecure_Design](https://owasp.org/Top10/A04_2021-Insecure_Design)\n", + "text": "The object is passed strictly to jwt.encode(...) Make sure that sensitive information is not exposed through JWT token payload." + }, + "helpUri": "https://semgrep.dev/r/python.jwt.security.audit.jwt-exposed-data.jwt-python-exposed-data", + "id": "python.jwt.security.audit.jwt-exposed-data.jwt-python-exposed-data", + "name": "python.jwt.security.audit.jwt-exposed-data.jwt-python-exposed-data", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-522: Insufficiently Protected Credentials", + "LOW CONFIDENCE", + "OWASP-A02:2017 - Broken Authentication", + "OWASP-A04:2021 - Insecure Design", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.jwt.security.audit.jwt-exposed-data.jwt-python-exposed-data" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "IPv6Network.subnet_of is only available on Python 3.7+ and is therefore not backwards compatible. Instead, check if the subnet is in 'subnets'." + }, + "help": { + "markdown": "IPv6Network.subnet_of is only available on Python 3.7+ and is therefore not backwards compatible. Instead, check if the subnet is in 'subnets'.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.lang.compatibility.python37.python37-compatibility-ipv6network1)\n", + "text": "IPv6Network.subnet_of is only available on Python 3.7+ and is therefore not backwards compatible. Instead, check if the subnet is in 'subnets'." + }, + "helpUri": "https://semgrep.dev/r/python.lang.compatibility.python37.python37-compatibility-ipv6network1", + "id": "python.lang.compatibility.python37.python37-compatibility-ipv6network1", + "name": "python.lang.compatibility.python37.python37-compatibility-ipv6network1", + "properties": { + "precision": "very-high", + "tags": [] + }, + "shortDescription": { + "text": "Semgrep Finding: python.lang.compatibility.python37.python37-compatibility-ipv6network1" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "IPv4Network.subnet_of is only available on Python 3.7+ and is therefore not backwards compatible. Instead, check if the subnet is in 'subnets'." + }, + "help": { + "markdown": "IPv4Network.subnet_of is only available on Python 3.7+ and is therefore not backwards compatible. Instead, check if the subnet is in 'subnets'.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.lang.compatibility.python37.python37-compatibility-ipv4network1)\n", + "text": "IPv4Network.subnet_of is only available on Python 3.7+ and is therefore not backwards compatible. Instead, check if the subnet is in 'subnets'." + }, + "helpUri": "https://semgrep.dev/r/python.lang.compatibility.python37.python37-compatibility-ipv4network1", + "id": "python.lang.compatibility.python37.python37-compatibility-ipv4network1", + "name": "python.lang.compatibility.python37.python37-compatibility-ipv4network1", + "properties": { + "precision": "very-high", + "tags": [] + }, + "shortDescription": { + "text": "Semgrep Finding: python.lang.compatibility.python37.python37-compatibility-ipv4network1" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Detected wildcard access granted to Glacier Vault. This means anyone within your AWS account ID can perform actions on Glacier resources. Instead, limit to a specific identity in your account, like this: `arn:aws:iam:::`." + }, + "help": { + "markdown": "Detected wildcard access granted to Glacier Vault. This means anyone within your AWS account ID can perform actions on Glacier resources. Instead, limit to a specific identity in your account, like this: `arn:aws:iam:::`.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.aws.security.aws-glacier-vault-any-principal.aws-glacier-vault-any-principal)\n - [https://cwe.mitre.org/data/definitions/732.html](https://cwe.mitre.org/data/definitions/732.html)\n", + "text": "Detected wildcard access granted to Glacier Vault. This means anyone within your AWS account ID can perform actions on Glacier resources. Instead, limit to a specific identity in your account, like this: `arn:aws:iam:::`." + }, + "helpUri": "https://semgrep.dev/r/terraform.aws.security.aws-glacier-vault-any-principal.aws-glacier-vault-any-principal", + "id": "terraform.aws.security.aws-glacier-vault-any-principal.aws-glacier-vault-any-principal", + "name": "terraform.aws.security.aws-glacier-vault-any-principal.aws-glacier-vault-any-principal", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-732: Incorrect Permission Assignment for Critical Resource", + "MEDIUM CONFIDENCE", + "OWASP-A05:2021 - Security Misconfiguration", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.aws.security.aws-glacier-vault-any-principal.aws-glacier-vault-any-principal" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Depending on the context, user control data in `Object.assign` can cause web response to include data that it should not have or can lead to a mass assignment vulnerability." + }, + "help": { + "markdown": "Depending on the context, user control data in `Object.assign` can cause web response to include data that it should not have or can lead to a mass assignment vulnerability.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.express.security.express-data-exfiltration.express-data-exfiltration)\n - [https://en.wikipedia.org/wiki/Mass_assignment_vulnerability](https://en.wikipedia.org/wiki/Mass_assignment_vulnerability)\n - [https://cheatsheetseries.owasp.org/cheatsheets/Mass_Assignment_Cheat_Sheet.html](https://cheatsheetseries.owasp.org/cheatsheets/Mass_Assignment_Cheat_Sheet.html)\n", + "text": "Depending on the context, user control data in `Object.assign` can cause web response to include data that it should not have or can lead to a mass assignment vulnerability." + }, + "helpUri": "https://semgrep.dev/r/javascript.express.security.express-data-exfiltration.express-data-exfiltration", + "id": "javascript.express.security.express-data-exfiltration.express-data-exfiltration", + "name": "javascript.express.security.express-data-exfiltration.express-data-exfiltration", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes", + "LOW CONFIDENCE", + "OWASP-A08:2021 - Software and Data Integrity Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.express.security.express-data-exfiltration.express-data-exfiltration" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "RDS instance or cluster with hardcoded credentials in source code. It is recommended to pass the credentials at runtime, or generate random credentials using the random_password resource." + }, + "help": { + "markdown": "RDS instance or cluster with hardcoded credentials in source code. It is recommended to pass the credentials at runtime, or generate random credentials using the random_password resource.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.lang.security.rds-insecure-password-storage-in-source-code.rds-insecure-password-storage-in-source-code)\n - [https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/db_instance#master_password](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/db_instance#master_password)\n - [https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/rds_cluster#master_password](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/rds_cluster#master_password)\n - [https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/password](https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/password)\n", + "text": "RDS instance or cluster with hardcoded credentials in source code. It is recommended to pass the credentials at runtime, or generate random credentials using the random_password resource." + }, + "helpUri": "https://semgrep.dev/r/terraform.lang.security.rds-insecure-password-storage-in-source-code.rds-insecure-password-storage-in-source-code", + "id": "terraform.lang.security.rds-insecure-password-storage-in-source-code.rds-insecure-password-storage-in-source-code", + "name": "terraform.lang.security.rds-insecure-password-storage-in-source-code.rds-insecure-password-storage-in-source-code", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-522: Insufficiently Protected Credentials", + "MEDIUM CONFIDENCE", + "OWASP-A02:2017 - Broken Authentication", + "OWASP-A04:2021 - Insecure Design", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.lang.security.rds-insecure-password-storage-in-source-code.rds-insecure-password-storage-in-source-code" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected RC2 cipher algorithm which is considered insecure. This algorithm is not cryptographically secure and can be reversed easily. Use AES instead." + }, + "help": { + "markdown": "Detected RC2 cipher algorithm which is considered insecure. This algorithm is not cryptographically secure and can be reversed easily. Use AES instead.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.pycryptodome.security.insecure-cipher-algorithm-rc2.insecure-cipher-algorithm-rc2)\n - [https://cwe.mitre.org/data/definitions/326.html](https://cwe.mitre.org/data/definitions/326.html)\n", + "text": "Detected RC2 cipher algorithm which is considered insecure. This algorithm is not cryptographically secure and can be reversed easily. Use AES instead." + }, + "helpUri": "https://semgrep.dev/r/python.pycryptodome.security.insecure-cipher-algorithm-rc2.insecure-cipher-algorithm-rc2", + "id": "python.pycryptodome.security.insecure-cipher-algorithm-rc2.insecure-cipher-algorithm-rc2", + "name": "python.pycryptodome.security.insecure-cipher-algorithm-rc2.insecure-cipher-algorithm-rc2", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-327: Use of a Broken or Risky Cryptographic Algorithm", + "MEDIUM CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.pycryptodome.security.insecure-cipher-algorithm-rc2.insecure-cipher-algorithm-rc2" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected usage of @csrf_exempt, which indicates that there is no CSRF token set for this route. This could lead to an attacker manipulating the user's account and exfiltration of private data. Instead, create a function without this decorator." + }, + "help": { + "markdown": "Detected usage of @csrf_exempt, which indicates that there is no CSRF token set for this route. This could lead to an attacker manipulating the user's account and exfiltration of private data. Instead, create a function without this decorator.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.django.security.audit.csrf-exempt.no-csrf-exempt)\n - [https://owasp.org/Top10/A01_2021-Broken_Access_Control](https://owasp.org/Top10/A01_2021-Broken_Access_Control)\n", + "text": "Detected usage of @csrf_exempt, which indicates that there is no CSRF token set for this route. This could lead to an attacker manipulating the user's account and exfiltration of private data. Instead, create a function without this decorator." + }, + "helpUri": "https://semgrep.dev/r/python.django.security.audit.csrf-exempt.no-csrf-exempt", + "id": "python.django.security.audit.csrf-exempt.no-csrf-exempt", + "name": "python.django.security.audit.csrf-exempt.no-csrf-exempt", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-352: Cross-Site Request Forgery (CSRF)", + "LOW CONFIDENCE", + "OWASP-A01:2021 - Broken Access Control", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.django.security.audit.csrf-exempt.no-csrf-exempt" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Found user input going directly into typecast for bool(), float(), or complex(). This allows an attacker to inject Python's not-a-number (NaN) into the typecast. This results in undefind behavior, particularly when doing comparisons. Either cast to a different type, or add a guard checking for all capitalizations of the string 'nan'." + }, + "help": { + "markdown": "Found user input going directly into typecast for bool(), float(), or complex(). This allows an attacker to inject Python's not-a-number (NaN) into the typecast. This results in undefind behavior, particularly when doing comparisons. Either cast to a different type, or add a guard checking for all capitalizations of the string 'nan'.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.django.security.nan-injection.nan-injection)\n - [https://discuss.python.org/t/nan-breaks-min-max-and-sorting-functions-a-solution/2868](https://discuss.python.org/t/nan-breaks-min-max-and-sorting-functions-a-solution/2868)\n - [https://blog.bitdiscovery.com/2021/12/python-nan-injection/](https://blog.bitdiscovery.com/2021/12/python-nan-injection/)\n", + "text": "Found user input going directly into typecast for bool(), float(), or complex(). This allows an attacker to inject Python's not-a-number (NaN) into the typecast. This results in undefind behavior, particularly when doing comparisons. Either cast to a different type, or add a guard checking for all capitalizations of the string 'nan'." + }, + "helpUri": "https://semgrep.dev/r/python.django.security.nan-injection.nan-injection", + "id": "python.django.security.nan-injection.nan-injection", + "name": "python.django.security.nan-injection.nan-injection", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-704: Incorrect Type Conversion or Cast", + "MEDIUM CONFIDENCE", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.django.security.nan-injection.nan-injection" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "The AWS Athena Workgroup is unencrypted. Encryption protects query results in your workgroup. To enable, add: `encryption_configuration { encryption_option = \"SSE_KMS\" kms_key_arn = aws_kms_key.example.arn }` within `result_configuration { }` in your resource block, where `encryption_option` is your chosen encryption method and `kms_key_arn` is your KMS key ARN." + }, + "help": { + "markdown": "The AWS Athena Workgroup is unencrypted. Encryption protects query results in your workgroup. To enable, add: `encryption_configuration { encryption_option = \"SSE_KMS\" kms_key_arn = aws_kms_key.example.arn }` within `result_configuration { }` in your resource block, where `encryption_option` is your chosen encryption method and `kms_key_arn` is your KMS key ARN.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.aws.security.missing-athena-workgroup-encryption.missing-athena-workgroup-encryption)\n - [https://owasp.org/Top10/A02_2021-Cryptographic_Failures](https://owasp.org/Top10/A02_2021-Cryptographic_Failures)\n", + "text": "The AWS Athena Workgroup is unencrypted. Encryption protects query results in your workgroup. To enable, add: `encryption_configuration { encryption_option = \"SSE_KMS\" kms_key_arn = aws_kms_key.example.arn }` within `result_configuration { }` in your resource block, where `encryption_option` is your chosen encryption method and `kms_key_arn` is your KMS key ARN." + }, + "helpUri": "https://semgrep.dev/r/terraform.aws.security.missing-athena-workgroup-encryption.missing-athena-workgroup-encryption", + "id": "terraform.aws.security.missing-athena-workgroup-encryption.missing-athena-workgroup-encryption", + "name": "terraform.aws.security.missing-athena-workgroup-encryption.missing-athena-workgroup-encryption", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-320: CWE CATEGORY: Key Management Errors", + "LOW CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.aws.security.missing-athena-workgroup-encryption.missing-athena-workgroup-encryption" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Functions reliant on pickle can result in arbitrary code execution. Consider loading from `state_dict`, using fickling, or switching to a safer serialization method like ONNX" + }, + "help": { + "markdown": "Functions reliant on pickle can result in arbitrary code execution. Consider loading from `state_dict`, using fickling, or switching to a safer serialization method like ONNX\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/trailofbits.python.pickles-in-pytorch.pickles-in-pytorch)\n - [https://blog.trailofbits.com/2021/03/15/never-a-dill-moment-exploiting-machine-learning-pickle-files/](https://blog.trailofbits.com/2021/03/15/never-a-dill-moment-exploiting-machine-learning-pickle-files/)\n", + "text": "Functions reliant on pickle can result in arbitrary code execution. Consider loading from `state_dict`, using fickling, or switching to a safer serialization method like ONNX" + }, + "helpUri": "https://semgrep.dev/r/trailofbits.python.pickles-in-pytorch.pickles-in-pytorch", + "id": "trailofbits.python.pickles-in-pytorch.pickles-in-pytorch", + "name": "trailofbits.python.pickles-in-pytorch.pickles-in-pytorch", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-502: Deserialization of Untrusted Data", + "MEDIUM CONFIDENCE", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: trailofbits.python.pickles-in-pytorch.pickles-in-pytorch" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Make sure comparisons involving md5 values are strict (use `===` not `==`) to avoid type juggling issues" + }, + "help": { + "markdown": "Make sure comparisons involving md5 values are strict (use `===` not `==`) to avoid type juggling issues\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/php.lang.security.md5-loose-equality.md5-loose-equality)\n - [https://www.php.net/manual/en/types.comparisons.php](https://www.php.net/manual/en/types.comparisons.php)\n - [https://www.whitehatsec.com/blog/magic-hashes/](https://www.whitehatsec.com/blog/magic-hashes/)\n", + "text": "Make sure comparisons involving md5 values are strict (use `===` not `==`) to avoid type juggling issues" + }, + "helpUri": "https://semgrep.dev/r/php.lang.security.md5-loose-equality.md5-loose-equality", + "id": "php.lang.security.md5-loose-equality.md5-loose-equality", + "name": "php.lang.security.md5-loose-equality.md5-loose-equality", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-697: Incorrect Comparison", + "LOW CONFIDENCE", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: php.lang.security.md5-loose-equality.md5-loose-equality" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Detected subprocess function '$FUNC' with user controlled data. A malicious actor could leverage this to perform command injection. You may consider using 'shlex.escape()'." + }, + "help": { + "markdown": "Detected subprocess function '$FUNC' with user controlled data. A malicious actor could leverage this to perform command injection. You may consider using 'shlex.escape()'.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.lang.security.dangerous-subprocess-use.dangerous-subprocess-use)\n - [https://stackoverflow.com/questions/3172470/actual-meaning-of-shell-true-in-subprocess](https://stackoverflow.com/questions/3172470/actual-meaning-of-shell-true-in-subprocess)\n - [https://docs.python.org/3/library/subprocess.html](https://docs.python.org/3/library/subprocess.html)\n - [https://docs.python.org/3/library/shlex.html](https://docs.python.org/3/library/shlex.html)\n - [https://semgrep.dev/docs/cheat-sheets/python-command-injection/](https://semgrep.dev/docs/cheat-sheets/python-command-injection/)\n", + "text": "Detected subprocess function '$FUNC' with user controlled data. A malicious actor could leverage this to perform command injection. You may consider using 'shlex.escape()'." + }, + "helpUri": "https://semgrep.dev/r/python.lang.security.dangerous-subprocess-use.dangerous-subprocess-use", + "id": "python.lang.security.dangerous-subprocess-use.dangerous-subprocess-use", + "name": "python.lang.security.dangerous-subprocess-use.dangerous-subprocess-use", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')", + "MEDIUM CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.lang.security.dangerous-subprocess-use.dangerous-subprocess-use" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "The MD5 hashing algorithm is considered to be weak. If this is used in any sensitive operation such as password hashing, or is used to ensure data integrity (collision sensitive) then you should use a stronger hashing algorithm. For passwords, consider using `Argon2id`, `scrypt`, or `bcrypt`. For data integrity, consider using `SHA-256`" + }, + "help": { + "markdown": "The MD5 hashing algorithm is considered to be weak. If this is used in any sensitive operation such as password hashing, or is used to ensure data integrity (collision sensitive) then you should use a stronger hashing algorithm. For passwords, consider using `Argon2id`, `scrypt`, or `bcrypt`. For data integrity, consider using `SHA-256`\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/contrib.nodejsscan.crypto_node.node_md5)\n - [https://owasp.org/Top10/A02_2021-Cryptographic_Failures](https://owasp.org/Top10/A02_2021-Cryptographic_Failures)\n", + "text": "The MD5 hashing algorithm is considered to be weak. If this is used in any sensitive operation such as password hashing, or is used to ensure data integrity (collision sensitive) then you should use a stronger hashing algorithm. For passwords, consider using `Argon2id`, `scrypt`, or `bcrypt`. For data integrity, consider using `SHA-256`" + }, + "helpUri": "https://semgrep.dev/r/contrib.nodejsscan.crypto_node.node_md5", + "id": "contrib.nodejsscan.crypto_node.node_md5", + "name": "contrib.nodejsscan.crypto_node.node_md5", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-327: Use of a Broken or Risky Cryptographic Algorithm", + "LOW CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: contrib.nodejsscan.crypto_node.node_md5" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Ensure that actions that can result in privilege escalation are not used. These actions could potentially result in an attacker gaining full administrator access of an AWS account. Try not to use these actions." + }, + "help": { + "markdown": "Ensure that actions that can result in privilege escalation are not used. These actions could potentially result in an attacker gaining full administrator access of an AWS account. Try not to use these actions.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.lang.security.iam.no-iam-priv-esc-funcs.no-iam-priv-esc-funcs)\n - [https://rhinosecuritylabs.com/aws/aws-privilege-escalation-methods-mitigation/](https://rhinosecuritylabs.com/aws/aws-privilege-escalation-methods-mitigation/)\n - [https://cloudsplaining.readthedocs.io/en/latest/glossary/privilege-escalation/](https://cloudsplaining.readthedocs.io/en/latest/glossary/privilege-escalation/)\n", + "text": "Ensure that actions that can result in privilege escalation are not used. These actions could potentially result in an attacker gaining full administrator access of an AWS account. Try not to use these actions." + }, + "helpUri": "https://semgrep.dev/r/terraform.lang.security.iam.no-iam-priv-esc-funcs.no-iam-priv-esc-funcs", + "id": "terraform.lang.security.iam.no-iam-priv-esc-funcs.no-iam-priv-esc-funcs", + "name": "terraform.lang.security.iam.no-iam-priv-esc-funcs.no-iam-priv-esc-funcs", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-250: Execution with Unnecessary Privileges", + "LOW CONFIDENCE", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.lang.security.iam.no-iam-priv-esc-funcs.no-iam-priv-esc-funcs" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "'content_tag' exhibits unintuitive escaping behavior and may accidentally expose your application to cross-site scripting. If using Rails 2, only attribute values are escaped. If using Rails 3, content and attribute values are escaped. Tag and attribute names are never escaped. Because of this, it is recommended to use 'html_safe' if you must render raw HTML data." + }, + "help": { + "markdown": "'content_tag' exhibits unintuitive escaping behavior and may accidentally expose your application to cross-site scripting. If using Rails 2, only attribute values are escaped. If using Rails 3, content and attribute values are escaped. Tag and attribute names are never escaped. Because of this, it is recommended to use 'html_safe' if you must render raw HTML data.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ruby.rails.security.audit.xss.templates.avoid-content-tag.avoid-content-tag)\n - [https://brakemanscanner.org/docs/warning_types/content_tag/](https://brakemanscanner.org/docs/warning_types/content_tag/)\n", + "text": "'content_tag' exhibits unintuitive escaping behavior and may accidentally expose your application to cross-site scripting. If using Rails 2, only attribute values are escaped. If using Rails 3, content and attribute values are escaped. Tag and attribute names are never escaped. Because of this, it is recommended to use 'html_safe' if you must render raw HTML data." + }, + "helpUri": "https://semgrep.dev/r/ruby.rails.security.audit.xss.templates.avoid-content-tag.avoid-content-tag", + "id": "ruby.rails.security.audit.xss.templates.avoid-content-tag.avoid-content-tag", + "name": "ruby.rails.security.audit.xss.templates.avoid-content-tag.avoid-content-tag", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: ruby.rails.security.audit.xss.templates.avoid-content-tag.avoid-content-tag" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Use of 'ondoctype' in 'sax' library detected. By default, 'sax' won't do anything with custom DTD entity definitions. If you're implementing a custom DTD entity definition, be sure not to introduce XML External Entity (XXE) vulnerabilities, or be absolutely sure that external entities received from a trusted source while processing XML." + }, + "help": { + "markdown": "Use of 'ondoctype' in 'sax' library detected. By default, 'sax' won't do anything with custom DTD entity definitions. If you're implementing a custom DTD entity definition, be sure not to introduce XML External Entity (XXE) vulnerabilities, or be absolutely sure that external entities received from a trusted source while processing XML.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.sax.security.audit.sax-xxe.sax-xxe)\n - [https://github.com/Leonidas-from-XIV/node-xml2js/issues/415](https://github.com/Leonidas-from-XIV/node-xml2js/issues/415)\n - [https://github.com/isaacs/sax-js](https://github.com/isaacs/sax-js)\n", + "text": "Use of 'ondoctype' in 'sax' library detected. By default, 'sax' won't do anything with custom DTD entity definitions. If you're implementing a custom DTD entity definition, be sure not to introduce XML External Entity (XXE) vulnerabilities, or be absolutely sure that external entities received from a trusted source while processing XML." + }, + "helpUri": "https://semgrep.dev/r/javascript.sax.security.audit.sax-xxe.sax-xxe", + "id": "javascript.sax.security.audit.sax-xxe.sax-xxe", + "name": "javascript.sax.security.audit.sax-xxe.sax-xxe", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-611: Improper Restriction of XML External Entity Reference", + "LOW CONFIDENCE", + "OWASP-A04:2017 - XML External Entities (XXE)", + "OWASP-A05:2021 - Security Misconfiguration", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.sax.security.audit.sax-xxe.sax-xxe" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "The `func ($O *$CODEC) ReadRequestBody($ARG $TYPE) error` function does not handle `nil` argument, as the `ServerCodec` interface requires. An incorrect implementation could lead to denial of service" + }, + "help": { + "markdown": "The `func ($O *$CODEC) ReadRequestBody($ARG $TYPE) error` function does not handle `nil` argument, as the `ServerCodec` interface requires. An incorrect implementation could lead to denial of service\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/trailofbits.go.servercodec-readrequestbody-unhandled-nil.servercodec-readrequestbody-unhandled-nil)\n - [https://github.com/golang/go/blob/go1.15.2/src/net/rpc/server.go#L643-L658](https://github.com/golang/go/blob/go1.15.2/src/net/rpc/server.go#L643-L658)\n", + "text": "The `func ($O *$CODEC) ReadRequestBody($ARG $TYPE) error` function does not handle `nil` argument, as the `ServerCodec` interface requires. An incorrect implementation could lead to denial of service" + }, + "helpUri": "https://semgrep.dev/r/trailofbits.go.servercodec-readrequestbody-unhandled-nil.servercodec-readrequestbody-unhandled-nil", + "id": "trailofbits.go.servercodec-readrequestbody-unhandled-nil.servercodec-readrequestbody-unhandled-nil", + "name": "trailofbits.go.servercodec-readrequestbody-unhandled-nil.servercodec-readrequestbody-unhandled-nil", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-476: NULL Pointer Dereference", + "HIGH CONFIDENCE", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: trailofbits.go.servercodec-readrequestbody-unhandled-nil.servercodec-readrequestbody-unhandled-nil" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Flask-caching doesn't cache query strings by default. You have to use `query_string=True`. Also you shouldn't cache verbs that can mutate state." + }, + "help": { + "markdown": "Flask-caching doesn't cache query strings by default. You have to use `query_string=True`. Also you shouldn't cache verbs that can mutate state.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.flask.caching.query-string.flask-cache-query-string)\n", + "text": "Flask-caching doesn't cache query strings by default. You have to use `query_string=True`. Also you shouldn't cache verbs that can mutate state." + }, + "helpUri": "https://semgrep.dev/r/python.flask.caching.query-string.flask-cache-query-string", + "id": "python.flask.caching.query-string.flask-cache-query-string", + "name": "python.flask.caching.query-string.flask-cache-query-string", + "properties": { + "precision": "very-high", + "tags": [] + }, + "shortDescription": { + "text": "Semgrep Finding: python.flask.caching.query-string.flask-cache-query-string" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "'ssl.wrap_socket()' is deprecated. This function creates an insecure socket without server name indication or hostname matching. Instead, create an SSL context using 'ssl.SSLContext()' and use that to wrap a socket." + }, + "help": { + "markdown": "'ssl.wrap_socket()' is deprecated. This function creates an insecure socket without server name indication or hostname matching. Instead, create an SSL context using 'ssl.SSLContext()' and use that to wrap a socket.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.lang.security.audit.ssl-wrap-socket-is-deprecated.ssl-wrap-socket-is-deprecated)\n - [https://docs.python.org/3/library/ssl.html#ssl.wrap_socket](https://docs.python.org/3/library/ssl.html#ssl.wrap_socket)\n - [https://docs.python.org/3/library/ssl.html#ssl.SSLContext.wrap_socket](https://docs.python.org/3/library/ssl.html#ssl.SSLContext.wrap_socket)\n", + "text": "'ssl.wrap_socket()' is deprecated. This function creates an insecure socket without server name indication or hostname matching. Instead, create an SSL context using 'ssl.SSLContext()' and use that to wrap a socket." + }, + "helpUri": "https://semgrep.dev/r/python.lang.security.audit.ssl-wrap-socket-is-deprecated.ssl-wrap-socket-is-deprecated", + "id": "python.lang.security.audit.ssl-wrap-socket-is-deprecated.ssl-wrap-socket-is-deprecated", + "name": "python.lang.security.audit.ssl-wrap-socket-is-deprecated.ssl-wrap-socket-is-deprecated", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-326: Inadequate Encryption Strength", + "MEDIUM CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.lang.security.audit.ssl-wrap-socket-is-deprecated.ssl-wrap-socket-is-deprecated" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "When a redirect uses user input, a malicious user can spoof a website under a trusted URL or access restricted parts of a site. When using user-supplied values, sanitize the value before using it for the redirect." + }, + "help": { + "markdown": "When a redirect uses user input, a malicious user can spoof a website under a trusted URL or access restricted parts of a site. When using user-supplied values, sanitize the value before using it for the redirect.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ruby.rails.security.audit.xss.avoid-redirect.avoid-redirect)\n - [https://brakemanscanner.org/docs/warning_types/redirect/](https://brakemanscanner.org/docs/warning_types/redirect/)\n", + "text": "When a redirect uses user input, a malicious user can spoof a website under a trusted URL or access restricted parts of a site. When using user-supplied values, sanitize the value before using it for the redirect." + }, + "helpUri": "https://semgrep.dev/r/ruby.rails.security.audit.xss.avoid-redirect.avoid-redirect", + "id": "ruby.rails.security.audit.xss.avoid-redirect.avoid-redirect", + "name": "ruby.rails.security.audit.xss.avoid-redirect.avoid-redirect", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-601: URL Redirection to Untrusted Site ('Open Redirect')", + "MEDIUM CONFIDENCE", + "OWASP-A01:2021 - Broken Access Control", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: ruby.rails.security.audit.xss.avoid-redirect.avoid-redirect" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Ensure FSX Windows file system is encrypted at rest using KMS CMKs. CMKs gives you control over the encryption key in terms of access and rotation." + }, + "help": { + "markdown": "Ensure FSX Windows file system is encrypted at rest using KMS CMKs. CMKs gives you control over the encryption key in terms of access and rotation.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.aws.security.aws-fsx-windows-encrypted-with-cmk.aws-fsx-windows-encrypted-with-cmk)\n - [https://owasp.org/Top10/A02_2021-Cryptographic_Failures](https://owasp.org/Top10/A02_2021-Cryptographic_Failures)\n", + "text": "Ensure FSX Windows file system is encrypted at rest using KMS CMKs. CMKs gives you control over the encryption key in terms of access and rotation." + }, + "helpUri": "https://semgrep.dev/r/terraform.aws.security.aws-fsx-windows-encrypted-with-cmk.aws-fsx-windows-encrypted-with-cmk", + "id": "terraform.aws.security.aws-fsx-windows-encrypted-with-cmk.aws-fsx-windows-encrypted-with-cmk", + "name": "terraform.aws.security.aws-fsx-windows-encrypted-with-cmk.aws-fsx-windows-encrypted-with-cmk", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-320: CWE CATEGORY: Key Management Errors", + "LOW CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.aws.security.aws-fsx-windows-encrypted-with-cmk.aws-fsx-windows-encrypted-with-cmk" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected a template variable used in an anchor tag with the 'href' attribute. This allows a malicious actor to input the 'javascript:' URI and is subject to cross- site scripting (XSS) attacks. If using a relative URL, start with a literal forward slash and concatenate the URL, like this: href='/<%= link =>'. You may also consider setting the Content Security Policy (CSP) header." + }, + "help": { + "markdown": "Detected a template variable used in an anchor tag with the 'href' attribute. This allows a malicious actor to input the 'javascript:' URI and is subject to cross- site scripting (XSS) attacks. If using a relative URL, start with a literal forward slash and concatenate the URL, like this: href='/<%= link =>'. You may also consider setting the Content Security Policy (CSP) header.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ruby.rails.security.audit.xss.templates.var-in-href.var-in-href)\n - [https://flask.palletsprojects.com/en/1.1.x/security/#cross-site-scripting-xss#:~:text=javascript:%20URI](https://flask.palletsprojects.com/en/1.1.x/security/#cross-site-scripting-xss#:~:text=javascript:%20URI)\n - [https://github.com/pugjs/pug/issues/2952](https://github.com/pugjs/pug/issues/2952)\n", + "text": "Detected a template variable used in an anchor tag with the 'href' attribute. This allows a malicious actor to input the 'javascript:' URI and is subject to cross- site scripting (XSS) attacks. If using a relative URL, start with a literal forward slash and concatenate the URL, like this: href='/<%= link =>'. You may also consider setting the Content Security Policy (CSP) header." + }, + "helpUri": "https://semgrep.dev/r/ruby.rails.security.audit.xss.templates.var-in-href.var-in-href", + "id": "ruby.rails.security.audit.xss.templates.var-in-href.var-in-href", + "name": "ruby.rails.security.audit.xss.templates.var-in-href.var-in-href", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: ruby.rails.security.audit.xss.templates.var-in-href.var-in-href" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "By default, AWS SecretManager secrets are encrypted using AWS-managed keys. However, for added security, it's recommended to configure your own AWS KMS encryption key to protect your secrets in the Secret Manager. You can either create a new aws_kms_key resource or use the ARN of an existing key in your AWS account to do so." + }, + "help": { + "markdown": "By default, AWS SecretManager secrets are encrypted using AWS-managed keys. However, for added security, it's recommended to configure your own AWS KMS encryption key to protect your secrets in the Secret Manager. You can either create a new aws_kms_key resource or use the ARN of an existing key in your AWS account to do so.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.aws.security.aws-secretsmanager-secret-unencrypted.aws-secretsmanager-secret-unencrypted)\n - [https://owasp.org/Top10/A02_2021-Cryptographic_Failures](https://owasp.org/Top10/A02_2021-Cryptographic_Failures)\n", + "text": "By default, AWS SecretManager secrets are encrypted using AWS-managed keys. However, for added security, it's recommended to configure your own AWS KMS encryption key to protect your secrets in the Secret Manager. You can either create a new aws_kms_key resource or use the ARN of an existing key in your AWS account to do so." + }, + "helpUri": "https://semgrep.dev/r/terraform.aws.security.aws-secretsmanager-secret-unencrypted.aws-secretsmanager-secret-unencrypted", + "id": "terraform.aws.security.aws-secretsmanager-secret-unencrypted.aws-secretsmanager-secret-unencrypted", + "name": "terraform.aws.security.aws-secretsmanager-secret-unencrypted.aws-secretsmanager-secret-unencrypted", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-326: Inadequate Encryption Strength", + "LOW CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.aws.security.aws-secretsmanager-secret-unencrypted.aws-secretsmanager-secret-unencrypted" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Detected a sequelize statement that is tainted by user-input. This could lead to SQL injection if the variable is user-controlled and is not properly sanitized. In order to prevent SQL injection, it is recommended to use parameterized queries or prepared statements." + }, + "help": { + "markdown": "Detected a sequelize statement that is tainted by user-input. This could lead to SQL injection if the variable is user-controlled and is not properly sanitized. In order to prevent SQL injection, it is recommended to use parameterized queries or prepared statements.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.sequelize.security.audit.sequelize-injection-express.express-sequelize-injection)\n - [https://sequelize.org/docs/v6/core-concepts/raw-queries/#replacements](https://sequelize.org/docs/v6/core-concepts/raw-queries/#replacements)\n", + "text": "Detected a sequelize statement that is tainted by user-input. This could lead to SQL injection if the variable is user-controlled and is not properly sanitized. In order to prevent SQL injection, it is recommended to use parameterized queries or prepared statements." + }, + "helpUri": "https://semgrep.dev/r/javascript.sequelize.security.audit.sequelize-injection-express.express-sequelize-injection", + "id": "javascript.sequelize.security.audit.sequelize-injection-express.express-sequelize-injection", + "name": "javascript.sequelize.security.audit.sequelize-injection-express.express-sequelize-injection", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')", + "HIGH CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.sequelize.security.audit.sequelize-injection-express.express-sequelize-injection" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "When handling sensitive information in a buffer, it's important to ensure that the data is securely erased before the buffer is deleted or reused. While `memset()` is commonly used for this purpose, it can leave sensitive information behind due to compiler optimizations or other factors. To avoid this potential vulnerability, it's recommended to use the `memset_s()` function instead. `memset_s()` is a standardized function that securely overwrites the memory with a specified value, making it more difficult for an attacker to recover any sensitive data that was stored in the buffer. By using `memset_s()` instead of `memset()`, you can help to ensure that your application is more secure and less vulnerable to exploits that rely on residual data in memory." + }, + "help": { + "markdown": "When handling sensitive information in a buffer, it's important to ensure that the data is securely erased before the buffer is deleted or reused. While `memset()` is commonly used for this purpose, it can leave sensitive information behind due to compiler optimizations or other factors. To avoid this potential vulnerability, it's recommended to use the `memset_s()` function instead. `memset_s()` is a standardized function that securely overwrites the memory with a specified value, making it more difficult for an attacker to recover any sensitive data that was stored in the buffer. By using `memset_s()` instead of `memset()`, you can help to ensure that your application is more secure and less vulnerable to exploits that rely on residual data in memory.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/c.lang.security.insecure-use-memset.insecure-use-memset)\n - [https://cwe.mitre.org/data/definitions/14.html](https://cwe.mitre.org/data/definitions/14.html)\n - [https://owasp.org/Top10/A02_2021-Cryptographic_Failures/](https://owasp.org/Top10/A02_2021-Cryptographic_Failures/)\n", + "text": "When handling sensitive information in a buffer, it's important to ensure that the data is securely erased before the buffer is deleted or reused. While `memset()` is commonly used for this purpose, it can leave sensitive information behind due to compiler optimizations or other factors. To avoid this potential vulnerability, it's recommended to use the `memset_s()` function instead. `memset_s()` is a standardized function that securely overwrites the memory with a specified value, making it more difficult for an attacker to recover any sensitive data that was stored in the buffer. By using `memset_s()` instead of `memset()`, you can help to ensure that your application is more secure and less vulnerable to exploits that rely on residual data in memory." + }, + "helpUri": "https://semgrep.dev/r/c.lang.security.insecure-use-memset.insecure-use-memset", + "id": "c.lang.security.insecure-use-memset.insecure-use-memset", + "name": "c.lang.security.insecure-use-memset.insecure-use-memset", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-14: Compiler Removal of Code to Clear Buffers", + "LOW CONFIDENCE", + "OWASP-A04:2021 - Insecure Design", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: c.lang.security.insecure-use-memset.insecure-use-memset" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Rather than adding one element at a time, consider batch loading to improve performance." + }, + "help": { + "markdown": "Rather than adding one element at a time, consider batch loading to improve performance.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.sqlalchemy.performance.performance-improvements.batch-import)\n", + "text": "Rather than adding one element at a time, consider batch loading to improve performance." + }, + "helpUri": "https://semgrep.dev/r/python.sqlalchemy.performance.performance-improvements.batch-import", + "id": "python.sqlalchemy.performance.performance-improvements.batch-import", + "name": "python.sqlalchemy.performance.performance-improvements.batch-import", + "properties": { + "precision": "very-high", + "tags": [] + }, + "shortDescription": { + "text": "Semgrep Finding: python.sqlalchemy.performance.performance-improvements.batch-import" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected SHA1 hash algorithm which is considered insecure. SHA1 is not collision resistant and is therefore not suitable as a cryptographic signature. Instead, use PBKDF2 for password hashing or SHA256 or SHA512 for other hash function applications." + }, + "help": { + "markdown": "Detected SHA1 hash algorithm which is considered insecure. SHA1 is not collision resistant and is therefore not suitable as a cryptographic signature. Instead, use PBKDF2 for password hashing or SHA256 or SHA512 for other hash function applications.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.lang.security.audit.crypto.use-of-sha1.use-of-sha1)\n - [https://owasp.org/Top10/A02_2021-Cryptographic_Failures](https://owasp.org/Top10/A02_2021-Cryptographic_Failures)\n", + "text": "Detected SHA1 hash algorithm which is considered insecure. SHA1 is not collision resistant and is therefore not suitable as a cryptographic signature. Instead, use PBKDF2 for password hashing or SHA256 or SHA512 for other hash function applications." + }, + "helpUri": "https://semgrep.dev/r/java.lang.security.audit.crypto.use-of-sha1.use-of-sha1", + "id": "java.lang.security.audit.crypto.use-of-sha1.use-of-sha1", + "name": "java.lang.security.audit.crypto.use-of-sha1.use-of-sha1", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-328: Use of Weak Hash", + "HIGH CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.lang.security.audit.crypto.use-of-sha1.use-of-sha1" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Password is exposed through JWT token payload. This is not encrypted and the password could be compromised. Do not store passwords in JWT tokens." + }, + "help": { + "markdown": "Password is exposed through JWT token payload. This is not encrypted and the password could be compromised. Do not store passwords in JWT tokens.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.jwt.security.jwt-exposed-credentials.jwt-python-exposed-credentials)\n - [https://cwe.mitre.org/data/definitions/522.html](https://cwe.mitre.org/data/definitions/522.html)\n", + "text": "Password is exposed through JWT token payload. This is not encrypted and the password could be compromised. Do not store passwords in JWT tokens." + }, + "helpUri": "https://semgrep.dev/r/python.jwt.security.jwt-exposed-credentials.jwt-python-exposed-credentials", + "id": "python.jwt.security.jwt-exposed-credentials.jwt-python-exposed-credentials", + "name": "python.jwt.security.jwt-exposed-credentials.jwt-python-exposed-credentials", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-522: Insufficiently Protected Credentials", + "LOW CONFIDENCE", + "OWASP-A02:2017 - Broken Authentication", + "OWASP-A04:2021 - Insecure Design", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.jwt.security.jwt-exposed-credentials.jwt-python-exposed-credentials" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "By default, AWS DynamoDB Table is encrypted using AWS-managed keys. However, for added security, it's recommended to configure your own AWS KMS encryption key to protect your data in the DynamoDB table. You can either create a new aws_kms_key resource or use the ARN of an existing key in your AWS account to do so." + }, + "help": { + "markdown": "By default, AWS DynamoDB Table is encrypted using AWS-managed keys. However, for added security, it's recommended to configure your own AWS KMS encryption key to protect your data in the DynamoDB table. You can either create a new aws_kms_key resource or use the ARN of an existing key in your AWS account to do so.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.aws.security.aws-dynamodb-table-unencrypted.aws-dynamodb-table-unencrypted)\n - [https://owasp.org/Top10/A02_2021-Cryptographic_Failures](https://owasp.org/Top10/A02_2021-Cryptographic_Failures)\n", + "text": "By default, AWS DynamoDB Table is encrypted using AWS-managed keys. However, for added security, it's recommended to configure your own AWS KMS encryption key to protect your data in the DynamoDB table. You can either create a new aws_kms_key resource or use the ARN of an existing key in your AWS account to do so." + }, + "helpUri": "https://semgrep.dev/r/terraform.aws.security.aws-dynamodb-table-unencrypted.aws-dynamodb-table-unencrypted", + "id": "terraform.aws.security.aws-dynamodb-table-unencrypted.aws-dynamodb-table-unencrypted", + "name": "terraform.aws.security.aws-dynamodb-table-unencrypted.aws-dynamodb-table-unencrypted", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-326: Inadequate Encryption Strength", + "MEDIUM CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.aws.security.aws-dynamodb-table-unencrypted.aws-dynamodb-table-unencrypted" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Ensure EBS Volume is encrypted at rest using KMS CMKs. CMKs gives you control over the encryption key in terms of access and rotation." + }, + "help": { + "markdown": "Ensure EBS Volume is encrypted at rest using KMS CMKs. CMKs gives you control over the encryption key in terms of access and rotation.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.aws.security.aws-ebs-volume-encrypted-with-cmk.aws-ebs-volume-encrypted-with-cmk)\n - [https://owasp.org/Top10/A02_2021-Cryptographic_Failures](https://owasp.org/Top10/A02_2021-Cryptographic_Failures)\n", + "text": "Ensure EBS Volume is encrypted at rest using KMS CMKs. CMKs gives you control over the encryption key in terms of access and rotation." + }, + "helpUri": "https://semgrep.dev/r/terraform.aws.security.aws-ebs-volume-encrypted-with-cmk.aws-ebs-volume-encrypted-with-cmk", + "id": "terraform.aws.security.aws-ebs-volume-encrypted-with-cmk.aws-ebs-volume-encrypted-with-cmk", + "name": "terraform.aws.security.aws-ebs-volume-encrypted-with-cmk.aws-ebs-volume-encrypted-with-cmk", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-320: CWE CATEGORY: Key Management Errors", + "LOW CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.aws.security.aws-ebs-volume-encrypted-with-cmk.aws-ebs-volume-encrypted-with-cmk" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Avoid 'gets()'. This function does not consider buffer boundaries and can lead to buffer overflows. Use 'fgets()' or 'gets_s()' instead." + }, + "help": { + "markdown": "Avoid 'gets()'. This function does not consider buffer boundaries and can lead to buffer overflows. Use 'fgets()' or 'gets_s()' instead.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/c.lang.security.insecure-use-gets-fn.insecure-use-gets-fn)\n - [https://us-cert.cisa.gov/bsi/articles/knowledge/coding-practices/fgets-and-gets_s](https://us-cert.cisa.gov/bsi/articles/knowledge/coding-practices/fgets-and-gets_s)\n", + "text": "Avoid 'gets()'. This function does not consider buffer boundaries and can lead to buffer overflows. Use 'fgets()' or 'gets_s()' instead." + }, + "helpUri": "https://semgrep.dev/r/c.lang.security.insecure-use-gets-fn.insecure-use-gets-fn", + "id": "c.lang.security.insecure-use-gets-fn.insecure-use-gets-fn", + "name": "c.lang.security.insecure-use-gets-fn.insecure-use-gets-fn", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-676: Use of Potentially Dangerous Function", + "MEDIUM CONFIDENCE", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: c.lang.security.insecure-use-gets-fn.insecure-use-gets-fn" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Found a template created with string formatting. This is susceptible to server-side template injection and cross-site scripting attacks." + }, + "help": { + "markdown": "Found a template created with string formatting. This is susceptible to server-side template injection and cross-site scripting attacks.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.flask.security.audit.render-template-string.render-template-string)\n - [https://nvisium.com/blog/2016/03/09/exploring-ssti-in-flask-jinja2.html](https://nvisium.com/blog/2016/03/09/exploring-ssti-in-flask-jinja2.html)\n", + "text": "Found a template created with string formatting. This is susceptible to server-side template injection and cross-site scripting attacks." + }, + "helpUri": "https://semgrep.dev/r/python.flask.security.audit.render-template-string.render-template-string", + "id": "python.flask.security.audit.render-template-string.render-template-string", + "name": "python.flask.security.audit.render-template-string.render-template-string", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-96: Improper Neutralization of Directives in Statically Saved Code ('Static Code Injection')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.flask.security.audit.render-template-string.render-template-string" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Detected string concatenation or formatting in a call to a command via 'sh'. This could be a command injection vulnerability if the data is user-controlled. Instead, use a list and append the argument." + }, + "help": { + "markdown": "Detected string concatenation or formatting in a call to a command via 'sh'. This could be a command injection vulnerability if the data is user-controlled. Instead, use a list and append the argument.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.sh.security.string-concat.string-concat)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "Detected string concatenation or formatting in a call to a command via 'sh'. This could be a command injection vulnerability if the data is user-controlled. Instead, use a list and append the argument." + }, + "helpUri": "https://semgrep.dev/r/python.sh.security.string-concat.string-concat", + "id": "python.sh.security.string-concat.string-concat", + "name": "python.sh.security.string-concat.string-concat", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')", + "LOW CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.sh.security.string-concat.string-concat" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Facebook Access Token detected" + }, + "help": { + "markdown": "Facebook Access Token detected\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/generic.secrets.security.detected-facebook-access-token.detected-facebook-access-token)\n - [https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures](https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures)\n", + "text": "Facebook Access Token detected" + }, + "helpUri": "https://semgrep.dev/r/generic.secrets.security.detected-facebook-access-token.detected-facebook-access-token", + "id": "generic.secrets.security.detected-facebook-access-token.detected-facebook-access-token", + "name": "generic.secrets.security.detected-facebook-access-token.detected-facebook-access-token", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-798: Use of Hard-coded Credentials", + "LOW CONFIDENCE", + "OWASP-A07:2021 - Identification and Authentication Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: generic.secrets.security.detected-facebook-access-token.detected-facebook-access-token" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Stripe API Key detected" + }, + "help": { + "markdown": "Stripe API Key detected\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/generic.secrets.security.detected-stripe-api-key.detected-stripe-api-key)\n - [https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures](https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures)\n", + "text": "Stripe API Key detected" + }, + "helpUri": "https://semgrep.dev/r/generic.secrets.security.detected-stripe-api-key.detected-stripe-api-key", + "id": "generic.secrets.security.detected-stripe-api-key.detected-stripe-api-key", + "name": "generic.secrets.security.detected-stripe-api-key.detected-stripe-api-key", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-798: Use of Hard-coded Credentials", + "LOW CONFIDENCE", + "OWASP-A07:2021 - Identification and Authentication Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: generic.secrets.security.detected-stripe-api-key.detected-stripe-api-key" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "`$STR.replace` method will only replace the first occurrence when used with a string argument ($CHAR). If this method is used for escaping of dangerous data then there is a possibility for a bypass. Try to use sanitization library instead or use a Regex with a global flag." + }, + "help": { + "markdown": "`$STR.replace` method will only replace the first occurrence when used with a string argument ($CHAR). If this method is used for escaping of dangerous data then there is a possibility for a bypass. Try to use sanitization library instead or use a Regex with a global flag.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.lang.security.audit.incomplete-sanitization.incomplete-sanitization)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "`$STR.replace` method will only replace the first occurrence when used with a string argument ($CHAR). If this method is used for escaping of dangerous data then there is a possibility for a bypass. Try to use sanitization library instead or use a Regex with a global flag." + }, + "helpUri": "https://semgrep.dev/r/javascript.lang.security.audit.incomplete-sanitization.incomplete-sanitization", + "id": "javascript.lang.security.audit.incomplete-sanitization.incomplete-sanitization", + "name": "javascript.lang.security.audit.incomplete-sanitization.incomplete-sanitization", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-116: Improper Encoding or Escaping of Output", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.lang.security.audit.incomplete-sanitization.incomplete-sanitization" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "The AWS Lambda permission has an AWS service principal but does not specify a source ARN. If you grant permission to a service principal without specifying the source, other accounts could potentially configure resources in their account to invoke your Lambda function. Set the source_arn value to the ARN of the AWS resource that invokes the function, eg. an S3 bucket, CloudWatch Events Rule, API Gateway, or SNS topic." + }, + "help": { + "markdown": "The AWS Lambda permission has an AWS service principal but does not specify a source ARN. If you grant permission to a service principal without specifying the source, other accounts could potentially configure resources in their account to invoke your Lambda function. Set the source_arn value to the ARN of the AWS resource that invokes the function, eg. an S3 bucket, CloudWatch Events Rule, API Gateway, or SNS topic.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.aws.security.aws-lambda-permission-unrestricted-source-arn.aws-lambda-permission-unrestricted-source-arn)\n - [https://cwe.mitre.org/data/definitions/732.html](https://cwe.mitre.org/data/definitions/732.html)\n - [https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lambda_permission](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lambda_permission)\n - [https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-permission.html)\n", + "text": "The AWS Lambda permission has an AWS service principal but does not specify a source ARN. If you grant permission to a service principal without specifying the source, other accounts could potentially configure resources in their account to invoke your Lambda function. Set the source_arn value to the ARN of the AWS resource that invokes the function, eg. an S3 bucket, CloudWatch Events Rule, API Gateway, or SNS topic." + }, + "helpUri": "https://semgrep.dev/r/terraform.aws.security.aws-lambda-permission-unrestricted-source-arn.aws-lambda-permission-unrestricted-source-arn", + "id": "terraform.aws.security.aws-lambda-permission-unrestricted-source-arn.aws-lambda-permission-unrestricted-source-arn", + "name": "terraform.aws.security.aws-lambda-permission-unrestricted-source-arn.aws-lambda-permission-unrestricted-source-arn", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-732: Incorrect Permission Assignment for Critical Resource", + "HIGH CONFIDENCE", + "OWASP-A05:2021 - Security Misconfiguration", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.aws.security.aws-lambda-permission-unrestricted-source-arn.aws-lambda-permission-unrestricted-source-arn" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "If unverified user data can reach the `puppeteer` methods it can result in Server-Side Request Forgery vulnerabilities" + }, + "help": { + "markdown": "If unverified user data can reach the `puppeteer` methods it can result in Server-Side Request Forgery vulnerabilities\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.express.security.express-puppeteer-injection.express-puppeteer-injection)\n - [https://pptr.dev/api/puppeteer.page](https://pptr.dev/api/puppeteer.page)\n", + "text": "If unverified user data can reach the `puppeteer` methods it can result in Server-Side Request Forgery vulnerabilities" + }, + "helpUri": "https://semgrep.dev/r/javascript.express.security.express-puppeteer-injection.express-puppeteer-injection", + "id": "javascript.express.security.express-puppeteer-injection.express-puppeteer-injection", + "name": "javascript.express.security.express-puppeteer-injection.express-puppeteer-injection", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-918: Server-Side Request Forgery (SSRF)", + "MEDIUM CONFIDENCE", + "OWASP-A10:2021 - Server-Side Request Forgery (SSRF)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.express.security.express-puppeteer-injection.express-puppeteer-injection" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Found a template created with string formatting. This is susceptible to server-side template injection and cross-site scripting attacks." + }, + "help": { + "markdown": "Found a template created with string formatting. This is susceptible to server-side template injection and cross-site scripting attacks.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.flask.security.dangerous-template-string.dangerous-template-string)\n - [https://nvisium.com/blog/2016/03/09/exploring-ssti-in-flask-jinja2.html](https://nvisium.com/blog/2016/03/09/exploring-ssti-in-flask-jinja2.html)\n - [https://pequalsnp-team.github.io/cheatsheet/flask-jinja2-ssti](https://pequalsnp-team.github.io/cheatsheet/flask-jinja2-ssti)\n", + "text": "Found a template created with string formatting. This is susceptible to server-side template injection and cross-site scripting attacks." + }, + "helpUri": "https://semgrep.dev/r/python.flask.security.dangerous-template-string.dangerous-template-string", + "id": "python.flask.security.dangerous-template-string.dangerous-template-string", + "name": "python.flask.security.dangerous-template-string.dangerous-template-string", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-96: Improper Neutralization of Directives in Statically Saved Code ('Static Code Injection')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.flask.security.dangerous-template-string.dangerous-template-string" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected SQL statement that is tainted by `$EVENT` object. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use parameterized queries or prepared statements instead. You can use parameterized statements like so: `sequelize.query('SELECT * FROM projects WHERE status = ?', { replacements: ['active'], type: QueryTypes.SELECT });`" + }, + "help": { + "markdown": "Detected SQL statement that is tainted by `$EVENT` object. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use parameterized queries or prepared statements instead. You can use parameterized statements like so: `sequelize.query('SELECT * FROM projects WHERE status = ?', { replacements: ['active'], type: QueryTypes.SELECT });`\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.aws-lambda.security.sequelize-sqli.sequelize-sqli)\n - [https://sequelize.org/master/manual/raw-queries.html](https://sequelize.org/master/manual/raw-queries.html)\n", + "text": "Detected SQL statement that is tainted by `$EVENT` object. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use parameterized queries or prepared statements instead. You can use parameterized statements like so: `sequelize.query('SELECT * FROM projects WHERE status = ?', { replacements: ['active'], type: QueryTypes.SELECT });`" + }, + "helpUri": "https://semgrep.dev/r/javascript.aws-lambda.security.sequelize-sqli.sequelize-sqli", + "id": "javascript.aws-lambda.security.sequelize-sqli.sequelize-sqli", + "name": "javascript.aws-lambda.security.sequelize-sqli.sequelize-sqli", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')", + "MEDIUM CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.aws-lambda.security.sequelize-sqli.sequelize-sqli" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "User-controlled data from request is passed to 'RawSQL()'. This could lead to a SQL injection and therefore protected information could be leaked. Instead, use parameterized queries or escape the user-controlled data by using `params` and not using quote placeholders in the SQL string." + }, + "help": { + "markdown": "User-controlled data from request is passed to 'RawSQL()'. This could lead to a SQL injection and therefore protected information could be leaked. Instead, use parameterized queries or escape the user-controlled data by using `params` and not using quote placeholders in the SQL string.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.django.security.injection.sql.sql-injection-rawsql.sql-injection-using-rawsql)\n - [https://docs.djangoproject.com/en/3.0/ref/models/expressions/#django.db.models.expressions.RawSQL](https://docs.djangoproject.com/en/3.0/ref/models/expressions/#django.db.models.expressions.RawSQL)\n", + "text": "User-controlled data from request is passed to 'RawSQL()'. This could lead to a SQL injection and therefore protected information could be leaked. Instead, use parameterized queries or escape the user-controlled data by using `params` and not using quote placeholders in the SQL string." + }, + "helpUri": "https://semgrep.dev/r/python.django.security.injection.sql.sql-injection-rawsql.sql-injection-using-rawsql", + "id": "python.django.security.injection.sql.sql-injection-rawsql.sql-injection-using-rawsql", + "name": "python.django.security.injection.sql.sql-injection-rawsql.sql-injection-using-rawsql", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')", + "MEDIUM CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.django.security.injection.sql.sql-injection-rawsql.sql-injection-using-rawsql" + } + }, + { + "defaultConfiguration": { + "level": "note" + }, + "fullDescription": { + "text": "this rule has been deprecated." + }, + "help": { + "markdown": "this rule has been deprecated.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/typescript.react.security.audit.react-css-injection.react-css-injection)\n - [https://medium.com/dailyjs/exploiting-script-injection-flaws-in-reactjs-883fb1fe36c1](https://medium.com/dailyjs/exploiting-script-injection-flaws-in-reactjs-883fb1fe36c1)\n", + "text": "this rule has been deprecated." + }, + "helpUri": "https://semgrep.dev/r/typescript.react.security.audit.react-css-injection.react-css-injection", + "id": "typescript.react.security.audit.react-css-injection.react-css-injection", + "name": "typescript.react.security.audit.react-css-injection.react-css-injection", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: typescript.react.security.audit.react-css-injection.react-css-injection" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "The BinaryFormatter type is dangerous and is not recommended for data processing. Applications should stop using BinaryFormatter as soon as possible, even if they believe the data they're processing to be trustworthy. BinaryFormatter is insecure and can't be made secure" + }, + "help": { + "markdown": "The BinaryFormatter type is dangerous and is not recommended for data processing. Applications should stop using BinaryFormatter as soon as possible, even if they believe the data they're processing to be trustworthy. BinaryFormatter is insecure and can't be made secure\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/csharp.lang.security.insecure-deserialization.binary-formatter.insecure-binaryformatter-deserialization)\n - [https://docs.microsoft.com/en-us/dotnet/standard/serialization/binaryformatter-security-guide](https://docs.microsoft.com/en-us/dotnet/standard/serialization/binaryformatter-security-guide)\n", + "text": "The BinaryFormatter type is dangerous and is not recommended for data processing. Applications should stop using BinaryFormatter as soon as possible, even if they believe the data they're processing to be trustworthy. BinaryFormatter is insecure and can't be made secure" + }, + "helpUri": "https://semgrep.dev/r/csharp.lang.security.insecure-deserialization.binary-formatter.insecure-binaryformatter-deserialization", + "id": "csharp.lang.security.insecure-deserialization.binary-formatter.insecure-binaryformatter-deserialization", + "name": "csharp.lang.security.insecure-deserialization.binary-formatter.insecure-binaryformatter-deserialization", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-502: Deserialization of Untrusted Data", + "HIGH CONFIDENCE", + "OWASP-A08:2017 - Insecure Deserialization", + "OWASP-A08:2021 - Software and Data Integrity Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: csharp.lang.security.insecure-deserialization.binary-formatter.insecure-binaryformatter-deserialization" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Using variable interpolation `${{...}}` with `github` context data in a `run:` step could allow an attacker to inject their own code into the runner. This would allow them to steal secrets and code. `github` context data can have arbitrary user input and should be treated as untrusted. Instead, use an intermediate environment variable with `env:` to store the data and use the environment variable in the `run:` script. Be sure to use double-quotes the environment variable, like this: \"$ENVVAR\"." + }, + "help": { + "markdown": "Using variable interpolation `${{...}}` with `github` context data in a `run:` step could allow an attacker to inject their own code into the runner. This would allow them to steal secrets and code. `github` context data can have arbitrary user input and should be treated as untrusted. Instead, use an intermediate environment variable with `env:` to store the data and use the environment variable in the `run:` script. Be sure to use double-quotes the environment variable, like this: \"$ENVVAR\".\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/yaml.github-actions.security.run-shell-injection.run-shell-injection)\n - [https://docs.github.com/en/actions/learn-github-actions/security-hardening-for-github-actions#understanding-the-risk-of-script-injections](https://docs.github.com/en/actions/learn-github-actions/security-hardening-for-github-actions#understanding-the-risk-of-script-injections)\n - [https://securitylab.github.com/research/github-actions-untrusted-input/](https://securitylab.github.com/research/github-actions-untrusted-input/)\n", + "text": "Using variable interpolation `${{...}}` with `github` context data in a `run:` step could allow an attacker to inject their own code into the runner. This would allow them to steal secrets and code. `github` context data can have arbitrary user input and should be treated as untrusted. Instead, use an intermediate environment variable with `env:` to store the data and use the environment variable in the `run:` script. Be sure to use double-quotes the environment variable, like this: \"$ENVVAR\"." + }, + "helpUri": "https://semgrep.dev/r/yaml.github-actions.security.run-shell-injection.run-shell-injection", + "id": "yaml.github-actions.security.run-shell-injection.run-shell-injection", + "name": "yaml.github-actions.security.run-shell-injection.run-shell-injection", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')", + "HIGH CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: yaml.github-actions.security.run-shell-injection.run-shell-injection" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Distinct, Having, Group_by, Order_by, and Filter in SQLAlchemy can cause sql injections if the developer inputs raw SQL into the before-mentioned clauses. This pattern captures relevant cases in which the developer inputs raw SQL into the distinct, having, group_by, order_by or filter clauses and injects user-input into the raw SQL with any function besides \"bindparams\". Use bindParams to securely bind user-input to SQL statements." + }, + "help": { + "markdown": "Distinct, Having, Group_by, Order_by, and Filter in SQLAlchemy can cause sql injections if the developer inputs raw SQL into the before-mentioned clauses. This pattern captures relevant cases in which the developer inputs raw SQL into the distinct, having, group_by, order_by or filter clauses and injects user-input into the raw SQL with any function besides \"bindparams\". Use bindParams to securely bind user-input to SQL statements.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.sqlalchemy.security.sqlalchemy-sql-injection.sqlalchemy-sql-injection)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "Distinct, Having, Group_by, Order_by, and Filter in SQLAlchemy can cause sql injections if the developer inputs raw SQL into the before-mentioned clauses. This pattern captures relevant cases in which the developer inputs raw SQL into the distinct, having, group_by, order_by or filter clauses and injects user-input into the raw SQL with any function besides \"bindparams\". Use bindParams to securely bind user-input to SQL statements." + }, + "helpUri": "https://semgrep.dev/r/python.sqlalchemy.security.sqlalchemy-sql-injection.sqlalchemy-sql-injection", + "id": "python.sqlalchemy.security.sqlalchemy-sql-injection.sqlalchemy-sql-injection", + "name": "python.sqlalchemy.security.sqlalchemy-sql-injection.sqlalchemy-sql-injection", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')", + "MEDIUM CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.sqlalchemy.security.sqlalchemy-sql-injection.sqlalchemy-sql-injection" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Detected `os` function with argument tainted by `event` object. This is dangerous if external data can reach this function call because it allows a malicious actor to execute commands. Use the 'subprocess' module instead, which is easier to use without accidentally exposing a command injection vulnerability." + }, + "help": { + "markdown": "Detected `os` function with argument tainted by `event` object. This is dangerous if external data can reach this function call because it allows a malicious actor to execute commands. Use the 'subprocess' module instead, which is easier to use without accidentally exposing a command injection vulnerability.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.aws-lambda.security.dangerous-system-call.dangerous-system-call)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "Detected `os` function with argument tainted by `event` object. This is dangerous if external data can reach this function call because it allows a malicious actor to execute commands. Use the 'subprocess' module instead, which is easier to use without accidentally exposing a command injection vulnerability." + }, + "helpUri": "https://semgrep.dev/r/python.aws-lambda.security.dangerous-system-call.dangerous-system-call", + "id": "python.aws-lambda.security.dangerous-system-call.dangerous-system-call", + "name": "python.aws-lambda.security.dangerous-system-call.dangerous-system-call", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')", + "MEDIUM CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.aws-lambda.security.dangerous-system-call.dangerous-system-call" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Telnet does not encrypt communications. Use SSH instead." + }, + "help": { + "markdown": "Telnet does not encrypt communications. Use SSH instead.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.lang.security.audit.telnetlib.telnetlib)\n - [https://docs.python.org/3/library/telnetlib.html](https://docs.python.org/3/library/telnetlib.html)\n", + "text": "Telnet does not encrypt communications. Use SSH instead." + }, + "helpUri": "https://semgrep.dev/r/python.lang.security.audit.telnetlib.telnetlib", + "id": "python.lang.security.audit.telnetlib.telnetlib", + "name": "python.lang.security.audit.telnetlib.telnetlib", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-319: Cleartext Transmission of Sensitive Information", + "LOW CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.lang.security.audit.telnetlib.telnetlib" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "A parameter being passed directly into `url` most likely lead to SSRF. This could allow an attacker to send data to their own server, potentially exposing sensitive data sent with this request. They could also probe internal servers or other resources that the server runnig this code can access. Do not allow arbitrary hosts. Instead, create an allowlist for approved hosts hardcode the correct host." + }, + "help": { + "markdown": "A parameter being passed directly into `url` most likely lead to SSRF. This could allow an attacker to send data to their own server, potentially exposing sensitive data sent with this request. They could also probe internal servers or other resources that the server runnig this code can access. Do not allow arbitrary hosts. Instead, create an allowlist for approved hosts hardcode the correct host.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/scala.lang.security.audit.dispatch-ssrf.dispatch-ssrf)\n - [https://cheatsheetseries.owasp.org/cheatsheets/Server_Side_Request_Forgery_Prevention_Cheat_Sheet.html](https://cheatsheetseries.owasp.org/cheatsheets/Server_Side_Request_Forgery_Prevention_Cheat_Sheet.html)\n - [https://dispatchhttp.org/Dispatch.html](https://dispatchhttp.org/Dispatch.html)\n", + "text": "A parameter being passed directly into `url` most likely lead to SSRF. This could allow an attacker to send data to their own server, potentially exposing sensitive data sent with this request. They could also probe internal servers or other resources that the server runnig this code can access. Do not allow arbitrary hosts. Instead, create an allowlist for approved hosts hardcode the correct host." + }, + "helpUri": "https://semgrep.dev/r/scala.lang.security.audit.dispatch-ssrf.dispatch-ssrf", + "id": "scala.lang.security.audit.dispatch-ssrf.dispatch-ssrf", + "name": "scala.lang.security.audit.dispatch-ssrf.dispatch-ssrf", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-918: Server-Side Request Forgery (SSRF)", + "LOW CONFIDENCE", + "OWASP-A10:2021 - Server-Side Request Forgery (SSRF)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: scala.lang.security.audit.dispatch-ssrf.dispatch-ssrf" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Using RSA without OAEP mode weakens the encryption." + }, + "help": { + "markdown": "Using RSA without OAEP mode weakens the encryption.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.lang.security.audit.crypto.rsa-no-padding.rsa-no-padding)\n - [https://rdist.root.org/2009/10/06/why-rsa-encryption-padding-is-critical/](https://rdist.root.org/2009/10/06/why-rsa-encryption-padding-is-critical/)\n", + "text": "Using RSA without OAEP mode weakens the encryption." + }, + "helpUri": "https://semgrep.dev/r/java.lang.security.audit.crypto.rsa-no-padding.rsa-no-padding", + "id": "java.lang.security.audit.crypto.rsa-no-padding.rsa-no-padding", + "name": "java.lang.security.audit.crypto.rsa-no-padding.rsa-no-padding", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-326: Inadequate Encryption Strength", + "HIGH CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.lang.security.audit.crypto.rsa-no-padding.rsa-no-padding" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Using a non-primitive class with Java RMI may be an insecure deserialization vulnerability. Depending on the underlying implementation. This object could be manipulated by a malicious actor allowing them to execute code on your system. Instead, use an integer ID to look up your object, or consider alternative serialization schemes such as JSON." + }, + "help": { + "markdown": "Using a non-primitive class with Java RMI may be an insecure deserialization vulnerability. Depending on the underlying implementation. This object could be manipulated by a malicious actor allowing them to execute code on your system. Instead, use an integer ID to look up your object, or consider alternative serialization schemes such as JSON.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.rmi.security.server-dangerous-class-deserialization.server-dangerous-class-deserialization)\n - [https://mogwailabs.de/blog/2019/03/attacking-java-rmi-services-after-jep-290/](https://mogwailabs.de/blog/2019/03/attacking-java-rmi-services-after-jep-290/)\n", + "text": "Using a non-primitive class with Java RMI may be an insecure deserialization vulnerability. Depending on the underlying implementation. This object could be manipulated by a malicious actor allowing them to execute code on your system. Instead, use an integer ID to look up your object, or consider alternative serialization schemes such as JSON." + }, + "helpUri": "https://semgrep.dev/r/java.rmi.security.server-dangerous-class-deserialization.server-dangerous-class-deserialization", + "id": "java.rmi.security.server-dangerous-class-deserialization.server-dangerous-class-deserialization", + "name": "java.rmi.security.server-dangerous-class-deserialization.server-dangerous-class-deserialization", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-502: Deserialization of Untrusted Data", + "LOW CONFIDENCE", + "OWASP-A08:2017 - Insecure Deserialization", + "OWASP-A08:2021 - Software and Data Integrity Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.rmi.security.server-dangerous-class-deserialization.server-dangerous-class-deserialization" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "If unverified user data can reach the `wkhtmltoimage` it can result in Server-Side Request Forgery vulnerabilities" + }, + "help": { + "markdown": "If unverified user data can reach the `wkhtmltoimage` it can result in Server-Side Request Forgery vulnerabilities\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.wkhtmltoimage.security.audit.wkhtmltoimage-injection.wkhtmltoimage-injection)\n - [https://owasp.org/Top10/A10_2021-Server-Side_Request_Forgery_%28SSRF%29](https://owasp.org/Top10/A10_2021-Server-Side_Request_Forgery_%28SSRF%29)\n", + "text": "If unverified user data can reach the `wkhtmltoimage` it can result in Server-Side Request Forgery vulnerabilities" + }, + "helpUri": "https://semgrep.dev/r/javascript.wkhtmltoimage.security.audit.wkhtmltoimage-injection.wkhtmltoimage-injection", + "id": "javascript.wkhtmltoimage.security.audit.wkhtmltoimage-injection.wkhtmltoimage-injection", + "name": "javascript.wkhtmltoimage.security.audit.wkhtmltoimage-injection.wkhtmltoimage-injection", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-918: Server-Side Request Forgery (SSRF)", + "LOW CONFIDENCE", + "OWASP-A10:2021 - Server-Side Request Forgery (SSRF)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.wkhtmltoimage.security.audit.wkhtmltoimage-injection.wkhtmltoimage-injection" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Possible path traversal through `tarfile.open($PATH).extractall()` if the source tar is controlled by an attacker" + }, + "help": { + "markdown": "Possible path traversal through `tarfile.open($PATH).extractall()` if the source tar is controlled by an attacker\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/trailofbits.python.tarfile-extractall-traversal.tarfile-extractall-traversal)\n - [https://docs.python.org/3/library/tarfile.html#tarfile.TarFile.extractall](https://docs.python.org/3/library/tarfile.html#tarfile.TarFile.extractall)\n", + "text": "Possible path traversal through `tarfile.open($PATH).extractall()` if the source tar is controlled by an attacker" + }, + "helpUri": "https://semgrep.dev/r/trailofbits.python.tarfile-extractall-traversal.tarfile-extractall-traversal", + "id": "trailofbits.python.tarfile-extractall-traversal.tarfile-extractall-traversal", + "name": "trailofbits.python.tarfile-extractall-traversal.tarfile-extractall-traversal", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')", + "MEDIUM CONFIDENCE", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: trailofbits.python.tarfile-extractall-traversal.tarfile-extractall-traversal" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Make sure that unverified user data can not reach the XML Parser, as it can result in XML External or Internal Entity (XXE) Processing vulnerabilities." + }, + "help": { + "markdown": "Make sure that unverified user data can not reach the XML Parser, as it can result in XML External or Internal Entity (XXE) Processing vulnerabilities.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.express.security.express-expat-xxe.express-expat-xxe)\n - [https://github.com/astro/node-expat](https://github.com/astro/node-expat)\n", + "text": "Make sure that unverified user data can not reach the XML Parser, as it can result in XML External or Internal Entity (XXE) Processing vulnerabilities." + }, + "helpUri": "https://semgrep.dev/r/javascript.express.security.express-expat-xxe.express-expat-xxe", + "id": "javascript.express.security.express-expat-xxe.express-expat-xxe", + "name": "javascript.express.security.express-expat-xxe.express-expat-xxe", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-611: Improper Restriction of XML External Entity Reference", + "MEDIUM CONFIDENCE", + "OWASP-A04:2017 - XML External Entities (XXE)", + "OWASP-A05:2021 - Security Misconfiguration", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.express.security.express-expat-xxe.express-expat-xxe" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Cluster is disabling TLS certificate verification when communicating with the server. This makes your HTTPS connections insecure. Remove the 'insecure-skip-tls-verify: true' key to secure communication." + }, + "help": { + "markdown": "Cluster is disabling TLS certificate verification when communicating with the server. This makes your HTTPS connections insecure. Remove the 'insecure-skip-tls-verify: true' key to secure communication.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/yaml.kubernetes.security.skip-tls-verify-cluster.skip-tls-verify-cluster)\n - [https://kubernetes.io/docs/reference/config-api/client-authentication.v1beta1/#client-authentication-k8s-io-v1beta1-Cluster](https://kubernetes.io/docs/reference/config-api/client-authentication.v1beta1/#client-authentication-k8s-io-v1beta1-Cluster)\n", + "text": "Cluster is disabling TLS certificate verification when communicating with the server. This makes your HTTPS connections insecure. Remove the 'insecure-skip-tls-verify: true' key to secure communication." + }, + "helpUri": "https://semgrep.dev/r/yaml.kubernetes.security.skip-tls-verify-cluster.skip-tls-verify-cluster", + "id": "yaml.kubernetes.security.skip-tls-verify-cluster.skip-tls-verify-cluster", + "name": "yaml.kubernetes.security.skip-tls-verify-cluster.skip-tls-verify-cluster", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-319: Cleartext Transmission of Sensitive Information", + "MEDIUM CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: yaml.kubernetes.security.skip-tls-verify-cluster.skip-tls-verify-cluster" + } + }, + { + "defaultConfiguration": { + "level": "note" + }, + "fullDescription": { + "text": "Use of angular.element can lead to XSS if user-input is treated as part of the HTML element within `$SINK`. It is recommended to contextually output encode user-input, before inserting into `$SINK`. If the HTML needs to be preserved it is recommended to sanitize the input using $sce.getTrustedHTML or $sanitize." + }, + "help": { + "markdown": "Use of angular.element can lead to XSS if user-input is treated as part of the HTML element within `$SINK`. It is recommended to contextually output encode user-input, before inserting into `$SINK`. If the HTML needs to be preserved it is recommended to sanitize the input using $sce.getTrustedHTML or $sanitize.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.angular.security.detect-angular-element-methods.detect-angular-element-methods)\n - [https://docs.angularjs.org/api/ng/function/angular.element](https://docs.angularjs.org/api/ng/function/angular.element)\n - [https://owasp.org/www-chapter-london/assets/slides/OWASPLondon20170727_AngularJS.pdf](https://owasp.org/www-chapter-london/assets/slides/OWASPLondon20170727_AngularJS.pdf)\n", + "text": "Use of angular.element can lead to XSS if user-input is treated as part of the HTML element within `$SINK`. It is recommended to contextually output encode user-input, before inserting into `$SINK`. If the HTML needs to be preserved it is recommended to sanitize the input using $sce.getTrustedHTML or $sanitize." + }, + "helpUri": "https://semgrep.dev/r/javascript.angular.security.detect-angular-element-methods.detect-angular-element-methods", + "id": "javascript.angular.security.detect-angular-element-methods.detect-angular-element-methods", + "name": "javascript.angular.security.detect-angular-element-methods.detect-angular-element-methods", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.angular.security.detect-angular-element-methods.detect-angular-element-methods" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "X-XSS-Protection header is set to 0. This will disable the browser's XSS Filter." + }, + "help": { + "markdown": "X-XSS-Protection header is set to 0. This will disable the browser's XSS Filter.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/typescript.nestjs.security.audit.nestjs-header-xss-disabled.nestjs-header-xss-disabled)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "X-XSS-Protection header is set to 0. This will disable the browser's XSS Filter." + }, + "helpUri": "https://semgrep.dev/r/typescript.nestjs.security.audit.nestjs-header-xss-disabled.nestjs-header-xss-disabled", + "id": "typescript.nestjs.security.audit.nestjs-header-xss-disabled.nestjs-header-xss-disabled", + "name": "typescript.nestjs.security.audit.nestjs-header-xss-disabled.nestjs-header-xss-disabled", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: typescript.nestjs.security.audit.nestjs-header-xss-disabled.nestjs-header-xss-disabled" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected 'printf' or similar in 'http.ResponseWriter.write()'. This bypasses HTML escaping that prevents cross-site scripting vulnerabilities. Instead, use the 'html/template' package to render data to users." + }, + "help": { + "markdown": "Detected 'printf' or similar in 'http.ResponseWriter.write()'. This bypasses HTML escaping that prevents cross-site scripting vulnerabilities. Instead, use the 'html/template' package to render data to users.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/go.lang.security.audit.xss.no-printf-in-responsewriter.no-printf-in-responsewriter)\n - [https://blogtitle.github.io/robn-go-security-pearls-cross-site-scripting-xss/](https://blogtitle.github.io/robn-go-security-pearls-cross-site-scripting-xss/)\n", + "text": "Detected 'printf' or similar in 'http.ResponseWriter.write()'. This bypasses HTML escaping that prevents cross-site scripting vulnerabilities. Instead, use the 'html/template' package to render data to users." + }, + "helpUri": "https://semgrep.dev/r/go.lang.security.audit.xss.no-printf-in-responsewriter.no-printf-in-responsewriter", + "id": "go.lang.security.audit.xss.no-printf-in-responsewriter.no-printf-in-responsewriter", + "name": "go.lang.security.audit.xss.no-printf-in-responsewriter.no-printf-in-responsewriter", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: go.lang.security.audit.xss.no-printf-in-responsewriter.no-printf-in-responsewriter" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected use of an insecure SSL version. Secure SSL versions are TLSv1.2 and TLS1.3; older versions are known to be broken and are susceptible to attacks. Prefer use of TLSv1.2 or later." + }, + "help": { + "markdown": "Detected use of an insecure SSL version. Secure SSL versions are TLSv1.2 and TLS1.3; older versions are known to be broken and are susceptible to attacks. Prefer use of TLSv1.2 or later.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/generic.nginx.security.insecure-ssl-version.insecure-ssl-version)\n - [https://www.acunetix.com/blog/web-security-zone/hardening-nginx/](https://www.acunetix.com/blog/web-security-zone/hardening-nginx/)\n - [https://www.acunetix.com/blog/articles/tls-ssl-cipher-hardening/](https://www.acunetix.com/blog/articles/tls-ssl-cipher-hardening/)\n", + "text": "Detected use of an insecure SSL version. Secure SSL versions are TLSv1.2 and TLS1.3; older versions are known to be broken and are susceptible to attacks. Prefer use of TLSv1.2 or later." + }, + "helpUri": "https://semgrep.dev/r/generic.nginx.security.insecure-ssl-version.insecure-ssl-version", + "id": "generic.nginx.security.insecure-ssl-version.insecure-ssl-version", + "name": "generic.nginx.security.insecure-ssl-version.insecure-ssl-version", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-326: Inadequate Encryption Strength", + "HIGH CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: generic.nginx.security.insecure-ssl-version.insecure-ssl-version" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Checks for calls to without_protection during mass assignment (which allows record creation from hash values). This can lead to users bypassing permissions protections. For Rails 4 and higher, mass protection is on by default. Fix: Don't use :without_protection => true. Instead, configure attr_accessible to control attribute access." + }, + "help": { + "markdown": "Checks for calls to without_protection during mass assignment (which allows record creation from hash values). This can lead to users bypassing permissions protections. For Rails 4 and higher, mass protection is on by default. Fix: Don't use :without_protection => true. Instead, configure attr_accessible to control attribute access.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ruby.lang.security.unprotected-mass-assign.mass-assignment-vuln)\n - [https://github.com/presidentbeef/brakeman/blob/main/lib/brakeman/checks/check_without_protection.rb](https://github.com/presidentbeef/brakeman/blob/main/lib/brakeman/checks/check_without_protection.rb)\n - [https://www.acunetix.com/vulnerabilities/web/rails-mass-assignment/](https://www.acunetix.com/vulnerabilities/web/rails-mass-assignment/)\n", + "text": "Checks for calls to without_protection during mass assignment (which allows record creation from hash values). This can lead to users bypassing permissions protections. For Rails 4 and higher, mass protection is on by default. Fix: Don't use :without_protection => true. Instead, configure attr_accessible to control attribute access." + }, + "helpUri": "https://semgrep.dev/r/ruby.lang.security.unprotected-mass-assign.mass-assignment-vuln", + "id": "ruby.lang.security.unprotected-mass-assign.mass-assignment-vuln", + "name": "ruby.lang.security.unprotected-mass-assign.mass-assignment-vuln", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes", + "LOW CONFIDENCE", + "OWASP-A08:2021 - Software and Data Integrity Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: ruby.lang.security.unprotected-mass-assign.mass-assignment-vuln" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Avoid using `cPickle`, which is known to lead to code execution vulnerabilities. When unpickling, the serialized data could be manipulated to run arbitrary code. Instead, consider serializing the relevant data as JSON or a similar text-based serialization format." + }, + "help": { + "markdown": "Avoid using `cPickle`, which is known to lead to code execution vulnerabilities. When unpickling, the serialized data could be manipulated to run arbitrary code. Instead, consider serializing the relevant data as JSON or a similar text-based serialization format.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.lang.security.deserialization.pickle.avoid-cPickle)\n - [https://docs.python.org/3/library/pickle.html](https://docs.python.org/3/library/pickle.html)\n", + "text": "Avoid using `cPickle`, which is known to lead to code execution vulnerabilities. When unpickling, the serialized data could be manipulated to run arbitrary code. Instead, consider serializing the relevant data as JSON or a similar text-based serialization format." + }, + "helpUri": "https://semgrep.dev/r/python.lang.security.deserialization.pickle.avoid-cPickle", + "id": "python.lang.security.deserialization.pickle.avoid-cPickle", + "name": "python.lang.security.deserialization.pickle.avoid-cPickle", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-502: Deserialization of Untrusted Data", + "LOW CONFIDENCE", + "OWASP-A08:2017 - Insecure Deserialization", + "OWASP-A08:2021 - Software and Data Integrity Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.lang.security.deserialization.pickle.avoid-cPickle" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Found a formatted template string passed to 'template.JS()'. 'template.JS()' does not escape contents. Be absolutely sure there is no user-controlled data in this template." + }, + "help": { + "markdown": "Found a formatted template string passed to 'template.JS()'. 'template.JS()' does not escape contents. Be absolutely sure there is no user-controlled data in this template.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/go.lang.security.audit.net.unescaped-data-in-js.unescaped-data-in-js)\n - [https://golang.org/pkg/html/template/#JS](https://golang.org/pkg/html/template/#JS)\n", + "text": "Found a formatted template string passed to 'template.JS()'. 'template.JS()' does not escape contents. Be absolutely sure there is no user-controlled data in this template." + }, + "helpUri": "https://semgrep.dev/r/go.lang.security.audit.net.unescaped-data-in-js.unescaped-data-in-js", + "id": "go.lang.security.audit.net.unescaped-data-in-js.unescaped-data-in-js", + "name": "go.lang.security.audit.net.unescaped-data-in-js.unescaped-data-in-js", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: go.lang.security.audit.net.unescaped-data-in-js.unescaped-data-in-js" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Insecure HostnameVerifier implementation detected. This will accept any SSL certificate with any hostname, which creates the possibility for man-in-the-middle attacks." + }, + "help": { + "markdown": "Insecure HostnameVerifier implementation detected. This will accept any SSL certificate with any hostname, which creates the possibility for man-in-the-middle attacks.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.lang.security.audit.crypto.ssl.insecure-hostname-verifier.insecure-hostname-verifier)\n - [https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures](https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures)\n", + "text": "Insecure HostnameVerifier implementation detected. This will accept any SSL certificate with any hostname, which creates the possibility for man-in-the-middle attacks." + }, + "helpUri": "https://semgrep.dev/r/java.lang.security.audit.crypto.ssl.insecure-hostname-verifier.insecure-hostname-verifier", + "id": "java.lang.security.audit.crypto.ssl.insecure-hostname-verifier.insecure-hostname-verifier", + "name": "java.lang.security.audit.crypto.ssl.insecure-hostname-verifier.insecure-hostname-verifier", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-295: Improper Certificate Validation", + "LOW CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "OWASP-A07:2021 - Identification and Authentication Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.lang.security.audit.crypto.ssl.insecure-hostname-verifier.insecure-hostname-verifier" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Access-Control-Allow-Origin response header is set to \"*\". This will disable CORS Same Origin Policy restrictions." + }, + "help": { + "markdown": "Access-Control-Allow-Origin response header is set to \"*\". This will disable CORS Same Origin Policy restrictions.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/php.lang.security.php-permissive-cors.php-permissive-cors)\n - [https://developer.mozilla.org/ru/docs/Web/HTTP/Headers/Access-Control-Allow-Origin](https://developer.mozilla.org/ru/docs/Web/HTTP/Headers/Access-Control-Allow-Origin)\n", + "text": "Access-Control-Allow-Origin response header is set to \"*\". This will disable CORS Same Origin Policy restrictions." + }, + "helpUri": "https://semgrep.dev/r/php.lang.security.php-permissive-cors.php-permissive-cors", + "id": "php.lang.security.php-permissive-cors.php-permissive-cors", + "name": "php.lang.security.php-permissive-cors.php-permissive-cors", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-346: Origin Validation Error", + "LOW CONFIDENCE", + "OWASP-A07:2021 - Identification and Authentication Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: php.lang.security.php-permissive-cors.php-permissive-cors" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "FTP allows for unencrypted file transfers. Consider using an encrypted alternative." + }, + "help": { + "markdown": "FTP allows for unencrypted file transfers. Consider using an encrypted alternative.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/php.lang.security.ftp-use.ftp-use)\n - [https://www.php.net/manual/en/intro.ftp.php](https://www.php.net/manual/en/intro.ftp.php)\n - [https://github.com/FloeDesignTechnologies/phpcs-security-audit/blob/master/Security/Sniffs/BadFunctions/FringeFunctionsSniff.php](https://github.com/FloeDesignTechnologies/phpcs-security-audit/blob/master/Security/Sniffs/BadFunctions/FringeFunctionsSniff.php)\n", + "text": "FTP allows for unencrypted file transfers. Consider using an encrypted alternative." + }, + "helpUri": "https://semgrep.dev/r/php.lang.security.ftp-use.ftp-use", + "id": "php.lang.security.ftp-use.ftp-use", + "name": "php.lang.security.ftp-use.ftp-use", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-319: Cleartext Transmission of Sensitive Information", + "LOW CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: php.lang.security.ftp-use.ftp-use" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "The HTTPSConnection API has changed frequently with minor releases of Python. Ensure you are using the API for your version of Python securely. For example, Python 3 versions prior to 3.4.3 will not verify SSL certificates by default. See https://docs.python.org/3/library/http.client.html#http.client.HTTPSConnection for more information." + }, + "help": { + "markdown": "The HTTPSConnection API has changed frequently with minor releases of Python. Ensure you are using the API for your version of Python securely. For example, Python 3 versions prior to 3.4.3 will not verify SSL certificates by default. See https://docs.python.org/3/library/http.client.html#http.client.HTTPSConnection for more information.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.lang.security.audit.httpsconnection-detected.httpsconnection-detected)\n - [https://docs.python.org/3/library/http.client.html#http.client.HTTPSConnection](https://docs.python.org/3/library/http.client.html#http.client.HTTPSConnection)\n", + "text": "The HTTPSConnection API has changed frequently with minor releases of Python. Ensure you are using the API for your version of Python securely. For example, Python 3 versions prior to 3.4.3 will not verify SSL certificates by default. See https://docs.python.org/3/library/http.client.html#http.client.HTTPSConnection for more information." + }, + "helpUri": "https://semgrep.dev/r/python.lang.security.audit.httpsconnection-detected.httpsconnection-detected", + "id": "python.lang.security.audit.httpsconnection-detected.httpsconnection-detected", + "name": "python.lang.security.audit.httpsconnection-detected.httpsconnection-detected", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-295: Improper Certificate Validation", + "LOW CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "OWASP-A07:2021 - Identification and Authentication Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.lang.security.audit.httpsconnection-detected.httpsconnection-detected" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Detected non-static command inside Exec. Audit the input to 'syscall.Exec'. If unverified user data can reach this call site, this is a code injection vulnerability. A malicious actor can inject a malicious script to execute arbitrary code." + }, + "help": { + "markdown": "Detected non-static command inside Exec. Audit the input to 'syscall.Exec'. If unverified user data can reach this call site, this is a code injection vulnerability. A malicious actor can inject a malicious script to execute arbitrary code.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/go.lang.security.audit.dangerous-syscall-exec.dangerous-syscall-exec)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "Detected non-static command inside Exec. Audit the input to 'syscall.Exec'. If unverified user data can reach this call site, this is a code injection vulnerability. A malicious actor can inject a malicious script to execute arbitrary code." + }, + "helpUri": "https://semgrep.dev/r/go.lang.security.audit.dangerous-syscall-exec.dangerous-syscall-exec", + "id": "go.lang.security.audit.dangerous-syscall-exec.dangerous-syscall-exec", + "name": "go.lang.security.audit.dangerous-syscall-exec.dangerous-syscall-exec", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-94: Improper Control of Generation of Code ('Code Injection')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: go.lang.security.audit.dangerous-syscall-exec.dangerous-syscall-exec" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "If unverified user data can reach the `setContent` method it can result in Server-Side Request Forgery vulnerabilities" + }, + "help": { + "markdown": "If unverified user data can reach the `setContent` method it can result in Server-Side Request Forgery vulnerabilities\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.puppeteer.security.audit.puppeteer-setcontent-injection.puppeteer-setcontent-injection)\n - [https://owasp.org/Top10/A10_2021-Server-Side_Request_Forgery_%28SSRF%29](https://owasp.org/Top10/A10_2021-Server-Side_Request_Forgery_%28SSRF%29)\n", + "text": "If unverified user data can reach the `setContent` method it can result in Server-Side Request Forgery vulnerabilities" + }, + "helpUri": "https://semgrep.dev/r/javascript.puppeteer.security.audit.puppeteer-setcontent-injection.puppeteer-setcontent-injection", + "id": "javascript.puppeteer.security.audit.puppeteer-setcontent-injection.puppeteer-setcontent-injection", + "name": "javascript.puppeteer.security.audit.puppeteer-setcontent-injection.puppeteer-setcontent-injection", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-918: Server-Side Request Forgery (SSRF)", + "LOW CONFIDENCE", + "OWASP-A10:2021 - Server-Side Request Forgery (SSRF)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.puppeteer.security.audit.puppeteer-setcontent-injection.puppeteer-setcontent-injection" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "An insecure SSL version was detected. TLS versions 1.0, 1.1, and all SSL versions are considered weak encryption and are deprecated. Use 'ssl.PROTOCOL_TLSv1_2' or higher." + }, + "help": { + "markdown": "An insecure SSL version was detected. TLS versions 1.0, 1.1, and all SSL versions are considered weak encryption and are deprecated. Use 'ssl.PROTOCOL_TLSv1_2' or higher.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.lang.security.audit.weak-ssl-version.weak-ssl-version)\n - [https://tools.ietf.org/html/rfc7568](https://tools.ietf.org/html/rfc7568)\n - [https://tools.ietf.org/id/draft-ietf-tls-oldversions-deprecate-02.html](https://tools.ietf.org/id/draft-ietf-tls-oldversions-deprecate-02.html)\n - [https://docs.python.org/3/library/ssl.html#ssl.PROTOCOL_TLSv1_2](https://docs.python.org/3/library/ssl.html#ssl.PROTOCOL_TLSv1_2)\n", + "text": "An insecure SSL version was detected. TLS versions 1.0, 1.1, and all SSL versions are considered weak encryption and are deprecated. Use 'ssl.PROTOCOL_TLSv1_2' or higher." + }, + "helpUri": "https://semgrep.dev/r/python.lang.security.audit.weak-ssl-version.weak-ssl-version", + "id": "python.lang.security.audit.weak-ssl-version.weak-ssl-version", + "name": "python.lang.security.audit.weak-ssl-version.weak-ssl-version", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-326: Inadequate Encryption Strength", + "MEDIUM CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.lang.security.audit.weak-ssl-version.weak-ssl-version" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "When using Jackson to marshall/unmarshall JSON to Java objects, enabling default typing is dangerous and can lead to RCE. If an attacker can control `$JSON` it might be possible to provide a malicious JSON which can be used to exploit unsecure deserialization. In order to prevent this issue, avoid to enable default typing (globally or by using \"Per-class\" annotations) and avoid using `Object` and other dangerous types for member variable declaration which creating classes for Jackson based deserialization." + }, + "help": { + "markdown": "When using Jackson to marshall/unmarshall JSON to Java objects, enabling default typing is dangerous and can lead to RCE. If an attacker can control `$JSON` it might be possible to provide a malicious JSON which can be used to exploit unsecure deserialization. In order to prevent this issue, avoid to enable default typing (globally or by using \"Per-class\" annotations) and avoid using `Object` and other dangerous types for member variable declaration which creating classes for Jackson based deserialization.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.lang.security.jackson-unsafe-deserialization.jackson-unsafe-deserialization)\n - [https://swapneildash.medium.com/understanding-insecure-implementation-of-jackson-deserialization-7b3d409d2038](https://swapneildash.medium.com/understanding-insecure-implementation-of-jackson-deserialization-7b3d409d2038)\n - [https://cowtowncoder.medium.com/on-jackson-cves-dont-panic-here-is-what-you-need-to-know-54cd0d6e8062](https://cowtowncoder.medium.com/on-jackson-cves-dont-panic-here-is-what-you-need-to-know-54cd0d6e8062)\n - [https://adamcaudill.com/2017/10/04/exploiting-jackson-rce-cve-2017-7525/](https://adamcaudill.com/2017/10/04/exploiting-jackson-rce-cve-2017-7525/)\n", + "text": "When using Jackson to marshall/unmarshall JSON to Java objects, enabling default typing is dangerous and can lead to RCE. If an attacker can control `$JSON` it might be possible to provide a malicious JSON which can be used to exploit unsecure deserialization. In order to prevent this issue, avoid to enable default typing (globally or by using \"Per-class\" annotations) and avoid using `Object` and other dangerous types for member variable declaration which creating classes for Jackson based deserialization." + }, + "helpUri": "https://semgrep.dev/r/java.lang.security.jackson-unsafe-deserialization.jackson-unsafe-deserialization", + "id": "java.lang.security.jackson-unsafe-deserialization.jackson-unsafe-deserialization", + "name": "java.lang.security.jackson-unsafe-deserialization.jackson-unsafe-deserialization", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-502: Deserialization of Untrusted Data", + "MEDIUM CONFIDENCE", + "OWASP-A8:2017 Insecure Deserialization", + "OWASP-A8:2021 Software and Data Integrity Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.lang.security.jackson-unsafe-deserialization.jackson-unsafe-deserialization" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected template variable interpolation in a JavaScript template string. This is potentially vulnerable to cross-site scripting (XSS) attacks because a malicious actor has control over JavaScript but without the need to use escaped characters. Instead, obtain this variable outside of the template string and ensure your template is properly escaped." + }, + "help": { + "markdown": "Detected template variable interpolation in a JavaScript template string. This is potentially vulnerable to cross-site scripting (XSS) attacks because a malicious actor has control over JavaScript but without the need to use escaped characters. Instead, obtain this variable outside of the template string and ensure your template is properly escaped.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/go.lang.security.audit.xss.no-interpolation-js-template-string.no-interpolation-js-template-string)\n - [https://github.com/golang/go/issues/9200#issuecomment-66100328](https://github.com/golang/go/issues/9200#issuecomment-66100328)\n - [https://blogtitle.github.io/robn-go-security-pearls-cross-site-scripting-xss/](https://blogtitle.github.io/robn-go-security-pearls-cross-site-scripting-xss/)\n", + "text": "Detected template variable interpolation in a JavaScript template string. This is potentially vulnerable to cross-site scripting (XSS) attacks because a malicious actor has control over JavaScript but without the need to use escaped characters. Instead, obtain this variable outside of the template string and ensure your template is properly escaped." + }, + "helpUri": "https://semgrep.dev/r/go.lang.security.audit.xss.no-interpolation-js-template-string.no-interpolation-js-template-string", + "id": "go.lang.security.audit.xss.no-interpolation-js-template-string.no-interpolation-js-template-string", + "name": "go.lang.security.audit.xss.no-interpolation-js-template-string.no-interpolation-js-template-string", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: go.lang.security.audit.xss.no-interpolation-js-template-string.no-interpolation-js-template-string" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "String argument $A is used to read or write data from a file via Path.Combine without direct sanitization via Path.GetFileName. If the path is user-supplied data this can lead to path traversal." + }, + "help": { + "markdown": "String argument $A is used to read or write data from a file via Path.Combine without direct sanitization via Path.GetFileName. If the path is user-supplied data this can lead to path traversal.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/csharp.lang.security.filesystem.unsafe-path-combine.unsafe-path-combine)\n - [https://www.praetorian.com/blog/pathcombine-security-issues-in-aspnet-applications/](https://www.praetorian.com/blog/pathcombine-security-issues-in-aspnet-applications/)\n - [https://docs.microsoft.com/en-us/dotnet/api/system.io.path.combine?view=net-6.0#remarks](https://docs.microsoft.com/en-us/dotnet/api/system.io.path.combine?view=net-6.0#remarks)\n", + "text": "String argument $A is used to read or write data from a file via Path.Combine without direct sanitization via Path.GetFileName. If the path is user-supplied data this can lead to path traversal." + }, + "helpUri": "https://semgrep.dev/r/csharp.lang.security.filesystem.unsafe-path-combine.unsafe-path-combine", + "id": "csharp.lang.security.filesystem.unsafe-path-combine.unsafe-path-combine", + "name": "csharp.lang.security.filesystem.unsafe-path-combine.unsafe-path-combine", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')", + "MEDIUM CONFIDENCE", + "OWASP-A01:2021 - Broken Access Control", + "OWASP-A05:2017 - Broken Access Control", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: csharp.lang.security.filesystem.unsafe-path-combine.unsafe-path-combine" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "SSH Password detected" + }, + "help": { + "markdown": "SSH Password detected\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/generic.secrets.security.detected-ssh-password.detected-ssh-password)\n - [https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures](https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures)\n", + "text": "SSH Password detected" + }, + "helpUri": "https://semgrep.dev/r/generic.secrets.security.detected-ssh-password.detected-ssh-password", + "id": "generic.secrets.security.detected-ssh-password.detected-ssh-password", + "name": "generic.secrets.security.detected-ssh-password.detected-ssh-password", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-798: Use of Hard-coded Credentials", + "LOW CONFIDENCE", + "OWASP-A07:2021 - Identification and Authentication Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: generic.secrets.security.detected-ssh-password.detected-ssh-password" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "The Flask secret key is used as salt in HashIDs. The HashID mechanism is not secure. By observing sufficient HashIDs, the salt used to construct them can be recovered. This means the Flask secret key can be obtained by attackers, through the HashIDs." + }, + "help": { + "markdown": "The Flask secret key is used as salt in HashIDs. The HashID mechanism is not secure. By observing sufficient HashIDs, the salt used to construct them can be recovered. This means the Flask secret key can be obtained by attackers, through the HashIDs.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.flask.security.hashids-with-flask-secret.hashids-with-flask-secret)\n - [https://flask.palletsprojects.com/en/2.2.x/config/#SECRET_KEY](https://flask.palletsprojects.com/en/2.2.x/config/#SECRET_KEY)\n - [http://carnage.github.io/2015/08/cryptanalysis-of-hashids](http://carnage.github.io/2015/08/cryptanalysis-of-hashids)\n", + "text": "The Flask secret key is used as salt in HashIDs. The HashID mechanism is not secure. By observing sufficient HashIDs, the salt used to construct them can be recovered. This means the Flask secret key can be obtained by attackers, through the HashIDs." + }, + "helpUri": "https://semgrep.dev/r/python.flask.security.hashids-with-flask-secret.hashids-with-flask-secret", + "id": "python.flask.security.hashids-with-flask-secret.hashids-with-flask-secret", + "name": "python.flask.security.hashids-with-flask-secret.hashids-with-flask-secret", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-327: Use of a Broken or Risky Cryptographic Algorithm", + "HIGH CONFIDENCE", + "OWASP-A02:2021 \u2013 Cryptographic Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.flask.security.hashids-with-flask-secret.hashids-with-flask-secret" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Ensure that IAM policies with permissions on other users don't allow for privilege escalation. This can lead to an attacker gaining full administrator access of AWS accounts. Instead, specify which user the permission should be used on or do not use the listed actions. $RESOURCE" + }, + "help": { + "markdown": "Ensure that IAM policies with permissions on other users don't allow for privilege escalation. This can lead to an attacker gaining full administrator access of AWS accounts. Instead, specify which user the permission should be used on or do not use the listed actions. $RESOURCE\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.lang.security.iam.no-iam-priv-esc-other-users.no-iam-priv-esc-other-users)\n - [https://cloudsplaining.readthedocs.io/en/latest/glossary/privilege-escalation/](https://cloudsplaining.readthedocs.io/en/latest/glossary/privilege-escalation/)\n - [https://github.com/bridgecrewio/checkov/blob/ca830e14745c2c8e1b941985f305abe985d7f1f9/checkov/terraform/checks/data/aws/IAMPrivilegeEscalation.py](https://github.com/bridgecrewio/checkov/blob/ca830e14745c2c8e1b941985f305abe985d7f1f9/checkov/terraform/checks/data/aws/IAMPrivilegeEscalation.py)\n", + "text": "Ensure that IAM policies with permissions on other users don't allow for privilege escalation. This can lead to an attacker gaining full administrator access of AWS accounts. Instead, specify which user the permission should be used on or do not use the listed actions. $RESOURCE" + }, + "helpUri": "https://semgrep.dev/r/terraform.lang.security.iam.no-iam-priv-esc-other-users.no-iam-priv-esc-other-users", + "id": "terraform.lang.security.iam.no-iam-priv-esc-other-users.no-iam-priv-esc-other-users", + "name": "terraform.lang.security.iam.no-iam-priv-esc-other-users.no-iam-priv-esc-other-users", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-269: Improper Privilege Management", + "LOW CONFIDENCE", + "OWASP-A04:2021 - Insecure Design", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.lang.security.iam.no-iam-priv-esc-other-users.no-iam-priv-esc-other-users" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "The `__html__` method indicates to the Django template engine that the value is 'safe' for rendering. This means that normal HTML escaping will not be applied to the return value. This exposes your application to cross-site scripting (XSS) vulnerabilities. If you need to render raw HTML, consider instead using `mark_safe()` which more clearly marks the intent to render raw HTML than a class with a magic method." + }, + "help": { + "markdown": "The `__html__` method indicates to the Django template engine that the value is 'safe' for rendering. This means that normal HTML escaping will not be applied to the return value. This exposes your application to cross-site scripting (XSS) vulnerabilities. If you need to render raw HTML, consider instead using `mark_safe()` which more clearly marks the intent to render raw HTML than a class with a magic method.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.django.security.audit.xss.html-magic-method.html-magic-method)\n - [https://docs.djangoproject.com/en/3.0/_modules/django/utils/html/#conditional_escape](https://docs.djangoproject.com/en/3.0/_modules/django/utils/html/#conditional_escape)\n - [https://gist.github.com/minusworld/7885d8a81dba3ea2d1e4b8fd3c218ef5](https://gist.github.com/minusworld/7885d8a81dba3ea2d1e4b8fd3c218ef5)\n", + "text": "The `__html__` method indicates to the Django template engine that the value is 'safe' for rendering. This means that normal HTML escaping will not be applied to the return value. This exposes your application to cross-site scripting (XSS) vulnerabilities. If you need to render raw HTML, consider instead using `mark_safe()` which more clearly marks the intent to render raw HTML than a class with a magic method." + }, + "helpUri": "https://semgrep.dev/r/python.django.security.audit.xss.html-magic-method.html-magic-method", + "id": "python.django.security.audit.xss.html-magic-method.html-magic-method", + "name": "python.django.security.audit.xss.html-magic-method.html-magic-method", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.django.security.audit.xss.html-magic-method.html-magic-method" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Using a .NET remoting service can lead to RCE, even if you try to configure TypeFilterLevel. Recommended to switch from .NET Remoting to WCF https://docs.microsoft.com/en-us/dotnet/framework/wcf/migrating-from-net-remoting-to-wcf" + }, + "help": { + "markdown": "Using a .NET remoting service can lead to RCE, even if you try to configure TypeFilterLevel. Recommended to switch from .NET Remoting to WCF https://docs.microsoft.com/en-us/dotnet/framework/wcf/migrating-from-net-remoting-to-wcf\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/csharp.lang.security.insecure-deserialization.insecure-typefilterlevel-full.insecure-typefilterlevel-full)\n - [https://docs.microsoft.com/en-us/dotnet/api/system.runtime.serialization.formatters.typefilterlevel?view=net-6.0](https://docs.microsoft.com/en-us/dotnet/api/system.runtime.serialization.formatters.typefilterlevel?view=net-6.0)\n - [https://www.synacktiv.com/en/publications/izi-izi-pwn2own-ics-miami.html](https://www.synacktiv.com/en/publications/izi-izi-pwn2own-ics-miami.html)\n", + "text": "Using a .NET remoting service can lead to RCE, even if you try to configure TypeFilterLevel. Recommended to switch from .NET Remoting to WCF https://docs.microsoft.com/en-us/dotnet/framework/wcf/migrating-from-net-remoting-to-wcf" + }, + "helpUri": "https://semgrep.dev/r/csharp.lang.security.insecure-deserialization.insecure-typefilterlevel-full.insecure-typefilterlevel-full", + "id": "csharp.lang.security.insecure-deserialization.insecure-typefilterlevel-full.insecure-typefilterlevel-full", + "name": "csharp.lang.security.insecure-deserialization.insecure-typefilterlevel-full.insecure-typefilterlevel-full", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-502: Deserialization of Untrusted Data", + "LOW CONFIDENCE", + "OWASP-A08:2017 - Insecure Deserialization", + "OWASP-A08:2021 - Software and Data Integrity Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: csharp.lang.security.insecure-deserialization.insecure-typefilterlevel-full.insecure-typefilterlevel-full" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "A formatted or concatenated string was detected as input to a java.lang.Runtime call. This is dangerous if a variable is controlled by user input and could result in a command injection. Ensure your variables are not controlled by users or sufficiently sanitized." + }, + "help": { + "markdown": "A formatted or concatenated string was detected as input to a java.lang.Runtime call. This is dangerous if a variable is controlled by user input and could result in a command injection. Ensure your variables are not controlled by users or sufficiently sanitized.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/kotlin.lang.security.command-injection-formatted-runtime-call.command-injection-formatted-runtime-call)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "A formatted or concatenated string was detected as input to a java.lang.Runtime call. This is dangerous if a variable is controlled by user input and could result in a command injection. Ensure your variables are not controlled by users or sufficiently sanitized." + }, + "helpUri": "https://semgrep.dev/r/kotlin.lang.security.command-injection-formatted-runtime-call.command-injection-formatted-runtime-call", + "id": "kotlin.lang.security.command-injection-formatted-runtime-call.command-injection-formatted-runtime-call", + "name": "kotlin.lang.security.command-injection-formatted-runtime-call.command-injection-formatted-runtime-call", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')", + "LOW CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: kotlin.lang.security.command-injection-formatted-runtime-call.command-injection-formatted-runtime-call" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Hardcoded JWT secret or private key is used. This is a Insufficiently Protected Credentials weakness: https://cwe.mitre.org/data/definitions/522.html Consider using an appropriate security mechanism to protect the credentials (e.g. keeping secrets in environment variables)" + }, + "help": { + "markdown": "Hardcoded JWT secret or private key is used. This is a Insufficiently Protected Credentials weakness: https://cwe.mitre.org/data/definitions/522.html Consider using an appropriate security mechanism to protect the credentials (e.g. keeping secrets in environment variables)\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.jwt.security.jwt-hardcode.jwt-python-hardcoded-secret)\n - [https://semgrep.dev/blog/2020/hardcoded-secrets-unverified-tokens-and-other-common-jwt-mistakes/](https://semgrep.dev/blog/2020/hardcoded-secrets-unverified-tokens-and-other-common-jwt-mistakes/)\n", + "text": "Hardcoded JWT secret or private key is used. This is a Insufficiently Protected Credentials weakness: https://cwe.mitre.org/data/definitions/522.html Consider using an appropriate security mechanism to protect the credentials (e.g. keeping secrets in environment variables)" + }, + "helpUri": "https://semgrep.dev/r/python.jwt.security.jwt-hardcode.jwt-python-hardcoded-secret", + "id": "python.jwt.security.jwt-hardcode.jwt-python-hardcoded-secret", + "name": "python.jwt.security.jwt-hardcode.jwt-python-hardcoded-secret", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-522: Insufficiently Protected Credentials", + "HIGH CONFIDENCE", + "OWASP-A02:2017 - Broken Authentication", + "OWASP-A04:2021 - Insecure Design", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.jwt.security.jwt-hardcode.jwt-python-hardcoded-secret" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "If unverified user data can reach the `phantom` methods it can result in Server-Side Request Forgery vulnerabilities" + }, + "help": { + "markdown": "If unverified user data can reach the `phantom` methods it can result in Server-Side Request Forgery vulnerabilities\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.express.security.express-phantom-injection.express-phantom-injection)\n - [https://phantomjs.org/page-automation.html](https://phantomjs.org/page-automation.html)\n", + "text": "If unverified user data can reach the `phantom` methods it can result in Server-Side Request Forgery vulnerabilities" + }, + "helpUri": "https://semgrep.dev/r/javascript.express.security.express-phantom-injection.express-phantom-injection", + "id": "javascript.express.security.express-phantom-injection.express-phantom-injection", + "name": "javascript.express.security.express-phantom-injection.express-phantom-injection", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-918: Server-Side Request Forgery (SSRF)", + "MEDIUM CONFIDENCE", + "OWASP-A10:2021 - Server-Side Request Forgery (SSRF)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.express.security.express-phantom-injection.express-phantom-injection" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Checks for unsafe use of Object#send, try, __send__, and public_send. These only account for unsafe use of a method, not target. This can lead to arbitrary calling of exit, along with arbitrary code execution. Please be sure to sanitize input in order to avoid this." + }, + "help": { + "markdown": "Checks for unsafe use of Object#send, try, __send__, and public_send. These only account for unsafe use of a method, not target. This can lead to arbitrary calling of exit, along with arbitrary code execution. Please be sure to sanitize input in order to avoid this.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ruby.lang.security.no-send.bad-send)\n - [https://github.com/presidentbeef/brakeman/blob/main/lib/brakeman/checks/check_send.rb](https://github.com/presidentbeef/brakeman/blob/main/lib/brakeman/checks/check_send.rb)\n - [https://the.igreque.info/posts/2016/01-object-send-considered-harmful-en.html](https://the.igreque.info/posts/2016/01-object-send-considered-harmful-en.html)\n", + "text": "Checks for unsafe use of Object#send, try, __send__, and public_send. These only account for unsafe use of a method, not target. This can lead to arbitrary calling of exit, along with arbitrary code execution. Please be sure to sanitize input in order to avoid this." + }, + "helpUri": "https://semgrep.dev/r/ruby.lang.security.no-send.bad-send", + "id": "ruby.lang.security.no-send.bad-send", + "name": "ruby.lang.security.no-send.bad-send", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-94: Improper Control of Generation of Code ('Code Injection')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: ruby.lang.security.no-send.bad-send" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Found a formatted template string passed to 'template. HTMLAttr()'. 'template.HTMLAttr()' does not escape contents. Be absolutely sure there is no user-controlled data in this template or validate and sanitize the data before passing it into the template." + }, + "help": { + "markdown": "Found a formatted template string passed to 'template. HTMLAttr()'. 'template.HTMLAttr()' does not escape contents. Be absolutely sure there is no user-controlled data in this template or validate and sanitize the data before passing it into the template.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/go.lang.security.audit.net.unescaped-data-in-htmlattr.unescaped-data-in-htmlattr)\n - [https://golang.org/pkg/html/template/#HTMLAttr](https://golang.org/pkg/html/template/#HTMLAttr)\n", + "text": "Found a formatted template string passed to 'template. HTMLAttr()'. 'template.HTMLAttr()' does not escape contents. Be absolutely sure there is no user-controlled data in this template or validate and sanitize the data before passing it into the template." + }, + "helpUri": "https://semgrep.dev/r/go.lang.security.audit.net.unescaped-data-in-htmlattr.unescaped-data-in-htmlattr", + "id": "go.lang.security.audit.net.unescaped-data-in-htmlattr.unescaped-data-in-htmlattr", + "name": "go.lang.security.audit.net.unescaped-data-in-htmlattr.unescaped-data-in-htmlattr", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: go.lang.security.audit.net.unescaped-data-in-htmlattr.unescaped-data-in-htmlattr" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected a template variable used in an anchor tag with the 'href' attribute. This allows a malicious actor to input the 'javascript:' URI and is subject to cross- site scripting (XSS) attacks. Use 'url_for()' to safely generate a URL. You may also consider setting the Content Security Policy (CSP) header." + }, + "help": { + "markdown": "Detected a template variable used in an anchor tag with the 'href' attribute. This allows a malicious actor to input the 'javascript:' URI and is subject to cross- site scripting (XSS) attacks. Use 'url_for()' to safely generate a URL. You may also consider setting the Content Security Policy (CSP) header.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.flask.security.xss.audit.template-href-var.template-href-var)\n - [https://flask.palletsprojects.com/en/1.1.x/security/#cross-site-scripting-xss](https://flask.palletsprojects.com/en/1.1.x/security/#cross-site-scripting-xss)\n - [https://content-security-policy.com/](https://content-security-policy.com/)\n", + "text": "Detected a template variable used in an anchor tag with the 'href' attribute. This allows a malicious actor to input the 'javascript:' URI and is subject to cross- site scripting (XSS) attacks. Use 'url_for()' to safely generate a URL. You may also consider setting the Content Security Policy (CSP) header." + }, + "helpUri": "https://semgrep.dev/r/python.flask.security.xss.audit.template-href-var.template-href-var", + "id": "python.flask.security.xss.audit.template-href-var.template-href-var", + "name": "python.flask.security.xss.audit.template-href-var.template-href-var", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.flask.security.xss.audit.template-href-var.template-href-var" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected a hardcoded hmac key. Avoid hardcoding secrets and consider using an alternate option such as reading the secret from a config file or using an environment variable." + }, + "help": { + "markdown": "Detected a hardcoded hmac key. Avoid hardcoding secrets and consider using an alternate option such as reading the secret from a config file or using an environment variable.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.lang.security.audit.hardcoded-hmac-key.hardcoded-hmac-key)\n - [https://rules.sonarsource.com/javascript/RSPEC-2068](https://rules.sonarsource.com/javascript/RSPEC-2068)\n - [https://cheatsheetseries.owasp.org/cheatsheets/Cryptographic_Storage_Cheat_Sheet.html#key-management](https://cheatsheetseries.owasp.org/cheatsheets/Cryptographic_Storage_Cheat_Sheet.html#key-management)\n", + "text": "Detected a hardcoded hmac key. Avoid hardcoding secrets and consider using an alternate option such as reading the secret from a config file or using an environment variable." + }, + "helpUri": "https://semgrep.dev/r/javascript.lang.security.audit.hardcoded-hmac-key.hardcoded-hmac-key", + "id": "javascript.lang.security.audit.hardcoded-hmac-key.hardcoded-hmac-key", + "name": "javascript.lang.security.audit.hardcoded-hmac-key.hardcoded-hmac-key", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-798: Use of Hard-coded Credentials", + "LOW CONFIDENCE", + "OWASP-A07:2021 - Identification and Authentication Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.lang.security.audit.hardcoded-hmac-key.hardcoded-hmac-key" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Checks for lack of usage of the \"secure: true\" option when sending ftp requests through the nodejs ftp module. This leads to unencrypted traffic being sent to the ftp server. There are other options such as \"implicit\" that still does not encrypt all traffic. ftp is the most utilized npm ftp module." + }, + "help": { + "markdown": "Checks for lack of usage of the \"secure: true\" option when sending ftp requests through the nodejs ftp module. This leads to unencrypted traffic being sent to the ftp server. There are other options such as \"implicit\" that still does not encrypt all traffic. ftp is the most utilized npm ftp module.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/problem-based-packs.insecure-transport.js-node.ftp-request.ftp-request)\n - [https://www.npmjs.com/package/ftp](https://www.npmjs.com/package/ftp)\n - [https://openbase.io/js/ftp](https://openbase.io/js/ftp)\n", + "text": "Checks for lack of usage of the \"secure: true\" option when sending ftp requests through the nodejs ftp module. This leads to unencrypted traffic being sent to the ftp server. There are other options such as \"implicit\" that still does not encrypt all traffic. ftp is the most utilized npm ftp module." + }, + "helpUri": "https://semgrep.dev/r/problem-based-packs.insecure-transport.js-node.ftp-request.ftp-request", + "id": "problem-based-packs.insecure-transport.js-node.ftp-request.ftp-request", + "name": "problem-based-packs.insecure-transport.js-node.ftp-request.ftp-request", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-319: Cleartext Transmission of Sensitive Information", + "MEDIUM CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: problem-based-packs.insecure-transport.js-node.ftp-request.ftp-request" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected directly writing or similar in 'http.ResponseWriter.write()'. This bypasses HTML escaping that prevents cross-site scripting vulnerabilities. Instead, use the 'html/template' package and render data using 'template.Execute()'." + }, + "help": { + "markdown": "Detected directly writing or similar in 'http.ResponseWriter.write()'. This bypasses HTML escaping that prevents cross-site scripting vulnerabilities. Instead, use the 'html/template' package and render data using 'template.Execute()'.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/go.lang.security.audit.xss.no-direct-write-to-responsewriter.no-direct-write-to-responsewriter)\n - [https://blogtitle.github.io/robn-go-security-pearls-cross-site-scripting-xss/](https://blogtitle.github.io/robn-go-security-pearls-cross-site-scripting-xss/)\n", + "text": "Detected directly writing or similar in 'http.ResponseWriter.write()'. This bypasses HTML escaping that prevents cross-site scripting vulnerabilities. Instead, use the 'html/template' package and render data using 'template.Execute()'." + }, + "helpUri": "https://semgrep.dev/r/go.lang.security.audit.xss.no-direct-write-to-responsewriter.no-direct-write-to-responsewriter", + "id": "go.lang.security.audit.xss.no-direct-write-to-responsewriter.no-direct-write-to-responsewriter", + "name": "go.lang.security.audit.xss.no-direct-write-to-responsewriter.no-direct-write-to-responsewriter", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: go.lang.security.audit.xss.no-direct-write-to-responsewriter.no-direct-write-to-responsewriter" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Calling `$WG.Wait()` inside a loop blocks the call to `$WG.Done()`" + }, + "help": { + "markdown": "Calling `$WG.Wait()` inside a loop blocks the call to `$WG.Done()`\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/trailofbits.go.waitgroup-wait-inside-loop.waitgroup-wait-inside-loop)\n - [https://go101.org/article/concurrent-common-mistakes.html](https://go101.org/article/concurrent-common-mistakes.html)\n", + "text": "Calling `$WG.Wait()` inside a loop blocks the call to `$WG.Done()`" + }, + "helpUri": "https://semgrep.dev/r/trailofbits.go.waitgroup-wait-inside-loop.waitgroup-wait-inside-loop", + "id": "trailofbits.go.waitgroup-wait-inside-loop.waitgroup-wait-inside-loop", + "name": "trailofbits.go.waitgroup-wait-inside-loop.waitgroup-wait-inside-loop", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-667: Improper Locking", + "MEDIUM CONFIDENCE", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: trailofbits.go.waitgroup-wait-inside-loop.waitgroup-wait-inside-loop" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Default session middleware settings: `domain` not set. It indicates the domain of the cookie; use it to compare against the domain of the server in which the URL is being requested. If they match, then check the path attribute next." + }, + "help": { + "markdown": "Default session middleware settings: `domain` not set. It indicates the domain of the cookie; use it to compare against the domain of the server in which the URL is being requested. If they match, then check the path attribute next.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.express.security.audit.express-cookie-settings.express-cookie-session-no-domain)\n - [https://owasp.org/Top10/A04_2021-Insecure_Design](https://owasp.org/Top10/A04_2021-Insecure_Design)\n", + "text": "Default session middleware settings: `domain` not set. It indicates the domain of the cookie; use it to compare against the domain of the server in which the URL is being requested. If they match, then check the path attribute next." + }, + "helpUri": "https://semgrep.dev/r/javascript.express.security.audit.express-cookie-settings.express-cookie-session-no-domain", + "id": "javascript.express.security.audit.express-cookie-settings.express-cookie-session-no-domain", + "name": "javascript.express.security.audit.express-cookie-settings.express-cookie-session-no-domain", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-522: Insufficiently Protected Credentials", + "MEDIUM CONFIDENCE", + "OWASP-A02:2017 - Broken Authentication", + "OWASP-A04:2021 - Insecure Design", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.express.security.audit.express-cookie-settings.express-cookie-session-no-domain" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Variable '$VAR' was freed twice. This can lead to undefined behavior." + }, + "help": { + "markdown": "Variable '$VAR' was freed twice. This can lead to undefined behavior.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/c.lang.security.double-free.double-free)\n - [https://cwe.mitre.org/data/definitions/415.html](https://cwe.mitre.org/data/definitions/415.html)\n - [https://owasp.org/www-community/vulnerabilities/Doubly_freeing_memory](https://owasp.org/www-community/vulnerabilities/Doubly_freeing_memory)\n", + "text": "Variable '$VAR' was freed twice. This can lead to undefined behavior." + }, + "helpUri": "https://semgrep.dev/r/c.lang.security.double-free.double-free", + "id": "c.lang.security.double-free.double-free", + "name": "c.lang.security.double-free.double-free", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-415: Double Free", + "MEDIUM CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: c.lang.security.double-free.double-free" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected string concatenation with a non-literal variable in a pg Ruby SQL statement. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use parameterized queries or prepared statements instead. You can use parameterized queries like so: `conn.exec_params('SELECT $1 AS a, $2 AS b, $3 AS c', [1, 2, nil])` And you can use prepared statements with `exec_prepared`." + }, + "help": { + "markdown": "Detected string concatenation with a non-literal variable in a pg Ruby SQL statement. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use parameterized queries or prepared statements instead. You can use parameterized queries like so: `conn.exec_params('SELECT $1 AS a, $2 AS b, $3 AS c', [1, 2, nil])` And you can use prepared statements with `exec_prepared`.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ruby.rails.security.audit.sqli.ruby-pg-sqli.ruby-pg-sqli)\n - [https://www.rubydoc.info/gems/pg/PG/Connection](https://www.rubydoc.info/gems/pg/PG/Connection)\n", + "text": "Detected string concatenation with a non-literal variable in a pg Ruby SQL statement. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use parameterized queries or prepared statements instead. You can use parameterized queries like so: `conn.exec_params('SELECT $1 AS a, $2 AS b, $3 AS c', [1, 2, nil])` And you can use prepared statements with `exec_prepared`." + }, + "helpUri": "https://semgrep.dev/r/ruby.rails.security.audit.sqli.ruby-pg-sqli.ruby-pg-sqli", + "id": "ruby.rails.security.audit.sqli.ruby-pg-sqli.ruby-pg-sqli", + "name": "ruby.rails.security.audit.sqli.ruby-pg-sqli.ruby-pg-sqli", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')", + "MEDIUM CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: ruby.rails.security.audit.sqli.ruby-pg-sqli.ruby-pg-sqli" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected SQL statement that is tainted by `event` object. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use parameterized queries or prepared statements instead. You can use parameterized statements like so: `cursor.execute('SELECT * FROM projects WHERE status = %s', ('active'))`" + }, + "help": { + "markdown": "Detected SQL statement that is tainted by `event` object. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use parameterized queries or prepared statements instead. You can use parameterized statements like so: `cursor.execute('SELECT * FROM projects WHERE status = %s', ('active'))`\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.aws-lambda.security.mysql-sqli.mysql-sqli)\n - [https://dev.mysql.com/doc/connector-python/en/connector-python-api-mysqlcursor-execute.html](https://dev.mysql.com/doc/connector-python/en/connector-python-api-mysqlcursor-execute.html)\n - [https://dev.mysql.com/doc/connector-python/en/connector-python-api-mysqlcursor-executemany.html](https://dev.mysql.com/doc/connector-python/en/connector-python-api-mysqlcursor-executemany.html)\n", + "text": "Detected SQL statement that is tainted by `event` object. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use parameterized queries or prepared statements instead. You can use parameterized statements like so: `cursor.execute('SELECT * FROM projects WHERE status = %s', ('active'))`" + }, + "helpUri": "https://semgrep.dev/r/python.aws-lambda.security.mysql-sqli.mysql-sqli", + "id": "python.aws-lambda.security.mysql-sqli.mysql-sqli", + "name": "python.aws-lambda.security.mysql-sqli.mysql-sqli", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')", + "MEDIUM CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.aws-lambda.security.mysql-sqli.mysql-sqli" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Twilio API Key detected" + }, + "help": { + "markdown": "Twilio API Key detected\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/generic.secrets.security.detected-twilio-api-key.detected-twilio-api-key)\n - [https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures](https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures)\n", + "text": "Twilio API Key detected" + }, + "helpUri": "https://semgrep.dev/r/generic.secrets.security.detected-twilio-api-key.detected-twilio-api-key", + "id": "generic.secrets.security.detected-twilio-api-key.detected-twilio-api-key", + "name": "generic.secrets.security.detected-twilio-api-key.detected-twilio-api-key", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-798: Use of Hard-coded Credentials", + "LOW CONFIDENCE", + "OWASP-A07:2021 - Identification and Authentication Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: generic.secrets.security.detected-twilio-api-key.detected-twilio-api-key" + } + }, + { + "defaultConfiguration": { + "level": "note" + }, + "fullDescription": { + "text": "Detected a request using 'http://'. This request will be unencrypted, and attackers could listen into traffic on the network and be able to obtain sensitive information. Use 'https://' instead." + }, + "help": { + "markdown": "Detected a request using 'http://'. This request will be unencrypted, and attackers could listen into traffic on the network and be able to obtain sensitive information. Use 'https://' instead.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.lang.security.audit.insecure-transport.requests.request-with-http.request-with-http)\n - [https://owasp.org/Top10/A02_2021-Cryptographic_Failures](https://owasp.org/Top10/A02_2021-Cryptographic_Failures)\n", + "text": "Detected a request using 'http://'. This request will be unencrypted, and attackers could listen into traffic on the network and be able to obtain sensitive information. Use 'https://' instead." + }, + "helpUri": "https://semgrep.dev/r/python.lang.security.audit.insecure-transport.requests.request-with-http.request-with-http", + "id": "python.lang.security.audit.insecure-transport.requests.request-with-http.request-with-http", + "name": "python.lang.security.audit.insecure-transport.requests.request-with-http.request-with-http", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-319: Cleartext Transmission of Sensitive Information", + "MEDIUM CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.lang.security.audit.insecure-transport.requests.request-with-http.request-with-http" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "The 'FTP' class sends information unencrypted. Consider using the 'FTP_TLS' class instead." + }, + "help": { + "markdown": "The 'FTP' class sends information unencrypted. Consider using the 'FTP_TLS' class instead.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.lang.security.audit.insecure-transport.ftplib.use-ftp-tls.use-ftp-tls)\n - [https://docs.python.org/3/library/ftplib.html#ftplib.FTP_TLS](https://docs.python.org/3/library/ftplib.html#ftplib.FTP_TLS)\n", + "text": "The 'FTP' class sends information unencrypted. Consider using the 'FTP_TLS' class instead." + }, + "helpUri": "https://semgrep.dev/r/python.lang.security.audit.insecure-transport.ftplib.use-ftp-tls.use-ftp-tls", + "id": "python.lang.security.audit.insecure-transport.ftplib.use-ftp-tls.use-ftp-tls", + "name": "python.lang.security.audit.insecure-transport.ftplib.use-ftp-tls.use-ftp-tls", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-319: Cleartext Transmission of Sensitive Information", + "LOW CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.lang.security.audit.insecure-transport.ftplib.use-ftp-tls.use-ftp-tls" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Checks for configuration setting of force_ssl to false. Force_ssl forces usage of HTTPS, which could lead to network interception of unencrypted application traffic. To fix, set config.force_ssl = true." + }, + "help": { + "markdown": "Checks for configuration setting of force_ssl to false. Force_ssl forces usage of HTTPS, which could lead to network interception of unencrypted application traffic. To fix, set config.force_ssl = true.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ruby.lang.security.force-ssl-false.force-ssl-false)\n - [https://github.com/presidentbeef/brakeman/blob/main/lib/brakeman/checks/check_force_ssl.rb](https://github.com/presidentbeef/brakeman/blob/main/lib/brakeman/checks/check_force_ssl.rb)\n", + "text": "Checks for configuration setting of force_ssl to false. Force_ssl forces usage of HTTPS, which could lead to network interception of unencrypted application traffic. To fix, set config.force_ssl = true." + }, + "helpUri": "https://semgrep.dev/r/ruby.lang.security.force-ssl-false.force-ssl-false", + "id": "ruby.lang.security.force-ssl-false.force-ssl-false", + "name": "ruby.lang.security.force-ssl-false.force-ssl-false", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-311: Missing Encryption of Sensitive Data", + "HIGH CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "OWASP-A04:2021 - Insecure Design", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: ruby.lang.security.force-ssl-false.force-ssl-false" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected a template block where autoescaping is explicitly disabled with '{% autoescape off %}'. This allows rendering of raw HTML in this segment. Turn autoescaping on to prevent cross-site scripting (XSS). If you must do this, consider instead, using `mark_safe` in Python code." + }, + "help": { + "markdown": "Detected a template block where autoescaping is explicitly disabled with '{% autoescape off %}'. This allows rendering of raw HTML in this segment. Turn autoescaping on to prevent cross-site scripting (XSS). If you must do this, consider instead, using `mark_safe` in Python code.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.django.security.audit.xss.template-autoescape-off.template-autoescape-off)\n - [https://docs.djangoproject.com/en/3.1/ref/templates/builtins/#autoescape](https://docs.djangoproject.com/en/3.1/ref/templates/builtins/#autoescape)\n", + "text": "Detected a template block where autoescaping is explicitly disabled with '{% autoescape off %}'. This allows rendering of raw HTML in this segment. Turn autoescaping on to prevent cross-site scripting (XSS). If you must do this, consider instead, using `mark_safe` in Python code." + }, + "helpUri": "https://semgrep.dev/r/python.django.security.audit.xss.template-autoescape-off.template-autoescape-off", + "id": "python.django.security.audit.xss.template-autoescape-off.template-autoescape-off", + "name": "python.django.security.audit.xss.template-autoescape-off.template-autoescape-off", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.django.security.audit.xss.template-autoescape-off.template-autoescape-off" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Make sure that unverified user data can not reach `vm2`." + }, + "help": { + "markdown": "Make sure that unverified user data can not reach `vm2`.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.express.security.express-vm2-injection.express-vm2-injection)\n - [https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_Cheat_Sheet.html](https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_Cheat_Sheet.html)\n", + "text": "Make sure that unverified user data can not reach `vm2`." + }, + "helpUri": "https://semgrep.dev/r/javascript.express.security.express-vm2-injection.express-vm2-injection", + "id": "javascript.express.security.express-vm2-injection.express-vm2-injection", + "name": "javascript.express.security.express-vm2-injection.express-vm2-injection", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-94: Improper Control of Generation of Code ('Code Injection')", + "MEDIUM CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.express.security.express-vm2-injection.express-vm2-injection" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "This rule is deprecated." + }, + "help": { + "markdown": "This rule is deprecated.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ruby.rails.security.injection.rails-check-json-parsing-rce.rails-check-json-parsing-rce)\n - [https://nvd.nist.gov/vuln/detail/CVE-2013-0333](https://nvd.nist.gov/vuln/detail/CVE-2013-0333)\n - [https://groups.google.com/g/rubyonrails-security/c/1h2DR63ViGo](https://groups.google.com/g/rubyonrails-security/c/1h2DR63ViGo)\n", + "text": "This rule is deprecated." + }, + "helpUri": "https://semgrep.dev/r/ruby.rails.security.injection.rails-check-json-parsing-rce.rails-check-json-parsing-rce", + "id": "ruby.rails.security.injection.rails-check-json-parsing-rce.rails-check-json-parsing-rce", + "name": "ruby.rails.security.injection.rails-check-json-parsing-rce.rails-check-json-parsing-rce", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: ruby.rails.security.injection.rails-check-json-parsing-rce.rails-check-json-parsing-rce" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "AWS Secret Access Key detected" + }, + "help": { + "markdown": "AWS Secret Access Key detected\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/generic.secrets.security.detected-aws-secret-access-key.detected-aws-secret-access-key)\n - [https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures](https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures)\n", + "text": "AWS Secret Access Key detected" + }, + "helpUri": "https://semgrep.dev/r/generic.secrets.security.detected-aws-secret-access-key.detected-aws-secret-access-key", + "id": "generic.secrets.security.detected-aws-secret-access-key.detected-aws-secret-access-key", + "name": "generic.secrets.security.detected-aws-secret-access-key.detected-aws-secret-access-key", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-798: Use of Hard-coded Credentials", + "LOW CONFIDENCE", + "OWASP-A07:2021 - Identification and Authentication Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: generic.secrets.security.detected-aws-secret-access-key.detected-aws-secret-access-key" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Found user data in a call to 'exec'. This is extremely dangerous because it can enable an attacker to execute arbitrary remote code on the system. Instead, refactor your code to not use 'eval' and instead use a safe library for the specific functionality you need." + }, + "help": { + "markdown": "Found user data in a call to 'exec'. This is extremely dangerous because it can enable an attacker to execute arbitrary remote code on the system. Instead, refactor your code to not use 'eval' and instead use a safe library for the specific functionality you need.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.django.security.injection.code.user-exec-format-string.user-exec-format-string)\n - [https://owasp.org/www-community/attacks/Code_Injection](https://owasp.org/www-community/attacks/Code_Injection)\n", + "text": "Found user data in a call to 'exec'. This is extremely dangerous because it can enable an attacker to execute arbitrary remote code on the system. Instead, refactor your code to not use 'eval' and instead use a safe library for the specific functionality you need." + }, + "helpUri": "https://semgrep.dev/r/python.django.security.injection.code.user-exec-format-string.user-exec-format-string", + "id": "python.django.security.injection.code.user-exec-format-string.user-exec-format-string", + "name": "python.django.security.injection.code.user-exec-format-string.user-exec-format-string", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')", + "MEDIUM CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.django.security.injection.code.user-exec-format-string.user-exec-format-string" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected a template variable used in a script tag. Although template variables are HTML escaped, HTML escaping does not always prevent cross-site scripting (XSS) attacks when used directly in JavaScript. If you need this data on the rendered page, consider placing it in the HTML portion (outside of a script tag). Alternatively, use a JavaScript-specific encoder, such as the one available in OWASP ESAPI." + }, + "help": { + "markdown": "Detected a template variable used in a script tag. Although template variables are HTML escaped, HTML escaping does not always prevent cross-site scripting (XSS) attacks when used directly in JavaScript. If you need this data on the rendered page, consider placing it in the HTML portion (outside of a script tag). Alternatively, use a JavaScript-specific encoder, such as the one available in OWASP ESAPI.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.express.security.audit.xss.pug.var-in-script-tag.var-in-script-tag)\n - [https://www.veracode.com/blog/secure-development/nodejs-template-engines-why-default-encoders-are-not-enough](https://www.veracode.com/blog/secure-development/nodejs-template-engines-why-default-encoders-are-not-enough)\n - [https://github.com/ESAPI/owasp-esapi-js](https://github.com/ESAPI/owasp-esapi-js)\n", + "text": "Detected a template variable used in a script tag. Although template variables are HTML escaped, HTML escaping does not always prevent cross-site scripting (XSS) attacks when used directly in JavaScript. If you need this data on the rendered page, consider placing it in the HTML portion (outside of a script tag). Alternatively, use a JavaScript-specific encoder, such as the one available in OWASP ESAPI." + }, + "helpUri": "https://semgrep.dev/r/javascript.express.security.audit.xss.pug.var-in-script-tag.var-in-script-tag", + "id": "javascript.express.security.audit.xss.pug.var-in-script-tag.var-in-script-tag", + "name": "javascript.express.security.audit.xss.pug.var-in-script-tag.var-in-script-tag", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.express.security.audit.xss.pug.var-in-script-tag.var-in-script-tag" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Untrusted user input in {url: ...} can result in Open Redirect vulnerability." + }, + "help": { + "markdown": "Untrusted user input in {url: ...} can result in Open Redirect vulnerability.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/typescript.nestjs.security.audit.nestjs-open-redirect.nestjs-open-redirect)\n - [https://owasp.org/Top10/A01_2021-Broken_Access_Control](https://owasp.org/Top10/A01_2021-Broken_Access_Control)\n", + "text": "Untrusted user input in {url: ...} can result in Open Redirect vulnerability." + }, + "helpUri": "https://semgrep.dev/r/typescript.nestjs.security.audit.nestjs-open-redirect.nestjs-open-redirect", + "id": "typescript.nestjs.security.audit.nestjs-open-redirect.nestjs-open-redirect", + "name": "typescript.nestjs.security.audit.nestjs-open-redirect.nestjs-open-redirect", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-601: URL Redirection to Untrusted Site ('Open Redirect')", + "LOW CONFIDENCE", + "OWASP-A01:2021 - Broken Access Control", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: typescript.nestjs.security.audit.nestjs-open-redirect.nestjs-open-redirect" + } + }, + { + "defaultConfiguration": { + "level": "note" + }, + "fullDescription": { + "text": "this rule has been deprecated." + }, + "help": { + "markdown": "this rule has been deprecated.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.chrome-remote-interface.security.audit.chrome-remote-interface-evaluate-injection.chrome-remote-interface-evaluate-injection)\n - [https://github.com/cyrus-and/chrome-remote-interface](https://github.com/cyrus-and/chrome-remote-interface)\n", + "text": "this rule has been deprecated." + }, + "helpUri": "https://semgrep.dev/r/javascript.chrome-remote-interface.security.audit.chrome-remote-interface-evaluate-injection.chrome-remote-interface-evaluate-injection", + "id": "javascript.chrome-remote-interface.security.audit.chrome-remote-interface-evaluate-injection.chrome-remote-interface-evaluate-injection", + "name": "javascript.chrome-remote-interface.security.audit.chrome-remote-interface-evaluate-injection.chrome-remote-interface-evaluate-injection", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-918: Server-Side Request Forgery (SSRF)", + "LOW CONFIDENCE", + "OWASP-A10:2021 - Server-Side Request Forgery (SSRF)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.chrome-remote-interface.security.audit.chrome-remote-interface-evaluate-injection.chrome-remote-interface-evaluate-injection" + } + }, + { + "defaultConfiguration": { + "level": "note" + }, + "fullDescription": { + "text": "Detected a request using 'http://'. This request will be unencrypted. Use 'https://' instead." + }, + "help": { + "markdown": "Detected a request using 'http://'. This request will be unencrypted. Use 'https://' instead.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.lang.security.audit.insecure-transport.requests.request-session-with-http.request-session-with-http)\n - [https://owasp.org/Top10/A02_2021-Cryptographic_Failures](https://owasp.org/Top10/A02_2021-Cryptographic_Failures)\n", + "text": "Detected a request using 'http://'. This request will be unencrypted. Use 'https://' instead." + }, + "helpUri": "https://semgrep.dev/r/python.lang.security.audit.insecure-transport.requests.request-session-with-http.request-session-with-http", + "id": "python.lang.security.audit.insecure-transport.requests.request-session-with-http.request-session-with-http", + "name": "python.lang.security.audit.insecure-transport.requests.request-session-with-http.request-session-with-http", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-319: Cleartext Transmission of Sensitive Information", + "MEDIUM CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.lang.security.audit.insecure-transport.requests.request-session-with-http.request-session-with-http" + } + }, + { + "defaultConfiguration": { + "level": "note" + }, + "fullDescription": { + "text": "Older Java application servers are vulnerable to HTTP response splitting, which may occur if an HTTP request can be injected with CRLF characters. This finding is reported for completeness; it is recommended to ensure your environment is not affected by testing this yourself." + }, + "help": { + "markdown": "Older Java application servers are vulnerable to HTTP response splitting, which may occur if an HTTP request can be injected with CRLF characters. This finding is reported for completeness; it is recommended to ensure your environment is not affected by testing this yourself.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.lang.security.audit.http-response-splitting.http-response-splitting)\n - [https://www.owasp.org/index.php/HTTP_Response_Splitting](https://www.owasp.org/index.php/HTTP_Response_Splitting)\n", + "text": "Older Java application servers are vulnerable to HTTP response splitting, which may occur if an HTTP request can be injected with CRLF characters. This finding is reported for completeness; it is recommended to ensure your environment is not affected by testing this yourself." + }, + "helpUri": "https://semgrep.dev/r/java.lang.security.audit.http-response-splitting.http-response-splitting", + "id": "java.lang.security.audit.http-response-splitting.http-response-splitting", + "name": "java.lang.security.audit.http-response-splitting.http-response-splitting", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-113: Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting')", + "MEDIUM CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.lang.security.audit.http-response-splitting.http-response-splitting" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "S3 bucket with public read access detected." + }, + "help": { + "markdown": "S3 bucket with public read access detected.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.lang.security.s3-public-read-bucket.s3-public-read-bucket)\n - [https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket#acl](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket#acl)\n - [https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl](https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl)\n", + "text": "S3 bucket with public read access detected." + }, + "helpUri": "https://semgrep.dev/r/terraform.lang.security.s3-public-read-bucket.s3-public-read-bucket", + "id": "terraform.lang.security.s3-public-read-bucket.s3-public-read-bucket", + "name": "terraform.lang.security.s3-public-read-bucket.s3-public-read-bucket", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-200: Exposure of Sensitive Information to an Unauthorized Actor", + "LOW CONFIDENCE", + "OWASP-A01:2021 - Broken Access Control", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.lang.security.s3-public-read-bucket.s3-public-read-bucket" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "DefaultHttpClient is deprecated. Further, it does not support connections using TLS1.2, which makes using DefaultHttpClient a security hazard. Use HttpClientBuilder instead." + }, + "help": { + "markdown": "DefaultHttpClient is deprecated. Further, it does not support connections using TLS1.2, which makes using DefaultHttpClient a security hazard. Use HttpClientBuilder instead.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.lang.security.audit.crypto.ssl.defaulthttpclient-is-deprecated.defaulthttpclient-is-deprecated)\n - [https://owasp.org/Top10/A02_2021-Cryptographic_Failures](https://owasp.org/Top10/A02_2021-Cryptographic_Failures)\n", + "text": "DefaultHttpClient is deprecated. Further, it does not support connections using TLS1.2, which makes using DefaultHttpClient a security hazard. Use HttpClientBuilder instead." + }, + "helpUri": "https://semgrep.dev/r/java.lang.security.audit.crypto.ssl.defaulthttpclient-is-deprecated.defaulthttpclient-is-deprecated", + "id": "java.lang.security.audit.crypto.ssl.defaulthttpclient-is-deprecated.defaulthttpclient-is-deprecated", + "name": "java.lang.security.audit.crypto.ssl.defaulthttpclient-is-deprecated.defaulthttpclient-is-deprecated", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-326: Inadequate Encryption Strength", + "LOW CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.lang.security.audit.crypto.ssl.defaulthttpclient-is-deprecated.defaulthttpclient-is-deprecated" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Ensure Kinesis video stream is encrypted at rest using KMS CMKs. CMKs gives you control over the encryption key in terms of access and rotation." + }, + "help": { + "markdown": "Ensure Kinesis video stream is encrypted at rest using KMS CMKs. CMKs gives you control over the encryption key in terms of access and rotation.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.aws.security.aws-kinesis-video-stream-encrypted-with-cmk.aws-kinesis-video-stream-encrypted-with-cmk)\n - [https://owasp.org/Top10/A02_2021-Cryptographic_Failures](https://owasp.org/Top10/A02_2021-Cryptographic_Failures)\n", + "text": "Ensure Kinesis video stream is encrypted at rest using KMS CMKs. CMKs gives you control over the encryption key in terms of access and rotation." + }, + "helpUri": "https://semgrep.dev/r/terraform.aws.security.aws-kinesis-video-stream-encrypted-with-cmk.aws-kinesis-video-stream-encrypted-with-cmk", + "id": "terraform.aws.security.aws-kinesis-video-stream-encrypted-with-cmk.aws-kinesis-video-stream-encrypted-with-cmk", + "name": "terraform.aws.security.aws-kinesis-video-stream-encrypted-with-cmk.aws-kinesis-video-stream-encrypted-with-cmk", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-320: CWE CATEGORY: Key Management Errors", + "LOW CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.aws.security.aws-kinesis-video-stream-encrypted-with-cmk.aws-kinesis-video-stream-encrypted-with-cmk" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected SQL statement that is tainted by `$EVENT` object. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use parameterized queries or prepared statements instead. You can use parameterized statements like so: `connection.query('SELECT $1 from table', [userinput])`" + }, + "help": { + "markdown": "Detected SQL statement that is tainted by `$EVENT` object. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use parameterized queries or prepared statements instead. You can use parameterized statements like so: `connection.query('SELECT $1 from table', [userinput])`\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.aws-lambda.security.pg-sqli.pg-sqli)\n - [https://node-postgres.com/features/queries](https://node-postgres.com/features/queries)\n", + "text": "Detected SQL statement that is tainted by `$EVENT` object. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use parameterized queries or prepared statements instead. You can use parameterized statements like so: `connection.query('SELECT $1 from table', [userinput])`" + }, + "helpUri": "https://semgrep.dev/r/javascript.aws-lambda.security.pg-sqli.pg-sqli", + "id": "javascript.aws-lambda.security.pg-sqli.pg-sqli", + "name": "javascript.aws-lambda.security.pg-sqli.pg-sqli", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')", + "MEDIUM CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.aws-lambda.security.pg-sqli.pg-sqli" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Potential empty AES encryption key. Using an empty key in AES encryption can result in weak encryption and may allow attackers to easily decrypt sensitive data. Ensure that a strong, non-empty key is used for AES encryption." + }, + "help": { + "markdown": "Potential empty AES encryption key. Using an empty key in AES encryption can result in weak encryption and may allow attackers to easily decrypt sensitive data. Ensure that a strong, non-empty key is used for AES encryption.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.cryptography.security.empty-aes-key.empty-aes-key)\n - [https://cwe.mitre.org/data/definitions/327.html](https://cwe.mitre.org/data/definitions/327.html)\n - [https://cwe.mitre.org/data/definitions/310.html](https://cwe.mitre.org/data/definitions/310.html)\n", + "text": "Potential empty AES encryption key. Using an empty key in AES encryption can result in weak encryption and may allow attackers to easily decrypt sensitive data. Ensure that a strong, non-empty key is used for AES encryption." + }, + "helpUri": "https://semgrep.dev/r/python.cryptography.security.empty-aes-key.empty-aes-key", + "id": "python.cryptography.security.empty-aes-key.empty-aes-key", + "name": "python.cryptography.security.empty-aes-key.empty-aes-key", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-310: Cryptographic Issues", + "CWE-327: Use of a Broken or Risky Cryptographic Algorithm", + "MEDIUM CONFIDENCE", + "OWASP-A6:2017 misconfiguration", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.cryptography.security.empty-aes-key.empty-aes-key" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected file permissions that are overly permissive (read, write, and execute). It is generally a bad practices to set overly permissive file permission such as read+write+exec for all users. If the file affected is a configuration, a binary, a script or sensitive data, it can lead to privilege escalation or information leakage. Instead, follow the principle of least privilege and give users only the permissions they need." + }, + "help": { + "markdown": "Detected file permissions that are overly permissive (read, write, and execute). It is generally a bad practices to set overly permissive file permission such as read+write+exec for all users. If the file affected is a configuration, a binary, a script or sensitive data, it can lead to privilege escalation or information leakage. Instead, follow the principle of least privilege and give users only the permissions they need.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.lang.security.audit.overly-permissive-file-permission.overly-permissive-file-permission)\n - [https://owasp.org/Top10/A01_2021-Broken_Access_Control](https://owasp.org/Top10/A01_2021-Broken_Access_Control)\n", + "text": "Detected file permissions that are overly permissive (read, write, and execute). It is generally a bad practices to set overly permissive file permission such as read+write+exec for all users. If the file affected is a configuration, a binary, a script or sensitive data, it can lead to privilege escalation or information leakage. Instead, follow the principle of least privilege and give users only the permissions they need." + }, + "helpUri": "https://semgrep.dev/r/java.lang.security.audit.overly-permissive-file-permission.overly-permissive-file-permission", + "id": "java.lang.security.audit.overly-permissive-file-permission.overly-permissive-file-permission", + "name": "java.lang.security.audit.overly-permissive-file-permission.overly-permissive-file-permission", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-276: Incorrect Default Permissions", + "LOW CONFIDENCE", + "OWASP-A01:2021 - Broken Access Control", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.lang.security.audit.overly-permissive-file-permission.overly-permissive-file-permission" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Encryption at rest is not enabled for the elastic search domain resource" + }, + "help": { + "markdown": "Encryption at rest is not enabled for the elastic search domain resource\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.lang.security.elastic-search-encryption-at-rest.elastic-search-encryption-at-rest)\n - [https://owasp.org/Top10/A04_2021-Insecure_Design](https://owasp.org/Top10/A04_2021-Insecure_Design)\n", + "text": "Encryption at rest is not enabled for the elastic search domain resource" + }, + "helpUri": "https://semgrep.dev/r/terraform.lang.security.elastic-search-encryption-at-rest.elastic-search-encryption-at-rest", + "id": "terraform.lang.security.elastic-search-encryption-at-rest.elastic-search-encryption-at-rest", + "name": "terraform.lang.security.elastic-search-encryption-at-rest.elastic-search-encryption-at-rest", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-311: Missing Encryption of Sensitive Data", + "LOW CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "OWASP-A04:2021 - Insecure Design", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.lang.security.elastic-search-encryption-at-rest.elastic-search-encryption-at-rest" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "The AWS Athena Work Group is unencrypted. The AWS KMS encryption key protects backups in the work group. To create your own, create a aws_kms_key resource or use the ARN string of a key in your account." + }, + "help": { + "markdown": "The AWS Athena Work Group is unencrypted. The AWS KMS encryption key protects backups in the work group. To create your own, create a aws_kms_key resource or use the ARN string of a key in your account.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.aws.security.aws-athena-workgroup-unencrypted.aws-athena-workgroup-unencrypted)\n - [https://owasp.org/Top10/A04_2021-Insecure_Design](https://owasp.org/Top10/A04_2021-Insecure_Design)\n", + "text": "The AWS Athena Work Group is unencrypted. The AWS KMS encryption key protects backups in the work group. To create your own, create a aws_kms_key resource or use the ARN string of a key in your account." + }, + "helpUri": "https://semgrep.dev/r/terraform.aws.security.aws-athena-workgroup-unencrypted.aws-athena-workgroup-unencrypted", + "id": "terraform.aws.security.aws-athena-workgroup-unencrypted.aws-athena-workgroup-unencrypted", + "name": "terraform.aws.security.aws-athena-workgroup-unencrypted.aws-athena-workgroup-unencrypted", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-311: Missing Encryption of Sensitive Data", + "LOW CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "OWASP-A04:2021 - Insecure Design", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.aws.security.aws-athena-workgroup-unencrypted.aws-athena-workgroup-unencrypted" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected Blowfish cipher algorithm which is considered insecure. This algorithm is not cryptographically secure and can be reversed easily. Use AES instead." + }, + "help": { + "markdown": "Detected Blowfish cipher algorithm which is considered insecure. This algorithm is not cryptographically secure and can be reversed easily. Use AES instead.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.pycryptodome.security.insecure-cipher-algorithm-blowfish.insecure-cipher-algorithm-blowfish)\n - [https://stackoverflow.com/questions/1135186/whats-wrong-with-xor-encryption](https://stackoverflow.com/questions/1135186/whats-wrong-with-xor-encryption)\n", + "text": "Detected Blowfish cipher algorithm which is considered insecure. This algorithm is not cryptographically secure and can be reversed easily. Use AES instead." + }, + "helpUri": "https://semgrep.dev/r/python.pycryptodome.security.insecure-cipher-algorithm-blowfish.insecure-cipher-algorithm-blowfish", + "id": "python.pycryptodome.security.insecure-cipher-algorithm-blowfish.insecure-cipher-algorithm-blowfish", + "name": "python.pycryptodome.security.insecure-cipher-algorithm-blowfish.insecure-cipher-algorithm-blowfish", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-327: Use of a Broken or Risky Cryptographic Algorithm", + "MEDIUM CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.pycryptodome.security.insecure-cipher-algorithm-blowfish.insecure-cipher-algorithm-blowfish" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "A expression is built with a dynamic value. The source of the value(s) should be verified to avoid that unfiltered values fall into this risky code evaluation." + }, + "help": { + "markdown": "A expression is built with a dynamic value. The source of the value(s) should be verified to avoid that unfiltered values fall into this risky code evaluation.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.lang.security.audit.dangerous-groovy-shell.dangerous-groovy-shell)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "A expression is built with a dynamic value. The source of the value(s) should be verified to avoid that unfiltered values fall into this risky code evaluation." + }, + "helpUri": "https://semgrep.dev/r/java.lang.security.audit.dangerous-groovy-shell.dangerous-groovy-shell", + "id": "java.lang.security.audit.dangerous-groovy-shell.dangerous-groovy-shell", + "name": "java.lang.security.audit.dangerous-groovy-shell.dangerous-groovy-shell", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-94: Improper Control of Generation of Code ('Code Injection')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.lang.security.audit.dangerous-groovy-shell.dangerous-groovy-shell" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected string concatenation with a non-literal variable in a Doctrine DBAL query method. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use parameterized queries or prepared statements instead." + }, + "help": { + "markdown": "Detected string concatenation with a non-literal variable in a Doctrine DBAL query method. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use parameterized queries or prepared statements instead.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/php.doctrine.security.audit.doctrine-dbal-dangerous-query.doctrine-dbal-dangerous-query)\n - [https://www.doctrine-project.org/projects/doctrine-dbal/en/current/reference/security.html](https://www.doctrine-project.org/projects/doctrine-dbal/en/current/reference/security.html)\n - [https://cheatsheetseries.owasp.org/cheatsheets/SQL_Injection_Prevention_Cheat_Sheet.html](https://cheatsheetseries.owasp.org/cheatsheets/SQL_Injection_Prevention_Cheat_Sheet.html)\n", + "text": "Detected string concatenation with a non-literal variable in a Doctrine DBAL query method. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use parameterized queries or prepared statements instead." + }, + "helpUri": "https://semgrep.dev/r/php.doctrine.security.audit.doctrine-dbal-dangerous-query.doctrine-dbal-dangerous-query", + "id": "php.doctrine.security.audit.doctrine-dbal-dangerous-query.doctrine-dbal-dangerous-query", + "name": "php.doctrine.security.audit.doctrine-dbal-dangerous-query.doctrine-dbal-dangerous-query", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')", + "LOW CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: php.doctrine.security.audit.doctrine-dbal-dangerous-query.doctrine-dbal-dangerous-query" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected a formatted string in a SQL statement. This could lead to SQL injection if variables in the SQL statement are not properly sanitized. Use a prepared statements (java.sql.PreparedStatement) instead. You can obtain a PreparedStatement using 'connection.prepareStatement'." + }, + "help": { + "markdown": "Detected a formatted string in a SQL statement. This could lead to SQL injection if variables in the SQL statement are not properly sanitized. Use a prepared statements (java.sql.PreparedStatement) instead. You can obtain a PreparedStatement using 'connection.prepareStatement'.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.lang.security.audit.sqli.turbine-sqli.turbine-sqli)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "Detected a formatted string in a SQL statement. This could lead to SQL injection if variables in the SQL statement are not properly sanitized. Use a prepared statements (java.sql.PreparedStatement) instead. You can obtain a PreparedStatement using 'connection.prepareStatement'." + }, + "helpUri": "https://semgrep.dev/r/java.lang.security.audit.sqli.turbine-sqli.turbine-sqli", + "id": "java.lang.security.audit.sqli.turbine-sqli.turbine-sqli", + "name": "java.lang.security.audit.sqli.turbine-sqli.turbine-sqli", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')", + "LOW CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.lang.security.audit.sqli.turbine-sqli.turbine-sqli" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "The special variable IFS affects how splitting takes place when expanding unquoted variables. Don't set it globally. Prefer a dedicated utility such as 'cut' or 'awk' if you need to split input data. If you must use 'read', set IFS locally using e.g. 'IFS=\",\" read -a my_array'." + }, + "help": { + "markdown": "The special variable IFS affects how splitting takes place when expanding unquoted variables. Don't set it globally. Prefer a dedicated utility such as 'cut' or 'awk' if you need to split input data. If you must use 'read', set IFS locally using e.g. 'IFS=\",\" read -a my_array'.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/bash.lang.security.ifs-tampering.ifs-tampering)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "The special variable IFS affects how splitting takes place when expanding unquoted variables. Don't set it globally. Prefer a dedicated utility such as 'cut' or 'awk' if you need to split input data. If you must use 'read', set IFS locally using e.g. 'IFS=\",\" read -a my_array'." + }, + "helpUri": "https://semgrep.dev/r/bash.lang.security.ifs-tampering.ifs-tampering", + "id": "bash.lang.security.ifs-tampering.ifs-tampering", + "name": "bash.lang.security.ifs-tampering.ifs-tampering", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-20: Improper Input Validation", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: bash.lang.security.ifs-tampering.ifs-tampering" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Checks for any usage of http servers instead of https servers. Encourages the usage of https protocol instead of http, which does not have TLS and is therefore unencrypted. Using http can lead to man-in-the-middle attacks in which the attacker is able to read sensitive information." + }, + "help": { + "markdown": "Checks for any usage of http servers instead of https servers. Encourages the usage of https protocol instead of http, which does not have TLS and is therefore unencrypted. Using http can lead to man-in-the-middle attacks in which the attacker is able to read sensitive information.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/problem-based-packs.insecure-transport.js-node.using-http-server.using-http-server)\n - [https://nodejs.org/api/http.html#http_class_http_agent](https://nodejs.org/api/http.html#http_class_http_agent)\n - [https://groups.google.com/g/rubyonrails-security/c/NCCsca7TEtY](https://groups.google.com/g/rubyonrails-security/c/NCCsca7TEtY)\n", + "text": "Checks for any usage of http servers instead of https servers. Encourages the usage of https protocol instead of http, which does not have TLS and is therefore unencrypted. Using http can lead to man-in-the-middle attacks in which the attacker is able to read sensitive information." + }, + "helpUri": "https://semgrep.dev/r/problem-based-packs.insecure-transport.js-node.using-http-server.using-http-server", + "id": "problem-based-packs.insecure-transport.js-node.using-http-server.using-http-server", + "name": "problem-based-packs.insecure-transport.js-node.using-http-server.using-http-server", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-319: Cleartext Transmission of Sensitive Information", + "LOW CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: problem-based-packs.insecure-transport.js-node.using-http-server.using-http-server" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Avoid using user-controlled format strings passed into 'sprintf', 'printf' and 'vsprintf'. These functions put you at risk of buffer overflow vulnerabilities through the use of format string exploits. Instead, use 'snprintf' and 'vsnprintf'." + }, + "help": { + "markdown": "Avoid using user-controlled format strings passed into 'sprintf', 'printf' and 'vsprintf'. These functions put you at risk of buffer overflow vulnerabilities through the use of format string exploits. Instead, use 'snprintf' and 'vsnprintf'.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/c.lang.security.insecure-use-printf-fn.insecure-use-printf-fn)\n - [https://doc.castsoftware.com/display/SBX/Never+use+sprintf%28%29+or+vsprintf%28%29+functions](https://doc.castsoftware.com/display/SBX/Never+use+sprintf%28%29+or+vsprintf%28%29+functions)\n - [https://www.cvedetails.com/cwe-details/134/Uncontrolled-Format-String.html](https://www.cvedetails.com/cwe-details/134/Uncontrolled-Format-String.html)\n", + "text": "Avoid using user-controlled format strings passed into 'sprintf', 'printf' and 'vsprintf'. These functions put you at risk of buffer overflow vulnerabilities through the use of format string exploits. Instead, use 'snprintf' and 'vsnprintf'." + }, + "helpUri": "https://semgrep.dev/r/c.lang.security.insecure-use-printf-fn.insecure-use-printf-fn", + "id": "c.lang.security.insecure-use-printf-fn.insecure-use-printf-fn", + "name": "c.lang.security.insecure-use-printf-fn.insecure-use-printf-fn", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-134: Use of Externally-Controlled Format String", + "MEDIUM CONFIDENCE", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: c.lang.security.insecure-use-printf-fn.insecure-use-printf-fn" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Detected use of the 'none' algorithm in a JWT token. The 'none' algorithm assumes the integrity of the token has already been verified. This would allow a malicious actor to forge a JWT token that will automatically be verified. Do not explicitly use the 'none' algorithm. Instead, use an algorithm such as 'HS256'." + }, + "help": { + "markdown": "Detected use of the 'none' algorithm in a JWT token. The 'none' algorithm assumes the integrity of the token has already been verified. This would allow a malicious actor to forge a JWT token that will automatically be verified. Do not explicitly use the 'none' algorithm. Instead, use an algorithm such as 'HS256'.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.jose.security.jwt-none-alg.jwt-none-alg)\n - [https://owasp.org/Top10/A02_2021-Cryptographic_Failures](https://owasp.org/Top10/A02_2021-Cryptographic_Failures)\n", + "text": "Detected use of the 'none' algorithm in a JWT token. The 'none' algorithm assumes the integrity of the token has already been verified. This would allow a malicious actor to forge a JWT token that will automatically be verified. Do not explicitly use the 'none' algorithm. Instead, use an algorithm such as 'HS256'." + }, + "helpUri": "https://semgrep.dev/r/javascript.jose.security.jwt-none-alg.jwt-none-alg", + "id": "javascript.jose.security.jwt-none-alg.jwt-none-alg", + "name": "javascript.jose.security.jwt-none-alg.jwt-none-alg", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-327: Use of a Broken or Risky Cryptographic Algorithm", + "HIGH CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.jose.security.jwt-none-alg.jwt-none-alg" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Found '$SPAWN' with '{shell: $SHELL}'. This is dangerous because this call will spawn the command using a shell process. Doing so propagates current shell settings and variables, which makes it much easier for a malicious actor to execute commands. Use '{shell: false}' instead." + }, + "help": { + "markdown": "Found '$SPAWN' with '{shell: $SHELL}'. This is dangerous because this call will spawn the command using a shell process. Doing so propagates current shell settings and variables, which makes it much easier for a malicious actor to execute commands. Use '{shell: false}' instead.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.lang.security.audit.spawn-shell-true.spawn-shell-true)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "Found '$SPAWN' with '{shell: $SHELL}'. This is dangerous because this call will spawn the command using a shell process. Doing so propagates current shell settings and variables, which makes it much easier for a malicious actor to execute commands. Use '{shell: false}' instead." + }, + "helpUri": "https://semgrep.dev/r/javascript.lang.security.audit.spawn-shell-true.spawn-shell-true", + "id": "javascript.lang.security.audit.spawn-shell-true.spawn-shell-true", + "name": "javascript.lang.security.audit.spawn-shell-true.spawn-shell-true", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')", + "LOW CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.lang.security.audit.spawn-shell-true.spawn-shell-true" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected non-static command inside $PIPE. Audit the input to '$PIPE'. If unverified user data can reach this call site, this is a code injection vulnerability. A malicious actor can inject a malicious script to execute arbitrary code." + }, + "help": { + "markdown": "Detected non-static command inside $PIPE. Audit the input to '$PIPE'. If unverified user data can reach this call site, this is a code injection vulnerability. A malicious actor can inject a malicious script to execute arbitrary code.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ruby.lang.security.dangerous-open3-pipeline.dangerous-open3-pipeline)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "Detected non-static command inside $PIPE. Audit the input to '$PIPE'. If unverified user data can reach this call site, this is a code injection vulnerability. A malicious actor can inject a malicious script to execute arbitrary code." + }, + "helpUri": "https://semgrep.dev/r/ruby.lang.security.dangerous-open3-pipeline.dangerous-open3-pipeline", + "id": "ruby.lang.security.dangerous-open3-pipeline.dangerous-open3-pipeline", + "name": "ruby.lang.security.dangerous-open3-pipeline.dangerous-open3-pipeline", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-94: Improper Control of Generation of Code ('Code Injection')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: ruby.lang.security.dangerous-open3-pipeline.dangerous-open3-pipeline" + } + }, + { + "defaultConfiguration": { + "level": "note" + }, + "fullDescription": { + "text": "Ensure that the expiration date is set on all secrets" + }, + "help": { + "markdown": "Ensure that the expiration date is set on all secrets\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.azure.security.keyvault.keyvault-ensure-secret-expires.keyvault-ensure-secret-expires)\n - [https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/key_vault_secret#expiration_date](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/key_vault_secret#expiration_date)\n - [https://docs.microsoft.com/en-us/azure/key-vault/secrets/about-secrets](https://docs.microsoft.com/en-us/azure/key-vault/secrets/about-secrets)\n", + "text": "Ensure that the expiration date is set on all secrets" + }, + "helpUri": "https://semgrep.dev/r/terraform.azure.security.keyvault.keyvault-ensure-secret-expires.keyvault-ensure-secret-expires", + "id": "terraform.azure.security.keyvault.keyvault-ensure-secret-expires.keyvault-ensure-secret-expires", + "name": "terraform.azure.security.keyvault.keyvault-ensure-secret-expires.keyvault-ensure-secret-expires", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-262: Not Using Password Aging", + "MEDIUM CONFIDENCE", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.azure.security.keyvault.keyvault-ensure-secret-expires.keyvault-ensure-secret-expires" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "This rule is deprecated." + }, + "help": { + "markdown": "This rule is deprecated.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ruby.rails.security.audit.rails-check-render-dos-cve.rails-check-render-dos)\n - [https://groups.google.com/g/rubyonrails-security/c/LMxO_3_eCuc/m/ozGBEhKaJbIJ](https://groups.google.com/g/rubyonrails-security/c/LMxO_3_eCuc/m/ozGBEhKaJbIJ)\n - [https://nvd.nist.gov/vuln/detail/CVE-2014-0082](https://nvd.nist.gov/vuln/detail/CVE-2014-0082)\n", + "text": "This rule is deprecated." + }, + "helpUri": "https://semgrep.dev/r/ruby.rails.security.audit.rails-check-render-dos-cve.rails-check-render-dos", + "id": "ruby.rails.security.audit.rails-check-render-dos-cve.rails-check-render-dos", + "name": "ruby.rails.security.audit.rails-check-render-dos-cve.rails-check-render-dos", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-20: Improper Input Validation", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: ruby.rails.security.audit.rails-check-render-dos-cve.rails-check-render-dos" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "'$VAR' is the empty string and is being used to set the password on '$MODEL'. If you meant to set an unusable password, set the password to None or call 'set_unusable_password()'." + }, + "help": { + "markdown": "'$VAR' is the empty string and is being used to set the password on '$MODEL'. If you meant to set an unusable password, set the password to None or call 'set_unusable_password()'.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.django.security.passwords.password-empty-string.password-empty-string)\n - [https://docs.djangoproject.com/en/3.0/ref/contrib/auth/#django.contrib.auth.models.User.set_password](https://docs.djangoproject.com/en/3.0/ref/contrib/auth/#django.contrib.auth.models.User.set_password)\n", + "text": "'$VAR' is the empty string and is being used to set the password on '$MODEL'. If you meant to set an unusable password, set the password to None or call 'set_unusable_password()'." + }, + "helpUri": "https://semgrep.dev/r/python.django.security.passwords.password-empty-string.password-empty-string", + "id": "python.django.security.passwords.password-empty-string.password-empty-string", + "name": "python.django.security.passwords.password-empty-string.password-empty-string", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-521: Weak Password Requirements", + "MEDIUM CONFIDENCE", + "OWASP-A07:2021 - Identification and Authentication Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.django.security.passwords.password-empty-string.password-empty-string" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Variable '$VAR' was passed to a function after being freed. This can lead to undefined behavior." + }, + "help": { + "markdown": "Variable '$VAR' was passed to a function after being freed. This can lead to undefined behavior.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/c.lang.security.function-use-after-free.function-use-after-free)\n - [https://cwe.mitre.org/data/definitions/416.html](https://cwe.mitre.org/data/definitions/416.html)\n - [https://ctf-wiki.github.io/ctf-wiki/pwn/linux/glibc-heap/use_after_free/](https://ctf-wiki.github.io/ctf-wiki/pwn/linux/glibc-heap/use_after_free/)\n", + "text": "Variable '$VAR' was passed to a function after being freed. This can lead to undefined behavior." + }, + "helpUri": "https://semgrep.dev/r/c.lang.security.function-use-after-free.function-use-after-free", + "id": "c.lang.security.function-use-after-free.function-use-after-free", + "name": "c.lang.security.function-use-after-free.function-use-after-free", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-416: Use After Free", + "MEDIUM CONFIDENCE", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: c.lang.security.function-use-after-free.function-use-after-free" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Avoid using 'scanf()'. This function, when used improperly, does not consider buffer boundaries and can lead to buffer overflows. Use 'fgets()' instead for reading input." + }, + "help": { + "markdown": "Avoid using 'scanf()'. This function, when used improperly, does not consider buffer boundaries and can lead to buffer overflows. Use 'fgets()' instead for reading input.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/c.lang.security.insecure-use-scanf-fn.insecure-use-scanf-fn)\n - [http://sekrit.de/webdocs/c/beginners-guide-away-from-scanf.html](http://sekrit.de/webdocs/c/beginners-guide-away-from-scanf.html)\n", + "text": "Avoid using 'scanf()'. This function, when used improperly, does not consider buffer boundaries and can lead to buffer overflows. Use 'fgets()' instead for reading input." + }, + "helpUri": "https://semgrep.dev/r/c.lang.security.insecure-use-scanf-fn.insecure-use-scanf-fn", + "id": "c.lang.security.insecure-use-scanf-fn.insecure-use-scanf-fn", + "name": "c.lang.security.insecure-use-scanf-fn.insecure-use-scanf-fn", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-676: Use of Potentially Dangerous Function", + "LOW CONFIDENCE", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: c.lang.security.insecure-use-scanf-fn.insecure-use-scanf-fn" + } + }, + { + "defaultConfiguration": { + "level": "note" + }, + "fullDescription": { + "text": "this rule has been deprecated." + }, + "help": { + "markdown": "this rule has been deprecated.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.chrome-remote-interface.security.audit.chrome-remote-interface-navigate-injection.chrome-remote-interface-navigate-injection)\n - [https://github.com/cyrus-and/chrome-remote-interface](https://github.com/cyrus-and/chrome-remote-interface)\n", + "text": "this rule has been deprecated." + }, + "helpUri": "https://semgrep.dev/r/javascript.chrome-remote-interface.security.audit.chrome-remote-interface-navigate-injection.chrome-remote-interface-navigate-injection", + "id": "javascript.chrome-remote-interface.security.audit.chrome-remote-interface-navigate-injection.chrome-remote-interface-navigate-injection", + "name": "javascript.chrome-remote-interface.security.audit.chrome-remote-interface-navigate-injection.chrome-remote-interface-navigate-injection", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-918: Server-Side Request Forgery (SSRF)", + "LOW CONFIDENCE", + "OWASP-A10:2021 - Server-Side Request Forgery (SSRF)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.chrome-remote-interface.security.audit.chrome-remote-interface-navigate-injection.chrome-remote-interface-navigate-injection" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Found request data in an EmailMessage that is set to use HTML. This is dangerous because HTML emails are susceptible to XSS. An attacker could inject data into this HTML email, causing XSS." + }, + "help": { + "markdown": "Found request data in an EmailMessage that is set to use HTML. This is dangerous because HTML emails are susceptible to XSS. An attacker could inject data into this HTML email, causing XSS.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.django.security.injection.email.xss-html-email-body.xss-html-email-body)\n - [https://www.damonkohler.com/2008/12/email-injection.html](https://www.damonkohler.com/2008/12/email-injection.html)\n", + "text": "Found request data in an EmailMessage that is set to use HTML. This is dangerous because HTML emails are susceptible to XSS. An attacker could inject data into this HTML email, causing XSS." + }, + "helpUri": "https://semgrep.dev/r/python.django.security.injection.email.xss-html-email-body.xss-html-email-body", + "id": "python.django.security.injection.email.xss-html-email-body.xss-html-email-body", + "name": "python.django.security.injection.email.xss-html-email-body.xss-html-email-body", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')", + "MEDIUM CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.django.security.injection.email.xss-html-email-body.xss-html-email-body" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Semgrep could not determine that the argument to 'template.HTML()' is a constant. 'template.HTML()' and similar does not escape contents. Be absolutely sure there is no user-controlled data in this template. If user data can reach this template, you may have a XSS vulnerability. Instead, do not use this function and use 'template.Execute()'." + }, + "help": { + "markdown": "Semgrep could not determine that the argument to 'template.HTML()' is a constant. 'template.HTML()' and similar does not escape contents. Be absolutely sure there is no user-controlled data in this template. If user data can reach this template, you may have a XSS vulnerability. Instead, do not use this function and use 'template.Execute()'.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/go.lang.security.audit.xss.template-html-does-not-escape.unsafe-template-type)\n - [https://golang.org/pkg/html/template/#HTML](https://golang.org/pkg/html/template/#HTML)\n - [https://github.com/0c34/govwa/blob/139693e56406b5684d2a6ae22c0af90717e149b8/vulnerability/xss/xss.go#L33](https://github.com/0c34/govwa/blob/139693e56406b5684d2a6ae22c0af90717e149b8/vulnerability/xss/xss.go#L33)\n", + "text": "Semgrep could not determine that the argument to 'template.HTML()' is a constant. 'template.HTML()' and similar does not escape contents. Be absolutely sure there is no user-controlled data in this template. If user data can reach this template, you may have a XSS vulnerability. Instead, do not use this function and use 'template.Execute()'." + }, + "helpUri": "https://semgrep.dev/r/go.lang.security.audit.xss.template-html-does-not-escape.unsafe-template-type", + "id": "go.lang.security.audit.xss.template-html-does-not-escape.unsafe-template-type", + "name": "go.lang.security.audit.xss.template-html-does-not-escape.unsafe-template-type", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: go.lang.security.audit.xss.template-html-does-not-escape.unsafe-template-type" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "If unverified user data can reach the `wkhtmltopdf` it can result in Server-Side Request Forgery vulnerabilities" + }, + "help": { + "markdown": "If unverified user data can reach the `wkhtmltopdf` it can result in Server-Side Request Forgery vulnerabilities\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.wkhtmltopdf.security.audit.wkhtmltopdf-injection.wkhtmltopdf-injection)\n - [https://owasp.org/Top10/A10_2021-Server-Side_Request_Forgery_%28SSRF%29](https://owasp.org/Top10/A10_2021-Server-Side_Request_Forgery_%28SSRF%29)\n", + "text": "If unverified user data can reach the `wkhtmltopdf` it can result in Server-Side Request Forgery vulnerabilities" + }, + "helpUri": "https://semgrep.dev/r/javascript.wkhtmltopdf.security.audit.wkhtmltopdf-injection.wkhtmltopdf-injection", + "id": "javascript.wkhtmltopdf.security.audit.wkhtmltopdf-injection.wkhtmltopdf-injection", + "name": "javascript.wkhtmltopdf.security.audit.wkhtmltopdf-injection.wkhtmltopdf-injection", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-918: Server-Side Request Forgery (SSRF)", + "LOW CONFIDENCE", + "OWASP-A10:2021 - Server-Side Request Forgery (SSRF)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.wkhtmltopdf.security.audit.wkhtmltopdf-injection.wkhtmltopdf-injection" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Checks for requests sent via http.NewRequest to http:// URLS. This is dangerous because the server is attempting to connect to a website that does not encrypt traffic with TLS. Instead, send requests only to https:// URLS." + }, + "help": { + "markdown": "Checks for requests sent via http.NewRequest to http:// URLS. This is dangerous because the server is attempting to connect to a website that does not encrypt traffic with TLS. Instead, send requests only to https:// URLS.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/problem-based-packs.insecure-transport.go-stdlib.http-customized-request.http-customized-request)\n - [https://golang.org/pkg/net/http/#NewRequest](https://golang.org/pkg/net/http/#NewRequest)\n", + "text": "Checks for requests sent via http.NewRequest to http:// URLS. This is dangerous because the server is attempting to connect to a website that does not encrypt traffic with TLS. Instead, send requests only to https:// URLS." + }, + "helpUri": "https://semgrep.dev/r/problem-based-packs.insecure-transport.go-stdlib.http-customized-request.http-customized-request", + "id": "problem-based-packs.insecure-transport.go-stdlib.http-customized-request.http-customized-request", + "name": "problem-based-packs.insecure-transport.go-stdlib.http-customized-request.http-customized-request", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-319: Cleartext Transmission of Sensitive Information", + "MEDIUM CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: problem-based-packs.insecure-transport.go-stdlib.http-customized-request.http-customized-request" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Used SnakeYAML org.yaml.snakeyaml.Yaml() constructor with no arguments, which is vulnerable to deserialization attacks. Use the one-argument Yaml(...) constructor instead, with SafeConstructor or a custom Constructor as the argument." + }, + "help": { + "markdown": "Used SnakeYAML org.yaml.snakeyaml.Yaml() constructor with no arguments, which is vulnerable to deserialization attacks. Use the one-argument Yaml(...) constructor instead, with SafeConstructor or a custom Constructor as the argument.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.lang.security.use-snakeyaml-constructor.use-snakeyaml-constructor)\n - [https://securitylab.github.com/research/swagger-yaml-parser-vulnerability/#snakeyaml-deserialization-vulnerability](https://securitylab.github.com/research/swagger-yaml-parser-vulnerability/#snakeyaml-deserialization-vulnerability)\n", + "text": "Used SnakeYAML org.yaml.snakeyaml.Yaml() constructor with no arguments, which is vulnerable to deserialization attacks. Use the one-argument Yaml(...) constructor instead, with SafeConstructor or a custom Constructor as the argument." + }, + "helpUri": "https://semgrep.dev/r/java.lang.security.use-snakeyaml-constructor.use-snakeyaml-constructor", + "id": "java.lang.security.use-snakeyaml-constructor.use-snakeyaml-constructor", + "name": "java.lang.security.use-snakeyaml-constructor.use-snakeyaml-constructor", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-502: Deserialization of Untrusted Data", + "LOW CONFIDENCE", + "OWASP-A08:2017 - Insecure Deserialization", + "OWASP-A08:2021 - Software and Data Integrity Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.lang.security.use-snakeyaml-constructor.use-snakeyaml-constructor" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "User data flows into the host portion of this manually-constructed URL. This could allow an attacker to send data to their own server, potentially exposing sensitive data such as cookies or authorization information sent with this request. They could also probe internal servers or other resources that the server runnig this code can access. (This is called server-side request forgery, or SSRF.) Do not allow arbitrary hosts. Instead, create an allowlist for approved hosts hardcode the correct host." + }, + "help": { + "markdown": "User data flows into the host portion of this manually-constructed URL. This could allow an attacker to send data to their own server, potentially exposing sensitive data such as cookies or authorization information sent with this request. They could also probe internal servers or other resources that the server runnig this code can access. (This is called server-side request forgery, or SSRF.) Do not allow arbitrary hosts. Instead, create an allowlist for approved hosts hardcode the correct host.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/php.lang.security.injection.tainted-url-host.tainted-url-host)\n - [https://cheatsheetseries.owasp.org/cheatsheets/Server_Side_Request_Forgery_Prevention_Cheat_Sheet.html](https://cheatsheetseries.owasp.org/cheatsheets/Server_Side_Request_Forgery_Prevention_Cheat_Sheet.html)\n", + "text": "User data flows into the host portion of this manually-constructed URL. This could allow an attacker to send data to their own server, potentially exposing sensitive data such as cookies or authorization information sent with this request. They could also probe internal servers or other resources that the server runnig this code can access. (This is called server-side request forgery, or SSRF.) Do not allow arbitrary hosts. Instead, create an allowlist for approved hosts hardcode the correct host." + }, + "helpUri": "https://semgrep.dev/r/php.lang.security.injection.tainted-url-host.tainted-url-host", + "id": "php.lang.security.injection.tainted-url-host.tainted-url-host", + "name": "php.lang.security.injection.tainted-url-host.tainted-url-host", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-918: Server-Side Request Forgery (SSRF)", + "MEDIUM CONFIDENCE", + "OWASP-A10:2021 - Server-Side Request Forgery (SSRF)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: php.lang.security.injection.tainted-url-host.tainted-url-host" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected Flask route directly returning a formatted string. This is subject to cross-site scripting if user input can reach the string. Consider using the template engine instead and rendering pages with 'render_template()'." + }, + "help": { + "markdown": "Detected Flask route directly returning a formatted string. This is subject to cross-site scripting if user input can reach the string. Consider using the template engine instead and rendering pages with 'render_template()'.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.flask.security.audit.directly-returned-format-string.directly-returned-format-string)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "Detected Flask route directly returning a formatted string. This is subject to cross-site scripting if user input can reach the string. Consider using the template engine instead and rendering pages with 'render_template()'." + }, + "helpUri": "https://semgrep.dev/r/python.flask.security.audit.directly-returned-format-string.directly-returned-format-string", + "id": "python.flask.security.audit.directly-returned-format-string.directly-returned-format-string", + "name": "python.flask.security.audit.directly-returned-format-string.directly-returned-format-string", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "MEDIUM CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.flask.security.audit.directly-returned-format-string.directly-returned-format-string" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Found extension of custom expression: $CLASS. Extending expressions in this way could inadvertently lead to a SQL injection vulnerability, which can result in attackers exfiltrating sensitive data. Instead, ensure no user input enters this function or that user input is properly sanitized." + }, + "help": { + "markdown": "Found extension of custom expression: $CLASS. Extending expressions in this way could inadvertently lead to a SQL injection vulnerability, which can result in attackers exfiltrating sensitive data. Instead, ensure no user input enters this function or that user input is properly sanitized.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.django.security.audit.extends-custom-expression.extends-custom-expression)\n - [https://docs.djangoproject.com/en/3.0/ref/models/expressions/#avoiding-sql-injection](https://docs.djangoproject.com/en/3.0/ref/models/expressions/#avoiding-sql-injection)\n - [https://semgrep.dev/blog/2020/preventing-sql-injection-a-django-authors-perspective/](https://semgrep.dev/blog/2020/preventing-sql-injection-a-django-authors-perspective/)\n", + "text": "Found extension of custom expression: $CLASS. Extending expressions in this way could inadvertently lead to a SQL injection vulnerability, which can result in attackers exfiltrating sensitive data. Instead, ensure no user input enters this function or that user input is properly sanitized." + }, + "helpUri": "https://semgrep.dev/r/python.django.security.audit.extends-custom-expression.extends-custom-expression", + "id": "python.django.security.audit.extends-custom-expression.extends-custom-expression", + "name": "python.django.security.audit.extends-custom-expression.extends-custom-expression", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')", + "LOW CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.django.security.audit.extends-custom-expression.extends-custom-expression" + } + }, + { + "defaultConfiguration": { + "level": "note" + }, + "fullDescription": { + "text": "Use the latest version of HTTP to ensure you are benefiting from security fixes. Add `http2_enabled = true` to your appservice resource block" + }, + "help": { + "markdown": "Use the latest version of HTTP to ensure you are benefiting from security fixes. Add `http2_enabled = true` to your appservice resource block\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.azure.security.appservice.appservice-enable-http2.appservice-enable-http2)\n - [https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/app_service#http2_enabled](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/app_service#http2_enabled)\n", + "text": "Use the latest version of HTTP to ensure you are benefiting from security fixes. Add `http2_enabled = true` to your appservice resource block" + }, + "helpUri": "https://semgrep.dev/r/terraform.azure.security.appservice.appservice-enable-http2.appservice-enable-http2", + "id": "terraform.azure.security.appservice.appservice-enable-http2.appservice-enable-http2", + "name": "terraform.azure.security.appservice.appservice-enable-http2.appservice-enable-http2", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-444: Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling')", + "MEDIUM CONFIDENCE", + "OWASP-A04:2021 - Insecure Design", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.azure.security.appservice.appservice-enable-http2.appservice-enable-http2" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected SQL statement that is tainted by `$EVENT` object. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use parameterized queries or prepared statements instead. You can use parameterized statements like so: `knex.raw('SELECT $1 from table', [userinput])`" + }, + "help": { + "markdown": "Detected SQL statement that is tainted by `$EVENT` object. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use parameterized queries or prepared statements instead. You can use parameterized statements like so: `knex.raw('SELECT $1 from table', [userinput])`\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.aws-lambda.security.knex-sqli.knex-sqli)\n - [https://knexjs.org/#Builder-fromRaw](https://knexjs.org/#Builder-fromRaw)\n - [https://knexjs.org/#Builder-whereRaw](https://knexjs.org/#Builder-whereRaw)\n", + "text": "Detected SQL statement that is tainted by `$EVENT` object. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use parameterized queries or prepared statements instead. You can use parameterized statements like so: `knex.raw('SELECT $1 from table', [userinput])`" + }, + "helpUri": "https://semgrep.dev/r/javascript.aws-lambda.security.knex-sqli.knex-sqli", + "id": "javascript.aws-lambda.security.knex-sqli.knex-sqli", + "name": "javascript.aws-lambda.security.knex-sqli.knex-sqli", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')", + "MEDIUM CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.aws-lambda.security.knex-sqli.knex-sqli" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Overwriting `transformLinkUri` or `transformImageUri` to something insecure, or turning `allowDangerousHtml` on, or turning `escapeHtml` off, will open the code up to XSS vectors." + }, + "help": { + "markdown": "Overwriting `transformLinkUri` or `transformImageUri` to something insecure, or turning `allowDangerousHtml` on, or turning `escapeHtml` off, will open the code up to XSS vectors.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/typescript.react.security.react-markdown-insecure-html.react-markdown-insecure-html)\n - [https://www.npmjs.com/package/react-markdown#security](https://www.npmjs.com/package/react-markdown#security)\n", + "text": "Overwriting `transformLinkUri` or `transformImageUri` to something insecure, or turning `allowDangerousHtml` on, or turning `escapeHtml` off, will open the code up to XSS vectors." + }, + "helpUri": "https://semgrep.dev/r/typescript.react.security.react-markdown-insecure-html.react-markdown-insecure-html", + "id": "typescript.react.security.react-markdown-insecure-html.react-markdown-insecure-html", + "name": "typescript.react.security.react-markdown-insecure-html.react-markdown-insecure-html", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: typescript.react.security.react-markdown-insecure-html.react-markdown-insecure-html" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "'Integer.toHexString()' strips leading zeroes from each byte if read byte-by-byte. This mistake weakens the hash value computed since it introduces more collisions. Use 'String.format(\"%02X\", ...)' instead." + }, + "help": { + "markdown": "'Integer.toHexString()' strips leading zeroes from each byte if read byte-by-byte. This mistake weakens the hash value computed since it introduces more collisions. Use 'String.format(\"%02X\", ...)' instead.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/kotlin.lang.security.bad-hexa-conversion.bad-hexa-conversion)\n - [https://cwe.mitre.org/data/definitions/704.html](https://cwe.mitre.org/data/definitions/704.html)\n", + "text": "'Integer.toHexString()' strips leading zeroes from each byte if read byte-by-byte. This mistake weakens the hash value computed since it introduces more collisions. Use 'String.format(\"%02X\", ...)' instead." + }, + "helpUri": "https://semgrep.dev/r/kotlin.lang.security.bad-hexa-conversion.bad-hexa-conversion", + "id": "kotlin.lang.security.bad-hexa-conversion.bad-hexa-conversion", + "name": "kotlin.lang.security.bad-hexa-conversion.bad-hexa-conversion", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-704: Incorrect Type Conversion or Cast", + "LOW CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: kotlin.lang.security.bad-hexa-conversion.bad-hexa-conversion" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "The RSA key size $SIZE is insufficent by NIST standards. It is recommended to use a key length of 2048 or higher." + }, + "help": { + "markdown": "The RSA key size $SIZE is insufficent by NIST standards. It is recommended to use a key length of 2048 or higher.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ruby.lang.security.insufficient-rsa-key-size.insufficient-rsa-key-size)\n - [https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-57Pt3r1.pdf](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-57Pt3r1.pdf)\n", + "text": "The RSA key size $SIZE is insufficent by NIST standards. It is recommended to use a key length of 2048 or higher." + }, + "helpUri": "https://semgrep.dev/r/ruby.lang.security.insufficient-rsa-key-size.insufficient-rsa-key-size", + "id": "ruby.lang.security.insufficient-rsa-key-size.insufficient-rsa-key-size", + "name": "ruby.lang.security.insufficient-rsa-key-size.insufficient-rsa-key-size", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-326: Inadequate Encryption Strength", + "HIGH CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: ruby.lang.security.insufficient-rsa-key-size.insufficient-rsa-key-size" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Cookie Secure flag is explicitly disabled. You should enforce this value to avoid accidentally presenting sensitive cookie values over plaintext HTTP connections." + }, + "help": { + "markdown": "Cookie Secure flag is explicitly disabled. You should enforce this value to avoid accidentally presenting sensitive cookie values over plaintext HTTP connections.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/csharp.dotnet.security.web-config-insecure-cookie-settings.web-config-insecure-cookie-settings)\n - [https://docs.microsoft.com/en-us/aspnet/web-api/overview/advanced/http-cookies](https://docs.microsoft.com/en-us/aspnet/web-api/overview/advanced/http-cookies)\n - [https://docs.microsoft.com/en-us/dotnet/api/system.web.security.formsauthentication.requiressl?redirectedfrom=MSDN&view=netframework-4.8#System_Web_Security_FormsAuthentication_RequireSSL](https://docs.microsoft.com/en-us/dotnet/api/system.web.security.formsauthentication.requiressl?redirectedfrom=MSDN&view=netframework-4.8#System_Web_Security_FormsAuthentication_RequireSSL)\n - [https://docs.microsoft.com/en-us/dotnet/api/system.web.security.roles.cookierequiressl?redirectedfrom=MSDN&view=netframework-4.8#System_Web_Security_Roles_CookieRequireSSL](https://docs.microsoft.com/en-us/dotnet/api/system.web.security.roles.cookierequiressl?redirectedfrom=MSDN&view=netframework-4.8#System_Web_Security_Roles_CookieRequireSSL)\n", + "text": "Cookie Secure flag is explicitly disabled. You should enforce this value to avoid accidentally presenting sensitive cookie values over plaintext HTTP connections." + }, + "helpUri": "https://semgrep.dev/r/csharp.dotnet.security.web-config-insecure-cookie-settings.web-config-insecure-cookie-settings", + "id": "csharp.dotnet.security.web-config-insecure-cookie-settings.web-config-insecure-cookie-settings", + "name": "csharp.dotnet.security.web-config-insecure-cookie-settings.web-config-insecure-cookie-settings", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-614: Sensitive Cookie in HTTPS Session Without 'Secure' Attribute", + "LOW CONFIDENCE", + "OWASP-A05:2021 - Security Misconfiguration", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: csharp.dotnet.security.web-config-insecure-cookie-settings.web-config-insecure-cookie-settings" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Found request data in 'send_mail(...)' that uses 'html_message'. This is dangerous because HTML emails are susceptible to XSS. An attacker could inject data into this HTML email, causing XSS." + }, + "help": { + "markdown": "Found request data in 'send_mail(...)' that uses 'html_message'. This is dangerous because HTML emails are susceptible to XSS. An attacker could inject data into this HTML email, causing XSS.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.django.security.injection.email.xss-send-mail-html-message.xss-send-mail-html-message)\n - [https://www.damonkohler.com/2008/12/email-injection.html](https://www.damonkohler.com/2008/12/email-injection.html)\n", + "text": "Found request data in 'send_mail(...)' that uses 'html_message'. This is dangerous because HTML emails are susceptible to XSS. An attacker could inject data into this HTML email, causing XSS." + }, + "helpUri": "https://semgrep.dev/r/python.django.security.injection.email.xss-send-mail-html-message.xss-send-mail-html-message", + "id": "python.django.security.injection.email.xss-send-mail-html-message.xss-send-mail-html-message", + "name": "python.django.security.injection.email.xss-send-mail-html-message.xss-send-mail-html-message", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')", + "MEDIUM CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.django.security.injection.email.xss-send-mail-html-message.xss-send-mail-html-message" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "You are using an insecure random number generator (RNG) to create a cryptographic key. System.Random must never be used for cryptographic purposes. Use System.Security.Cryptography.RandomNumberGenerator instead." + }, + "help": { + "markdown": "You are using an insecure random number generator (RNG) to create a cryptographic key. System.Random must never be used for cryptographic purposes. Use System.Security.Cryptography.RandomNumberGenerator instead.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/csharp.dotnet.security.use_weak_rng_for_keygeneration.use_weak_rng_for_keygeneration)\n - [https://learn.microsoft.com/en-us/dotnet/api/system.random?view=net-6.0#remarks](https://learn.microsoft.com/en-us/dotnet/api/system.random?view=net-6.0#remarks)\n - [https://learn.microsoft.com/en-us/dotnet/api/system.security.cryptography.randomnumbergenerator?view=net-6.0](https://learn.microsoft.com/en-us/dotnet/api/system.security.cryptography.randomnumbergenerator?view=net-6.0)\n - [https://learn.microsoft.com/en-us/dotnet/api/system.security.cryptography.aesgcm?view=net-6.0#constructors](https://learn.microsoft.com/en-us/dotnet/api/system.security.cryptography.aesgcm?view=net-6.0#constructors)\n - [https://learn.microsoft.com/en-us/dotnet/api/system.security.cryptography.symmetricalgorithm.key?view=net-6.0#system-security-cryptography-symmetricalgorithm-key](https://learn.microsoft.com/en-us/dotnet/api/system.security.cryptography.symmetricalgorithm.key?view=net-6.0#system-security-cryptography-symmetricalgorithm-key)\n", + "text": "You are using an insecure random number generator (RNG) to create a cryptographic key. System.Random must never be used for cryptographic purposes. Use System.Security.Cryptography.RandomNumberGenerator instead." + }, + "helpUri": "https://semgrep.dev/r/csharp.dotnet.security.use_weak_rng_for_keygeneration.use_weak_rng_for_keygeneration", + "id": "csharp.dotnet.security.use_weak_rng_for_keygeneration.use_weak_rng_for_keygeneration", + "name": "csharp.dotnet.security.use_weak_rng_for_keygeneration.use_weak_rng_for_keygeneration", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-338: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)", + "HIGH CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: csharp.dotnet.security.use_weak_rng_for_keygeneration.use_weak_rng_for_keygeneration" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "The `redirect()` method does not check its destination in any way. If you redirect to a URL provided by end-users, your application may be open to the unvalidated redirects security vulnerability. Consider using literal values or an allowlist to validate URLs." + }, + "help": { + "markdown": "The `redirect()` method does not check its destination in any way. If you redirect to a URL provided by end-users, your application may be open to the unvalidated redirects security vulnerability. Consider using literal values or an allowlist to validate URLs.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/php.symfony.security.audit.symfony-non-literal-redirect.symfony-non-literal-redirect)\n - [https://symfony.com/doc/current/controller.html#redirecting](https://symfony.com/doc/current/controller.html#redirecting)\n - [https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html](https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html)\n", + "text": "The `redirect()` method does not check its destination in any way. If you redirect to a URL provided by end-users, your application may be open to the unvalidated redirects security vulnerability. Consider using literal values or an allowlist to validate URLs." + }, + "helpUri": "https://semgrep.dev/r/php.symfony.security.audit.symfony-non-literal-redirect.symfony-non-literal-redirect", + "id": "php.symfony.security.audit.symfony-non-literal-redirect.symfony-non-literal-redirect", + "name": "php.symfony.security.audit.symfony-non-literal-redirect.symfony-non-literal-redirect", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-601: URL Redirection to Untrusted Site ('Open Redirect')", + "LOW CONFIDENCE", + "OWASP-A01:2021 - Broken Access Control", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: php.symfony.security.audit.symfony-non-literal-redirect.symfony-non-literal-redirect" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Directory listing/indexing is enabled, which may lead to disclosure of sensitive directories and files. It is recommended to disable directory listing unless it is a public resource. If you need directory listing, ensure that sensitive files are inaccessible when querying the resource." + }, + "help": { + "markdown": "Directory listing/indexing is enabled, which may lead to disclosure of sensitive directories and files. It is recommended to disable directory listing unless it is a public resource. If you need directory listing, ensure that sensitive files are inaccessible when querying the resource.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.express.security.audit.express-check-directory-listing.express-check-directory-listing)\n - [https://www.npmjs.com/package/serve-index](https://www.npmjs.com/package/serve-index)\n - [https://www.acunetix.com/blog/articles/directory-listing-information-disclosure/](https://www.acunetix.com/blog/articles/directory-listing-information-disclosure/)\n", + "text": "Directory listing/indexing is enabled, which may lead to disclosure of sensitive directories and files. It is recommended to disable directory listing unless it is a public resource. If you need directory listing, ensure that sensitive files are inaccessible when querying the resource." + }, + "helpUri": "https://semgrep.dev/r/javascript.express.security.audit.express-check-directory-listing.express-check-directory-listing", + "id": "javascript.express.security.audit.express-check-directory-listing.express-check-directory-listing", + "name": "javascript.express.security.audit.express-check-directory-listing.express-check-directory-listing", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-548: Exposure of Information Through Directory Listing", + "MEDIUM CONFIDENCE", + "OWASP-A01:2021 - Broken Access Control", + "OWASP-A06:2017 - Security Misconfiguration", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.express.security.audit.express-check-directory-listing.express-check-directory-listing" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "The use of $sce.trustAsUrl can be dangerous if unsanitized user input flows through this API." + }, + "help": { + "markdown": "The use of $sce.trustAsUrl can be dangerous if unsanitized user input flows through this API.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.angular.security.detect-angular-trust-as-url-method.detect-angular-trust-as-url-method)\n - [https://docs.angularjs.org/api/ng/service/$sce#trustAsUrl](https://docs.angularjs.org/api/ng/service/$sce#trustAsUrl)\n - [https://owasp.org/www-chapter-london/assets/slides/OWASPLondon20170727_AngularJS.pdf](https://owasp.org/www-chapter-london/assets/slides/OWASPLondon20170727_AngularJS.pdf)\n", + "text": "The use of $sce.trustAsUrl can be dangerous if unsanitized user input flows through this API." + }, + "helpUri": "https://semgrep.dev/r/javascript.angular.security.detect-angular-trust-as-url-method.detect-angular-trust-as-url-method", + "id": "javascript.angular.security.detect-angular-trust-as-url-method.detect-angular-trust-as-url-method", + "name": "javascript.angular.security.detect-angular-trust-as-url-method.detect-angular-trust-as-url-method", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.angular.security.detect-angular-trust-as-url-method.detect-angular-trust-as-url-method" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Avoid using `shelve`, which uses `pickle`, which is known to lead to code execution vulnerabilities. When unpickling, the serialized data could be manipulated to run arbitrary code. Instead, consider serializing the relevant data as JSON or a similar text-based serialization format." + }, + "help": { + "markdown": "Avoid using `shelve`, which uses `pickle`, which is known to lead to code execution vulnerabilities. When unpickling, the serialized data could be manipulated to run arbitrary code. Instead, consider serializing the relevant data as JSON or a similar text-based serialization format.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.lang.security.deserialization.pickle.avoid-shelve)\n - [https://docs.python.org/3/library/pickle.html](https://docs.python.org/3/library/pickle.html)\n", + "text": "Avoid using `shelve`, which uses `pickle`, which is known to lead to code execution vulnerabilities. When unpickling, the serialized data could be manipulated to run arbitrary code. Instead, consider serializing the relevant data as JSON or a similar text-based serialization format." + }, + "helpUri": "https://semgrep.dev/r/python.lang.security.deserialization.pickle.avoid-shelve", + "id": "python.lang.security.deserialization.pickle.avoid-shelve", + "name": "python.lang.security.deserialization.pickle.avoid-shelve", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-502: Deserialization of Untrusted Data", + "MEDIUM CONFIDENCE", + "OWASP-A08:2017 - Insecure Deserialization", + "OWASP-A08:2021 - Software and Data Integrity Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.lang.security.deserialization.pickle.avoid-shelve" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected a Storage that was not configured to deny action by default. Add `enable_https_traffic_only = true` in your resource block." + }, + "help": { + "markdown": "Detected a Storage that was not configured to deny action by default. Add `enable_https_traffic_only = true` in your resource block.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.azure.security.storage.storage-enforce-https.storage-enforce-https)\n - [https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/storage_account#enable_https_traffic_only](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/storage_account#enable_https_traffic_only)\n - [https://docs.microsoft.com/en-us/azure/storage/common/storage-require-secure-transfer](https://docs.microsoft.com/en-us/azure/storage/common/storage-require-secure-transfer)\n", + "text": "Detected a Storage that was not configured to deny action by default. Add `enable_https_traffic_only = true` in your resource block." + }, + "helpUri": "https://semgrep.dev/r/terraform.azure.security.storage.storage-enforce-https.storage-enforce-https", + "id": "terraform.azure.security.storage.storage-enforce-https.storage-enforce-https", + "name": "terraform.azure.security.storage.storage-enforce-https.storage-enforce-https", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-319: Cleartext Transmission of Sensitive Information", + "MEDIUM CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.azure.security.storage.storage-enforce-https.storage-enforce-https" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "The ECR repository allows tag mutability. Image tags could be overwritten with compromised images. ECR images should be set to IMMUTABLE to prevent code injection through image mutation. This can be done by setting `image_tag_mutability` to IMMUTABLE." + }, + "help": { + "markdown": "The ECR repository allows tag mutability. Image tags could be overwritten with compromised images. ECR images should be set to IMMUTABLE to prevent code injection through image mutation. This can be done by setting `image_tag_mutability` to IMMUTABLE.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.aws.security.aws-ecr-mutable-image-tags.aws-ecr-mutable-image-tags)\n - [https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ecr_repository#image_tag_mutability](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ecr_repository#image_tag_mutability)\n - [https://owasp.org/Top10/A08_2021-Software_and_Data_Integrity_Failures/](https://owasp.org/Top10/A08_2021-Software_and_Data_Integrity_Failures/)\n", + "text": "The ECR repository allows tag mutability. Image tags could be overwritten with compromised images. ECR images should be set to IMMUTABLE to prevent code injection through image mutation. This can be done by setting `image_tag_mutability` to IMMUTABLE." + }, + "helpUri": "https://semgrep.dev/r/terraform.aws.security.aws-ecr-mutable-image-tags.aws-ecr-mutable-image-tags", + "id": "terraform.aws.security.aws-ecr-mutable-image-tags.aws-ecr-mutable-image-tags", + "name": "terraform.aws.security.aws-ecr-mutable-image-tags.aws-ecr-mutable-image-tags", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-345: Insufficient Verification of Data Authenticity", + "MEDIUM CONFIDENCE", + "OWASP-A08:2021 - Software and Data Integrity Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.aws.security.aws-ecr-mutable-image-tags.aws-ecr-mutable-image-tags" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "The AWS EBS volume is unencrypted. The volume, the disk I/O and any derived snapshots could be read if compromised. Volumes should be encrypted to ensure sensitive data is stored securely." + }, + "help": { + "markdown": "The AWS EBS volume is unencrypted. The volume, the disk I/O and any derived snapshots could be read if compromised. Volumes should be encrypted to ensure sensitive data is stored securely.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.aws.security.aws-ebs-volume-unencrypted.aws-ebs-volume-unencrypted)\n - [https://owasp.org/Top10/A04_2021-Insecure_Design](https://owasp.org/Top10/A04_2021-Insecure_Design)\n - [https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ebs_volume#encrypted](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ebs_volume#encrypted)\n - [https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html)\n", + "text": "The AWS EBS volume is unencrypted. The volume, the disk I/O and any derived snapshots could be read if compromised. Volumes should be encrypted to ensure sensitive data is stored securely." + }, + "helpUri": "https://semgrep.dev/r/terraform.aws.security.aws-ebs-volume-unencrypted.aws-ebs-volume-unencrypted", + "id": "terraform.aws.security.aws-ebs-volume-unencrypted.aws-ebs-volume-unencrypted", + "name": "terraform.aws.security.aws-ebs-volume-unencrypted.aws-ebs-volume-unencrypted", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-311: Missing Encryption of Sensitive Data", + "MEDIUM CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "OWASP-A04:2021 - Insecure Design", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.aws.security.aws-ebs-volume-unencrypted.aws-ebs-volume-unencrypted" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Slack Webhook detected" + }, + "help": { + "markdown": "Slack Webhook detected\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/generic.secrets.security.detected-slack-webhook.detected-slack-webhook)\n - [https://api.slack.com/messaging/webhooks](https://api.slack.com/messaging/webhooks)\n", + "text": "Slack Webhook detected" + }, + "helpUri": "https://semgrep.dev/r/generic.secrets.security.detected-slack-webhook.detected-slack-webhook", + "id": "generic.secrets.security.detected-slack-webhook.detected-slack-webhook", + "name": "generic.secrets.security.detected-slack-webhook.detected-slack-webhook", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-798: Use of Hard-coded Credentials", + "LOW CONFIDENCE", + "OWASP-A07:2021 - Identification and Authentication Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: generic.secrets.security.detected-slack-webhook.detected-slack-webhook" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected an insufficient key size for DSA. NIST recommends a key size of 2048 or higher." + }, + "help": { + "markdown": "Detected an insufficient key size for DSA. NIST recommends a key size of 2048 or higher.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.cryptography.security.insufficient-dsa-key-size.insufficient-dsa-key-size)\n - [https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-57Pt3r1.pdf](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-57Pt3r1.pdf)\n", + "text": "Detected an insufficient key size for DSA. NIST recommends a key size of 2048 or higher." + }, + "helpUri": "https://semgrep.dev/r/python.cryptography.security.insufficient-dsa-key-size.insufficient-dsa-key-size", + "id": "python.cryptography.security.insufficient-dsa-key-size.insufficient-dsa-key-size", + "name": "python.cryptography.security.insufficient-dsa-key-size.insufficient-dsa-key-size", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-326: Inadequate Encryption Strength", + "MEDIUM CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.cryptography.security.insufficient-dsa-key-size.insufficient-dsa-key-size" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected SQL statement that is tainted by `event` object. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use parameterized queries or prepared statements instead. You can use parameterized statements like so: `cursor.execute('SELECT * FROM projects WHERE status = ?', 'active')`" + }, + "help": { + "markdown": "Detected SQL statement that is tainted by `event` object. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use parameterized queries or prepared statements instead. You can use parameterized statements like so: `cursor.execute('SELECT * FROM projects WHERE status = ?', 'active')`\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.aws-lambda.security.sqlalchemy-sqli.sqlalchemy-sqli)\n - [https://docs.sqlalchemy.org/en/14/core/connections.html#sqlalchemy.engine.Connection.execute](https://docs.sqlalchemy.org/en/14/core/connections.html#sqlalchemy.engine.Connection.execute)\n", + "text": "Detected SQL statement that is tainted by `event` object. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use parameterized queries or prepared statements instead. You can use parameterized statements like so: `cursor.execute('SELECT * FROM projects WHERE status = ?', 'active')`" + }, + "helpUri": "https://semgrep.dev/r/python.aws-lambda.security.sqlalchemy-sqli.sqlalchemy-sqli", + "id": "python.aws-lambda.security.sqlalchemy-sqli.sqlalchemy-sqli", + "name": "python.aws-lambda.security.sqlalchemy-sqli.sqlalchemy-sqli", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')", + "MEDIUM CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.aws-lambda.security.sqlalchemy-sqli.sqlalchemy-sqli" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Semgrep detected a Kubernetes core API ClusterRole with excessive permissions. Attaching excessive permissions to a ClusterRole associated with the core namespace allows the V1 API to perform arbitrary actions on arbitrary resources attached to the cluster. Prefer explicit allowlists of verbs/resources when configuring the core API namespace. " + }, + "help": { + "markdown": "Semgrep detected a Kubernetes core API ClusterRole with excessive permissions. Attaching excessive permissions to a ClusterRole associated with the core namespace allows the V1 API to perform arbitrary actions on arbitrary resources attached to the cluster. Prefer explicit allowlists of verbs/resources when configuring the core API namespace. \n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/yaml.kubernetes.security.legacy-api-clusterrole-excessive-permissions.legacy-api-clusterrole-excessive-permissions)\n - [https://kubernetes.io/docs/reference/access-authn-authz/rbac/#role-and-clusterrole](https://kubernetes.io/docs/reference/access-authn-authz/rbac/#role-and-clusterrole)\n - [https://kubernetes.io/docs/concepts/security/rbac-good-practices/#general-good-practice](https://kubernetes.io/docs/concepts/security/rbac-good-practices/#general-good-practice)\n - [https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#api-groups](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#api-groups)\n", + "text": "Semgrep detected a Kubernetes core API ClusterRole with excessive permissions. Attaching excessive permissions to a ClusterRole associated with the core namespace allows the V1 API to perform arbitrary actions on arbitrary resources attached to the cluster. Prefer explicit allowlists of verbs/resources when configuring the core API namespace. " + }, + "helpUri": "https://semgrep.dev/r/yaml.kubernetes.security.legacy-api-clusterrole-excessive-permissions.legacy-api-clusterrole-excessive-permissions", + "id": "yaml.kubernetes.security.legacy-api-clusterrole-excessive-permissions.legacy-api-clusterrole-excessive-permissions", + "name": "yaml.kubernetes.security.legacy-api-clusterrole-excessive-permissions.legacy-api-clusterrole-excessive-permissions", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-269: Improper Privilege Management", + "HIGH CONFIDENCE", + "OWASP-A05:2021 - Security Misconfiguration", + "OWASP-A06:2017 - Security Misconfiguration", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: yaml.kubernetes.security.legacy-api-clusterrole-excessive-permissions.legacy-api-clusterrole-excessive-permissions" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Found user input going directly into typecast for bool(), float(), or complex(). This allows an attacker to inject Python's not-a-number (NaN) into the typecast. This results in undefind behavior, particularly when doing comparisons. Either cast to a different type, or add a guard checking for all capitalizations of the string 'nan'." + }, + "help": { + "markdown": "Found user input going directly into typecast for bool(), float(), or complex(). This allows an attacker to inject Python's not-a-number (NaN) into the typecast. This results in undefind behavior, particularly when doing comparisons. Either cast to a different type, or add a guard checking for all capitalizations of the string 'nan'.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.flask.security.injection.nan-injection.nan-injection)\n - [https://discuss.python.org/t/nan-breaks-min-max-and-sorting-functions-a-solution/2868](https://discuss.python.org/t/nan-breaks-min-max-and-sorting-functions-a-solution/2868)\n - [https://blog.bitdiscovery.com/2021/12/python-nan-injection/](https://blog.bitdiscovery.com/2021/12/python-nan-injection/)\n", + "text": "Found user input going directly into typecast for bool(), float(), or complex(). This allows an attacker to inject Python's not-a-number (NaN) into the typecast. This results in undefind behavior, particularly when doing comparisons. Either cast to a different type, or add a guard checking for all capitalizations of the string 'nan'." + }, + "helpUri": "https://semgrep.dev/r/python.flask.security.injection.nan-injection.nan-injection", + "id": "python.flask.security.injection.nan-injection.nan-injection", + "name": "python.flask.security.injection.nan-injection.nan-injection", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-704: Incorrect Type Conversion or Cast", + "MEDIUM CONFIDENCE", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.flask.security.injection.nan-injection.nan-injection" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Detected string concatenation with a non-literal variable in a pgx Go SQL statement. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use parameterized queries instead. You can use parameterized queries like so: (`SELECT $1 FROM table`, `data1)" + }, + "help": { + "markdown": "Detected string concatenation with a non-literal variable in a pgx Go SQL statement. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use parameterized queries instead. You can use parameterized queries like so: (`SELECT $1 FROM table`, `data1)\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/go.lang.security.audit.sqli.pgx-sqli.pgx-sqli)\n - [https://github.com/jackc/pgx](https://github.com/jackc/pgx)\n - [https://pkg.go.dev/github.com/jackc/pgx/v4#hdr-Connection_Pool](https://pkg.go.dev/github.com/jackc/pgx/v4#hdr-Connection_Pool)\n", + "text": "Detected string concatenation with a non-literal variable in a pgx Go SQL statement. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use parameterized queries instead. You can use parameterized queries like so: (`SELECT $1 FROM table`, `data1)" + }, + "helpUri": "https://semgrep.dev/r/go.lang.security.audit.sqli.pgx-sqli.pgx-sqli", + "id": "go.lang.security.audit.sqli.pgx-sqli.pgx-sqli", + "name": "go.lang.security.audit.sqli.pgx-sqli.pgx-sqli", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')", + "LOW CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: go.lang.security.audit.sqli.pgx-sqli.pgx-sqli" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "A hard-coded credential was detected. It is not recommended to store credentials in source-code, as this risks secrets being leaked and used by either an internal or external malicious adversary. It is recommended to use environment variables to securely provide credentials or retrieve credentials from a secure vault or HSM (Hardware Security Module)." + }, + "help": { + "markdown": "A hard-coded credential was detected. It is not recommended to store credentials in source-code, as this risks secrets being leaked and used by either an internal or external malicious adversary. It is recommended to use environment variables to securely provide credentials or retrieve credentials from a secure vault or HSM (Hardware Security Module).\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.express.security.audit.express-session-hardcoded-secret.express-session-hardcoded-secret)\n - [https://cheatsheetseries.owasp.org/cheatsheets/Secrets_Management_Cheat_Sheet.html](https://cheatsheetseries.owasp.org/cheatsheets/Secrets_Management_Cheat_Sheet.html)\n", + "text": "A hard-coded credential was detected. It is not recommended to store credentials in source-code, as this risks secrets being leaked and used by either an internal or external malicious adversary. It is recommended to use environment variables to securely provide credentials or retrieve credentials from a secure vault or HSM (Hardware Security Module)." + }, + "helpUri": "https://semgrep.dev/r/javascript.express.security.audit.express-session-hardcoded-secret.express-session-hardcoded-secret", + "id": "javascript.express.security.audit.express-session-hardcoded-secret.express-session-hardcoded-secret", + "name": "javascript.express.security.audit.express-session-hardcoded-secret.express-session-hardcoded-secret", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-798: Use of Hard-coded Credentials", + "HIGH CONFIDENCE", + "OWASP-A07:2021 - Identification and Authentication Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.express.security.audit.express-session-hardcoded-secret.express-session-hardcoded-secret" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Keep3rV2.current() call has high data freshness, but it has low security, an exploiter simply needs to manipulate 2 data points to be able to impact the feed." + }, + "help": { + "markdown": "Keep3rV2.current() call has high data freshness, but it has low security, an exploiter simply needs to manipulate 2 data points to be able to impact the feed.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/solidity.security.keeper-network-oracle-manipulation.keeper-network-oracle-manipulation)\n - [https://twitter.com/peckshield/status/1510232640338608131](https://twitter.com/peckshield/status/1510232640338608131)\n - [https://twitter.com/FrankResearcher/status/1510239094777032713](https://twitter.com/FrankResearcher/status/1510239094777032713)\n - [https://twitter.com/larry0x/status/1510263618180464644](https://twitter.com/larry0x/status/1510263618180464644)\n - [https://andrecronje.medium.com/keep3r-network-on-chain-oracle-price-feeds-3c67ed002a9](https://andrecronje.medium.com/keep3r-network-on-chain-oracle-price-feeds-3c67ed002a9)\n - [https://etherscan.io/address/0x210ac53b27f16e20a9aa7d16260f84693390258f](https://etherscan.io/address/0x210ac53b27f16e20a9aa7d16260f84693390258f)\n", + "text": "Keep3rV2.current() call has high data freshness, but it has low security, an exploiter simply needs to manipulate 2 data points to be able to impact the feed." + }, + "helpUri": "https://semgrep.dev/r/solidity.security.keeper-network-oracle-manipulation.keeper-network-oracle-manipulation", + "id": "solidity.security.keeper-network-oracle-manipulation.keeper-network-oracle-manipulation", + "name": "solidity.security.keeper-network-oracle-manipulation.keeper-network-oracle-manipulation", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-682: Incorrect Calculation", + "HIGH CONFIDENCE", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: solidity.security.keeper-network-oracle-manipulation.keeper-network-oracle-manipulation" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "`serialize-javascript` used with `unsafe` parameter, this could be vulnerable to XSS." + }, + "help": { + "markdown": "`serialize-javascript` used with `unsafe` parameter, this could be vulnerable to XSS.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.serialize-javascript.security.audit.unsafe-serialize-javascript.unsafe-serialize-javascript)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "`serialize-javascript` used with `unsafe` parameter, this could be vulnerable to XSS." + }, + "helpUri": "https://semgrep.dev/r/javascript.serialize-javascript.security.audit.unsafe-serialize-javascript.unsafe-serialize-javascript", + "id": "javascript.serialize-javascript.security.audit.unsafe-serialize-javascript.unsafe-serialize-javascript", + "name": "javascript.serialize-javascript.security.audit.unsafe-serialize-javascript.unsafe-serialize-javascript", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.serialize-javascript.security.audit.unsafe-serialize-javascript.unsafe-serialize-javascript" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected explicitly unescaped content using 'Markup()'. This permits the unescaped data to include unescaped HTML which could result in cross-site scripting. Ensure this data is not externally controlled, or consider rewriting to not use 'Markup()'." + }, + "help": { + "markdown": "Detected explicitly unescaped content using 'Markup()'. This permits the unescaped data to include unescaped HTML which could result in cross-site scripting. Ensure this data is not externally controlled, or consider rewriting to not use 'Markup()'.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.flask.security.xss.audit.explicit-unescape-with-markup.explicit-unescape-with-markup)\n - [https://tedboy.github.io/flask/generated/generated/flask.Markup.html](https://tedboy.github.io/flask/generated/generated/flask.Markup.html)\n", + "text": "Detected explicitly unescaped content using 'Markup()'. This permits the unescaped data to include unescaped HTML which could result in cross-site scripting. Ensure this data is not externally controlled, or consider rewriting to not use 'Markup()'." + }, + "helpUri": "https://semgrep.dev/r/python.flask.security.xss.audit.explicit-unescape-with-markup.explicit-unescape-with-markup", + "id": "python.flask.security.xss.audit.explicit-unescape-with-markup.explicit-unescape-with-markup", + "name": "python.flask.security.xss.audit.explicit-unescape-with-markup.explicit-unescape-with-markup", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.flask.security.xss.audit.explicit-unescape-with-markup.explicit-unescape-with-markup" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Using user input when deleting files with `unlink()` is potentially dangerous. A malicious actor could use this to modify or access files they have no right to." + }, + "help": { + "markdown": "Using user input when deleting files with `unlink()` is potentially dangerous. A malicious actor could use this to modify or access files they have no right to.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/php.lang.security.unlink-use.unlink-use)\n - [https://www.php.net/manual/en/function.unlink](https://www.php.net/manual/en/function.unlink)\n - [https://owasp.org/www-project-top-ten/2017/A5_2017-Broken_Access_Control.html](https://owasp.org/www-project-top-ten/2017/A5_2017-Broken_Access_Control.html)\n", + "text": "Using user input when deleting files with `unlink()` is potentially dangerous. A malicious actor could use this to modify or access files they have no right to." + }, + "helpUri": "https://semgrep.dev/r/php.lang.security.unlink-use.unlink-use", + "id": "php.lang.security.unlink-use.unlink-use", + "name": "php.lang.security.unlink-use.unlink-use", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')", + "LOW CONFIDENCE", + "OWASP-A01:2021 - Broken Access Control", + "OWASP-A05:2017 - Broken Access Control", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: php.lang.security.unlink-use.unlink-use" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Picatic API Key detected" + }, + "help": { + "markdown": "Picatic API Key detected\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/generic.secrets.security.detected-picatic-api-key.detected-picatic-api-key)\n - [https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures](https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures)\n", + "text": "Picatic API Key detected" + }, + "helpUri": "https://semgrep.dev/r/generic.secrets.security.detected-picatic-api-key.detected-picatic-api-key", + "id": "generic.secrets.security.detected-picatic-api-key.detected-picatic-api-key", + "name": "generic.secrets.security.detected-picatic-api-key.detected-picatic-api-key", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-798: Use of Hard-coded Credentials", + "LOW CONFIDENCE", + "OWASP-A07:2021 - Identification and Authentication Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: generic.secrets.security.detected-picatic-api-key.detected-picatic-api-key" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected an AWS Redshift configuration with a SSL disabled. To fix this, set your `require_ssl` to `\"true\"`." + }, + "help": { + "markdown": "Detected an AWS Redshift configuration with a SSL disabled. To fix this, set your `require_ssl` to `\"true\"`.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.aws.security.aws-insecure-redshift-ssl-configuration.aws-insecure-redshift-ssl-configuration)\n - [https://owasp.org/Top10/A02_2021-Cryptographic_Failures](https://owasp.org/Top10/A02_2021-Cryptographic_Failures)\n", + "text": "Detected an AWS Redshift configuration with a SSL disabled. To fix this, set your `require_ssl` to `\"true\"`." + }, + "helpUri": "https://semgrep.dev/r/terraform.aws.security.aws-insecure-redshift-ssl-configuration.aws-insecure-redshift-ssl-configuration", + "id": "terraform.aws.security.aws-insecure-redshift-ssl-configuration.aws-insecure-redshift-ssl-configuration", + "name": "terraform.aws.security.aws-insecure-redshift-ssl-configuration.aws-insecure-redshift-ssl-configuration", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-326: Inadequate Encryption Strength", + "MEDIUM CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.aws.security.aws-insecure-redshift-ssl-configuration.aws-insecure-redshift-ssl-configuration" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "This rule is deprecated." + }, + "help": { + "markdown": "This rule is deprecated.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ruby.rails.security.audit.dynamic-finders.dynamic-finders)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "This rule is deprecated." + }, + "helpUri": "https://semgrep.dev/r/ruby.rails.security.audit.dynamic-finders.dynamic-finders", + "id": "ruby.rails.security.audit.dynamic-finders.dynamic-finders", + "name": "ruby.rails.security.audit.dynamic-finders.dynamic-finders", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')", + "LOW CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: ruby.rails.security.audit.dynamic-finders.dynamic-finders" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Application redirects to a destination URL specified by a user-supplied parameter that is not validated. This could direct users to malicious locations. Consider using an allowlist to validate URLs." + }, + "help": { + "markdown": "Application redirects to a destination URL specified by a user-supplied parameter that is not validated. This could direct users to malicious locations. Consider using an allowlist to validate URLs.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.lang.security.audit.unvalidated-redirect.unvalidated-redirect)\n - [https://owasp.org/Top10/A01_2021-Broken_Access_Control](https://owasp.org/Top10/A01_2021-Broken_Access_Control)\n", + "text": "Application redirects to a destination URL specified by a user-supplied parameter that is not validated. This could direct users to malicious locations. Consider using an allowlist to validate URLs." + }, + "helpUri": "https://semgrep.dev/r/java.lang.security.audit.unvalidated-redirect.unvalidated-redirect", + "id": "java.lang.security.audit.unvalidated-redirect.unvalidated-redirect", + "name": "java.lang.security.audit.unvalidated-redirect.unvalidated-redirect", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-601: URL Redirection to Untrusted Site ('Open Redirect')", + "MEDIUM CONFIDENCE", + "OWASP-A01:2021 - Broken Access Control", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.lang.security.audit.unvalidated-redirect.unvalidated-redirect" + } + }, + { + "defaultConfiguration": { + "level": "note" + }, + "fullDescription": { + "text": "Use the latest version of HTTP to ensure you are benefiting from security fixes. Add `http2_enabled = true` to your function app resource block" + }, + "help": { + "markdown": "Use the latest version of HTTP to ensure you are benefiting from security fixes. Add `http2_enabled = true` to your function app resource block\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.azure.security.functionapp.functionapp-enable-http2.functionapp-enable-http2)\n - [https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/function_app#http2_enabled](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/function_app#http2_enabled)\n", + "text": "Use the latest version of HTTP to ensure you are benefiting from security fixes. Add `http2_enabled = true` to your function app resource block" + }, + "helpUri": "https://semgrep.dev/r/terraform.azure.security.functionapp.functionapp-enable-http2.functionapp-enable-http2", + "id": "terraform.azure.security.functionapp.functionapp-enable-http2.functionapp-enable-http2", + "name": "terraform.azure.security.functionapp.functionapp-enable-http2.functionapp-enable-http2", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-444: Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling')", + "LOW CONFIDENCE", + "OWASP-A04:2021 - Insecure Design", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.azure.security.functionapp.functionapp-enable-http2.functionapp-enable-http2" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "It looks like MD5 is used as a password hash. MD5 is not considered a secure password hash because it can be cracked by an attacker in a short amount of time. Use a suitable password hashing function such as bcrypt. You can use the `bcrypt` node.js package." + }, + "help": { + "markdown": "It looks like MD5 is used as a password hash. MD5 is not considered a secure password hash because it can be cracked by an attacker in a short amount of time. Use a suitable password hashing function such as bcrypt. You can use the `bcrypt` node.js package.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.lang.security.audit.md5-used-as-password.md5-used-as-password)\n - [https://tools.ietf.org/id/draft-lvelvindron-tls-md5-sha1-deprecate-01.html](https://tools.ietf.org/id/draft-lvelvindron-tls-md5-sha1-deprecate-01.html)\n - [https://security.stackexchange.com/questions/211/how-to-securely-hash-passwords](https://security.stackexchange.com/questions/211/how-to-securely-hash-passwords)\n - [https://github.com/returntocorp/semgrep-rules/issues/1609](https://github.com/returntocorp/semgrep-rules/issues/1609)\n - [https://www.npmjs.com/package/bcrypt](https://www.npmjs.com/package/bcrypt)\n", + "text": "It looks like MD5 is used as a password hash. MD5 is not considered a secure password hash because it can be cracked by an attacker in a short amount of time. Use a suitable password hashing function such as bcrypt. You can use the `bcrypt` node.js package." + }, + "helpUri": "https://semgrep.dev/r/javascript.lang.security.audit.md5-used-as-password.md5-used-as-password", + "id": "javascript.lang.security.audit.md5-used-as-password.md5-used-as-password", + "name": "javascript.lang.security.audit.md5-used-as-password.md5-used-as-password", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-327: Use of a Broken or Risky Cryptographic Algorithm", + "LOW CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.lang.security.audit.md5-used-as-password.md5-used-as-password" + } + }, + { + "defaultConfiguration": { + "level": "note" + }, + "fullDescription": { + "text": "Key vault Secret should have a content type set" + }, + "help": { + "markdown": "Key vault Secret should have a content type set\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.azure.security.keyvault.keyvault-content-type-for-secret.keyvault-content-type-for-secret)\n - [https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/key_vault_secret#content_type](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/key_vault_secret#content_type)\n - [https://docs.microsoft.com/en-us/azure/key-vault/secrets/about-secrets](https://docs.microsoft.com/en-us/azure/key-vault/secrets/about-secrets)\n", + "text": "Key vault Secret should have a content type set" + }, + "helpUri": "https://semgrep.dev/r/terraform.azure.security.keyvault.keyvault-content-type-for-secret.keyvault-content-type-for-secret", + "id": "terraform.azure.security.keyvault.keyvault-content-type-for-secret.keyvault-content-type-for-secret", + "name": "terraform.azure.security.keyvault.keyvault-content-type-for-secret.keyvault-content-type-for-secret", + "properties": { + "precision": "very-high", + "tags": [] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.azure.security.keyvault.keyvault-content-type-for-secret.keyvault-content-type-for-secret" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "The NetDataContractSerializer type is dangerous and is not recommended for data processing. Applications should stop using NetDataContractSerializer as soon as possible, even if they believe the data they're processing to be trustworthy. NetDataContractSerializer is insecure and can't be made secure" + }, + "help": { + "markdown": "The NetDataContractSerializer type is dangerous and is not recommended for data processing. Applications should stop using NetDataContractSerializer as soon as possible, even if they believe the data they're processing to be trustworthy. NetDataContractSerializer is insecure and can't be made secure\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/csharp.lang.security.insecure-deserialization.net-data-contract.insecure-netdatacontract-deserialization)\n - [https://docs.microsoft.com/en-us/dotnet/api/system.runtime.serialization.netdatacontractserializer?view=netframework-4.8#security](https://docs.microsoft.com/en-us/dotnet/api/system.runtime.serialization.netdatacontractserializer?view=netframework-4.8#security)\n", + "text": "The NetDataContractSerializer type is dangerous and is not recommended for data processing. Applications should stop using NetDataContractSerializer as soon as possible, even if they believe the data they're processing to be trustworthy. NetDataContractSerializer is insecure and can't be made secure" + }, + "helpUri": "https://semgrep.dev/r/csharp.lang.security.insecure-deserialization.net-data-contract.insecure-netdatacontract-deserialization", + "id": "csharp.lang.security.insecure-deserialization.net-data-contract.insecure-netdatacontract-deserialization", + "name": "csharp.lang.security.insecure-deserialization.net-data-contract.insecure-netdatacontract-deserialization", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-502: Deserialization of Untrusted Data", + "MEDIUM CONFIDENCE", + "OWASP-A08:2017 - Insecure Deserialization", + "OWASP-A08:2021 - Software and Data Integrity Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: csharp.lang.security.insecure-deserialization.net-data-contract.insecure-netdatacontract-deserialization" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Using less than 128 bits for Blowfish is considered insecure. Use 128 bits or more, or switch to use AES instead." + }, + "help": { + "markdown": "Using less than 128 bits for Blowfish is considered insecure. Use 128 bits or more, or switch to use AES instead.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.lang.security.audit.blowfish-insufficient-key-size.blowfish-insufficient-key-size)\n - [https://owasp.org/Top10/A02_2021-Cryptographic_Failures](https://owasp.org/Top10/A02_2021-Cryptographic_Failures)\n", + "text": "Using less than 128 bits for Blowfish is considered insecure. Use 128 bits or more, or switch to use AES instead." + }, + "helpUri": "https://semgrep.dev/r/java.lang.security.audit.blowfish-insufficient-key-size.blowfish-insufficient-key-size", + "id": "java.lang.security.audit.blowfish-insufficient-key-size.blowfish-insufficient-key-size", + "name": "java.lang.security.audit.blowfish-insufficient-key-size.blowfish-insufficient-key-size", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-326: Inadequate Encryption Strength", + "HIGH CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.lang.security.audit.blowfish-insufficient-key-size.blowfish-insufficient-key-size" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "An object-returning LDAP search will allow attackers to control the LDAP response. This could lead to Remote Code Execution." + }, + "help": { + "markdown": "An object-returning LDAP search will allow attackers to control the LDAP response. This could lead to Remote Code Execution.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.lang.security.audit.ldap-entry-poisoning.ldap-entry-poisoning)\n - [https://www.blackhat.com/docs/us-16/materials/us-16-Munoz-A-Journey-From-JNDI-LDAP-Manipulation-To-RCE-wp.pdf](https://www.blackhat.com/docs/us-16/materials/us-16-Munoz-A-Journey-From-JNDI-LDAP-Manipulation-To-RCE-wp.pdf)\n - [https://cheatsheetseries.owasp.org/cheatsheets/LDAP_Injection_Prevention_Cheat_Sheet.html](https://cheatsheetseries.owasp.org/cheatsheets/LDAP_Injection_Prevention_Cheat_Sheet.html)\n", + "text": "An object-returning LDAP search will allow attackers to control the LDAP response. This could lead to Remote Code Execution." + }, + "helpUri": "https://semgrep.dev/r/java.lang.security.audit.ldap-entry-poisoning.ldap-entry-poisoning", + "id": "java.lang.security.audit.ldap-entry-poisoning.ldap-entry-poisoning", + "name": "java.lang.security.audit.ldap-entry-poisoning.ldap-entry-poisoning", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-90: Improper Neutralization of Special Elements used in an LDAP Query ('LDAP Injection')", + "LOW CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.lang.security.audit.ldap-entry-poisoning.ldap-entry-poisoning" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "This rule is deprecated." + }, + "help": { + "markdown": "This rule is deprecated.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ruby.rails.security.audit.rails-check-render-dos-gem.rails-check-render-dos)\n - [https://groups.google.com/g/rubyonrails-security/c/LMxO_3_eCuc/m/ozGBEhKaJbIJ](https://groups.google.com/g/rubyonrails-security/c/LMxO_3_eCuc/m/ozGBEhKaJbIJ)\n - [https://nvd.nist.gov/vuln/detail/CVE-2014-0082](https://nvd.nist.gov/vuln/detail/CVE-2014-0082)\n", + "text": "This rule is deprecated." + }, + "helpUri": "https://semgrep.dev/r/ruby.rails.security.audit.rails-check-render-dos-gem.rails-check-render-dos", + "id": "ruby.rails.security.audit.rails-check-render-dos-gem.rails-check-render-dos", + "name": "ruby.rails.security.audit.rails-check-render-dos-gem.rails-check-render-dos", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-20: Improper Input Validation", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: ruby.rails.security.audit.rails-check-render-dos-gem.rails-check-render-dos" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "math.remainder is only available on Python 3.7+ and is therefore not backwards compatible. Instead, use math.fmod() or calculate $X - n* $Y." + }, + "help": { + "markdown": "math.remainder is only available on Python 3.7+ and is therefore not backwards compatible. Instead, use math.fmod() or calculate $X - n* $Y.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.lang.compatibility.python37.python37-compatibility-math1)\n", + "text": "math.remainder is only available on Python 3.7+ and is therefore not backwards compatible. Instead, use math.fmod() or calculate $X - n* $Y." + }, + "helpUri": "https://semgrep.dev/r/python.lang.compatibility.python37.python37-compatibility-math1", + "id": "python.lang.compatibility.python37.python37-compatibility-math1", + "name": "python.lang.compatibility.python37.python37-compatibility-math1", + "properties": { + "precision": "very-high", + "tags": [] + }, + "shortDescription": { + "text": "Semgrep Finding: python.lang.compatibility.python37.python37-compatibility-math1" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Artifactory token detected" + }, + "help": { + "markdown": "Artifactory token detected\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/generic.secrets.security.detected-artifactory-token.detected-artifactory-token)\n - [https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures](https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures)\n", + "text": "Artifactory token detected" + }, + "helpUri": "https://semgrep.dev/r/generic.secrets.security.detected-artifactory-token.detected-artifactory-token", + "id": "generic.secrets.security.detected-artifactory-token.detected-artifactory-token", + "name": "generic.secrets.security.detected-artifactory-token.detected-artifactory-token", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-798: Use of Hard-coded Credentials", + "LOW CONFIDENCE", + "OWASP-A07:2021 - Identification and Authentication Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: generic.secrets.security.detected-artifactory-token.detected-artifactory-token" + } + }, + { + "defaultConfiguration": { + "level": "note" + }, + "fullDescription": { + "text": "this rule has been deprecated." + }, + "help": { + "markdown": "this rule has been deprecated.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.lang.security.audit.vm-injection.vm-sourcetextmodule-code-injection)\n - [https://nodejs.org/dist/latest-v16.x/docs/api/vm.html](https://nodejs.org/dist/latest-v16.x/docs/api/vm.html)\n", + "text": "this rule has been deprecated." + }, + "helpUri": "https://semgrep.dev/r/javascript.lang.security.audit.vm-injection.vm-sourcetextmodule-code-injection", + "id": "javascript.lang.security.audit.vm-injection.vm-sourcetextmodule-code-injection", + "name": "javascript.lang.security.audit.vm-injection.vm-sourcetextmodule-code-injection", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-94: Improper Control of Generation of Code ('Code Injection')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.lang.security.audit.vm-injection.vm-sourcetextmodule-code-injection" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected a formatted string in a SQL statement. This could lead to SQL injection if variables in the SQL statement are not properly sanitized. Use a prepared statements (java.sql.PreparedStatement) instead. You can obtain a PreparedStatement using 'connection.prepareStatement'." + }, + "help": { + "markdown": "Detected a formatted string in a SQL statement. This could lead to SQL injection if variables in the SQL statement are not properly sanitized. Use a prepared statements (java.sql.PreparedStatement) instead. You can obtain a PreparedStatement using 'connection.prepareStatement'.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.lang.security.audit.sqli.jdo-sqli.jdo-sqli)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "Detected a formatted string in a SQL statement. This could lead to SQL injection if variables in the SQL statement are not properly sanitized. Use a prepared statements (java.sql.PreparedStatement) instead. You can obtain a PreparedStatement using 'connection.prepareStatement'." + }, + "helpUri": "https://semgrep.dev/r/java.lang.security.audit.sqli.jdo-sqli.jdo-sqli", + "id": "java.lang.security.audit.sqli.jdo-sqli.jdo-sqli", + "name": "java.lang.security.audit.sqli.jdo-sqli.jdo-sqli", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')", + "LOW CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.lang.security.audit.sqli.jdo-sqli.jdo-sqli" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Setting 'WTF_CSRF_ENABLED' to 'False' explicitly disables CSRF protection." + }, + "help": { + "markdown": "Setting 'WTF_CSRF_ENABLED' to 'False' explicitly disables CSRF protection.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.flask.security.audit.wtf-csrf-disabled.flask-wtf-csrf-disabled)\n - [https://flask-wtf.readthedocs.io/en/stable/csrf.html](https://flask-wtf.readthedocs.io/en/stable/csrf.html)\n", + "text": "Setting 'WTF_CSRF_ENABLED' to 'False' explicitly disables CSRF protection." + }, + "helpUri": "https://semgrep.dev/r/python.flask.security.audit.wtf-csrf-disabled.flask-wtf-csrf-disabled", + "id": "python.flask.security.audit.wtf-csrf-disabled.flask-wtf-csrf-disabled", + "name": "python.flask.security.audit.wtf-csrf-disabled.flask-wtf-csrf-disabled", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-352: Cross-Site Request Forgery (CSRF)", + "LOW CONFIDENCE", + "OWASP-A01:2021 - Broken Access Control", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.flask.security.audit.wtf-csrf-disabled.flask-wtf-csrf-disabled" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Static IV used with AES in CBC mode. Static IVs enable chosen-plaintext attacks against encrypted data." + }, + "help": { + "markdown": "Static IV used with AES in CBC mode. Static IVs enable chosen-plaintext attacks against encrypted data.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/php.lang.security.openssl-cbc-static-iv.openssl-cbc-static-iv)\n - [https://csrc.nist.gov/publications/detail/sp/800-38a/final](https://csrc.nist.gov/publications/detail/sp/800-38a/final)\n", + "text": "Static IV used with AES in CBC mode. Static IVs enable chosen-plaintext attacks against encrypted data." + }, + "helpUri": "https://semgrep.dev/r/php.lang.security.openssl-cbc-static-iv.openssl-cbc-static-iv", + "id": "php.lang.security.openssl-cbc-static-iv.openssl-cbc-static-iv", + "name": "php.lang.security.openssl-cbc-static-iv.openssl-cbc-static-iv", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-329: Generation of Predictable IV with CBC Mode", + "HIGH CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: php.lang.security.openssl-cbc-static-iv.openssl-cbc-static-iv" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected SQL statement that is tainted by `$EVENT` object. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use parameterized queries or prepared statements instead. You can use prepared statements with the 'Prepare' and 'PrepareContext' calls." + }, + "help": { + "markdown": "Detected SQL statement that is tainted by `$EVENT` object. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use parameterized queries or prepared statements instead. You can use prepared statements with the 'Prepare' and 'PrepareContext' calls.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/go.aws-lambda.security.database-sqli.database-sqli)\n - [https://pkg.go.dev/database/sql#DB.Query](https://pkg.go.dev/database/sql#DB.Query)\n", + "text": "Detected SQL statement that is tainted by `$EVENT` object. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use parameterized queries or prepared statements instead. You can use prepared statements with the 'Prepare' and 'PrepareContext' calls." + }, + "helpUri": "https://semgrep.dev/r/go.aws-lambda.security.database-sqli.database-sqli", + "id": "go.aws-lambda.security.database-sqli.database-sqli", + "name": "go.aws-lambda.security.database-sqli.database-sqli", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')", + "MEDIUM CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: go.aws-lambda.security.database-sqli.database-sqli" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "$METHOD is a state-changing MVC method that does not validate the antiforgery token or do strict content-type checking. State-changing controller methods should either enforce antiforgery tokens or do strict content-type checking to prevent simple HTTP request types from bypassing CORS preflight controls." + }, + "help": { + "markdown": "$METHOD is a state-changing MVC method that does not validate the antiforgery token or do strict content-type checking. State-changing controller methods should either enforce antiforgery tokens or do strict content-type checking to prevent simple HTTP request types from bypassing CORS preflight controls.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/csharp.dotnet.security.mvc-missing-antiforgery.mvc-missing-antiforgery)\n - [https://cheatsheetseries.owasp.org/cheatsheets/DotNet_Security_Cheat_Sheet.html#cross-site-request-forgery](https://cheatsheetseries.owasp.org/cheatsheets/DotNet_Security_Cheat_Sheet.html#cross-site-request-forgery)\n - [https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#simple_requests](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#simple_requests)\n", + "text": "$METHOD is a state-changing MVC method that does not validate the antiforgery token or do strict content-type checking. State-changing controller methods should either enforce antiforgery tokens or do strict content-type checking to prevent simple HTTP request types from bypassing CORS preflight controls." + }, + "helpUri": "https://semgrep.dev/r/csharp.dotnet.security.mvc-missing-antiforgery.mvc-missing-antiforgery", + "id": "csharp.dotnet.security.mvc-missing-antiforgery.mvc-missing-antiforgery", + "name": "csharp.dotnet.security.mvc-missing-antiforgery.mvc-missing-antiforgery", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-352: Cross-Site Request Forgery (CSRF)", + "LOW CONFIDENCE", + "OWASP-A01:2021 - Broken Access Control", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: csharp.dotnet.security.mvc-missing-antiforgery.mvc-missing-antiforgery" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected user input flowing into a manually constructed HTML string. You may be accidentally bypassing secure methods of rendering HTML by manually constructing HTML and this could create a cross-site scripting vulnerability, which could let attackers steal sensitive user data. Use the `html/template` package which will safely render HTML instead, or inspect that the HTML is rendered safely." + }, + "help": { + "markdown": "Detected user input flowing into a manually constructed HTML string. You may be accidentally bypassing secure methods of rendering HTML by manually constructing HTML and this could create a cross-site scripting vulnerability, which could let attackers steal sensitive user data. Use the `html/template` package which will safely render HTML instead, or inspect that the HTML is rendered safely.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/go.lang.security.injection.raw-html-format.raw-html-format)\n - [https://blogtitle.github.io/robn-go-security-pearls-cross-site-scripting-xss/](https://blogtitle.github.io/robn-go-security-pearls-cross-site-scripting-xss/)\n", + "text": "Detected user input flowing into a manually constructed HTML string. You may be accidentally bypassing secure methods of rendering HTML by manually constructing HTML and this could create a cross-site scripting vulnerability, which could let attackers steal sensitive user data. Use the `html/template` package which will safely render HTML instead, or inspect that the HTML is rendered safely." + }, + "helpUri": "https://semgrep.dev/r/go.lang.security.injection.raw-html-format.raw-html-format", + "id": "go.lang.security.injection.raw-html-format.raw-html-format", + "name": "go.lang.security.injection.raw-html-format.raw-html-format", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "MEDIUM CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: go.lang.security.injection.raw-html-format.raw-html-format" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "The application accepts potentially user-controlled input `$PROP` which can control the location of the current window context. This can lead two types of vulnerabilities open-redirection and Cross-Site-Scripting (XSS) with JavaScript URIs. It is recommended to validate user-controllable input before allowing it to control the redirection." + }, + "help": { + "markdown": "The application accepts potentially user-controlled input `$PROP` which can control the location of the current window context. This can lead two types of vulnerabilities open-redirection and Cross-Site-Scripting (XSS) with JavaScript URIs. It is recommended to validate user-controllable input before allowing it to control the redirection.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.browser.security.open-redirect.js-open-redirect)\n - [https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html](https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html)\n", + "text": "The application accepts potentially user-controlled input `$PROP` which can control the location of the current window context. This can lead two types of vulnerabilities open-redirection and Cross-Site-Scripting (XSS) with JavaScript URIs. It is recommended to validate user-controllable input before allowing it to control the redirection." + }, + "helpUri": "https://semgrep.dev/r/javascript.browser.security.open-redirect.js-open-redirect", + "id": "javascript.browser.security.open-redirect.js-open-redirect", + "name": "javascript.browser.security.open-redirect.js-open-redirect", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-601: URL Redirection to Untrusted Site ('Open Redirect')", + "HIGH CONFIDENCE", + "OWASP-A01:2021 - Broken Access Control", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.browser.security.open-redirect.js-open-redirect" + } + }, + { + "defaultConfiguration": { + "level": "note" + }, + "fullDescription": { + "text": "Translated strings will not be escaped when rendered in a template. This leads to a vulnerability where translators could include malicious script tags in their translations. Consider using `force_escape` to explicitly escape a translated text." + }, + "help": { + "markdown": "Translated strings will not be escaped when rendered in a template. This leads to a vulnerability where translators could include malicious script tags in their translations. Consider using `force_escape` to explicitly escape a translated text.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.django.security.audit.xss.template-translate-as-no-escape.template-translate-as-no-escape)\n - [https://edx.readthedocs.io/projects/edx-developer-guide/en/latest/preventing_xss/preventing_xss_in_django_templates.html#html-escaping-translations-in-django-templates](https://edx.readthedocs.io/projects/edx-developer-guide/en/latest/preventing_xss/preventing_xss_in_django_templates.html#html-escaping-translations-in-django-templates)\n - [https://docs.djangoproject.com/en/3.1/topics/i18n/translation/#internationalization-in-template-code](https://docs.djangoproject.com/en/3.1/topics/i18n/translation/#internationalization-in-template-code)\n", + "text": "Translated strings will not be escaped when rendered in a template. This leads to a vulnerability where translators could include malicious script tags in their translations. Consider using `force_escape` to explicitly escape a translated text." + }, + "helpUri": "https://semgrep.dev/r/python.django.security.audit.xss.template-translate-as-no-escape.template-translate-as-no-escape", + "id": "python.django.security.audit.xss.template-translate-as-no-escape.template-translate-as-no-escape", + "name": "python.django.security.audit.xss.template-translate-as-no-escape.template-translate-as-no-escape", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.django.security.audit.xss.template-translate-as-no-escape.template-translate-as-no-escape" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected string concatenation with a non-literal variable in a asyncpg Python SQL statement. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use parameterized queries or prepared statements instead. You can create parameterized queries like so: 'conn.fetch(\"SELECT $1 FROM table\", value)'. You can also create prepared statements with 'Connection.prepare': 'stmt = conn.prepare(\"SELECT $1 FROM table\"); await stmt.fetch(user_value)'" + }, + "help": { + "markdown": "Detected string concatenation with a non-literal variable in a asyncpg Python SQL statement. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use parameterized queries or prepared statements instead. You can create parameterized queries like so: 'conn.fetch(\"SELECT $1 FROM table\", value)'. You can also create prepared statements with 'Connection.prepare': 'stmt = conn.prepare(\"SELECT $1 FROM table\"); await stmt.fetch(user_value)'\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.lang.security.audit.sqli.asyncpg-sqli.asyncpg-sqli)\n - [https://github.com/MagicStack/asyncpg](https://github.com/MagicStack/asyncpg)\n - [https://magicstack.github.io/asyncpg/current/](https://magicstack.github.io/asyncpg/current/)\n", + "text": "Detected string concatenation with a non-literal variable in a asyncpg Python SQL statement. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use parameterized queries or prepared statements instead. You can create parameterized queries like so: 'conn.fetch(\"SELECT $1 FROM table\", value)'. You can also create prepared statements with 'Connection.prepare': 'stmt = conn.prepare(\"SELECT $1 FROM table\"); await stmt.fetch(user_value)'" + }, + "helpUri": "https://semgrep.dev/r/python.lang.security.audit.sqli.asyncpg-sqli.asyncpg-sqli", + "id": "python.lang.security.audit.sqli.asyncpg-sqli.asyncpg-sqli", + "name": "python.lang.security.audit.sqli.asyncpg-sqli.asyncpg-sqli", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')", + "LOW CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.lang.security.audit.sqli.asyncpg-sqli.asyncpg-sqli" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "User controlled data in a `createNodesFromMarkup` is an anti-pattern that can lead to XSS vulnerabilities" + }, + "help": { + "markdown": "User controlled data in a `createNodesFromMarkup` is an anti-pattern that can lead to XSS vulnerabilities\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.fbjs.security.audit.insecure-createnodesfrommarkup.insecure-createnodesfrommarkup)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "User controlled data in a `createNodesFromMarkup` is an anti-pattern that can lead to XSS vulnerabilities" + }, + "helpUri": "https://semgrep.dev/r/javascript.fbjs.security.audit.insecure-createnodesfrommarkup.insecure-createnodesfrommarkup", + "id": "javascript.fbjs.security.audit.insecure-createnodesfrommarkup.insecure-createnodesfrommarkup", + "name": "javascript.fbjs.security.audit.insecure-createnodesfrommarkup.insecure-createnodesfrommarkup", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.fbjs.security.audit.insecure-createnodesfrommarkup.insecure-createnodesfrommarkup" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Found an insecure gRPC server without 'grpc.Creds()' or options with credentials. This allows for a connection without encryption to this server. A malicious attacker could tamper with the gRPC message, which could compromise the machine. Include credentials derived from an SSL certificate in order to create a secure gRPC connection. You can create credentials using 'credentials.NewServerTLSFromFile(\"cert.pem\", \"cert.key\")'." + }, + "help": { + "markdown": "Found an insecure gRPC server without 'grpc.Creds()' or options with credentials. This allows for a connection without encryption to this server. A malicious attacker could tamper with the gRPC message, which could compromise the machine. Include credentials derived from an SSL certificate in order to create a secure gRPC connection. You can create credentials using 'credentials.NewServerTLSFromFile(\"cert.pem\", \"cert.key\")'.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/go.grpc.security.grpc-server-insecure-connection.grpc-server-insecure-connection)\n - [https://blog.gopheracademy.com/advent-2019/go-grps-and-tls/#connection-without-encryption](https://blog.gopheracademy.com/advent-2019/go-grps-and-tls/#connection-without-encryption)\n", + "text": "Found an insecure gRPC server without 'grpc.Creds()' or options with credentials. This allows for a connection without encryption to this server. A malicious attacker could tamper with the gRPC message, which could compromise the machine. Include credentials derived from an SSL certificate in order to create a secure gRPC connection. You can create credentials using 'credentials.NewServerTLSFromFile(\"cert.pem\", \"cert.key\")'." + }, + "helpUri": "https://semgrep.dev/r/go.grpc.security.grpc-server-insecure-connection.grpc-server-insecure-connection", + "id": "go.grpc.security.grpc-server-insecure-connection.grpc-server-insecure-connection", + "name": "go.grpc.security.grpc-server-insecure-connection.grpc-server-insecure-connection", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-300: Channel Accessible by Non-Endpoint", + "HIGH CONFIDENCE", + "OWASP-A07:2021 - Identification and Authentication Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: go.grpc.security.grpc-server-insecure-connection.grpc-server-insecure-connection" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "If an attacker can supply values that the application then uses to determine which class to instantiate or which method to invoke, the potential exists for the attacker to create control flow paths through the application that were not intended by the application developers. This attack vector may allow the attacker to bypass authentication or access control checks or otherwise cause the application to behave in an unexpected manner." + }, + "help": { + "markdown": "If an attacker can supply values that the application then uses to determine which class to instantiate or which method to invoke, the potential exists for the attacker to create control flow paths through the application that were not intended by the application developers. This attack vector may allow the attacker to bypass authentication or access control checks or otherwise cause the application to behave in an unexpected manner.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.lang.security.audit.unsafe-reflection.unsafe-reflection)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "If an attacker can supply values that the application then uses to determine which class to instantiate or which method to invoke, the potential exists for the attacker to create control flow paths through the application that were not intended by the application developers. This attack vector may allow the attacker to bypass authentication or access control checks or otherwise cause the application to behave in an unexpected manner." + }, + "helpUri": "https://semgrep.dev/r/java.lang.security.audit.unsafe-reflection.unsafe-reflection", + "id": "java.lang.security.audit.unsafe-reflection.unsafe-reflection", + "name": "java.lang.security.audit.unsafe-reflection.unsafe-reflection", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-470: Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.lang.security.audit.unsafe-reflection.unsafe-reflection" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "The 'ssl' module disables insecure cipher suites by default. Therefore, use of 'set_ciphers()' should only be used when you have very specialized requirements. Otherwise, you risk lowering the security of the SSL channel." + }, + "help": { + "markdown": "The 'ssl' module disables insecure cipher suites by default. Therefore, use of 'set_ciphers()' should only be used when you have very specialized requirements. Otherwise, you risk lowering the security of the SSL channel.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.lang.security.audit.insecure-transport.ssl.no-set-ciphers.no-set-ciphers)\n - [https://docs.python.org/3/library/ssl.html#cipher-selection](https://docs.python.org/3/library/ssl.html#cipher-selection)\n - [https://docs.python.org/3/library/ssl.html#ssl.SSLContext.set_ciphers](https://docs.python.org/3/library/ssl.html#ssl.SSLContext.set_ciphers)\n", + "text": "The 'ssl' module disables insecure cipher suites by default. Therefore, use of 'set_ciphers()' should only be used when you have very specialized requirements. Otherwise, you risk lowering the security of the SSL channel." + }, + "helpUri": "https://semgrep.dev/r/python.lang.security.audit.insecure-transport.ssl.no-set-ciphers.no-set-ciphers", + "id": "python.lang.security.audit.insecure-transport.ssl.no-set-ciphers.no-set-ciphers", + "name": "python.lang.security.audit.insecure-transport.ssl.no-set-ciphers.no-set-ciphers", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-326: Inadequate Encryption Strength", + "LOW CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.lang.security.audit.insecure-transport.ssl.no-set-ciphers.no-set-ciphers" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "DOCTYPE declarations are enabled for this DocumentBuilderFactory. This is vulnerable to XML external entity attacks. Disable this by setting the feature \"http://apache.org/xml/features/disallow-doctype-decl\" to true. Alternatively, allow DOCTYPE declarations and only prohibit external entities declarations. This can be done by setting the features \"http://xml.org/sax/features/external-general-entities\" and \"http://xml.org/sax/features/external-parameter-entities\" to false." + }, + "help": { + "markdown": "DOCTYPE declarations are enabled for this DocumentBuilderFactory. This is vulnerable to XML external entity attacks. Disable this by setting the feature \"http://apache.org/xml/features/disallow-doctype-decl\" to true. Alternatively, allow DOCTYPE declarations and only prohibit external entities declarations. This can be done by setting the features \"http://xml.org/sax/features/external-general-entities\" and \"http://xml.org/sax/features/external-parameter-entities\" to false.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.lang.security.audit.xxe.documentbuilderfactory-disallow-doctype-decl-missing.documentbuilderfactory-disallow-doctype-decl-missing)\n - [https://semgrep.dev/blog/2022/xml-security-in-java](https://semgrep.dev/blog/2022/xml-security-in-java)\n - [https://semgrep.dev/docs/cheat-sheets/java-xxe/](https://semgrep.dev/docs/cheat-sheets/java-xxe/)\n - [https://blog.sonarsource.com/secure-xml-processor](https://blog.sonarsource.com/secure-xml-processor)\n - [https://xerces.apache.org/xerces2-j/features.html](https://xerces.apache.org/xerces2-j/features.html)\n", + "text": "DOCTYPE declarations are enabled for this DocumentBuilderFactory. This is vulnerable to XML external entity attacks. Disable this by setting the feature \"http://apache.org/xml/features/disallow-doctype-decl\" to true. Alternatively, allow DOCTYPE declarations and only prohibit external entities declarations. This can be done by setting the features \"http://xml.org/sax/features/external-general-entities\" and \"http://xml.org/sax/features/external-parameter-entities\" to false." + }, + "helpUri": "https://semgrep.dev/r/java.lang.security.audit.xxe.documentbuilderfactory-disallow-doctype-decl-missing.documentbuilderfactory-disallow-doctype-decl-missing", + "id": "java.lang.security.audit.xxe.documentbuilderfactory-disallow-doctype-decl-missing.documentbuilderfactory-disallow-doctype-decl-missing", + "name": "java.lang.security.audit.xxe.documentbuilderfactory-disallow-doctype-decl-missing.documentbuilderfactory-disallow-doctype-decl-missing", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-611: Improper Restriction of XML External Entity Reference", + "HIGH CONFIDENCE", + "OWASP-A04:2017 - XML External Entities (XXE)", + "OWASP-A05:2021 - Security Misconfiguration", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.lang.security.audit.xxe.documentbuilderfactory-disallow-doctype-decl-missing.documentbuilderfactory-disallow-doctype-decl-missing" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "This code includes user input in `link_to`. In Rails 2.x, the body of `link_to` is not escaped. This means that user input which reaches the body will be executed when the HTML is rendered. Even in other versions, values starting with `javascript:` or `data:` are not escaped. It is better to create and use a safer function which checks the body argument." + }, + "help": { + "markdown": "This code includes user input in `link_to`. In Rails 2.x, the body of `link_to` is not escaped. This means that user input which reaches the body will be executed when the HTML is rendered. Even in other versions, values starting with `javascript:` or `data:` are not escaped. It is better to create and use a safer function which checks the body argument.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ruby.rails.security.audit.xss.avoid-link-to.avoid-link-to)\n - [https://brakemanscanner.org/docs/warning_types/link_to/](https://brakemanscanner.org/docs/warning_types/link_to/)\n - [https://brakemanscanner.org/docs/warning_types/link_to_href/](https://brakemanscanner.org/docs/warning_types/link_to_href/)\n", + "text": "This code includes user input in `link_to`. In Rails 2.x, the body of `link_to` is not escaped. This means that user input which reaches the body will be executed when the HTML is rendered. Even in other versions, values starting with `javascript:` or `data:` are not escaped. It is better to create and use a safer function which checks the body argument." + }, + "helpUri": "https://semgrep.dev/r/ruby.rails.security.audit.xss.avoid-link-to.avoid-link-to", + "id": "ruby.rails.security.audit.xss.avoid-link-to.avoid-link-to", + "name": "ruby.rails.security.audit.xss.avoid-link-to.avoid-link-to", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "MEDIUM CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: ruby.rails.security.audit.xss.avoid-link-to.avoid-link-to" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Bracket object notation with user input is present, this might allow an attacker to access all properties of the object and even it's prototype. Use literal values for object properties." + }, + "help": { + "markdown": "Bracket object notation with user input is present, this might allow an attacker to access all properties of the object and even it's prototype. Use literal values for object properties.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.express.security.audit.remote-property-injection.remote-property-injection)\n - [https://github.com/nodesecurity/eslint-plugin-security/blob/3c7522ca1be800353513282867a1034c795d9eb4/docs/the-dangers-of-square-bracket-notation.md](https://github.com/nodesecurity/eslint-plugin-security/blob/3c7522ca1be800353513282867a1034c795d9eb4/docs/the-dangers-of-square-bracket-notation.md)\n", + "text": "Bracket object notation with user input is present, this might allow an attacker to access all properties of the object and even it's prototype. Use literal values for object properties." + }, + "helpUri": "https://semgrep.dev/r/javascript.express.security.audit.remote-property-injection.remote-property-injection", + "id": "javascript.express.security.audit.remote-property-injection.remote-property-injection", + "name": "javascript.express.security.audit.remote-property-injection.remote-property-injection", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-522: Insufficiently Protected Credentials", + "LOW CONFIDENCE", + "OWASP-A02:2017 - Broken Authentication", + "OWASP-A04:2021 - Insecure Design", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.express.security.audit.remote-property-injection.remote-property-injection" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Checks for redefinitions of functions that check TLS/SSL certificate verification. This can lead to vulnerabilities, as simple errors in the code can result in lack of proper certificate validation. This should only be used for debugging purposes because it leads to vulnerability to MTM attacks." + }, + "help": { + "markdown": "Checks for redefinitions of functions that check TLS/SSL certificate verification. This can lead to vulnerabilities, as simple errors in the code can result in lack of proper certificate validation. This should only be used for debugging purposes because it leads to vulnerability to MTM attacks.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/problem-based-packs.insecure-transport.java-spring.bypass-tls-verification.bypass-tls-verification)\n - [https://stackoverflow.com/questions/4072585/disabling-ssl-certificate-validation-in-spring-resttemplate](https://stackoverflow.com/questions/4072585/disabling-ssl-certificate-validation-in-spring-resttemplate)\n - [https://stackoverflow.com/questions/35530558/how-to-fix-unsafe-implementation-of-x509trustmanager-in-android-app?rq=1](https://stackoverflow.com/questions/35530558/how-to-fix-unsafe-implementation-of-x509trustmanager-in-android-app?rq=1)\n", + "text": "Checks for redefinitions of functions that check TLS/SSL certificate verification. This can lead to vulnerabilities, as simple errors in the code can result in lack of proper certificate validation. This should only be used for debugging purposes because it leads to vulnerability to MTM attacks." + }, + "helpUri": "https://semgrep.dev/r/problem-based-packs.insecure-transport.java-spring.bypass-tls-verification.bypass-tls-verification", + "id": "problem-based-packs.insecure-transport.java-spring.bypass-tls-verification.bypass-tls-verification", + "name": "problem-based-packs.insecure-transport.java-spring.bypass-tls-verification.bypass-tls-verification", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-319: Cleartext Transmission of Sensitive Information", + "MEDIUM CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: problem-based-packs.insecure-transport.java-spring.bypass-tls-verification.bypass-tls-verification" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "This rule is deprecated." + }, + "help": { + "markdown": "This rule is deprecated.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ruby.lang.security.json-encoding.json-encoding)\n - [https://github.com/presidentbeef/brakeman/blob/main/lib/brakeman/checks/check_json_encoding.rb](https://github.com/presidentbeef/brakeman/blob/main/lib/brakeman/checks/check_json_encoding.rb)\n - [https://groups.google.com/g/rubyonrails-security/c/7VlB_pck3hU/m/3QZrGIaQW6cJ](https://groups.google.com/g/rubyonrails-security/c/7VlB_pck3hU/m/3QZrGIaQW6cJ)\n", + "text": "This rule is deprecated." + }, + "helpUri": "https://semgrep.dev/r/ruby.lang.security.json-encoding.json-encoding", + "id": "ruby.lang.security.json-encoding.json-encoding", + "name": "ruby.lang.security.json-encoding.json-encoding", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: ruby.lang.security.json-encoding.json-encoding" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Detected user input used to manually construct a SQL string. This is usually bad practice because manual construction could accidentally result in a SQL injection. An attacker could use a SQL injection to steal or modify contents of the database. Instead, use a parameterized query which is available by default in most database engines. Alternatively, consider using an object-relational mapper (ORM) such as Sequelize which will protect your queries." + }, + "help": { + "markdown": "Detected user input used to manually construct a SQL string. This is usually bad practice because manual construction could accidentally result in a SQL injection. An attacker could use a SQL injection to steal or modify contents of the database. Instead, use a parameterized query which is available by default in most database engines. Alternatively, consider using an object-relational mapper (ORM) such as Sequelize which will protect your queries.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ruby.aws-lambda.security.tainted-sql-string.tainted-sql-string)\n - [https://rorsecurity.info/portfolio/ruby-on-rails-sql-injection-cheat-sheet](https://rorsecurity.info/portfolio/ruby-on-rails-sql-injection-cheat-sheet)\n", + "text": "Detected user input used to manually construct a SQL string. This is usually bad practice because manual construction could accidentally result in a SQL injection. An attacker could use a SQL injection to steal or modify contents of the database. Instead, use a parameterized query which is available by default in most database engines. Alternatively, consider using an object-relational mapper (ORM) such as Sequelize which will protect your queries." + }, + "helpUri": "https://semgrep.dev/r/ruby.aws-lambda.security.tainted-sql-string.tainted-sql-string", + "id": "ruby.aws-lambda.security.tainted-sql-string.tainted-sql-string", + "name": "ruby.aws-lambda.security.tainted-sql-string.tainted-sql-string", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')", + "MEDIUM CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: ruby.aws-lambda.security.tainted-sql-string.tainted-sql-string" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "This GitHub Actions workflow file uses `workflow_run` and checks out code from the incoming pull request. When using `workflow_run`, the Action runs in the context of the target repository, which includes access to all repository secrets. Normally, this is safe because the Action only runs code from the target repository, not the incoming PR. However, by checking out the incoming PR code, you're now using the incoming code for the rest of the action. You may be inadvertently executing arbitrary code from the incoming PR with access to repository secrets, which would let an attacker steal repository secrets. This normally happens by running build scripts (e.g., `npm build` and `make`) or dependency installation scripts (e.g., `python setup.py install`). Audit your workflow file to make sure no code from the incoming PR is executed. Please see https://securitylab.github.com/research/github-actions-preventing-pwn-requests/ for additional mitigations." + }, + "help": { + "markdown": "This GitHub Actions workflow file uses `workflow_run` and checks out code from the incoming pull request. When using `workflow_run`, the Action runs in the context of the target repository, which includes access to all repository secrets. Normally, this is safe because the Action only runs code from the target repository, not the incoming PR. However, by checking out the incoming PR code, you're now using the incoming code for the rest of the action. You may be inadvertently executing arbitrary code from the incoming PR with access to repository secrets, which would let an attacker steal repository secrets. This normally happens by running build scripts (e.g., `npm build` and `make`) or dependency installation scripts (e.g., `python setup.py install`). Audit your workflow file to make sure no code from the incoming PR is executed. Please see https://securitylab.github.com/research/github-actions-preventing-pwn-requests/ for additional mitigations.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/yaml.github-actions.security.workflow-run-target-code-checkout.workflow-run-target-code-checkout)\n - [https://securitylab.github.com/research/github-actions-preventing-pwn-requests/](https://securitylab.github.com/research/github-actions-preventing-pwn-requests/)\n - [https://github.com/justinsteven/advisories/blob/master/2021_github_actions_checkspelling_token_leak_via_advice_symlink.md](https://github.com/justinsteven/advisories/blob/master/2021_github_actions_checkspelling_token_leak_via_advice_symlink.md)\n - [https://www.legitsecurity.com/blog/github-privilege-escalation-vulnerability](https://www.legitsecurity.com/blog/github-privilege-escalation-vulnerability)\n", + "text": "This GitHub Actions workflow file uses `workflow_run` and checks out code from the incoming pull request. When using `workflow_run`, the Action runs in the context of the target repository, which includes access to all repository secrets. Normally, this is safe because the Action only runs code from the target repository, not the incoming PR. However, by checking out the incoming PR code, you're now using the incoming code for the rest of the action. You may be inadvertently executing arbitrary code from the incoming PR with access to repository secrets, which would let an attacker steal repository secrets. This normally happens by running build scripts (e.g., `npm build` and `make`) or dependency installation scripts (e.g., `python setup.py install`). Audit your workflow file to make sure no code from the incoming PR is executed. Please see https://securitylab.github.com/research/github-actions-preventing-pwn-requests/ for additional mitigations." + }, + "helpUri": "https://semgrep.dev/r/yaml.github-actions.security.workflow-run-target-code-checkout.workflow-run-target-code-checkout", + "id": "yaml.github-actions.security.workflow-run-target-code-checkout.workflow-run-target-code-checkout", + "name": "yaml.github-actions.security.workflow-run-target-code-checkout.workflow-run-target-code-checkout", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-913: Improper Control of Dynamically-Managed Code Resources", + "MEDIUM CONFIDENCE", + "OWASP-A01:2017 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: yaml.github-actions.security.workflow-run-target-code-checkout.workflow-run-target-code-checkout" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Semgrep found a bash reverse shell" + }, + "help": { + "markdown": "Semgrep found a bash reverse shell\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/generic.ci.security.bash-reverse-shell.bash_reverse_shell)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "Semgrep found a bash reverse shell" + }, + "helpUri": "https://semgrep.dev/r/generic.ci.security.bash-reverse-shell.bash_reverse_shell", + "id": "generic.ci.security.bash-reverse-shell.bash_reverse_shell", + "name": "generic.ci.security.bash-reverse-shell.bash_reverse_shell", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-94: Improper Control of Generation of Code ('Code Injection')", + "HIGH CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: generic.ci.security.bash-reverse-shell.bash_reverse_shell" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Detected user input used to manually construct a SQL string. This is usually bad practice because manual construction could accidentally result in a SQL injection. An attacker could use a SQL injection to steal or modify contents of the database. Instead, use a parameterized query which is available by default in most database engines. Alternatively, consider using an object-relational mapper (ORM) such as ActiveRecord which will protect your queries." + }, + "help": { + "markdown": "Detected user input used to manually construct a SQL string. This is usually bad practice because manual construction could accidentally result in a SQL injection. An attacker could use a SQL injection to steal or modify contents of the database. Instead, use a parameterized query which is available by default in most database engines. Alternatively, consider using an object-relational mapper (ORM) such as ActiveRecord which will protect your queries.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ruby.rails.security.injection.tainted-sql-string.tainted-sql-string)\n - [https://rorsecurity.info/portfolio/ruby-on-rails-sql-injection-cheat-sheet](https://rorsecurity.info/portfolio/ruby-on-rails-sql-injection-cheat-sheet)\n", + "text": "Detected user input used to manually construct a SQL string. This is usually bad practice because manual construction could accidentally result in a SQL injection. An attacker could use a SQL injection to steal or modify contents of the database. Instead, use a parameterized query which is available by default in most database engines. Alternatively, consider using an object-relational mapper (ORM) such as ActiveRecord which will protect your queries." + }, + "helpUri": "https://semgrep.dev/r/ruby.rails.security.injection.tainted-sql-string.tainted-sql-string", + "id": "ruby.rails.security.injection.tainted-sql-string.tainted-sql-string", + "name": "ruby.rails.security.injection.tainted-sql-string.tainted-sql-string", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')", + "MEDIUM CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: ruby.rails.security.injection.tainted-sql-string.tainted-sql-string" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "A hard-coded credential was detected. It is not recommended to store credentials in source-code, as this risks secrets being leaked and used by either an internal or external malicious adversary. It is recommended to use environment variables to securely provide credentials or retrieve credentials from a secure vault or HSM (Hardware Security Module)." + }, + "help": { + "markdown": "A hard-coded credential was detected. It is not recommended to store credentials in source-code, as this risks secrets being leaked and used by either an internal or external malicious adversary. It is recommended to use environment variables to securely provide credentials or retrieve credentials from a secure vault or HSM (Hardware Security Module).\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.express.security.express-jwt-hardcoded-secret.express-jwt-hardcoded-secret)\n - [https://cheatsheetseries.owasp.org/cheatsheets/Secrets_Management_Cheat_Sheet.html](https://cheatsheetseries.owasp.org/cheatsheets/Secrets_Management_Cheat_Sheet.html)\n", + "text": "A hard-coded credential was detected. It is not recommended to store credentials in source-code, as this risks secrets being leaked and used by either an internal or external malicious adversary. It is recommended to use environment variables to securely provide credentials or retrieve credentials from a secure vault or HSM (Hardware Security Module)." + }, + "helpUri": "https://semgrep.dev/r/javascript.express.security.express-jwt-hardcoded-secret.express-jwt-hardcoded-secret", + "id": "javascript.express.security.express-jwt-hardcoded-secret.express-jwt-hardcoded-secret", + "name": "javascript.express.security.express-jwt-hardcoded-secret.express-jwt-hardcoded-secret", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-798: Use of Hard-coded Credentials", + "HIGH CONFIDENCE", + "OWASP-A07:2021 - Identification and Authentication Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.express.security.express-jwt-hardcoded-secret.express-jwt-hardcoded-secret" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "this function is only available on Python 3.6+" + }, + "help": { + "markdown": "this function is only available on Python 3.6+\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.lang.compatibility.python36.python36-compatibility-ssl)\n", + "text": "this function is only available on Python 3.6+" + }, + "helpUri": "https://semgrep.dev/r/python.lang.compatibility.python36.python36-compatibility-ssl", + "id": "python.lang.compatibility.python36.python36-compatibility-ssl", + "name": "python.lang.compatibility.python36.python36-compatibility-ssl", + "properties": { + "precision": "very-high", + "tags": [] + }, + "shortDescription": { + "text": "Semgrep Finding: python.lang.compatibility.python36.python36-compatibility-ssl" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Detected subprocess function with argument tainted by an `event` object. If this data can be controlled by a malicious actor, it may be an instance of command injection. The default option for `shell` is False, and this is secure by default. Consider removing the `shell=True` or setting it to False explicitely. Using `shell=False` means you have to split the command string into an array of strings for the command and its arguments. You may consider using 'shlex.split()' for this purpose." + }, + "help": { + "markdown": "Detected subprocess function with argument tainted by an `event` object. If this data can be controlled by a malicious actor, it may be an instance of command injection. The default option for `shell` is False, and this is secure by default. Consider removing the `shell=True` or setting it to False explicitely. Using `shell=False` means you have to split the command string into an array of strings for the command and its arguments. You may consider using 'shlex.split()' for this purpose.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.aws-lambda.security.dangerous-subprocess-use.dangerous-subprocess-use)\n - [https://docs.python.org/3/library/subprocess.html](https://docs.python.org/3/library/subprocess.html)\n - [https://docs.python.org/3/library/shlex.html](https://docs.python.org/3/library/shlex.html)\n", + "text": "Detected subprocess function with argument tainted by an `event` object. If this data can be controlled by a malicious actor, it may be an instance of command injection. The default option for `shell` is False, and this is secure by default. Consider removing the `shell=True` or setting it to False explicitely. Using `shell=False` means you have to split the command string into an array of strings for the command and its arguments. You may consider using 'shlex.split()' for this purpose." + }, + "helpUri": "https://semgrep.dev/r/python.aws-lambda.security.dangerous-subprocess-use.dangerous-subprocess-use", + "id": "python.aws-lambda.security.dangerous-subprocess-use.dangerous-subprocess-use", + "name": "python.aws-lambda.security.dangerous-subprocess-use.dangerous-subprocess-use", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')", + "MEDIUM CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.aws-lambda.security.dangerous-subprocess-use.dangerous-subprocess-use" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "The alias in this location block is subject to a path traversal because the location path does not end in a path separator (e.g., '/'). To fix, add a path separator to the end of the path." + }, + "help": { + "markdown": "The alias in this location block is subject to a path traversal because the location path does not end in a path separator (e.g., '/'). To fix, add a path separator to the end of the path.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/generic.nginx.security.alias-path-traversal.alias-path-traversal)\n - [https://owasp.org/Top10/A01_2021-Broken_Access_Control](https://owasp.org/Top10/A01_2021-Broken_Access_Control)\n - [https://www.acunetix.com/vulnerabilities/web/path-traversal-via-misconfigured-nginx-alias/](https://www.acunetix.com/vulnerabilities/web/path-traversal-via-misconfigured-nginx-alias/)\n - [https://www.youtube.com/watch?v=CIhHpkybYsY](https://www.youtube.com/watch?v=CIhHpkybYsY)\n - [https://github.com/orangetw/My-Presentation-Slides/blob/main/data/2018-Breaking-Parser-Logic-Take-Your-Path-Normalization-Off-And-Pop-0days-Out.pdf](https://github.com/orangetw/My-Presentation-Slides/blob/main/data/2018-Breaking-Parser-Logic-Take-Your-Path-Normalization-Off-And-Pop-0days-Out.pdf)\n", + "text": "The alias in this location block is subject to a path traversal because the location path does not end in a path separator (e.g., '/'). To fix, add a path separator to the end of the path." + }, + "helpUri": "https://semgrep.dev/r/generic.nginx.security.alias-path-traversal.alias-path-traversal", + "id": "generic.nginx.security.alias-path-traversal.alias-path-traversal", + "name": "generic.nginx.security.alias-path-traversal.alias-path-traversal", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')", + "LOW CONFIDENCE", + "OWASP-A01:2021 - Broken Access Control", + "OWASP-A05:2017 - Broken Access Control", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: generic.nginx.security.alias-path-traversal.alias-path-traversal" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "The password on '$MODEL' is being set without validating the password. Call django.contrib.auth.password_validation.validate_password() with validation functions before setting the password. See https://docs.djangoproject.com/en/3.0/topics/auth/passwords/ for more information." + }, + "help": { + "markdown": "The password on '$MODEL' is being set without validating the password. Call django.contrib.auth.password_validation.validate_password() with validation functions before setting the password. See https://docs.djangoproject.com/en/3.0/topics/auth/passwords/ for more information.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.django.security.audit.unvalidated-password.unvalidated-password)\n - [https://docs.djangoproject.com/en/3.0/topics/auth/passwords/#module-django.contrib.auth.password_validation](https://docs.djangoproject.com/en/3.0/topics/auth/passwords/#module-django.contrib.auth.password_validation)\n", + "text": "The password on '$MODEL' is being set without validating the password. Call django.contrib.auth.password_validation.validate_password() with validation functions before setting the password. See https://docs.djangoproject.com/en/3.0/topics/auth/passwords/ for more information." + }, + "helpUri": "https://semgrep.dev/r/python.django.security.audit.unvalidated-password.unvalidated-password", + "id": "python.django.security.audit.unvalidated-password.unvalidated-password", + "name": "python.django.security.audit.unvalidated-password.unvalidated-password", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-521: Weak Password Requirements", + "LOW CONFIDENCE", + "OWASP-A07:2021 - Identification and Authentication Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.django.security.audit.unvalidated-password.unvalidated-password" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Webviews were observed that explictly allow JavaScript in an WKWebview to open windows automatically. Consider disabling this functionality if not required, following the principle of least privelege." + }, + "help": { + "markdown": "Webviews were observed that explictly allow JavaScript in an WKWebview to open windows automatically. Consider disabling this functionality if not required, following the principle of least privelege.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/swift.webview.webview-js-window.swift-webview-config-allows-js-open-windows)\n - [https://mas.owasp.org/MASVS/controls/MASVS-PLATFORM-2/](https://mas.owasp.org/MASVS/controls/MASVS-PLATFORM-2/)\n - [https://developer.apple.com/documentation/webkit/wkpreferences/1536573-javascriptcanopenwindowsautomati](https://developer.apple.com/documentation/webkit/wkpreferences/1536573-javascriptcanopenwindowsautomati)\n", + "text": "Webviews were observed that explictly allow JavaScript in an WKWebview to open windows automatically. Consider disabling this functionality if not required, following the principle of least privelege." + }, + "helpUri": "https://semgrep.dev/r/swift.webview.webview-js-window.swift-webview-config-allows-js-open-windows", + "id": "swift.webview.webview-js-window.swift-webview-config-allows-js-open-windows", + "name": "swift.webview.webview-js-window.swift-webview-config-allows-js-open-windows", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-272: Least Privilege Violation", + "HIGH CONFIDENCE", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: swift.webview.webview-js-window.swift-webview-config-allows-js-open-windows" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Found an unscoped `find(...)` with user-controllable input. If the ActiveRecord model being searched against is sensitive, this may lead to Insecure Direct Object Reference (IDOR) behavior and allow users to read arbitrary records. Scope the find to the current user, e.g. `current_user.accounts.find(params[:id])`." + }, + "help": { + "markdown": "Found an unscoped `find(...)` with user-controllable input. If the ActiveRecord model being searched against is sensitive, this may lead to Insecure Direct Object Reference (IDOR) behavior and allow users to read arbitrary records. Scope the find to the current user, e.g. `current_user.accounts.find(params[:id])`.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ruby.rails.security.brakeman.check-unscoped-find.check-unscoped-find)\n - [https://brakemanscanner.org/docs/warning_types/unscoped_find/](https://brakemanscanner.org/docs/warning_types/unscoped_find/)\n - [https://github.com/presidentbeef/brakeman/blob/main/test/apps/rails3.1/app/controllers/users_controller.rb](https://github.com/presidentbeef/brakeman/blob/main/test/apps/rails3.1/app/controllers/users_controller.rb)\n", + "text": "Found an unscoped `find(...)` with user-controllable input. If the ActiveRecord model being searched against is sensitive, this may lead to Insecure Direct Object Reference (IDOR) behavior and allow users to read arbitrary records. Scope the find to the current user, e.g. `current_user.accounts.find(params[:id])`." + }, + "helpUri": "https://semgrep.dev/r/ruby.rails.security.brakeman.check-unscoped-find.check-unscoped-find", + "id": "ruby.rails.security.brakeman.check-unscoped-find.check-unscoped-find", + "name": "ruby.rails.security.brakeman.check-unscoped-find.check-unscoped-find", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-639: Authorization Bypass Through User-Controlled Key", + "MEDIUM CONFIDENCE", + "OWASP-A01:2021 - Broken Access Control", + "OWASP-A05:2017 - Broken Access Control", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: ruby.rails.security.brakeman.check-unscoped-find.check-unscoped-find" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "This rule is deprecated." + }, + "help": { + "markdown": "This rule is deprecated.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ruby.lang.security.model-attributes-attr-protected.model-attributes-attr-protected)\n - [https://github.com/presidentbeef/brakeman/blob/main/lib/brakeman/checks/check_model_attributes.rb](https://github.com/presidentbeef/brakeman/blob/main/lib/brakeman/checks/check_model_attributes.rb)\n - [https://groups.google.com/g/rubyonrails-security/c/AFBKNY7VSH8/discussion](https://groups.google.com/g/rubyonrails-security/c/AFBKNY7VSH8/discussion)\n", + "text": "This rule is deprecated." + }, + "helpUri": "https://semgrep.dev/r/ruby.lang.security.model-attributes-attr-protected.model-attributes-attr-protected", + "id": "ruby.lang.security.model-attributes-attr-protected.model-attributes-attr-protected", + "name": "ruby.lang.security.model-attributes-attr-protected.model-attributes-attr-protected", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-284: Improper Access Control", + "LOW CONFIDENCE", + "OWASP-A01:2021 - Broken Access Control", + "OWASP-A05:2017 - Broken Access Control", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: ruby.lang.security.model-attributes-attr-protected.model-attributes-attr-protected" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Generic Secret detected" + }, + "help": { + "markdown": "Generic Secret detected\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/generic.secrets.security.detected-generic-secret.detected-generic-secret)\n - [https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures](https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures)\n", + "text": "Generic Secret detected" + }, + "helpUri": "https://semgrep.dev/r/generic.secrets.security.detected-generic-secret.detected-generic-secret", + "id": "generic.secrets.security.detected-generic-secret.detected-generic-secret", + "name": "generic.secrets.security.detected-generic-secret.detected-generic-secret", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-798: Use of Hard-coded Credentials", + "LOW CONFIDENCE", + "OWASP-A07:2021 - Identification and Authentication Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: generic.secrets.security.detected-generic-secret.detected-generic-secret" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "If unverified user data can reach the `evaluate` method it can result in Server-Side Request Forgery vulnerabilities" + }, + "help": { + "markdown": "If unverified user data can reach the `evaluate` method it can result in Server-Side Request Forgery vulnerabilities\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.puppeteer.security.audit.puppeteer-evaluate-code-injection.puppeteer-evaluate-code-injection)\n - [https://owasp.org/Top10/A10_2021-Server-Side_Request_Forgery_%28SSRF%29](https://owasp.org/Top10/A10_2021-Server-Side_Request_Forgery_%28SSRF%29)\n", + "text": "If unverified user data can reach the `evaluate` method it can result in Server-Side Request Forgery vulnerabilities" + }, + "helpUri": "https://semgrep.dev/r/javascript.puppeteer.security.audit.puppeteer-evaluate-code-injection.puppeteer-evaluate-code-injection", + "id": "javascript.puppeteer.security.audit.puppeteer-evaluate-code-injection.puppeteer-evaluate-code-injection", + "name": "javascript.puppeteer.security.audit.puppeteer-evaluate-code-injection.puppeteer-evaluate-code-injection", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-918: Server-Side Request Forgery (SSRF)", + "LOW CONFIDENCE", + "OWASP-A10:2021 - Server-Side Request Forgery (SSRF)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.puppeteer.security.audit.puppeteer-evaluate-code-injection.puppeteer-evaluate-code-injection" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "'render inline: ...' renders an entire ERB template inline and is dangerous. If external data can reach here, this exposes your application to server-side template injection (SSTI) or cross-site scripting (XSS) attacks. Instead, consider using a partial or another safe rendering method." + }, + "help": { + "markdown": "'render inline: ...' renders an entire ERB template inline and is dangerous. If external data can reach here, this exposes your application to server-side template injection (SSTI) or cross-site scripting (XSS) attacks. Instead, consider using a partial or another safe rendering method.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ruby.rails.security.audit.xss.avoid-render-inline.avoid-render-inline)\n - [https://brakemanpro.com/2017/09/08/cross-site-scripting-in-rails#inline-renders---even-worse-than-xss](https://brakemanpro.com/2017/09/08/cross-site-scripting-in-rails#inline-renders---even-worse-than-xss)\n", + "text": "'render inline: ...' renders an entire ERB template inline and is dangerous. If external data can reach here, this exposes your application to server-side template injection (SSTI) or cross-site scripting (XSS) attacks. Instead, consider using a partial or another safe rendering method." + }, + "helpUri": "https://semgrep.dev/r/ruby.rails.security.audit.xss.avoid-render-inline.avoid-render-inline", + "id": "ruby.rails.security.audit.xss.avoid-render-inline.avoid-render-inline", + "name": "ruby.rails.security.audit.xss.avoid-render-inline.avoid-render-inline", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: ruby.rails.security.audit.xss.avoid-render-inline.avoid-render-inline" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "The FsPickler is dangerous and is not recommended for data processing. Default configuration tend to insecure deserialization vulnerability." + }, + "help": { + "markdown": "The FsPickler is dangerous and is not recommended for data processing. Default configuration tend to insecure deserialization vulnerability.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/csharp.lang.security.insecure-deserialization.fs-pickler.insecure-fspickler-deserialization)\n - [https://mbraceproject.github.io/FsPickler/tutorial.html#Disabling-Subtype-Resolution](https://mbraceproject.github.io/FsPickler/tutorial.html#Disabling-Subtype-Resolution)\n", + "text": "The FsPickler is dangerous and is not recommended for data processing. Default configuration tend to insecure deserialization vulnerability." + }, + "helpUri": "https://semgrep.dev/r/csharp.lang.security.insecure-deserialization.fs-pickler.insecure-fspickler-deserialization", + "id": "csharp.lang.security.insecure-deserialization.fs-pickler.insecure-fspickler-deserialization", + "name": "csharp.lang.security.insecure-deserialization.fs-pickler.insecure-fspickler-deserialization", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-502: Deserialization of Untrusted Data", + "MEDIUM CONFIDENCE", + "OWASP-A08:2017 - Insecure Deserialization", + "OWASP-A08:2021 - Software and Data Integrity Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: csharp.lang.security.insecure-deserialization.fs-pickler.insecure-fspickler-deserialization" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "This rule is deprecated." + }, + "help": { + "markdown": "This rule is deprecated.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ruby.rails.security.audit.number-to-currency-erb.number-to-currency-erb)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "This rule is deprecated." + }, + "helpUri": "https://semgrep.dev/r/ruby.rails.security.audit.number-to-currency-erb.number-to-currency-erb", + "id": "ruby.rails.security.audit.number-to-currency-erb.number-to-currency-erb", + "name": "ruby.rails.security.audit.number-to-currency-erb.number-to-currency-erb", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: ruby.rails.security.audit.number-to-currency-erb.number-to-currency-erb" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Checks for attempts to connect to an insecure telnet server using the package telnet. This is bad because it can lead to man in the middle attacks." + }, + "help": { + "markdown": "Checks for attempts to connect to an insecure telnet server using the package telnet. This is bad because it can lead to man in the middle attacks.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/problem-based-packs.insecure-transport.go-stdlib.telnet-request.telnet-request)\n - [https://godoc.org/github.com/reiver/go-telnet](https://godoc.org/github.com/reiver/go-telnet)\n", + "text": "Checks for attempts to connect to an insecure telnet server using the package telnet. This is bad because it can lead to man in the middle attacks." + }, + "helpUri": "https://semgrep.dev/r/problem-based-packs.insecure-transport.go-stdlib.telnet-request.telnet-request", + "id": "problem-based-packs.insecure-transport.go-stdlib.telnet-request.telnet-request", + "name": "problem-based-packs.insecure-transport.go-stdlib.telnet-request.telnet-request", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-319: Cleartext Transmission of Sensitive Information", + "MEDIUM CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: problem-based-packs.insecure-transport.go-stdlib.telnet-request.telnet-request" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected a request with potential user-input going into an `Ok()` response. This bypasses any view or template environments, including HTML escaping, which may expose this application to cross-site scripting (XSS) vulnerabilities. Consider using a view technology such as Twirl which automatically escapes HTML views." + }, + "help": { + "markdown": "Detected a request with potential user-input going into an `Ok()` response. This bypasses any view or template environments, including HTML escaping, which may expose this application to cross-site scripting (XSS) vulnerabilities. Consider using a view technology such as Twirl which automatically escapes HTML views.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/scala.play.security.tainted-html-response.tainted-html-response)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "Detected a request with potential user-input going into an `Ok()` response. This bypasses any view or template environments, including HTML escaping, which may expose this application to cross-site scripting (XSS) vulnerabilities. Consider using a view technology such as Twirl which automatically escapes HTML views." + }, + "helpUri": "https://semgrep.dev/r/scala.play.security.tainted-html-response.tainted-html-response", + "id": "scala.play.security.tainted-html-response.tainted-html-response", + "name": "scala.play.security.tainted-html-response.tainted-html-response", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "MEDIUM CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: scala.play.security.tainted-html-response.tainted-html-response" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Dangerous client config used, ensure SSL verification" + }, + "help": { + "markdown": "Dangerous client config used, ensure SSL verification\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/rust.lang.security.rustls-dangerous.rustls-dangerous)\n - [https://docs.rs/rustls/latest/rustls/client/struct.DangerousClientConfig.html](https://docs.rs/rustls/latest/rustls/client/struct.DangerousClientConfig.html)\n - [https://docs.rs/rustls/latest/rustls/client/struct.ClientConfig.html#method.dangerous](https://docs.rs/rustls/latest/rustls/client/struct.ClientConfig.html#method.dangerous)\n", + "text": "Dangerous client config used, ensure SSL verification" + }, + "helpUri": "https://semgrep.dev/r/rust.lang.security.rustls-dangerous.rustls-dangerous", + "id": "rust.lang.security.rustls-dangerous.rustls-dangerous", + "name": "rust.lang.security.rustls-dangerous.rustls-dangerous", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-295: Improper Certificate Validation", + "HIGH CONFIDENCE", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: rust.lang.security.rustls-dangerous.rustls-dangerous" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "SSL verification is disabled but should not be (currently CURLOPT_SSL_VERIFYPEER= $IS_VERIFIED)" + }, + "help": { + "markdown": "SSL verification is disabled but should not be (currently CURLOPT_SSL_VERIFYPEER= $IS_VERIFIED)\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/php.lang.security.curl-ssl-verifypeer-off.curl-ssl-verifypeer-off)\n - [https://www.saotn.org/dont-turn-off-curlopt_ssl_verifypeer-fix-php-configuration/](https://www.saotn.org/dont-turn-off-curlopt_ssl_verifypeer-fix-php-configuration/)\n", + "text": "SSL verification is disabled but should not be (currently CURLOPT_SSL_VERIFYPEER= $IS_VERIFIED)" + }, + "helpUri": "https://semgrep.dev/r/php.lang.security.curl-ssl-verifypeer-off.curl-ssl-verifypeer-off", + "id": "php.lang.security.curl-ssl-verifypeer-off.curl-ssl-verifypeer-off", + "name": "php.lang.security.curl-ssl-verifypeer-off.curl-ssl-verifypeer-off", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-319: Cleartext Transmission of Sensitive Information", + "MEDIUM CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: php.lang.security.curl-ssl-verifypeer-off.curl-ssl-verifypeer-off" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Sauce Token detected" + }, + "help": { + "markdown": "Sauce Token detected\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/generic.secrets.security.detected-sauce-token.detected-sauce-token)\n - [https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures](https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures)\n", + "text": "Sauce Token detected" + }, + "helpUri": "https://semgrep.dev/r/generic.secrets.security.detected-sauce-token.detected-sauce-token", + "id": "generic.secrets.security.detected-sauce-token.detected-sauce-token", + "name": "generic.secrets.security.detected-sauce-token.detected-sauce-token", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-798: Use of Hard-coded Credentials", + "LOW CONFIDENCE", + "OWASP-A07:2021 - Identification and Authentication Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: generic.secrets.security.detected-sauce-token.detected-sauce-token" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "AWS Session Token detected" + }, + "help": { + "markdown": "AWS Session Token detected\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/generic.secrets.security.detected-aws-session-token.detected-aws-session-token)\n - [https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures](https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures)\n", + "text": "AWS Session Token detected" + }, + "helpUri": "https://semgrep.dev/r/generic.secrets.security.detected-aws-session-token.detected-aws-session-token", + "id": "generic.secrets.security.detected-aws-session-token.detected-aws-session-token", + "name": "generic.secrets.security.detected-aws-session-token.detected-aws-session-token", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-798: Use of Hard-coded Credentials", + "LOW CONFIDENCE", + "OWASP-A07:2021 - Identification and Authentication Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: generic.secrets.security.detected-aws-session-token.detected-aws-session-token" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Amazon MWS Auth Token detected" + }, + "help": { + "markdown": "Amazon MWS Auth Token detected\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/generic.secrets.security.detected-amazon-mws-auth-token.detected-amazon-mws-auth-token)\n - [https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures](https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures)\n", + "text": "Amazon MWS Auth Token detected" + }, + "helpUri": "https://semgrep.dev/r/generic.secrets.security.detected-amazon-mws-auth-token.detected-amazon-mws-auth-token", + "id": "generic.secrets.security.detected-amazon-mws-auth-token.detected-amazon-mws-auth-token", + "name": "generic.secrets.security.detected-amazon-mws-auth-token.detected-amazon-mws-auth-token", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-798: Use of Hard-coded Credentials", + "LOW CONFIDENCE", + "OWASP-A07:2021 - Identification and Authentication Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: generic.secrets.security.detected-amazon-mws-auth-token.detected-amazon-mws-auth-token" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Detected user input entering a `subprocess` call unsafely. This could result in a command injection vulnerability. An attacker could use this vulnerability to execute arbitrary commands on the host, which allows them to download malware, scan sensitive data, or run any command they wish on the server. Do not let users choose the command to run. In general, prefer to use Python API versions of system commands. If you must use subprocess, use a dictionary to allowlist a set of commands." + }, + "help": { + "markdown": "Detected user input entering a `subprocess` call unsafely. This could result in a command injection vulnerability. An attacker could use this vulnerability to execute arbitrary commands on the host, which allows them to download malware, scan sensitive data, or run any command they wish on the server. Do not let users choose the command to run. In general, prefer to use Python API versions of system commands. If you must use subprocess, use a dictionary to allowlist a set of commands.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.flask.security.injection.subprocess-injection.subprocess-injection)\n - [https://semgrep.dev/docs/cheat-sheets/python-command-injection/](https://semgrep.dev/docs/cheat-sheets/python-command-injection/)\n", + "text": "Detected user input entering a `subprocess` call unsafely. This could result in a command injection vulnerability. An attacker could use this vulnerability to execute arbitrary commands on the host, which allows them to download malware, scan sensitive data, or run any command they wish on the server. Do not let users choose the command to run. In general, prefer to use Python API versions of system commands. If you must use subprocess, use a dictionary to allowlist a set of commands." + }, + "helpUri": "https://semgrep.dev/r/python.flask.security.injection.subprocess-injection.subprocess-injection", + "id": "python.flask.security.injection.subprocess-injection.subprocess-injection", + "name": "python.flask.security.injection.subprocess-injection.subprocess-injection", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')", + "HIGH CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.flask.security.injection.subprocess-injection.subprocess-injection" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Ensure Timestream database is encrypted at rest using KMS CMKs. CMKs gives you control over the encryption key in terms of access and rotation." + }, + "help": { + "markdown": "Ensure Timestream database is encrypted at rest using KMS CMKs. CMKs gives you control over the encryption key in terms of access and rotation.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.aws.security.aws-timestream-database-encrypted-with-cmk.aws-timestream-database-encrypted-with-cmk)\n - [https://owasp.org/Top10/A02_2021-Cryptographic_Failures](https://owasp.org/Top10/A02_2021-Cryptographic_Failures)\n", + "text": "Ensure Timestream database is encrypted at rest using KMS CMKs. CMKs gives you control over the encryption key in terms of access and rotation." + }, + "helpUri": "https://semgrep.dev/r/terraform.aws.security.aws-timestream-database-encrypted-with-cmk.aws-timestream-database-encrypted-with-cmk", + "id": "terraform.aws.security.aws-timestream-database-encrypted-with-cmk.aws-timestream-database-encrypted-with-cmk", + "name": "terraform.aws.security.aws-timestream-database-encrypted-with-cmk.aws-timestream-database-encrypted-with-cmk", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-320: CWE CATEGORY: Key Management Errors", + "LOW CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.aws.security.aws-timestream-database-encrypted-with-cmk.aws-timestream-database-encrypted-with-cmk" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Should not use SHA1 to generate hashes. There is a proven SHA1 hash collision by Google, which could lead to vulnerabilities. Use SHA256, SHA3 or other hashing functions instead." + }, + "help": { + "markdown": "Should not use SHA1 to generate hashes. There is a proven SHA1 hash collision by Google, which could lead to vulnerabilities. Use SHA256, SHA3 or other hashing functions instead.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ruby.lang.security.weak-hashes-sha1.weak-hashes-sha1)\n - [https://security.googleblog.com/2017/02/announcing-first-sha1-collision.html](https://security.googleblog.com/2017/02/announcing-first-sha1-collision.html)\n - [https://shattered.io/](https://shattered.io/)\n", + "text": "Should not use SHA1 to generate hashes. There is a proven SHA1 hash collision by Google, which could lead to vulnerabilities. Use SHA256, SHA3 or other hashing functions instead." + }, + "helpUri": "https://semgrep.dev/r/ruby.lang.security.weak-hashes-sha1.weak-hashes-sha1", + "id": "ruby.lang.security.weak-hashes-sha1.weak-hashes-sha1", + "name": "ruby.lang.security.weak-hashes-sha1.weak-hashes-sha1", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-328: Use of Weak Hash", + "MEDIUM CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: ruby.lang.security.weak-hashes-sha1.weak-hashes-sha1" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Using the GrantPublicAccess method on bucket contruct $X will make the objects in the bucket world accessible. Verify if this is intentional." + }, + "help": { + "markdown": "Using the GrantPublicAccess method on bucket contruct $X will make the objects in the bucket world accessible. Verify if this is intentional.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/typescript.aws-cdk.security.awscdk-bucket-grantpublicaccessmethod.awscdk-bucket-grantpublicaccessmethod)\n - [https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-control-overview.html](https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-control-overview.html)\n", + "text": "Using the GrantPublicAccess method on bucket contruct $X will make the objects in the bucket world accessible. Verify if this is intentional." + }, + "helpUri": "https://semgrep.dev/r/typescript.aws-cdk.security.awscdk-bucket-grantpublicaccessmethod.awscdk-bucket-grantpublicaccessmethod", + "id": "typescript.aws-cdk.security.awscdk-bucket-grantpublicaccessmethod.awscdk-bucket-grantpublicaccessmethod", + "name": "typescript.aws-cdk.security.awscdk-bucket-grantpublicaccessmethod.awscdk-bucket-grantpublicaccessmethod", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-306: Missing Authentication for Critical Function", + "MEDIUM CONFIDENCE", + "OWASP-A07:2021 - Identification and Authentication Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: typescript.aws-cdk.security.awscdk-bucket-grantpublicaccessmethod.awscdk-bucket-grantpublicaccessmethod" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "A session cookie was detected without setting the 'Secure' flag. The 'secure' flag for cookies prevents the client from transmitting the cookie over insecure channels such as HTTP. Set the 'Secure' flag by setting 'Secure' to 'true' in the Options struct." + }, + "help": { + "markdown": "A session cookie was detected without setting the 'Secure' flag. The 'secure' flag for cookies prevents the client from transmitting the cookie over insecure channels such as HTTP. Set the 'Secure' flag by setting 'Secure' to 'true' in the Options struct.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/go.gorilla.security.audit.session-cookie-missing-secure.session-cookie-missing-secure)\n - [https://github.com/0c34/govwa/blob/139693e56406b5684d2a6ae22c0af90717e149b8/user/session/session.go#L69](https://github.com/0c34/govwa/blob/139693e56406b5684d2a6ae22c0af90717e149b8/user/session/session.go#L69)\n", + "text": "A session cookie was detected without setting the 'Secure' flag. The 'secure' flag for cookies prevents the client from transmitting the cookie over insecure channels such as HTTP. Set the 'Secure' flag by setting 'Secure' to 'true' in the Options struct." + }, + "helpUri": "https://semgrep.dev/r/go.gorilla.security.audit.session-cookie-missing-secure.session-cookie-missing-secure", + "id": "go.gorilla.security.audit.session-cookie-missing-secure.session-cookie-missing-secure", + "name": "go.gorilla.security.audit.session-cookie-missing-secure.session-cookie-missing-secure", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-614: Sensitive Cookie in HTTPS Session Without 'Secure' Attribute", + "MEDIUM CONFIDENCE", + "OWASP-A05:2021 - Security Misconfiguration", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: go.gorilla.security.audit.session-cookie-missing-secure.session-cookie-missing-secure" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "The Mustache escape function is being overwritten. This could bypass HTML escaping safety measures built into the rendering engine, exposing your application to cross-site scripting (XSS) vulnerabilities. If you need unescaped HTML, use the triple brace operator in your template: '{{{ ... }}}'." + }, + "help": { + "markdown": "The Mustache escape function is being overwritten. This could bypass HTML escaping safety measures built into the rendering engine, exposing your application to cross-site scripting (XSS) vulnerabilities. If you need unescaped HTML, use the triple brace operator in your template: '{{{ ... }}}'.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.express.security.audit.xss.mustache.escape-function-overwrite.escape-function-overwrite)\n - [https://github.com/janl/mustache.js/#variables](https://github.com/janl/mustache.js/#variables)\n", + "text": "The Mustache escape function is being overwritten. This could bypass HTML escaping safety measures built into the rendering engine, exposing your application to cross-site scripting (XSS) vulnerabilities. If you need unescaped HTML, use the triple brace operator in your template: '{{{ ... }}}'." + }, + "helpUri": "https://semgrep.dev/r/javascript.express.security.audit.xss.mustache.escape-function-overwrite.escape-function-overwrite", + "id": "javascript.express.security.audit.xss.mustache.escape-function-overwrite.escape-function-overwrite", + "name": "javascript.express.security.audit.xss.mustache.escape-function-overwrite.escape-function-overwrite", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.express.security.audit.xss.mustache.escape-function-overwrite.escape-function-overwrite" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "If unverified user data can reach the `setContent` method it can result in Server-Side Request Forgery vulnerabilities" + }, + "help": { + "markdown": "If unverified user data can reach the `setContent` method it can result in Server-Side Request Forgery vulnerabilities\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.playwright.security.audit.playwright-setcontent-injection.playwright-setcontent-injection)\n - [https://owasp.org/Top10/A10_2021-Server-Side_Request_Forgery_%28SSRF%29](https://owasp.org/Top10/A10_2021-Server-Side_Request_Forgery_%28SSRF%29)\n", + "text": "If unverified user data can reach the `setContent` method it can result in Server-Side Request Forgery vulnerabilities" + }, + "helpUri": "https://semgrep.dev/r/javascript.playwright.security.audit.playwright-setcontent-injection.playwright-setcontent-injection", + "id": "javascript.playwright.security.audit.playwright-setcontent-injection.playwright-setcontent-injection", + "name": "javascript.playwright.security.audit.playwright-setcontent-injection.playwright-setcontent-injection", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-918: Server-Side Request Forgery (SSRF)", + "LOW CONFIDENCE", + "OWASP-A10:2021 - Server-Side Request Forgery (SSRF)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.playwright.security.audit.playwright-setcontent-injection.playwright-setcontent-injection" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Validating certificates based on subject name is bad practice. Use the X509Certificate2.Verify() method instead." + }, + "help": { + "markdown": "Validating certificates based on subject name is bad practice. Use the X509Certificate2.Verify() method instead.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/csharp.lang.security.cryptography.x509-subject-name-validation.X509-subject-name-validation)\n - [https://docs.microsoft.com/en-us/dotnet/api/system.identitymodel.tokens.issuernameregistry?view=netframework-4.8](https://docs.microsoft.com/en-us/dotnet/api/system.identitymodel.tokens.issuernameregistry?view=netframework-4.8)\n", + "text": "Validating certificates based on subject name is bad practice. Use the X509Certificate2.Verify() method instead." + }, + "helpUri": "https://semgrep.dev/r/csharp.lang.security.cryptography.x509-subject-name-validation.X509-subject-name-validation", + "id": "csharp.lang.security.cryptography.x509-subject-name-validation.X509-subject-name-validation", + "name": "csharp.lang.security.cryptography.x509-subject-name-validation.X509-subject-name-validation", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-295: Improper Certificate Validation", + "MEDIUM CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "OWASP-A07:2021 - Identification and Authentication Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: csharp.lang.security.cryptography.x509-subject-name-validation.X509-subject-name-validation" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "TLS1.0 and TLS1.1 are deprecated and should not be used anymore. By default, NodeJS used TLSv1.2. So, TLS min version must not be downgrade to TLS1.0 or TLS1.1. Enforce TLS1.3 is highly recommended This rule checks TLS configuration only for PostgreSQL, MariaDB and MySQL. SQLite is not really concerned by TLS configuration. This rule could be extended for MSSQL, but the dialectOptions is specific for Tedious." + }, + "help": { + "markdown": "TLS1.0 and TLS1.1 are deprecated and should not be used anymore. By default, NodeJS used TLSv1.2. So, TLS min version must not be downgrade to TLS1.0 or TLS1.1. Enforce TLS1.3 is highly recommended This rule checks TLS configuration only for PostgreSQL, MariaDB and MySQL. SQLite is not really concerned by TLS configuration. This rule could be extended for MSSQL, but the dialectOptions is specific for Tedious.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.sequelize.security.audit.sequelize-weak-tls-version.sequelize-weak-tls-version)\n - [https://node-postgres.com/features/ssl](https://node-postgres.com/features/ssl)\n - [https://nodejs.org/api/tls.html#tls_class_tls_tlssocket](https://nodejs.org/api/tls.html#tls_class_tls_tlssocket)\n - [https://nodejs.org/api/tls.html#tls_tls_createsecurecontext_options](https://nodejs.org/api/tls.html#tls_tls_createsecurecontext_options)\n - [https://nodejs.org/api/tls.html#tls_tls_default_min_version](https://nodejs.org/api/tls.html#tls_tls_default_min_version)\n", + "text": "TLS1.0 and TLS1.1 are deprecated and should not be used anymore. By default, NodeJS used TLSv1.2. So, TLS min version must not be downgrade to TLS1.0 or TLS1.1. Enforce TLS1.3 is highly recommended This rule checks TLS configuration only for PostgreSQL, MariaDB and MySQL. SQLite is not really concerned by TLS configuration. This rule could be extended for MSSQL, but the dialectOptions is specific for Tedious." + }, + "helpUri": "https://semgrep.dev/r/javascript.sequelize.security.audit.sequelize-weak-tls-version.sequelize-weak-tls-version", + "id": "javascript.sequelize.security.audit.sequelize-weak-tls-version.sequelize-weak-tls-version", + "name": "javascript.sequelize.security.audit.sequelize-weak-tls-version.sequelize-weak-tls-version", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-319: Cleartext Transmission of Sensitive Information", + "LOW CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.sequelize.security.audit.sequelize-weak-tls-version.sequelize-weak-tls-version" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Telegram Bot API Key detected" + }, + "help": { + "markdown": "Telegram Bot API Key detected\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/generic.secrets.security.detected-telegram-bot-api-key.detected-telegram-bot-api-key)\n - [https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures](https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures)\n", + "text": "Telegram Bot API Key detected" + }, + "helpUri": "https://semgrep.dev/r/generic.secrets.security.detected-telegram-bot-api-key.detected-telegram-bot-api-key", + "id": "generic.secrets.security.detected-telegram-bot-api-key.detected-telegram-bot-api-key", + "name": "generic.secrets.security.detected-telegram-bot-api-key.detected-telegram-bot-api-key", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-798: Use of Hard-coded Credentials", + "LOW CONFIDENCE", + "OWASP-A07:2021 - Identification and Authentication Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: generic.secrets.security.detected-telegram-bot-api-key.detected-telegram-bot-api-key" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "SendGrid API Key detected" + }, + "help": { + "markdown": "SendGrid API Key detected\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/generic.secrets.security.detected-sendgrid-api-key.detected-sendgrid-api-key)\n - [https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures](https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures)\n", + "text": "SendGrid API Key detected" + }, + "helpUri": "https://semgrep.dev/r/generic.secrets.security.detected-sendgrid-api-key.detected-sendgrid-api-key", + "id": "generic.secrets.security.detected-sendgrid-api-key.detected-sendgrid-api-key", + "name": "generic.secrets.security.detected-sendgrid-api-key.detected-sendgrid-api-key", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-798: Use of Hard-coded Credentials", + "LOW CONFIDENCE", + "OWASP-A07:2021 - Identification and Authentication Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: generic.secrets.security.detected-sendgrid-api-key.detected-sendgrid-api-key" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "It looks like MD5 is used as a password hash. MD5 is not considered a secure password hash because it can be cracked by an attacker in a short amount of time. Use a suitable password hashing function such as PBKDF2 or bcrypt. You can use `javax.crypto.SecretKeyFactory` with `SecretKeyFactory.getInstance(\"PBKDF2WithHmacSHA1\")` or, if using Spring, `org.springframework.security.crypto.bcrypt`." + }, + "help": { + "markdown": "It looks like MD5 is used as a password hash. MD5 is not considered a secure password hash because it can be cracked by an attacker in a short amount of time. Use a suitable password hashing function such as PBKDF2 or bcrypt. You can use `javax.crypto.SecretKeyFactory` with `SecretKeyFactory.getInstance(\"PBKDF2WithHmacSHA1\")` or, if using Spring, `org.springframework.security.crypto.bcrypt`.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.lang.security.audit.md5-used-as-password.md5-used-as-password)\n - [https://tools.ietf.org/id/draft-lvelvindron-tls-md5-sha1-deprecate-01.html](https://tools.ietf.org/id/draft-lvelvindron-tls-md5-sha1-deprecate-01.html)\n - [https://github.com/returntocorp/semgrep-rules/issues/1609](https://github.com/returntocorp/semgrep-rules/issues/1609)\n - [https://docs.oracle.com/javase/7/docs/technotes/guides/security/StandardNames.html#SecretKeyFactory](https://docs.oracle.com/javase/7/docs/technotes/guides/security/StandardNames.html#SecretKeyFactory)\n - [https://docs.spring.io/spring-security/site/docs/current/api/org/springframework/security/crypto/bcrypt/BCryptPasswordEncoder.html](https://docs.spring.io/spring-security/site/docs/current/api/org/springframework/security/crypto/bcrypt/BCryptPasswordEncoder.html)\n", + "text": "It looks like MD5 is used as a password hash. MD5 is not considered a secure password hash because it can be cracked by an attacker in a short amount of time. Use a suitable password hashing function such as PBKDF2 or bcrypt. You can use `javax.crypto.SecretKeyFactory` with `SecretKeyFactory.getInstance(\"PBKDF2WithHmacSHA1\")` or, if using Spring, `org.springframework.security.crypto.bcrypt`." + }, + "helpUri": "https://semgrep.dev/r/java.lang.security.audit.md5-used-as-password.md5-used-as-password", + "id": "java.lang.security.audit.md5-used-as-password.md5-used-as-password", + "name": "java.lang.security.audit.md5-used-as-password.md5-used-as-password", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-327: Use of a Broken or Risky Cryptographic Algorithm", + "MEDIUM CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.lang.security.audit.md5-used-as-password.md5-used-as-password" + } + }, + { + "defaultConfiguration": { + "level": "note" + }, + "fullDescription": { + "text": "this rule has been deprecated." + }, + "help": { + "markdown": "this rule has been deprecated.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.jose.security.jwt-exposed-credentials.jwt-exposed-credentials)\n - [https://cheatsheetseries.owasp.org/cheatsheets/Secrets_Management_Cheat_Sheet.html](https://cheatsheetseries.owasp.org/cheatsheets/Secrets_Management_Cheat_Sheet.html)\n", + "text": "this rule has been deprecated." + }, + "helpUri": "https://semgrep.dev/r/javascript.jose.security.jwt-exposed-credentials.jwt-exposed-credentials", + "id": "javascript.jose.security.jwt-exposed-credentials.jwt-exposed-credentials", + "name": "javascript.jose.security.jwt-exposed-credentials.jwt-exposed-credentials", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-798: Use of Hard-coded Credentials", + "LOW CONFIDENCE", + "OWASP-A07:2021 - Identification and Authentication Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.jose.security.jwt-exposed-credentials.jwt-exposed-credentials" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Found request parameters in a call to `render`. This can allow end users to request arbitrary local files which may result in leaking sensitive information persisted on disk. Where possible, avoid letting users specify template paths for `render`. If you must allow user input, use an allow-list of known templates or normalize the user-supplied value with `File.basename(...)`." + }, + "help": { + "markdown": "Found request parameters in a call to `render`. This can allow end users to request arbitrary local files which may result in leaking sensitive information persisted on disk. Where possible, avoid letting users specify template paths for `render`. If you must allow user input, use an allow-list of known templates or normalize the user-supplied value with `File.basename(...)`.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ruby.rails.security.brakeman.check-render-local-file-include.check-render-local-file-include)\n - [https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/11.1-Testing_for_Local_File_Inclusion](https://owasp.org/www-project-web-security-testing-guide/v42/4-Web_Application_Security_Testing/07-Input_Validation_Testing/11.1-Testing_for_Local_File_Inclusion)\n - [https://github.com/presidentbeef/brakeman/blob/f74cb53/test/apps/rails2/app/controllers/home_controller.rb#L48-L60](https://github.com/presidentbeef/brakeman/blob/f74cb53/test/apps/rails2/app/controllers/home_controller.rb#L48-L60)\n", + "text": "Found request parameters in a call to `render`. This can allow end users to request arbitrary local files which may result in leaking sensitive information persisted on disk. Where possible, avoid letting users specify template paths for `render`. If you must allow user input, use an allow-list of known templates or normalize the user-supplied value with `File.basename(...)`." + }, + "helpUri": "https://semgrep.dev/r/ruby.rails.security.brakeman.check-render-local-file-include.check-render-local-file-include", + "id": "ruby.rails.security.brakeman.check-render-local-file-include.check-render-local-file-include", + "name": "ruby.rails.security.brakeman.check-render-local-file-include.check-render-local-file-include", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')", + "MEDIUM CONFIDENCE", + "OWASP-A01:2021 - Broken Access Control", + "OWASP-A05:2017 - Broken Access Control", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: ruby.rails.security.brakeman.check-render-local-file-include.check-render-local-file-include" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Custom ERC721 implementation lacks access control checks in _transfer()" + }, + "help": { + "markdown": "Custom ERC721 implementation lacks access control checks in _transfer()\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/solidity.security.erc721-arbitrary-transferfrom.erc721-arbitrary-transferfrom)\n - [https://twitter.com/BlockSecAlert/status/1516289618605654024](https://twitter.com/BlockSecAlert/status/1516289618605654024)\n - [https://etherscan.io/address/0xf3821adaceb6500c0a202971aecf840a033f236b](https://etherscan.io/address/0xf3821adaceb6500c0a202971aecf840a033f236b)\n", + "text": "Custom ERC721 implementation lacks access control checks in _transfer()" + }, + "helpUri": "https://semgrep.dev/r/solidity.security.erc721-arbitrary-transferfrom.erc721-arbitrary-transferfrom", + "id": "solidity.security.erc721-arbitrary-transferfrom.erc721-arbitrary-transferfrom", + "name": "solidity.security.erc721-arbitrary-transferfrom.erc721-arbitrary-transferfrom", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-284: Improper Access Control", + "MEDIUM CONFIDENCE", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: solidity.security.erc721-arbitrary-transferfrom.erc721-arbitrary-transferfrom" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "`$QUERY` Detected string concatenation with a non-literal variable in a Doctrine QueryBuilder method. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use parameterized queries or prepared statements instead." + }, + "help": { + "markdown": "`$QUERY` Detected string concatenation with a non-literal variable in a Doctrine QueryBuilder method. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use parameterized queries or prepared statements instead.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/php.doctrine.security.audit.doctrine-orm-dangerous-query.doctrine-orm-dangerous-query)\n - [https://www.doctrine-project.org/projects/doctrine-dbal/en/current/reference/query-builder.html#security-safely-preventing-sql-injection](https://www.doctrine-project.org/projects/doctrine-dbal/en/current/reference/query-builder.html#security-safely-preventing-sql-injection)\n - [https://cheatsheetseries.owasp.org/cheatsheets/SQL_Injection_Prevention_Cheat_Sheet.html](https://cheatsheetseries.owasp.org/cheatsheets/SQL_Injection_Prevention_Cheat_Sheet.html)\n", + "text": "`$QUERY` Detected string concatenation with a non-literal variable in a Doctrine QueryBuilder method. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use parameterized queries or prepared statements instead." + }, + "helpUri": "https://semgrep.dev/r/php.doctrine.security.audit.doctrine-orm-dangerous-query.doctrine-orm-dangerous-query", + "id": "php.doctrine.security.audit.doctrine-orm-dangerous-query.doctrine-orm-dangerous-query", + "name": "php.doctrine.security.audit.doctrine-orm-dangerous-query.doctrine-orm-dangerous-query", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')", + "MEDIUM CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: php.doctrine.security.audit.doctrine-orm-dangerous-query.doctrine-orm-dangerous-query" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "A hard-coded credential was detected. It is not recommended to store credentials in source-code, as this risks secrets being leaked and used by either an internal or external malicious adversary. It is recommended to use environment variables to securely provide credentials or retrieve credentials from a secure vault or HSM (Hardware Security Module)." + }, + "help": { + "markdown": "A hard-coded credential was detected. It is not recommended to store credentials in source-code, as this risks secrets being leaked and used by either an internal or external malicious adversary. It is recommended to use environment variables to securely provide credentials or retrieve credentials from a secure vault or HSM (Hardware Security Module).\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/go.jwt-go.security.jwt.hardcoded-jwt-key)\n - [https://cheatsheetseries.owasp.org/cheatsheets/Secrets_Management_Cheat_Sheet.html](https://cheatsheetseries.owasp.org/cheatsheets/Secrets_Management_Cheat_Sheet.html)\n", + "text": "A hard-coded credential was detected. It is not recommended to store credentials in source-code, as this risks secrets being leaked and used by either an internal or external malicious adversary. It is recommended to use environment variables to securely provide credentials or retrieve credentials from a secure vault or HSM (Hardware Security Module)." + }, + "helpUri": "https://semgrep.dev/r/go.jwt-go.security.jwt.hardcoded-jwt-key", + "id": "go.jwt-go.security.jwt.hardcoded-jwt-key", + "name": "go.jwt-go.security.jwt.hardcoded-jwt-key", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-798: Use of Hard-coded Credentials", + "MEDIUM CONFIDENCE", + "OWASP-A07:2021 - Identification and Authentication Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: go.jwt-go.security.jwt.hardcoded-jwt-key" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Found potentially unsafe handling of redirect behavior $X. Do not pass `params` to `redirect_to` without the `:only_path => true` hash value." + }, + "help": { + "markdown": "Found potentially unsafe handling of redirect behavior $X. Do not pass `params` to `redirect_to` without the `:only_path => true` hash value.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ruby.rails.security.brakeman.check-redirect-to.check-redirect-to)\n - [https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html](https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html)\n", + "text": "Found potentially unsafe handling of redirect behavior $X. Do not pass `params` to `redirect_to` without the `:only_path => true` hash value." + }, + "helpUri": "https://semgrep.dev/r/ruby.rails.security.brakeman.check-redirect-to.check-redirect-to", + "id": "ruby.rails.security.brakeman.check-redirect-to.check-redirect-to", + "name": "ruby.rails.security.brakeman.check-redirect-to.check-redirect-to", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-601: URL Redirection to Untrusted Site ('Open Redirect')", + "MEDIUM CONFIDENCE", + "OWASP-A01:2021 - Broken Access Control", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: ruby.rails.security.brakeman.check-redirect-to.check-redirect-to" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Pervasives is deprecated and will not be available after 4.10. Use Stdlib." + }, + "help": { + "markdown": "Pervasives is deprecated and will not be available after 4.10. Use Stdlib.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ocaml.lang.compatibility.deprecated.deprecated-pervasives)\n", + "text": "Pervasives is deprecated and will not be available after 4.10. Use Stdlib." + }, + "helpUri": "https://semgrep.dev/r/ocaml.lang.compatibility.deprecated.deprecated-pervasives", + "id": "ocaml.lang.compatibility.deprecated.deprecated-pervasives", + "name": "ocaml.lang.compatibility.deprecated.deprecated-pervasives", + "properties": { + "precision": "very-high", + "tags": [] + }, + "shortDescription": { + "text": "Semgrep Finding: ocaml.lang.compatibility.deprecated.deprecated-pervasives" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "The function `openssl_decrypt` returns either a string of the decrypted data on success or `false` on failure. If the failure case is not handled, this could lead to undefined behavior in your application. Please handle the case where `openssl_decrypt` returns `false`." + }, + "help": { + "markdown": "The function `openssl_decrypt` returns either a string of the decrypted data on success or `false` on failure. If the failure case is not handled, this could lead to undefined behavior in your application. Please handle the case where `openssl_decrypt` returns `false`.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/php.lang.security.audit.openssl-decrypt-validate.openssl-decrypt-validate)\n - [https://www.php.net/manual/en/function.openssl-decrypt.php](https://www.php.net/manual/en/function.openssl-decrypt.php)\n", + "text": "The function `openssl_decrypt` returns either a string of the decrypted data on success or `false` on failure. If the failure case is not handled, this could lead to undefined behavior in your application. Please handle the case where `openssl_decrypt` returns `false`." + }, + "helpUri": "https://semgrep.dev/r/php.lang.security.audit.openssl-decrypt-validate.openssl-decrypt-validate", + "id": "php.lang.security.audit.openssl-decrypt-validate.openssl-decrypt-validate", + "name": "php.lang.security.audit.openssl-decrypt-validate.openssl-decrypt-validate", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-252: Unchecked Return Value", + "LOW CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: php.lang.security.audit.openssl-decrypt-validate.openssl-decrypt-validate" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "$sceProvider is set to false. Disabling Strict Contextual escaping (SCE) in an AngularJS application could provide additional attack surface for XSS vulnerabilities." + }, + "help": { + "markdown": "$sceProvider is set to false. Disabling Strict Contextual escaping (SCE) in an AngularJS application could provide additional attack surface for XSS vulnerabilities.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.angular.security.detect-angular-sce-disabled.detect-angular-sce-disabled)\n - [https://docs.angularjs.org/api/ng/service/$sce](https://docs.angularjs.org/api/ng/service/$sce)\n - [https://owasp.org/www-chapter-london/assets/slides/OWASPLondon20170727_AngularJS.pdf](https://owasp.org/www-chapter-london/assets/slides/OWASPLondon20170727_AngularJS.pdf)\n", + "text": "$sceProvider is set to false. Disabling Strict Contextual escaping (SCE) in an AngularJS application could provide additional attack surface for XSS vulnerabilities." + }, + "helpUri": "https://semgrep.dev/r/javascript.angular.security.detect-angular-sce-disabled.detect-angular-sce-disabled", + "id": "javascript.angular.security.detect-angular-sce-disabled.detect-angular-sce-disabled", + "name": "javascript.angular.security.detect-angular-sce-disabled.detect-angular-sce-disabled", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "HIGH CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.angular.security.detect-angular-sce-disabled.detect-angular-sce-disabled" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "'content_tag()' bypasses HTML escaping for some portion of the content. If external data can reach here, this exposes your application to cross-site scripting (XSS) attacks. Ensure no external data reaches here. If you must do this, create your HTML manually and use 'html_safe'. Ensure no external data enters the HTML-safe string!" + }, + "help": { + "markdown": "'content_tag()' bypasses HTML escaping for some portion of the content. If external data can reach here, this exposes your application to cross-site scripting (XSS) attacks. Ensure no external data reaches here. If you must do this, create your HTML manually and use 'html_safe'. Ensure no external data enters the HTML-safe string!\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ruby.rails.security.audit.xss.avoid-content-tag.avoid-content-tag)\n - [https://github.com/presidentbeef/brakeman/blob/main/docs/warning_types/template_injection/index.markdown](https://github.com/presidentbeef/brakeman/blob/main/docs/warning_types/template_injection/index.markdown)\n - [https://www.netsparker.com/blog/web-security/preventing-xss-ruby-on-rails-web-applications/](https://www.netsparker.com/blog/web-security/preventing-xss-ruby-on-rails-web-applications/)\n", + "text": "'content_tag()' bypasses HTML escaping for some portion of the content. If external data can reach here, this exposes your application to cross-site scripting (XSS) attacks. Ensure no external data reaches here. If you must do this, create your HTML manually and use 'html_safe'. Ensure no external data enters the HTML-safe string!" + }, + "helpUri": "https://semgrep.dev/r/ruby.rails.security.audit.xss.avoid-content-tag.avoid-content-tag", + "id": "ruby.rails.security.audit.xss.avoid-content-tag.avoid-content-tag", + "name": "ruby.rails.security.audit.xss.avoid-content-tag.avoid-content-tag", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: ruby.rails.security.audit.xss.avoid-content-tag.avoid-content-tag" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Container is explicitly disabling seccomp confinement. This runs the service in an unrestricted state. Remove 'seccompProfile: unconfined' to prevent this." + }, + "help": { + "markdown": "Container is explicitly disabling seccomp confinement. This runs the service in an unrestricted state. Remove 'seccompProfile: unconfined' to prevent this.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/yaml.kubernetes.security.seccomp-confinement-disabled.seccomp-confinement-disabled)\n - [https://kubernetes.io/docs/concepts/policy/pod-security-policy/#seccomp](https://kubernetes.io/docs/concepts/policy/pod-security-policy/#seccomp)\n - [https://kubernetes.io/docs/tasks/configure-pod-container/security-context/](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/)\n", + "text": "Container is explicitly disabling seccomp confinement. This runs the service in an unrestricted state. Remove 'seccompProfile: unconfined' to prevent this." + }, + "helpUri": "https://semgrep.dev/r/yaml.kubernetes.security.seccomp-confinement-disabled.seccomp-confinement-disabled", + "id": "yaml.kubernetes.security.seccomp-confinement-disabled.seccomp-confinement-disabled", + "name": "yaml.kubernetes.security.seccomp-confinement-disabled.seccomp-confinement-disabled", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-284: Improper Access Control", + "MEDIUM CONFIDENCE", + "OWASP-A01:2021 - Broken Access Control", + "OWASP-A05:2017 - Broken Access Control", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: yaml.kubernetes.security.seccomp-confinement-disabled.seccomp-confinement-disabled" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "abi.encodePacked hash collision with variable length arguments in $F()" + }, + "help": { + "markdown": "abi.encodePacked hash collision with variable length arguments in $F()\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/solidity.security.encode-packed-collision.encode-packed-collision)\n - [https://swcregistry.io/docs/SWC-133](https://swcregistry.io/docs/SWC-133)\n", + "text": "abi.encodePacked hash collision with variable length arguments in $F()" + }, + "helpUri": "https://semgrep.dev/r/solidity.security.encode-packed-collision.encode-packed-collision", + "id": "solidity.security.encode-packed-collision.encode-packed-collision", + "name": "solidity.security.encode-packed-collision.encode-packed-collision", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-20: Improper Input Validation", + "HIGH CONFIDENCE", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: solidity.security.encode-packed-collision.encode-packed-collision" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "CORS rule on bucket permits any origin" + }, + "help": { + "markdown": "CORS rule on bucket permits any origin\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.lang.security.s3-cors-all-origins.all-origins-allowed)\n - [https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket#using-cors](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket#using-cors)\n", + "text": "CORS rule on bucket permits any origin" + }, + "helpUri": "https://semgrep.dev/r/terraform.lang.security.s3-cors-all-origins.all-origins-allowed", + "id": "terraform.lang.security.s3-cors-all-origins.all-origins-allowed", + "name": "terraform.lang.security.s3-cors-all-origins.all-origins-allowed", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-942: Permissive Cross-domain Policy with Untrusted Domains", + "LOW CONFIDENCE", + "OWASP-A05:2021 - Security Misconfiguration", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.lang.security.s3-cors-all-origins.all-origins-allowed" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Potential arbitrary code execution, whatever is provided to `toFastProperties` is sent straight to eval()" + }, + "help": { + "markdown": "Potential arbitrary code execution, whatever is provided to `toFastProperties` is sent straight to eval()\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.bluebird.security.audit.tofastproperties-code-execution.tofastproperties-code-execution)\n - [http://bluebirdjs.com/docs/getting-started.html](http://bluebirdjs.com/docs/getting-started.html)\n", + "text": "Potential arbitrary code execution, whatever is provided to `toFastProperties` is sent straight to eval()" + }, + "helpUri": "https://semgrep.dev/r/javascript.bluebird.security.audit.tofastproperties-code-execution.tofastproperties-code-execution", + "id": "javascript.bluebird.security.audit.tofastproperties-code-execution.tofastproperties-code-execution", + "name": "javascript.bluebird.security.audit.tofastproperties-code-execution.tofastproperties-code-execution", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-94: Improper Control of Generation of Code ('Code Injection')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.bluebird.security.audit.tofastproperties-code-execution.tofastproperties-code-execution" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected the use of 'RawSQL' or 'raw' indicating the execution of a non-parameterized SQL query. This could lead to a SQL injection and therefore protected information could be leaked. Instead, use Django ORM and parameterized queries before raw SQL. An example of using the Django ORM is: `People.objects.get(name='Bob')`" + }, + "help": { + "markdown": "Detected the use of 'RawSQL' or 'raw' indicating the execution of a non-parameterized SQL query. This could lead to a SQL injection and therefore protected information could be leaked. Instead, use Django ORM and parameterized queries before raw SQL. An example of using the Django ORM is: `People.objects.get(name='Bob')`\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.django.security.audit.raw-query.avoid-raw-sql)\n - [https://docs.djangoproject.com/en/3.0/ref/models/expressions/#raw-sql-expressions](https://docs.djangoproject.com/en/3.0/ref/models/expressions/#raw-sql-expressions)\n - [https://semgrep.dev/blog/2020/preventing-sql-injection-a-django-authors-perspective/](https://semgrep.dev/blog/2020/preventing-sql-injection-a-django-authors-perspective/)\n", + "text": "Detected the use of 'RawSQL' or 'raw' indicating the execution of a non-parameterized SQL query. This could lead to a SQL injection and therefore protected information could be leaked. Instead, use Django ORM and parameterized queries before raw SQL. An example of using the Django ORM is: `People.objects.get(name='Bob')`" + }, + "helpUri": "https://semgrep.dev/r/python.django.security.audit.raw-query.avoid-raw-sql", + "id": "python.django.security.audit.raw-query.avoid-raw-sql", + "name": "python.django.security.audit.raw-query.avoid-raw-sql", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')", + "LOW CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.django.security.audit.raw-query.avoid-raw-sql" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "The use of $sce.trustAsResourceUrl can be dangerous if unsanitized user input flows through this API." + }, + "help": { + "markdown": "The use of $sce.trustAsResourceUrl can be dangerous if unsanitized user input flows through this API.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.angular.security.detect-angular-trust-as-resourceurl-method.detect-angular-trust-as-resourceurl-method)\n - [https://docs.angularjs.org/api/ng/service/$sce#trustAsResourceUrl](https://docs.angularjs.org/api/ng/service/$sce#trustAsResourceUrl)\n - [https://owasp.org/www-chapter-london/assets/slides/OWASPLondon20170727_AngularJS.pdf](https://owasp.org/www-chapter-london/assets/slides/OWASPLondon20170727_AngularJS.pdf)\n", + "text": "The use of $sce.trustAsResourceUrl can be dangerous if unsanitized user input flows through this API." + }, + "helpUri": "https://semgrep.dev/r/javascript.angular.security.detect-angular-trust-as-resourceurl-method.detect-angular-trust-as-resourceurl-method", + "id": "javascript.angular.security.detect-angular-trust-as-resourceurl-method.detect-angular-trust-as-resourceurl-method", + "name": "javascript.angular.security.detect-angular-trust-as-resourceurl-method.detect-angular-trust-as-resourceurl-method", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.angular.security.detect-angular-trust-as-resourceurl-method.detect-angular-trust-as-resourceurl-method" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "An insecure SSL context was detected. TLS versions 1.0, 1.1, and all SSL versions are considered weak encryption and are deprecated. Use SSLContext.getInstance(\"TLSv1.2\") for the best security." + }, + "help": { + "markdown": "An insecure SSL context was detected. TLS versions 1.0, 1.1, and all SSL versions are considered weak encryption and are deprecated. Use SSLContext.getInstance(\"TLSv1.2\") for the best security.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.lang.security.audit.weak-ssl-context.weak-ssl-context)\n - [https://tools.ietf.org/html/rfc7568](https://tools.ietf.org/html/rfc7568)\n - [https://tools.ietf.org/id/draft-ietf-tls-oldversions-deprecate-02.html](https://tools.ietf.org/id/draft-ietf-tls-oldversions-deprecate-02.html)\n", + "text": "An insecure SSL context was detected. TLS versions 1.0, 1.1, and all SSL versions are considered weak encryption and are deprecated. Use SSLContext.getInstance(\"TLSv1.2\") for the best security." + }, + "helpUri": "https://semgrep.dev/r/java.lang.security.audit.weak-ssl-context.weak-ssl-context", + "id": "java.lang.security.audit.weak-ssl-context.weak-ssl-context", + "name": "java.lang.security.audit.weak-ssl-context.weak-ssl-context", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-326: Inadequate Encryption Strength", + "HIGH CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.lang.security.audit.weak-ssl-context.weak-ssl-context" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Service '$SERVICE' is running in privileged mode. This grants the container the equivalent of root capabilities on the host machine. This can lead to container escapes, privilege escalation, and other security concerns. Remove the 'privileged' key to disable this capability." + }, + "help": { + "markdown": "Service '$SERVICE' is running in privileged mode. This grants the container the equivalent of root capabilities on the host machine. This can lead to container escapes, privilege escalation, and other security concerns. Remove the 'privileged' key to disable this capability.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/yaml.docker-compose.security.privileged-service.privileged-service)\n - [https://www.trendmicro.com/en_us/research/19/l/why-running-a-privileged-container-in-docker-is-a-bad-idea.html](https://www.trendmicro.com/en_us/research/19/l/why-running-a-privileged-container-in-docker-is-a-bad-idea.html)\n - [https://containerjournal.com/topics/container-security/why-running-a-privileged-container-is-not-a-good-idea/](https://containerjournal.com/topics/container-security/why-running-a-privileged-container-is-not-a-good-idea/)\n", + "text": "Service '$SERVICE' is running in privileged mode. This grants the container the equivalent of root capabilities on the host machine. This can lead to container escapes, privilege escalation, and other security concerns. Remove the 'privileged' key to disable this capability." + }, + "helpUri": "https://semgrep.dev/r/yaml.docker-compose.security.privileged-service.privileged-service", + "id": "yaml.docker-compose.security.privileged-service.privileged-service", + "name": "yaml.docker-compose.security.privileged-service.privileged-service", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-250: Execution with Unnecessary Privileges", + "HIGH CONFIDENCE", + "OWASP-A05:2021 - Security Misconfiguration", + "OWASP-A06:2017 - Security Misconfiguration", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: yaml.docker-compose.security.privileged-service.privileged-service" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Depending on the context, user control data in `Object.assign` can cause web response to include data that it should not have or can lead to a mass assignment vulnerability." + }, + "help": { + "markdown": "Depending on the context, user control data in `Object.assign` can cause web response to include data that it should not have or can lead to a mass assignment vulnerability.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.lang.security.insecure-object-assign.insecure-object-assign)\n - [https://cheatsheetseries.owasp.org/cheatsheets/Mass_Assignment_Cheat_Sheet.html](https://cheatsheetseries.owasp.org/cheatsheets/Mass_Assignment_Cheat_Sheet.html)\n - [https://en.wikipedia.org/wiki/Mass_assignment_vulnerability](https://en.wikipedia.org/wiki/Mass_assignment_vulnerability)\n", + "text": "Depending on the context, user control data in `Object.assign` can cause web response to include data that it should not have or can lead to a mass assignment vulnerability." + }, + "helpUri": "https://semgrep.dev/r/javascript.lang.security.insecure-object-assign.insecure-object-assign", + "id": "javascript.lang.security.insecure-object-assign.insecure-object-assign", + "name": "javascript.lang.security.insecure-object-assign.insecure-object-assign", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-601: URL Redirection to Untrusted Site ('Open Redirect')", + "LOW CONFIDENCE", + "OWASP-A01:2021 - Broken Access Control", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.lang.security.insecure-object-assign.insecure-object-assign" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Detected wildcard access granted to sts:AssumeRole. This means anyone with your AWS account ID and the name of the role can assume the role. Instead, limit to a specific identity in your account, like this: `arn:aws:iam:::root`." + }, + "help": { + "markdown": "Detected wildcard access granted to sts:AssumeRole. This means anyone with your AWS account ID and the name of the role can assume the role. Instead, limit to a specific identity in your account, like this: `arn:aws:iam:::root`.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/json.aws.security.wildcard-assume-role.wildcard-assume-role)\n - [https://rhinosecuritylabs.com/aws/assume-worst-aws-assume-role-enumeration/](https://rhinosecuritylabs.com/aws/assume-worst-aws-assume-role-enumeration/)\n", + "text": "Detected wildcard access granted to sts:AssumeRole. This means anyone with your AWS account ID and the name of the role can assume the role. Instead, limit to a specific identity in your account, like this: `arn:aws:iam:::root`." + }, + "helpUri": "https://semgrep.dev/r/json.aws.security.wildcard-assume-role.wildcard-assume-role", + "id": "json.aws.security.wildcard-assume-role.wildcard-assume-role", + "name": "json.aws.security.wildcard-assume-role.wildcard-assume-role", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-250: Execution with Unnecessary Privileges", + "MEDIUM CONFIDENCE", + "OWASP-A05:2021 - Security Misconfiguration", + "OWASP-A06:2017 - Security Misconfiguration", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: json.aws.security.wildcard-assume-role.wildcard-assume-role" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected input from a HTTPServletRequest going into a session command, like `setAttribute`. User input into such a command could lead to an attacker inputting malicious code into your session parameters, blurring the line between what's trusted and untrusted, and therefore leading to a trust boundary violation. This could lead to programmers trusting unvalidated data. Instead, thoroughly sanitize user input before passing it into such function calls." + }, + "help": { + "markdown": "Detected input from a HTTPServletRequest going into a session command, like `setAttribute`. User input into such a command could lead to an attacker inputting malicious code into your session parameters, blurring the line between what's trusted and untrusted, and therefore leading to a trust boundary violation. This could lead to programmers trusting unvalidated data. Instead, thoroughly sanitize user input before passing it into such function calls.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.lang.security.audit.tainted-session-from-http-request.tainted-session-from-http-request)\n - [https://owasp.org/Top10/A04_2021-Insecure_Design](https://owasp.org/Top10/A04_2021-Insecure_Design)\n", + "text": "Detected input from a HTTPServletRequest going into a session command, like `setAttribute`. User input into such a command could lead to an attacker inputting malicious code into your session parameters, blurring the line between what's trusted and untrusted, and therefore leading to a trust boundary violation. This could lead to programmers trusting unvalidated data. Instead, thoroughly sanitize user input before passing it into such function calls." + }, + "helpUri": "https://semgrep.dev/r/java.lang.security.audit.tainted-session-from-http-request.tainted-session-from-http-request", + "id": "java.lang.security.audit.tainted-session-from-http-request.tainted-session-from-http-request", + "name": "java.lang.security.audit.tainted-session-from-http-request.tainted-session-from-http-request", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-501: Trust Boundary Violation", + "MEDIUM CONFIDENCE", + "OWASP-A04:2021 - Insecure Design", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.lang.security.audit.tainted-session-from-http-request.tainted-session-from-http-request" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Checks for unsafe deserialization. Objects in Ruby can be serialized into strings, then later loaded from strings. However, uses of load and object_load can cause remote code execution. Loading user input with MARSHAL or CSV can potentially be dangerous. Use JSON in a secure fashion instead." + }, + "help": { + "markdown": "Checks for unsafe deserialization. Objects in Ruby can be serialized into strings, then later loaded from strings. However, uses of load and object_load can cause remote code execution. Loading user input with MARSHAL or CSV can potentially be dangerous. Use JSON in a secure fashion instead.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ruby.lang.security.bad-deserialization.bad-deserialization)\n - [https://groups.google.com/g/rubyonrails-security/c/61bkgvnSGTQ/m/nehwjA8tQ8EJ](https://groups.google.com/g/rubyonrails-security/c/61bkgvnSGTQ/m/nehwjA8tQ8EJ)\n - [https://github.com/presidentbeef/brakeman/blob/main/lib/brakeman/checks/check_deserialize.rb](https://github.com/presidentbeef/brakeman/blob/main/lib/brakeman/checks/check_deserialize.rb)\n", + "text": "Checks for unsafe deserialization. Objects in Ruby can be serialized into strings, then later loaded from strings. However, uses of load and object_load can cause remote code execution. Loading user input with MARSHAL or CSV can potentially be dangerous. Use JSON in a secure fashion instead." + }, + "helpUri": "https://semgrep.dev/r/ruby.lang.security.bad-deserialization.bad-deserialization", + "id": "ruby.lang.security.bad-deserialization.bad-deserialization", + "name": "ruby.lang.security.bad-deserialization.bad-deserialization", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-502: Deserialization of Untrusted Data", + "MEDIUM CONFIDENCE", + "OWASP-A08:2017 - Insecure Deserialization", + "OWASP-A08:2021 - Software and Data Integrity Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: ruby.lang.security.bad-deserialization.bad-deserialization" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Detected string concatenation with a non-literal variable in a go-pg SQL statement. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use parameterized queries instead of string concatenation. You can use parameterized queries like so: '(SELECT ? FROM table, data1)'" + }, + "help": { + "markdown": "Detected string concatenation with a non-literal variable in a go-pg SQL statement. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use parameterized queries instead of string concatenation. You can use parameterized queries like so: '(SELECT ? FROM table, data1)'\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/go.lang.security.audit.sqli.pg-sqli.pg-sqli)\n - [https://pg.uptrace.dev/](https://pg.uptrace.dev/)\n - [https://pkg.go.dev/github.com/go-pg/pg/v10](https://pkg.go.dev/github.com/go-pg/pg/v10)\n", + "text": "Detected string concatenation with a non-literal variable in a go-pg SQL statement. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use parameterized queries instead of string concatenation. You can use parameterized queries like so: '(SELECT ? FROM table, data1)'" + }, + "helpUri": "https://semgrep.dev/r/go.lang.security.audit.sqli.pg-sqli.pg-sqli", + "id": "go.lang.security.audit.sqli.pg-sqli.pg-sqli", + "name": "go.lang.security.audit.sqli.pg-sqli.pg-sqli", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')", + "LOW CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: go.lang.security.audit.sqli.pg-sqli.pg-sqli" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected a string argument from a public method contract in a raw SQL statement. This could lead to SQL injection if variables in the SQL statement are not properly sanitized. Use a prepared statements (java.sql.PreparedStatement) instead. You can obtain a PreparedStatement using 'connection.prepareStatement'." + }, + "help": { + "markdown": "Detected a string argument from a public method contract in a raw SQL statement. This could lead to SQL injection if variables in the SQL statement are not properly sanitized. Use a prepared statements (java.sql.PreparedStatement) instead. You can obtain a PreparedStatement using 'connection.prepareStatement'.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.spring.security.audit.spring-sqli.spring-sqli)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "Detected a string argument from a public method contract in a raw SQL statement. This could lead to SQL injection if variables in the SQL statement are not properly sanitized. Use a prepared statements (java.sql.PreparedStatement) instead. You can obtain a PreparedStatement using 'connection.prepareStatement'." + }, + "helpUri": "https://semgrep.dev/r/java.spring.security.audit.spring-sqli.spring-sqli", + "id": "java.spring.security.audit.spring-sqli.spring-sqli", + "name": "java.spring.security.audit.spring-sqli.spring-sqli", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')", + "MEDIUM CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.spring.security.audit.spring-sqli.spring-sqli" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Detected data rendered directly to the end user via 'Response'. This bypasses Pyramid's built-in cross-site scripting (XSS) defenses and could result in an XSS vulnerability. Use Pyramid's template engines to safely render HTML." + }, + "help": { + "markdown": "Detected data rendered directly to the end user via 'Response'. This bypasses Pyramid's built-in cross-site scripting (XSS) defenses and could result in an XSS vulnerability. Use Pyramid's template engines to safely render HTML.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.pyramid.security.direct-use-of-response.pyramid-direct-use-of-response)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "Detected data rendered directly to the end user via 'Response'. This bypasses Pyramid's built-in cross-site scripting (XSS) defenses and could result in an XSS vulnerability. Use Pyramid's template engines to safely render HTML." + }, + "helpUri": "https://semgrep.dev/r/python.pyramid.security.direct-use-of-response.pyramid-direct-use-of-response", + "id": "python.pyramid.security.direct-use-of-response.pyramid-direct-use-of-response", + "name": "python.pyramid.security.direct-use-of-response.pyramid-direct-use-of-response", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "MEDIUM CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.pyramid.security.direct-use-of-response.pyramid-direct-use-of-response" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Found user controlled content when spawning a process. This is dangerous because it allows a malicious actor to execute commands." + }, + "help": { + "markdown": "Found user controlled content when spawning a process. This is dangerous because it allows a malicious actor to execute commands.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.lang.security.dangerous-spawn-process.dangerous-spawn-process)\n - [https://semgrep.dev/docs/cheat-sheets/python-command-injection/](https://semgrep.dev/docs/cheat-sheets/python-command-injection/)\n", + "text": "Found user controlled content when spawning a process. This is dangerous because it allows a malicious actor to execute commands." + }, + "helpUri": "https://semgrep.dev/r/python.lang.security.dangerous-spawn-process.dangerous-spawn-process", + "id": "python.lang.security.dangerous-spawn-process.dangerous-spawn-process", + "name": "python.lang.security.dangerous-spawn-process.dangerous-spawn-process", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')", + "MEDIUM CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.lang.security.dangerous-spawn-process.dangerous-spawn-process" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "This socket is not encrypted. The traffic could be read by an attacker intercepting the network traffic. Use an SSLSocket created by 'SSLSocketFactory' or 'SSLServerSocketFactory' instead" + }, + "help": { + "markdown": "This socket is not encrypted. The traffic could be read by an attacker intercepting the network traffic. Use an SSLSocket created by 'SSLSocketFactory' or 'SSLServerSocketFactory' instead\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/kotlin.lang.security.unencrypted-socket.unencrypted-socket)\n - [https://owasp.org/Top10/A02_2021-Cryptographic_Failures](https://owasp.org/Top10/A02_2021-Cryptographic_Failures)\n", + "text": "This socket is not encrypted. The traffic could be read by an attacker intercepting the network traffic. Use an SSLSocket created by 'SSLSocketFactory' or 'SSLServerSocketFactory' instead" + }, + "helpUri": "https://semgrep.dev/r/kotlin.lang.security.unencrypted-socket.unencrypted-socket", + "id": "kotlin.lang.security.unencrypted-socket.unencrypted-socket", + "name": "kotlin.lang.security.unencrypted-socket.unencrypted-socket", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-319: Cleartext Transmission of Sensitive Information", + "LOW CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: kotlin.lang.security.unencrypted-socket.unencrypted-socket" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Detected a tainted SQL statement. This could lead to SQL injection if variables in the SQL statement are not properly sanitized. Avoid using using user input for generating SQL strings." + }, + "help": { + "markdown": "Detected a tainted SQL statement. This could lead to SQL injection if variables in the SQL statement are not properly sanitized. Avoid using using user input for generating SQL strings.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/scala.play.security.tainted-slick-sqli.tainted-slick-sqli)\n - [https://scala-slick.org/doc/3.3.3/sql.html#splicing-literal-values](https://scala-slick.org/doc/3.3.3/sql.html#splicing-literal-values)\n - [https://scala-slick.org/doc/3.2.0/sql-to-slick.html#non-optimal-sql-code](https://scala-slick.org/doc/3.2.0/sql-to-slick.html#non-optimal-sql-code)\n", + "text": "Detected a tainted SQL statement. This could lead to SQL injection if variables in the SQL statement are not properly sanitized. Avoid using using user input for generating SQL strings." + }, + "helpUri": "https://semgrep.dev/r/scala.play.security.tainted-slick-sqli.tainted-slick-sqli", + "id": "scala.play.security.tainted-slick-sqli.tainted-slick-sqli", + "name": "scala.play.security.tainted-slick-sqli.tainted-slick-sqli", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')", + "HIGH CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: scala.play.security.tainted-slick-sqli.tainted-slick-sqli" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Detected non-literal calls to Deno.run(). This could lead to a command injection vulnerability." + }, + "help": { + "markdown": "Detected non-literal calls to Deno.run(). This could lead to a command injection vulnerability.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.deno.security.audit.deno-dangerous-run.deno-dangerous-run)\n - [https://deno.land/manual/examples/subprocess#simple-example](https://deno.land/manual/examples/subprocess#simple-example)\n", + "text": "Detected non-literal calls to Deno.run(). This could lead to a command injection vulnerability." + }, + "helpUri": "https://semgrep.dev/r/javascript.deno.security.audit.deno-dangerous-run.deno-dangerous-run", + "id": "javascript.deno.security.audit.deno-dangerous-run.deno-dangerous-run", + "name": "javascript.deno.security.audit.deno-dangerous-run.deno-dangerous-run", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')", + "MEDIUM CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.deno.security.audit.deno-dangerous-run.deno-dangerous-run" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "multiprocessing.Process.close() is only available on Python 3.7+ and is therefore not backwards compatible. Instead, use join()." + }, + "help": { + "markdown": "multiprocessing.Process.close() is only available on Python 3.7+ and is therefore not backwards compatible. Instead, use join().\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.lang.compatibility.python37.python37-compatibility-multiprocess1)\n", + "text": "multiprocessing.Process.close() is only available on Python 3.7+ and is therefore not backwards compatible. Instead, use join()." + }, + "helpUri": "https://semgrep.dev/r/python.lang.compatibility.python37.python37-compatibility-multiprocess1", + "id": "python.lang.compatibility.python37.python37-compatibility-multiprocess1", + "name": "python.lang.compatibility.python37.python37-compatibility-multiprocess1", + "properties": { + "precision": "very-high", + "tags": [] + }, + "shortDescription": { + "text": "Semgrep Finding: python.lang.compatibility.python37.python37-compatibility-multiprocess1" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "The AWS EBS is unencrypted. The AWS EBS encryption protects data in the EBS." + }, + "help": { + "markdown": "The AWS EBS is unencrypted. The AWS EBS encryption protects data in the EBS.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.aws.security.aws-ebs-unencrypted.aws-ebs-unencrypted)\n - [https://owasp.org/Top10/A02_2021-Cryptographic_Failures](https://owasp.org/Top10/A02_2021-Cryptographic_Failures)\n", + "text": "The AWS EBS is unencrypted. The AWS EBS encryption protects data in the EBS." + }, + "helpUri": "https://semgrep.dev/r/terraform.aws.security.aws-ebs-unencrypted.aws-ebs-unencrypted", + "id": "terraform.aws.security.aws-ebs-unencrypted.aws-ebs-unencrypted", + "name": "terraform.aws.security.aws-ebs-unencrypted.aws-ebs-unencrypted", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-320: CWE CATEGORY: Key Management Errors", + "MEDIUM CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.aws.security.aws-ebs-unencrypted.aws-ebs-unencrypted" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detects setting client protocols to insecure versions of TLS and SSL. These protocols are deprecated due to POODLE, man in the middle attacks, and other vulnerabilities." + }, + "help": { + "markdown": "Detects setting client protocols to insecure versions of TLS and SSL. These protocols are deprecated due to POODLE, man in the middle attacks, and other vulnerabilities.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/problem-based-packs.insecure-transport.java-stdlib.disallow-old-tls-versions2.disallow-old-tls-versions2)\n - [https://stackoverflow.com/questions/26504653/is-it-possible-to-disable-sslv3-for-all-java-applications](https://stackoverflow.com/questions/26504653/is-it-possible-to-disable-sslv3-for-all-java-applications)\n", + "text": "Detects setting client protocols to insecure versions of TLS and SSL. These protocols are deprecated due to POODLE, man in the middle attacks, and other vulnerabilities." + }, + "helpUri": "https://semgrep.dev/r/problem-based-packs.insecure-transport.java-stdlib.disallow-old-tls-versions2.disallow-old-tls-versions2", + "id": "problem-based-packs.insecure-transport.java-stdlib.disallow-old-tls-versions2.disallow-old-tls-versions2", + "name": "problem-based-packs.insecure-transport.java-stdlib.disallow-old-tls-versions2.disallow-old-tls-versions2", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-319: Cleartext Transmission of Sensitive Information", + "MEDIUM CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: problem-based-packs.insecure-transport.java-stdlib.disallow-old-tls-versions2.disallow-old-tls-versions2" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "A hard-coded credential was detected. It is not recommended to store credentials in source-code, as this risks secrets being leaked and used by either an internal or external malicious adversary. It is recommended to use environment variables to securely provide credentials or retrieve credentials from a secure vault or HSM (Hardware Security Module)." + }, + "help": { + "markdown": "A hard-coded credential was detected. It is not recommended to store credentials in source-code, as this risks secrets being leaked and used by either an internal or external malicious adversary. It is recommended to use environment variables to securely provide credentials or retrieve credentials from a secure vault or HSM (Hardware Security Module).\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.boto3.security.hardcoded-token.hardcoded-token)\n - [https://cheatsheetseries.owasp.org/cheatsheets/Secrets_Management_Cheat_Sheet.html](https://cheatsheetseries.owasp.org/cheatsheets/Secrets_Management_Cheat_Sheet.html)\n - [https://bento.dev/checks/boto3/hardcoded-access-token/](https://bento.dev/checks/boto3/hardcoded-access-token/)\n - [https://aws.amazon.com/blogs/security/what-to-do-if-you-inadvertently-expose-an-aws-access-key/](https://aws.amazon.com/blogs/security/what-to-do-if-you-inadvertently-expose-an-aws-access-key/)\n", + "text": "A hard-coded credential was detected. It is not recommended to store credentials in source-code, as this risks secrets being leaked and used by either an internal or external malicious adversary. It is recommended to use environment variables to securely provide credentials or retrieve credentials from a secure vault or HSM (Hardware Security Module)." + }, + "helpUri": "https://semgrep.dev/r/python.boto3.security.hardcoded-token.hardcoded-token", + "id": "python.boto3.security.hardcoded-token.hardcoded-token", + "name": "python.boto3.security.hardcoded-token.hardcoded-token", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-798: Use of Hard-coded Credentials", + "MEDIUM CONFIDENCE", + "OWASP-A07:2021 - Identification and Authentication Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.boto3.security.hardcoded-token.hardcoded-token" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "User controlled data in a HTML string may result in XSS" + }, + "help": { + "markdown": "User controlled data in a HTML string may result in XSS\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.browser.security.raw-html-concat.raw-html-concat)\n - [https://owasp.org/www-community/attacks/xss/](https://owasp.org/www-community/attacks/xss/)\n", + "text": "User controlled data in a HTML string may result in XSS" + }, + "helpUri": "https://semgrep.dev/r/javascript.browser.security.raw-html-concat.raw-html-concat", + "id": "javascript.browser.security.raw-html-concat.raw-html-concat", + "name": "javascript.browser.security.raw-html-concat.raw-html-concat", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "MEDIUM CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.browser.security.raw-html-concat.raw-html-concat" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected an unsecured transmission channel. 'URLopener.open(...)' is being used with 'http://'. Use 'https://' instead to secure the channel." + }, + "help": { + "markdown": "Detected an unsecured transmission channel. 'URLopener.open(...)' is being used with 'http://'. Use 'https://' instead to secure the channel.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.lang.security.audit.insecure-transport.urllib.insecure-urlopener-open.insecure-urlopener-open)\n - [https://docs.python.org/3/library/urllib.request.html#urllib.request.URLopener.open](https://docs.python.org/3/library/urllib.request.html#urllib.request.URLopener.open)\n", + "text": "Detected an unsecured transmission channel. 'URLopener.open(...)' is being used with 'http://'. Use 'https://' instead to secure the channel." + }, + "helpUri": "https://semgrep.dev/r/python.lang.security.audit.insecure-transport.urllib.insecure-urlopener-open.insecure-urlopener-open", + "id": "python.lang.security.audit.insecure-transport.urllib.insecure-urlopener-open.insecure-urlopener-open", + "name": "python.lang.security.audit.insecure-transport.urllib.insecure-urlopener-open.insecure-urlopener-open", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-319: Cleartext Transmission of Sensitive Information", + "LOW CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.lang.security.audit.insecure-transport.urllib.insecure-urlopener-open.insecure-urlopener-open" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Spring Boot Actuator is fully enabled. This exposes sensitive endpoints such as /actuator/env, /actuator/logfile, /actuator/heapdump and others. Unless you have Spring Security enabled or another means to protect these endpoints, this functionality is available without authentication, causing a significant security risk." + }, + "help": { + "markdown": "Spring Boot Actuator is fully enabled. This exposes sensitive endpoints such as /actuator/env, /actuator/logfile, /actuator/heapdump and others. Unless you have Spring Security enabled or another means to protect these endpoints, this functionality is available without authentication, causing a significant security risk.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.spring.security.audit.spring-actuator-fully-enabled.spring-actuator-fully-enabled)\n - [https://docs.spring.io/spring-boot/docs/current/reference/html/production-ready-features.html#production-ready-endpoints-exposing-endpoints](https://docs.spring.io/spring-boot/docs/current/reference/html/production-ready-features.html#production-ready-endpoints-exposing-endpoints)\n - [https://medium.com/walmartglobaltech/perils-of-spring-boot-actuators-misconfiguration-185c43a0f785](https://medium.com/walmartglobaltech/perils-of-spring-boot-actuators-misconfiguration-185c43a0f785)\n - [https://blog.maass.xyz/spring-actuator-security-part-1-stealing-secrets-using-spring-actuators](https://blog.maass.xyz/spring-actuator-security-part-1-stealing-secrets-using-spring-actuators)\n", + "text": "Spring Boot Actuator is fully enabled. This exposes sensitive endpoints such as /actuator/env, /actuator/logfile, /actuator/heapdump and others. Unless you have Spring Security enabled or another means to protect these endpoints, this functionality is available without authentication, causing a significant security risk." + }, + "helpUri": "https://semgrep.dev/r/java.spring.security.audit.spring-actuator-fully-enabled.spring-actuator-fully-enabled", + "id": "java.spring.security.audit.spring-actuator-fully-enabled.spring-actuator-fully-enabled", + "name": "java.spring.security.audit.spring-actuator-fully-enabled.spring-actuator-fully-enabled", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-200: Exposure of Sensitive Information to an Unauthorized Actor", + "MEDIUM CONFIDENCE", + "OWASP-A01:2021 - Broken Access Control", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.spring.security.audit.spring-actuator-fully-enabled.spring-actuator-fully-enabled" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "It looks like MD5 is used as a password hash. MD5 is not considered a secure password hash because it can be cracked by an attacker in a short amount of time. Use a suitable password hashing function such as bcrypt. You can use `password_hash($PASSWORD, PASSWORD_BCRYPT, $OPTIONS);`." + }, + "help": { + "markdown": "It looks like MD5 is used as a password hash. MD5 is not considered a secure password hash because it can be cracked by an attacker in a short amount of time. Use a suitable password hashing function such as bcrypt. You can use `password_hash($PASSWORD, PASSWORD_BCRYPT, $OPTIONS);`.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/php.lang.security.md5-used-as-password.md5-used-as-password)\n - [https://tools.ietf.org/html/rfc6151](https://tools.ietf.org/html/rfc6151)\n - [https://crypto.stackexchange.com/questions/44151/how-does-the-flame-malware-take-advantage-of-md5-collision](https://crypto.stackexchange.com/questions/44151/how-does-the-flame-malware-take-advantage-of-md5-collision)\n - [https://security.stackexchange.com/questions/211/how-to-securely-hash-passwords](https://security.stackexchange.com/questions/211/how-to-securely-hash-passwords)\n - [https://github.com/returntocorp/semgrep-rules/issues/1609](https://github.com/returntocorp/semgrep-rules/issues/1609)\n - [https://www.php.net/password_hash](https://www.php.net/password_hash)\n", + "text": "It looks like MD5 is used as a password hash. MD5 is not considered a secure password hash because it can be cracked by an attacker in a short amount of time. Use a suitable password hashing function such as bcrypt. You can use `password_hash($PASSWORD, PASSWORD_BCRYPT, $OPTIONS);`." + }, + "helpUri": "https://semgrep.dev/r/php.lang.security.md5-used-as-password.md5-used-as-password", + "id": "php.lang.security.md5-used-as-password.md5-used-as-password", + "name": "php.lang.security.md5-used-as-password.md5-used-as-password", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-327: Use of a Broken or Risky Cryptographic Algorithm", + "MEDIUM CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: php.lang.security.md5-used-as-password.md5-used-as-password" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Ensure EBS Snapshot is encrypted at rest using KMS CMKs. CMKs gives you control over the encryption key in terms of access and rotation." + }, + "help": { + "markdown": "Ensure EBS Snapshot is encrypted at rest using KMS CMKs. CMKs gives you control over the encryption key in terms of access and rotation.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.aws.security.aws-ebs-snapshot-encrypted-with-cmk.aws-ebs-snapshot-encrypted-with-cmk)\n - [https://owasp.org/Top10/A02_2021-Cryptographic_Failures](https://owasp.org/Top10/A02_2021-Cryptographic_Failures)\n", + "text": "Ensure EBS Snapshot is encrypted at rest using KMS CMKs. CMKs gives you control over the encryption key in terms of access and rotation." + }, + "helpUri": "https://semgrep.dev/r/terraform.aws.security.aws-ebs-snapshot-encrypted-with-cmk.aws-ebs-snapshot-encrypted-with-cmk", + "id": "terraform.aws.security.aws-ebs-snapshot-encrypted-with-cmk.aws-ebs-snapshot-encrypted-with-cmk", + "name": "terraform.aws.security.aws-ebs-snapshot-encrypted-with-cmk.aws-ebs-snapshot-encrypted-with-cmk", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-320: CWE CATEGORY: Key Management Errors", + "MEDIUM CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.aws.security.aws-ebs-snapshot-encrypted-with-cmk.aws-ebs-snapshot-encrypted-with-cmk" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "This rule has been deprecated." + }, + "help": { + "markdown": "This rule has been deprecated.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.aws.security.aws-elasticache-replication-group-encrypted-with-cmk.aws-elasticache-replication-group-encrypted-with-cmk)\n - [https://owasp.org/Top10/A02_2021-Cryptographic_Failures](https://owasp.org/Top10/A02_2021-Cryptographic_Failures)\n", + "text": "This rule has been deprecated." + }, + "helpUri": "https://semgrep.dev/r/terraform.aws.security.aws-elasticache-replication-group-encrypted-with-cmk.aws-elasticache-replication-group-encrypted-with-cmk", + "id": "terraform.aws.security.aws-elasticache-replication-group-encrypted-with-cmk.aws-elasticache-replication-group-encrypted-with-cmk", + "name": "terraform.aws.security.aws-elasticache-replication-group-encrypted-with-cmk.aws-elasticache-replication-group-encrypted-with-cmk", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-320: CWE CATEGORY: Key Management Errors", + "LOW CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.aws.security.aws-elasticache-replication-group-encrypted-with-cmk.aws-elasticache-replication-group-encrypted-with-cmk" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Detected user input used to manually construct a SQL string. This is usually bad practice because manual construction could accidentally result in a SQL injection. An attacker could use a SQL injection to steal or modify contents of the database. Instead, use a parameterized query which is available by default in most database engines. Alternatively, consider using the Django object-relational mappers (ORM) instead of raw SQL queries." + }, + "help": { + "markdown": "Detected user input used to manually construct a SQL string. This is usually bad practice because manual construction could accidentally result in a SQL injection. An attacker could use a SQL injection to steal or modify contents of the database. Instead, use a parameterized query which is available by default in most database engines. Alternatively, consider using the Django object-relational mappers (ORM) instead of raw SQL queries.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.django.security.injection.tainted-sql-string.tainted-sql-string)\n - [https://docs.djangoproject.com/en/3.0/topics/security/#sql-injection-protection](https://docs.djangoproject.com/en/3.0/topics/security/#sql-injection-protection)\n", + "text": "Detected user input used to manually construct a SQL string. This is usually bad practice because manual construction could accidentally result in a SQL injection. An attacker could use a SQL injection to steal or modify contents of the database. Instead, use a parameterized query which is available by default in most database engines. Alternatively, consider using the Django object-relational mappers (ORM) instead of raw SQL queries." + }, + "helpUri": "https://semgrep.dev/r/python.django.security.injection.tainted-sql-string.tainted-sql-string", + "id": "python.django.security.injection.tainted-sql-string.tainted-sql-string", + "name": "python.django.security.injection.tainted-sql-string.tainted-sql-string", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes", + "LOW CONFIDENCE", + "OWASP-A08:2021 - Software and Data Integrity Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.django.security.injection.tainted-sql-string.tainted-sql-string" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Executing non-constant commands. This can lead to command injection." + }, + "help": { + "markdown": "Executing non-constant commands. This can lead to command injection.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/php.lang.security.exec-use.exec-use)\n - [https://github.com/FloeDesignTechnologies/phpcs-security-audit/blob/master/Security/Sniffs/BadFunctions/SystemExecFunctionsSniff.php](https://github.com/FloeDesignTechnologies/phpcs-security-audit/blob/master/Security/Sniffs/BadFunctions/SystemExecFunctionsSniff.php)\n", + "text": "Executing non-constant commands. This can lead to command injection." + }, + "helpUri": "https://semgrep.dev/r/php.lang.security.exec-use.exec-use", + "id": "php.lang.security.exec-use.exec-use", + "name": "php.lang.security.exec-use.exec-use", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-94: Improper Control of Generation of Code ('Code Injection')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: php.lang.security.exec-use.exec-use" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected SQL statement that is tainted by `event` object. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use parameterized queries or prepared statements instead. You can use parameterized statements like so: `cursor.execute('SELECT * FROM projects WHERE status = %s', ('active'))`" + }, + "help": { + "markdown": "Detected SQL statement that is tainted by `event` object. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use parameterized queries or prepared statements instead. You can use parameterized statements like so: `cursor.execute('SELECT * FROM projects WHERE status = %s', ('active'))`\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.aws-lambda.security.pymysql-sqli.pymysql-sqli)\n - [https://pypi.org/project/PyMySQL/#id4](https://pypi.org/project/PyMySQL/#id4)\n", + "text": "Detected SQL statement that is tainted by `event` object. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use parameterized queries or prepared statements instead. You can use parameterized statements like so: `cursor.execute('SELECT * FROM projects WHERE status = %s', ('active'))`" + }, + "helpUri": "https://semgrep.dev/r/python.aws-lambda.security.pymysql-sqli.pymysql-sqli", + "id": "python.aws-lambda.security.pymysql-sqli.pymysql-sqli", + "name": "python.aws-lambda.security.pymysql-sqli.pymysql-sqli", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')", + "MEDIUM CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.aws-lambda.security.pymysql-sqli.pymysql-sqli" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "External entities are allowed for $DBFACTORY. This is vulnerable to XML external entity attacks. Disable this by setting the feature \"http://xml.org/sax/features/external-general-entities\" to false." + }, + "help": { + "markdown": "External entities are allowed for $DBFACTORY. This is vulnerable to XML external entity attacks. Disable this by setting the feature \"http://xml.org/sax/features/external-general-entities\" to false.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.lang.security.audit.xxe.documentbuilderfactory-external-general-entities-true.documentbuilderfactory-external-general-entities-true)\n - [https://semgrep.dev/blog/2022/xml-security-in-java](https://semgrep.dev/blog/2022/xml-security-in-java)\n - [https://semgrep.dev/docs/cheat-sheets/java-xxe/](https://semgrep.dev/docs/cheat-sheets/java-xxe/)\n - [https://blog.sonarsource.com/secure-xml-processor](https://blog.sonarsource.com/secure-xml-processor)\n", + "text": "External entities are allowed for $DBFACTORY. This is vulnerable to XML external entity attacks. Disable this by setting the feature \"http://xml.org/sax/features/external-general-entities\" to false." + }, + "helpUri": "https://semgrep.dev/r/java.lang.security.audit.xxe.documentbuilderfactory-external-general-entities-true.documentbuilderfactory-external-general-entities-true", + "id": "java.lang.security.audit.xxe.documentbuilderfactory-external-general-entities-true.documentbuilderfactory-external-general-entities-true", + "name": "java.lang.security.audit.xxe.documentbuilderfactory-external-general-entities-true.documentbuilderfactory-external-general-entities-true", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-611: Improper Restriction of XML External Entity Reference", + "HIGH CONFIDENCE", + "OWASP-A04:2017 - XML External Entities (XXE)", + "OWASP-A05:2021 - Security Misconfiguration", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.lang.security.audit.xxe.documentbuilderfactory-external-general-entities-true.documentbuilderfactory-external-general-entities-true" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Found user-controlled data used in a system call. This could allow a malicious actor to execute commands. Use the 'subprocess' module instead, which is easier to use without accidentally exposing a command injection vulnerability." + }, + "help": { + "markdown": "Found user-controlled data used in a system call. This could allow a malicious actor to execute commands. Use the 'subprocess' module instead, which is easier to use without accidentally exposing a command injection vulnerability.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.lang.security.dangerous-system-call.dangerous-system-call)\n - [https://semgrep.dev/docs/cheat-sheets/python-command-injection/](https://semgrep.dev/docs/cheat-sheets/python-command-injection/)\n", + "text": "Found user-controlled data used in a system call. This could allow a malicious actor to execute commands. Use the 'subprocess' module instead, which is easier to use without accidentally exposing a command injection vulnerability." + }, + "helpUri": "https://semgrep.dev/r/python.lang.security.dangerous-system-call.dangerous-system-call", + "id": "python.lang.security.dangerous-system-call.dangerous-system-call", + "name": "python.lang.security.dangerous-system-call.dangerous-system-call", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')", + "MEDIUM CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.lang.security.dangerous-system-call.dangerous-system-call" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected an insecure transmission channel. 'URLopener.retrieve(...)' is being used with 'ftp://'. Use SFTP instead. urllib does not support SFTP, so consider using a library which supports SFTP." + }, + "help": { + "markdown": "Detected an insecure transmission channel. 'URLopener.retrieve(...)' is being used with 'ftp://'. Use SFTP instead. urllib does not support SFTP, so consider using a library which supports SFTP.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.lang.security.audit.insecure-transport.urllib.insecure-urlopener-retrieve-ftp.insecure-urlopener-retrieve-ftp)\n - [https://docs.python.org/3/library/urllib.request.html#urllib.request.URLopener.retrieve](https://docs.python.org/3/library/urllib.request.html#urllib.request.URLopener.retrieve)\n", + "text": "Detected an insecure transmission channel. 'URLopener.retrieve(...)' is being used with 'ftp://'. Use SFTP instead. urllib does not support SFTP, so consider using a library which supports SFTP." + }, + "helpUri": "https://semgrep.dev/r/python.lang.security.audit.insecure-transport.urllib.insecure-urlopener-retrieve-ftp.insecure-urlopener-retrieve-ftp", + "id": "python.lang.security.audit.insecure-transport.urllib.insecure-urlopener-retrieve-ftp.insecure-urlopener-retrieve-ftp", + "name": "python.lang.security.audit.insecure-transport.urllib.insecure-urlopener-retrieve-ftp.insecure-urlopener-retrieve-ftp", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-319: Cleartext Transmission of Sensitive Information", + "LOW CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.lang.security.audit.insecure-transport.urllib.insecure-urlopener-retrieve-ftp.insecure-urlopener-retrieve-ftp" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Mass assignment detected. This can result in assignment to model fields that are unintended and can be exploited by an attacker. Instead of using '**request.$W', assign each field you want to edit individually to prevent mass assignment. You can read more about mass assignment at https://cheatsheetseries.owasp.org/cheatsheets/Mass_Assignment_Cheat_Sheet.html." + }, + "help": { + "markdown": "Mass assignment detected. This can result in assignment to model fields that are unintended and can be exploited by an attacker. Instead of using '**request.$W', assign each field you want to edit individually to prevent mass assignment. You can read more about mass assignment at https://cheatsheetseries.owasp.org/cheatsheets/Mass_Assignment_Cheat_Sheet.html.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.django.security.injection.mass-assignment.mass-assignment)\n - [https://cheatsheetseries.owasp.org/cheatsheets/Mass_Assignment_Cheat_Sheet.html](https://cheatsheetseries.owasp.org/cheatsheets/Mass_Assignment_Cheat_Sheet.html)\n", + "text": "Mass assignment detected. This can result in assignment to model fields that are unintended and can be exploited by an attacker. Instead of using '**request.$W', assign each field you want to edit individually to prevent mass assignment. You can read more about mass assignment at https://cheatsheetseries.owasp.org/cheatsheets/Mass_Assignment_Cheat_Sheet.html." + }, + "helpUri": "https://semgrep.dev/r/python.django.security.injection.mass-assignment.mass-assignment", + "id": "python.django.security.injection.mass-assignment.mass-assignment", + "name": "python.django.security.injection.mass-assignment.mass-assignment", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes", + "LOW CONFIDENCE", + "OWASP-A08:2021 - Software and Data Integrity Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.django.security.injection.mass-assignment.mass-assignment" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Avoid using `pickle`, which is known to lead to code execution vulnerabilities. When unpickling, the serialized data could be manipulated to run arbitrary code. Instead, consider serializing the relevant data as JSON or a similar text-based serialization format." + }, + "help": { + "markdown": "Avoid using `pickle`, which is known to lead to code execution vulnerabilities. When unpickling, the serialized data could be manipulated to run arbitrary code. Instead, consider serializing the relevant data as JSON or a similar text-based serialization format.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.lang.security.deserialization.pickle.avoid-pickle)\n - [https://docs.python.org/3/library/pickle.html](https://docs.python.org/3/library/pickle.html)\n", + "text": "Avoid using `pickle`, which is known to lead to code execution vulnerabilities. When unpickling, the serialized data could be manipulated to run arbitrary code. Instead, consider serializing the relevant data as JSON or a similar text-based serialization format." + }, + "helpUri": "https://semgrep.dev/r/python.lang.security.deserialization.pickle.avoid-pickle", + "id": "python.lang.security.deserialization.pickle.avoid-pickle", + "name": "python.lang.security.deserialization.pickle.avoid-pickle", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-502: Deserialization of Untrusted Data", + "LOW CONFIDENCE", + "OWASP-A08:2017 - Insecure Deserialization", + "OWASP-A08:2021 - Software and Data Integrity Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.lang.security.deserialization.pickle.avoid-pickle" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Allowing spawning arbitrary programs or running shell processes with arbitrary arguments may end up in a command injection vulnerability. Try to avoid non-literal values for the command string. If it is not possible, then do not let running arbitrary commands, use a white list for inputs." + }, + "help": { + "markdown": "Allowing spawning arbitrary programs or running shell processes with arbitrary arguments may end up in a command injection vulnerability. Try to avoid non-literal values for the command string. If it is not possible, then do not let running arbitrary commands, use a white list for inputs.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.aws-lambda.security.detect-child-process.detect-child-process)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "Allowing spawning arbitrary programs or running shell processes with arbitrary arguments may end up in a command injection vulnerability. Try to avoid non-literal values for the command string. If it is not possible, then do not let running arbitrary commands, use a white list for inputs." + }, + "helpUri": "https://semgrep.dev/r/javascript.aws-lambda.security.detect-child-process.detect-child-process", + "id": "javascript.aws-lambda.security.detect-child-process.detect-child-process", + "name": "javascript.aws-lambda.security.detect-child-process.detect-child-process", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')", + "MEDIUM CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.aws-lambda.security.detect-child-process.detect-child-process" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected user input flowing into a manually constructed HTML string. You may be accidentally bypassing secure methods of rendering HTML by manually constructing HTML and this could create a cross-site scripting vulnerability, which could let attackers steal sensitive user data. To be sure this is safe, check that the HTML is rendered safely. Otherwise, use templates which will safely render HTML instead." + }, + "help": { + "markdown": "Detected user input flowing into a manually constructed HTML string. You may be accidentally bypassing secure methods of rendering HTML by manually constructing HTML and this could create a cross-site scripting vulnerability, which could let attackers steal sensitive user data. To be sure this is safe, check that the HTML is rendered safely. Otherwise, use templates which will safely render HTML instead.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.aws-lambda.security.tainted-html-string.tainted-html-string)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "Detected user input flowing into a manually constructed HTML string. You may be accidentally bypassing secure methods of rendering HTML by manually constructing HTML and this could create a cross-site scripting vulnerability, which could let attackers steal sensitive user data. To be sure this is safe, check that the HTML is rendered safely. Otherwise, use templates which will safely render HTML instead." + }, + "helpUri": "https://semgrep.dev/r/javascript.aws-lambda.security.tainted-html-string.tainted-html-string", + "id": "javascript.aws-lambda.security.tainted-html-string.tainted-html-string", + "name": "javascript.aws-lambda.security.tainted-html-string.tainted-html-string", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "MEDIUM CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.aws-lambda.security.tainted-html-string.tainted-html-string" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "XMLInputFactory being instantiated without calling the setProperty functions that are generally used for disabling entity processing. User controlled data in XML Document builder can result in XML Internal Entity Processing vulnerabilities like the disclosure of confidential data, denial of service, Server Side Request Forgery (SSRF), port scanning. Make sure to disable entity processing functionality." + }, + "help": { + "markdown": "XMLInputFactory being instantiated without calling the setProperty functions that are generally used for disabling entity processing. User controlled data in XML Document builder can result in XML Internal Entity Processing vulnerabilities like the disclosure of confidential data, denial of service, Server Side Request Forgery (SSRF), port scanning. Make sure to disable entity processing functionality.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/scala.lang.security.audit.xmlinputfactory-dtd-enabled.xmlinputfactory-dtd-enabled)\n - [https://owasp.org/Top10/A05_2021-Security_Misconfiguration](https://owasp.org/Top10/A05_2021-Security_Misconfiguration)\n", + "text": "XMLInputFactory being instantiated without calling the setProperty functions that are generally used for disabling entity processing. User controlled data in XML Document builder can result in XML Internal Entity Processing vulnerabilities like the disclosure of confidential data, denial of service, Server Side Request Forgery (SSRF), port scanning. Make sure to disable entity processing functionality." + }, + "helpUri": "https://semgrep.dev/r/scala.lang.security.audit.xmlinputfactory-dtd-enabled.xmlinputfactory-dtd-enabled", + "id": "scala.lang.security.audit.xmlinputfactory-dtd-enabled.xmlinputfactory-dtd-enabled", + "name": "scala.lang.security.audit.xmlinputfactory-dtd-enabled.xmlinputfactory-dtd-enabled", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-611: Improper Restriction of XML External Entity Reference", + "HIGH CONFIDENCE", + "OWASP-A04:2017 - XML External Entities (XXE)", + "OWASP-A05:2021 - Security Misconfiguration", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: scala.lang.security.audit.xmlinputfactory-dtd-enabled.xmlinputfactory-dtd-enabled" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected anonymous LDAP bind. This permits anonymous users to execute LDAP statements. Consider enforcing authentication for LDAP. See https://docs.oracle.com/javase/tutorial/jndi/ldap/auth_mechs.html for more information." + }, + "help": { + "markdown": "Detected anonymous LDAP bind. This permits anonymous users to execute LDAP statements. Consider enforcing authentication for LDAP. See https://docs.oracle.com/javase/tutorial/jndi/ldap/auth_mechs.html for more information.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.lang.security.audit.anonymous-ldap-bind.anonymous-ldap-bind)\n - [https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures](https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures)\n", + "text": "Detected anonymous LDAP bind. This permits anonymous users to execute LDAP statements. Consider enforcing authentication for LDAP. See https://docs.oracle.com/javase/tutorial/jndi/ldap/auth_mechs.html for more information." + }, + "helpUri": "https://semgrep.dev/r/java.lang.security.audit.anonymous-ldap-bind.anonymous-ldap-bind", + "id": "java.lang.security.audit.anonymous-ldap-bind.anonymous-ldap-bind", + "name": "java.lang.security.audit.anonymous-ldap-bind.anonymous-ldap-bind", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-287: Improper Authentication", + "LOW CONFIDENCE", + "OWASP-A02:2017 - Broken Authentication", + "OWASP-A07:2021 - Identification and Authentication Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.lang.security.audit.anonymous-ldap-bind.anonymous-ldap-bind" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "This call turns off CSRF protection allowing CSRF attacks against the application" + }, + "help": { + "markdown": "This call turns off CSRF protection allowing CSRF attacks against the application\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ruby.rails.security.audit.rails-skip-forgery-protection.rails-skip-forgery-protection)\n - [https://api.rubyonrails.org/classes/ActionController/RequestForgeryProtection/ClassMethods.html#method-i-skip_forgery_protection](https://api.rubyonrails.org/classes/ActionController/RequestForgeryProtection/ClassMethods.html#method-i-skip_forgery_protection)\n", + "text": "This call turns off CSRF protection allowing CSRF attacks against the application" + }, + "helpUri": "https://semgrep.dev/r/ruby.rails.security.audit.rails-skip-forgery-protection.rails-skip-forgery-protection", + "id": "ruby.rails.security.audit.rails-skip-forgery-protection.rails-skip-forgery-protection", + "name": "ruby.rails.security.audit.rails-skip-forgery-protection.rails-skip-forgery-protection", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-352: Cross-Site Request Forgery (CSRF)", + "LOW CONFIDENCE", + "OWASP-A01:2021 - Broken Access Control", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: ruby.rails.security.audit.rails-skip-forgery-protection.rails-skip-forgery-protection" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "this rule has been deprecated." + }, + "help": { + "markdown": "this rule has been deprecated.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.jsonwebtoken.security.jwt-exposed-credentials.jwt-exposed-credentials)\n - [https://cheatsheetseries.owasp.org/cheatsheets/Secrets_Management_Cheat_Sheet.html](https://cheatsheetseries.owasp.org/cheatsheets/Secrets_Management_Cheat_Sheet.html)\n", + "text": "this rule has been deprecated." + }, + "helpUri": "https://semgrep.dev/r/javascript.jsonwebtoken.security.jwt-exposed-credentials.jwt-exposed-credentials", + "id": "javascript.jsonwebtoken.security.jwt-exposed-credentials.jwt-exposed-credentials", + "name": "javascript.jsonwebtoken.security.jwt-exposed-credentials.jwt-exposed-credentials", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-798: Use of Hard-coded Credentials", + "LOW CONFIDENCE", + "OWASP-A07:2021 - Identification and Authentication Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.jsonwebtoken.security.jwt-exposed-credentials.jwt-exposed-credentials" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "User data flows into the host portion of this manually-constructed URL. This could allow an attacker to send data to their own server, potentially exposing sensitive data such as cookies or authorization information sent with this request. They could also probe internal servers or other resources that the server runnig this code can access. (This is called server-side request forgery, or SSRF.) Do not allow arbitrary hosts. Instead, create an allowlist for approved hosts hardcode the correct host." + }, + "help": { + "markdown": "User data flows into the host portion of this manually-constructed URL. This could allow an attacker to send data to their own server, potentially exposing sensitive data such as cookies or authorization information sent with this request. They could also probe internal servers or other resources that the server runnig this code can access. (This is called server-side request forgery, or SSRF.) Do not allow arbitrary hosts. Instead, create an allowlist for approved hosts hardcode the correct host.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.django.security.injection.tainted-url-host.tainted-url-host)\n - [https://cheatsheetseries.owasp.org/cheatsheets/Server_Side_Request_Forgery_Prevention_Cheat_Sheet.html](https://cheatsheetseries.owasp.org/cheatsheets/Server_Side_Request_Forgery_Prevention_Cheat_Sheet.html)\n", + "text": "User data flows into the host portion of this manually-constructed URL. This could allow an attacker to send data to their own server, potentially exposing sensitive data such as cookies or authorization information sent with this request. They could also probe internal servers or other resources that the server runnig this code can access. (This is called server-side request forgery, or SSRF.) Do not allow arbitrary hosts. Instead, create an allowlist for approved hosts hardcode the correct host." + }, + "helpUri": "https://semgrep.dev/r/python.django.security.injection.tainted-url-host.tainted-url-host", + "id": "python.django.security.injection.tainted-url-host.tainted-url-host", + "name": "python.django.security.injection.tainted-url-host.tainted-url-host", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-918: Server-Side Request Forgery (SSRF)", + "LOW CONFIDENCE", + "OWASP-A10:2021 - Server-Side Request Forgery (SSRF)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.django.security.injection.tainted-url-host.tainted-url-host" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "setMultipleAllowances() is missing onlyOwner modifier" + }, + "help": { + "markdown": "setMultipleAllowances() is missing onlyOwner modifier\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/solidity.security.rigoblock-missing-access-control.rigoblock-missing-access-control)\n - [https://twitter.com/danielvf/status/1494317265835147272](https://twitter.com/danielvf/status/1494317265835147272)\n - [https://etherscan.io/address/0x876b9ebd725d1fa0b879fcee12560a6453b51dc8](https://etherscan.io/address/0x876b9ebd725d1fa0b879fcee12560a6453b51dc8)\n - [https://play.secdim.com/game/dapp/challenge/rigoownsol](https://play.secdim.com/game/dapp/challenge/rigoownsol)\n", + "text": "setMultipleAllowances() is missing onlyOwner modifier" + }, + "helpUri": "https://semgrep.dev/r/solidity.security.rigoblock-missing-access-control.rigoblock-missing-access-control", + "id": "solidity.security.rigoblock-missing-access-control.rigoblock-missing-access-control", + "name": "solidity.security.rigoblock-missing-access-control.rigoblock-missing-access-control", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-284: Improper Access Control", + "HIGH CONFIDENCE", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: solidity.security.rigoblock-missing-access-control.rigoblock-missing-access-control" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Executing non-constant commands. This can lead to command injection. You should use `escapeshellarg()` when using command." + }, + "help": { + "markdown": "Executing non-constant commands. This can lead to command injection. You should use `escapeshellarg()` when using command.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/php.lang.security.tainted-exec.tainted-exec)\n - [https://www.stackhawk.com/blog/php-command-injection/](https://www.stackhawk.com/blog/php-command-injection/)\n - [https://brightsec.com/blog/code-injection-php/](https://brightsec.com/blog/code-injection-php/)\n - [https://www.acunetix.com/websitesecurity/php-security-2/](https://www.acunetix.com/websitesecurity/php-security-2/)\n", + "text": "Executing non-constant commands. This can lead to command injection. You should use `escapeshellarg()` when using command." + }, + "helpUri": "https://semgrep.dev/r/php.lang.security.tainted-exec.tainted-exec", + "id": "php.lang.security.tainted-exec.tainted-exec", + "name": "php.lang.security.tainted-exec.tainted-exec", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-94: Improper Control of Generation of Code ('Code Injection')", + "MEDIUM CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: php.lang.security.tainted-exec.tainted-exec" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "The following function call $SER.$FUNC accepts user controlled data which can result in Remote Code Execution (RCE) through Object Deserialization. It is recommended to use secure data processing alternatives such as JSON.parse() and Buffer.from()." + }, + "help": { + "markdown": "The following function call $SER.$FUNC accepts user controlled data which can result in Remote Code Execution (RCE) through Object Deserialization. It is recommended to use secure data processing alternatives such as JSON.parse() and Buffer.from().\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.express.security.audit.express-third-party-object-deserialization.express-third-party-object-deserialization)\n - [https://cheatsheetseries.owasp.org/cheatsheets/Deserialization_Cheat_Sheet.html](https://cheatsheetseries.owasp.org/cheatsheets/Deserialization_Cheat_Sheet.html)\n", + "text": "The following function call $SER.$FUNC accepts user controlled data which can result in Remote Code Execution (RCE) through Object Deserialization. It is recommended to use secure data processing alternatives such as JSON.parse() and Buffer.from()." + }, + "helpUri": "https://semgrep.dev/r/javascript.express.security.audit.express-third-party-object-deserialization.express-third-party-object-deserialization", + "id": "javascript.express.security.audit.express-third-party-object-deserialization.express-third-party-object-deserialization", + "name": "javascript.express.security.audit.express-third-party-object-deserialization.express-third-party-object-deserialization", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-502: Deserialization of Untrusted Data", + "HIGH CONFIDENCE", + "OWASP-A08:2017 - Insecure Deserialization", + "OWASP-A08:2021 - Software and Data Integrity Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.express.security.audit.express-third-party-object-deserialization.express-third-party-object-deserialization" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected a formatted string in a SQL statement. This could lead to SQL injection if variables in the SQL statement are not properly sanitized. Use a prepared statements (java.sql.PreparedStatement) instead. You can obtain a PreparedStatement using 'connection.prepareStatement'." + }, + "help": { + "markdown": "Detected a formatted string in a SQL statement. This could lead to SQL injection if variables in the SQL statement are not properly sanitized. Use a prepared statements (java.sql.PreparedStatement) instead. You can obtain a PreparedStatement using 'connection.prepareStatement'.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.lang.security.audit.sqli.jdbc-sqli.jdbc-sqli)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "Detected a formatted string in a SQL statement. This could lead to SQL injection if variables in the SQL statement are not properly sanitized. Use a prepared statements (java.sql.PreparedStatement) instead. You can obtain a PreparedStatement using 'connection.prepareStatement'." + }, + "helpUri": "https://semgrep.dev/r/java.lang.security.audit.sqli.jdbc-sqli.jdbc-sqli", + "id": "java.lang.security.audit.sqli.jdbc-sqli.jdbc-sqli", + "name": "java.lang.security.audit.sqli.jdbc-sqli.jdbc-sqli", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')", + "LOW CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.lang.security.audit.sqli.jdbc-sqli.jdbc-sqli" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "SSLv3 is insecure because it has known vulnerabilities. Starting with go1.14, SSLv3 will be removed. Instead, use 'tls.VersionTLS13'." + }, + "help": { + "markdown": "SSLv3 is insecure because it has known vulnerabilities. Starting with go1.14, SSLv3 will be removed. Instead, use 'tls.VersionTLS13'.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/go.lang.security.audit.crypto.ssl.ssl-v3-is-insecure)\n - [https://golang.org/doc/go1.14#crypto/tls](https://golang.org/doc/go1.14#crypto/tls)\n - [https://www.us-cert.gov/ncas/alerts/TA14-290A](https://www.us-cert.gov/ncas/alerts/TA14-290A)\n", + "text": "SSLv3 is insecure because it has known vulnerabilities. Starting with go1.14, SSLv3 will be removed. Instead, use 'tls.VersionTLS13'." + }, + "helpUri": "https://semgrep.dev/r/go.lang.security.audit.crypto.ssl.ssl-v3-is-insecure", + "id": "go.lang.security.audit.crypto.ssl.ssl-v3-is-insecure", + "name": "go.lang.security.audit.crypto.ssl.ssl-v3-is-insecure", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-327: Use of a Broken or Risky Cryptographic Algorithm", + "HIGH CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: go.lang.security.audit.crypto.ssl.ssl-v3-is-insecure" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Detected wildcard access granted in your KMS key. This means anyone with this policy can perform administrative actions over the keys. Instead, limit principals, actions and resources to what you need according to least privilege." + }, + "help": { + "markdown": "Detected wildcard access granted in your KMS key. This means anyone with this policy can perform administrative actions over the keys. Instead, limit principals, actions and resources to what you need according to least privilege.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.aws.security.aws-kms-key-wildcard-principal.aws-kms-key-wildcard-principal)\n - [https://cwe.mitre.org/data/definitions/732.html](https://cwe.mitre.org/data/definitions/732.html)\n", + "text": "Detected wildcard access granted in your KMS key. This means anyone with this policy can perform administrative actions over the keys. Instead, limit principals, actions and resources to what you need according to least privilege." + }, + "helpUri": "https://semgrep.dev/r/terraform.aws.security.aws-kms-key-wildcard-principal.aws-kms-key-wildcard-principal", + "id": "terraform.aws.security.aws-kms-key-wildcard-principal.aws-kms-key-wildcard-principal", + "name": "terraform.aws.security.aws-kms-key-wildcard-principal.aws-kms-key-wildcard-principal", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-732: Incorrect Permission Assignment for Critical Resource", + "MEDIUM CONFIDENCE", + "OWASP-A05:2021 - Security Misconfiguration", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.aws.security.aws-kms-key-wildcard-principal.aws-kms-key-wildcard-principal" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "OWASP guidance recommends disabling tracing for production applications to prevent accidental leakage of sensitive application information." + }, + "help": { + "markdown": "OWASP guidance recommends disabling tracing for production applications to prevent accidental leakage of sensitive application information.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/csharp.dotnet.security.net-webconfig-trace-enabled.net-webconfig-trace-enabled)\n - [https://cheatsheetseries.owasp.org/cheatsheets/DotNet_Security_Cheat_Sheet.html#asp-net-web-forms-guidance](https://cheatsheetseries.owasp.org/cheatsheets/DotNet_Security_Cheat_Sheet.html#asp-net-web-forms-guidance)\n - [https://msdn.microsoft.com/en-us/library/e8z01xdh.aspx](https://msdn.microsoft.com/en-us/library/e8z01xdh.aspx)\n", + "text": "OWASP guidance recommends disabling tracing for production applications to prevent accidental leakage of sensitive application information." + }, + "helpUri": "https://semgrep.dev/r/csharp.dotnet.security.net-webconfig-trace-enabled.net-webconfig-trace-enabled", + "id": "csharp.dotnet.security.net-webconfig-trace-enabled.net-webconfig-trace-enabled", + "name": "csharp.dotnet.security.net-webconfig-trace-enabled.net-webconfig-trace-enabled", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-1323: Improper Management of Sensitive Trace Data", + "LOW CONFIDENCE", + "OWASP-A05:2021 - Security Misconfiguration", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: csharp.dotnet.security.net-webconfig-trace-enabled.net-webconfig-trace-enabled" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected the use of `exec/eval`.This can be dangerous if used to evaluate dynamic content. If this content can be input from outside the program, this may be a code injection vulnerability. Ensure evaluated content is not definable by external sources." + }, + "help": { + "markdown": "Detected the use of `exec/eval`.This can be dangerous if used to evaluate dynamic content. If this content can be input from outside the program, this may be a code injection vulnerability. Ensure evaluated content is not definable by external sources.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.aws-lambda.security.tainted-code-exec.tainted-code-exec)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "Detected the use of `exec/eval`.This can be dangerous if used to evaluate dynamic content. If this content can be input from outside the program, this may be a code injection vulnerability. Ensure evaluated content is not definable by external sources." + }, + "helpUri": "https://semgrep.dev/r/python.aws-lambda.security.tainted-code-exec.tainted-code-exec", + "id": "python.aws-lambda.security.tainted-code-exec.tainted-code-exec", + "name": "python.aws-lambda.security.tainted-code-exec.tainted-code-exec", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')", + "MEDIUM CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.aws-lambda.security.tainted-code-exec.tainted-code-exec" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "'Integer.toHexString()' strips leading zeroes from each byte if read byte-by-byte. This mistake weakens the hash value computed since it introduces more collisions. Use 'String.format(\"%02X\", ...)' instead." + }, + "help": { + "markdown": "'Integer.toHexString()' strips leading zeroes from each byte if read byte-by-byte. This mistake weakens the hash value computed since it introduces more collisions. Use 'String.format(\"%02X\", ...)' instead.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.lang.security.audit.bad-hexa-conversion.bad-hexa-conversion)\n - [https://cwe.mitre.org/data/definitions/704.html](https://cwe.mitre.org/data/definitions/704.html)\n", + "text": "'Integer.toHexString()' strips leading zeroes from each byte if read byte-by-byte. This mistake weakens the hash value computed since it introduces more collisions. Use 'String.format(\"%02X\", ...)' instead." + }, + "helpUri": "https://semgrep.dev/r/java.lang.security.audit.bad-hexa-conversion.bad-hexa-conversion", + "id": "java.lang.security.audit.bad-hexa-conversion.bad-hexa-conversion", + "name": "java.lang.security.audit.bad-hexa-conversion.bad-hexa-conversion", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-704: Incorrect Type Conversion or Cast", + "LOW CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.lang.security.audit.bad-hexa-conversion.bad-hexa-conversion" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Usage of RSA without OAEP (Optimal Asymmetric Encryption Padding) may weaken encryption. This could lead to sensitive data exposure. Instead, use RSA with `OAEPWithMD5AndMGF1Padding` instead." + }, + "help": { + "markdown": "Usage of RSA without OAEP (Optimal Asymmetric Encryption Padding) may weaken encryption. This could lead to sensitive data exposure. Instead, use RSA with `OAEPWithMD5AndMGF1Padding` instead.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/scala.lang.security.audit.rsa-padding-set.rsa-padding-set)\n - [https://owasp.org/Top10/A02_2021-Cryptographic_Failures](https://owasp.org/Top10/A02_2021-Cryptographic_Failures)\n", + "text": "Usage of RSA without OAEP (Optimal Asymmetric Encryption Padding) may weaken encryption. This could lead to sensitive data exposure. Instead, use RSA with `OAEPWithMD5AndMGF1Padding` instead." + }, + "helpUri": "https://semgrep.dev/r/scala.lang.security.audit.rsa-padding-set.rsa-padding-set", + "id": "scala.lang.security.audit.rsa-padding-set.rsa-padding-set", + "name": "scala.lang.security.audit.rsa-padding-set.rsa-padding-set", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-780: Use of RSA Algorithm without OAEP", + "HIGH CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: scala.lang.security.audit.rsa-padding-set.rsa-padding-set" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Function sweepToken is allowed to be called by anyone" + }, + "help": { + "markdown": "Function sweepToken is allowed to be called by anyone\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/solidity.security.compound-sweeptoken-not-restricted.compound-sweeptoken-not-restricted)\n - [https://medium.com/chainsecurity/trueusd-compound-vulnerability-bc5b696d29e2](https://medium.com/chainsecurity/trueusd-compound-vulnerability-bc5b696d29e2)\n - [https://chainsecurity.com/security-audit/compound-ctoken/](https://chainsecurity.com/security-audit/compound-ctoken/)\n - [https://blog.openzeppelin.com/compound-comprehensive-protocol-audit/](https://blog.openzeppelin.com/compound-comprehensive-protocol-audit/)\n - [https://etherscan.io/address/0xa035b9e130f2b1aedc733eefb1c67ba4c503491f](https://etherscan.io/address/0xa035b9e130f2b1aedc733eefb1c67ba4c503491f)\n", + "text": "Function sweepToken is allowed to be called by anyone" + }, + "helpUri": "https://semgrep.dev/r/solidity.security.compound-sweeptoken-not-restricted.compound-sweeptoken-not-restricted", + "id": "solidity.security.compound-sweeptoken-not-restricted.compound-sweeptoken-not-restricted", + "name": "solidity.security.compound-sweeptoken-not-restricted.compound-sweeptoken-not-restricted", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-284: Improper Access Control", + "MEDIUM CONFIDENCE", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: solidity.security.compound-sweeptoken-not-restricted.compound-sweeptoken-not-restricted" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected a request with potential user-input going into a OutputStream or Writer object. This bypasses any view or template environments, including HTML escaping, which may expose this application to cross-site scripting (XSS) vulnerabilities. Consider using a view technology such as JavaServer Faces (JSFs) which automatically escapes HTML views." + }, + "help": { + "markdown": "Detected a request with potential user-input going into a OutputStream or Writer object. This bypasses any view or template environments, including HTML escaping, which may expose this application to cross-site scripting (XSS) vulnerabilities. Consider using a view technology such as JavaServer Faces (JSFs) which automatically escapes HTML views.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.lang.security.audit.xss.no-direct-response-writer.no-direct-response-writer)\n - [https://www3.ntu.edu.sg/home/ehchua/programming/java/JavaServerFaces.html](https://www3.ntu.edu.sg/home/ehchua/programming/java/JavaServerFaces.html)\n", + "text": "Detected a request with potential user-input going into a OutputStream or Writer object. This bypasses any view or template environments, including HTML escaping, which may expose this application to cross-site scripting (XSS) vulnerabilities. Consider using a view technology such as JavaServer Faces (JSFs) which automatically escapes HTML views." + }, + "helpUri": "https://semgrep.dev/r/java.lang.security.audit.xss.no-direct-response-writer.no-direct-response-writer", + "id": "java.lang.security.audit.xss.no-direct-response-writer.no-direct-response-writer", + "name": "java.lang.security.audit.xss.no-direct-response-writer.no-direct-response-writer", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "MEDIUM CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.lang.security.audit.xss.no-direct-response-writer.no-direct-response-writer" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Cryptographic algorithms are notoriously difficult to get right. By implementing a custom message digest, you risk introducing security issues into your program. Use one of the many sound message digests already available to you: MessageDigest sha256Digest = MessageDigest.getInstance(\"SHA256\");" + }, + "help": { + "markdown": "Cryptographic algorithms are notoriously difficult to get right. By implementing a custom message digest, you risk introducing security issues into your program. Use one of the many sound message digests already available to you: MessageDigest sha256Digest = MessageDigest.getInstance(\"SHA256\");\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.lang.security.audit.crypto.ssl.avoid-implementing-custom-digests.avoid-implementing-custom-digests)\n - [https://cheatsheetseries.owasp.org/cheatsheets/Cryptographic_Storage_Cheat_Sheet.html#custom-algorithms](https://cheatsheetseries.owasp.org/cheatsheets/Cryptographic_Storage_Cheat_Sheet.html#custom-algorithms)\n", + "text": "Cryptographic algorithms are notoriously difficult to get right. By implementing a custom message digest, you risk introducing security issues into your program. Use one of the many sound message digests already available to you: MessageDigest sha256Digest = MessageDigest.getInstance(\"SHA256\");" + }, + "helpUri": "https://semgrep.dev/r/java.lang.security.audit.crypto.ssl.avoid-implementing-custom-digests.avoid-implementing-custom-digests", + "id": "java.lang.security.audit.crypto.ssl.avoid-implementing-custom-digests.avoid-implementing-custom-digests", + "name": "java.lang.security.audit.crypto.ssl.avoid-implementing-custom-digests.avoid-implementing-custom-digests", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-327: Use of a Broken or Risky Cryptographic Algorithm", + "LOW CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.lang.security.audit.crypto.ssl.avoid-implementing-custom-digests.avoid-implementing-custom-digests" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected MD5 hash algorithm which is considered insecure. MD5 is not collision resistant and is therefore not suitable as a cryptographic signature. Use SHA256 or SHA3 instead." + }, + "help": { + "markdown": "Detected MD5 hash algorithm which is considered insecure. MD5 is not collision resistant and is therefore not suitable as a cryptographic signature. Use SHA256 or SHA3 instead.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.cryptography.security.insecure-hash-algorithms-md5.insecure-hash-algorithm-md5)\n - [https://www.schneier.com/blog/archives/2012/10/when_will_we_se.html](https://www.schneier.com/blog/archives/2012/10/when_will_we_se.html)\n - [https://www.trendmicro.com/vinfo/us/security/news/vulnerabilities-and-exploits/sha-1-collision-signals-the-end-of-the-algorithm-s-viability](https://www.trendmicro.com/vinfo/us/security/news/vulnerabilities-and-exploits/sha-1-collision-signals-the-end-of-the-algorithm-s-viability)\n - [http://2012.sharcs.org/slides/stevens.pdf](http://2012.sharcs.org/slides/stevens.pdf)\n - [https://pycryptodome.readthedocs.io/en/latest/src/hash/sha3_256.html](https://pycryptodome.readthedocs.io/en/latest/src/hash/sha3_256.html)\n", + "text": "Detected MD5 hash algorithm which is considered insecure. MD5 is not collision resistant and is therefore not suitable as a cryptographic signature. Use SHA256 or SHA3 instead." + }, + "helpUri": "https://semgrep.dev/r/python.cryptography.security.insecure-hash-algorithms-md5.insecure-hash-algorithm-md5", + "id": "python.cryptography.security.insecure-hash-algorithms-md5.insecure-hash-algorithm-md5", + "name": "python.cryptography.security.insecure-hash-algorithms-md5.insecure-hash-algorithm-md5", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-327: Use of a Broken or Risky Cryptographic Algorithm", + "MEDIUM CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.cryptography.security.insecure-hash-algorithms-md5.insecure-hash-algorithm-md5" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "The AWS Workspace user volume is unencrypted. The AWS KMS encryption key protects user volume. To create your own, create a aws_kms_key resource or use the ARN string of a key in your account." + }, + "help": { + "markdown": "The AWS Workspace user volume is unencrypted. The AWS KMS encryption key protects user volume. To create your own, create a aws_kms_key resource or use the ARN string of a key in your account.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.aws.security.aws-workspaces-user-volume-unencrypted.aws-workspaces-user-volume-unencrypted)\n - [https://owasp.org/Top10/A02_2021-Cryptographic_Failures](https://owasp.org/Top10/A02_2021-Cryptographic_Failures)\n", + "text": "The AWS Workspace user volume is unencrypted. The AWS KMS encryption key protects user volume. To create your own, create a aws_kms_key resource or use the ARN string of a key in your account." + }, + "helpUri": "https://semgrep.dev/r/terraform.aws.security.aws-workspaces-user-volume-unencrypted.aws-workspaces-user-volume-unencrypted", + "id": "terraform.aws.security.aws-workspaces-user-volume-unencrypted.aws-workspaces-user-volume-unencrypted", + "name": "terraform.aws.security.aws-workspaces-user-volume-unencrypted.aws-workspaces-user-volume-unencrypted", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-320: CWE CATEGORY: Key Management Errors", + "LOW CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.aws.security.aws-workspaces-user-volume-unencrypted.aws-workspaces-user-volume-unencrypted" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected user input flowing into an HTML response. You may be accidentally bypassing secure methods of rendering HTML by manually constructing HTML and this could create a cross-site scripting vulnerability, which could let attackers steal sensitive user data." + }, + "help": { + "markdown": "Detected user input flowing into an HTML response. You may be accidentally bypassing secure methods of rendering HTML by manually constructing HTML and this could create a cross-site scripting vulnerability, which could let attackers steal sensitive user data.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.aws-lambda.security.tainted-html-response.tainted-html-response)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "Detected user input flowing into an HTML response. You may be accidentally bypassing secure methods of rendering HTML by manually constructing HTML and this could create a cross-site scripting vulnerability, which could let attackers steal sensitive user data." + }, + "helpUri": "https://semgrep.dev/r/javascript.aws-lambda.security.tainted-html-response.tainted-html-response", + "id": "javascript.aws-lambda.security.tainted-html-response.tainted-html-response", + "name": "javascript.aws-lambda.security.tainted-html-response.tainted-html-response", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "MEDIUM CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.aws-lambda.security.tainted-html-response.tainted-html-response" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected input from a HTTPServletRequest going into a SQL sink or statement. This could lead to SQL injection if variables in the SQL statement are not properly sanitized. Use parameterized SQL queries or properly sanitize user input instead." + }, + "help": { + "markdown": "Detected input from a HTTPServletRequest going into a SQL sink or statement. This could lead to SQL injection if variables in the SQL statement are not properly sanitized. Use parameterized SQL queries or properly sanitize user input instead.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.lang.security.audit.sqli.tainted-sql-from-http-request.tainted-sql-from-http-request)\n - [https://cheatsheetseries.owasp.org/cheatsheets/SQL_Injection_Prevention_Cheat_Sheet.html](https://cheatsheetseries.owasp.org/cheatsheets/SQL_Injection_Prevention_Cheat_Sheet.html)\n - [https://owasp.org/www-community/attacks/SQL_Injection](https://owasp.org/www-community/attacks/SQL_Injection)\n", + "text": "Detected input from a HTTPServletRequest going into a SQL sink or statement. This could lead to SQL injection if variables in the SQL statement are not properly sanitized. Use parameterized SQL queries or properly sanitize user input instead." + }, + "helpUri": "https://semgrep.dev/r/java.lang.security.audit.sqli.tainted-sql-from-http-request.tainted-sql-from-http-request", + "id": "java.lang.security.audit.sqli.tainted-sql-from-http-request.tainted-sql-from-http-request", + "name": "java.lang.security.audit.sqli.tainted-sql-from-http-request.tainted-sql-from-http-request", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')", + "HIGH CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.lang.security.audit.sqli.tainted-sql-from-http-request.tainted-sql-from-http-request" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "GitHub Token detected" + }, + "help": { + "markdown": "GitHub Token detected\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/generic.secrets.security.detected-github-token.detected-github-token)\n - [https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures](https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures)\n", + "text": "GitHub Token detected" + }, + "helpUri": "https://semgrep.dev/r/generic.secrets.security.detected-github-token.detected-github-token", + "id": "generic.secrets.security.detected-github-token.detected-github-token", + "name": "generic.secrets.security.detected-github-token.detected-github-token", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-798: Use of Hard-coded Credentials", + "LOW CONFIDENCE", + "OWASP-A07:2021 - Identification and Authentication Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: generic.secrets.security.detected-github-token.detected-github-token" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Found dynamic content used for the external process. This is dangerous if arbitrary data can reach this function call because it allows a malicious actor to execute commands. Ensure your variables are not controlled by users or sufficiently sanitized." + }, + "help": { + "markdown": "Found dynamic content used for the external process. This is dangerous if arbitrary data can reach this function call because it allows a malicious actor to execute commands. Ensure your variables are not controlled by users or sufficiently sanitized.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/scala.lang.security.audit.dangerous-shell-run.dangerous-shell-run)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "Found dynamic content used for the external process. This is dangerous if arbitrary data can reach this function call because it allows a malicious actor to execute commands. Ensure your variables are not controlled by users or sufficiently sanitized." + }, + "helpUri": "https://semgrep.dev/r/scala.lang.security.audit.dangerous-shell-run.dangerous-shell-run", + "id": "scala.lang.security.audit.dangerous-shell-run.dangerous-shell-run", + "name": "scala.lang.security.audit.dangerous-shell-run.dangerous-shell-run", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')", + "LOW CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: scala.lang.security.audit.dangerous-shell-run.dangerous-shell-run" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected possible user input going into a `path.join` or `path.resolve` function. This could possibly lead to a path traversal vulnerability, where the attacker can access arbitrary files stored in the file system. Instead, be sure to sanitize or validate user input first." + }, + "help": { + "markdown": "Detected possible user input going into a `path.join` or `path.resolve` function. This could possibly lead to a path traversal vulnerability, where the attacker can access arbitrary files stored in the file system. Instead, be sure to sanitize or validate user input first.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.lang.security.audit.path-traversal.path-join-resolve-traversal.path-join-resolve-traversal)\n - [https://owasp.org/www-community/attacks/Path_Traversal](https://owasp.org/www-community/attacks/Path_Traversal)\n", + "text": "Detected possible user input going into a `path.join` or `path.resolve` function. This could possibly lead to a path traversal vulnerability, where the attacker can access arbitrary files stored in the file system. Instead, be sure to sanitize or validate user input first." + }, + "helpUri": "https://semgrep.dev/r/javascript.lang.security.audit.path-traversal.path-join-resolve-traversal.path-join-resolve-traversal", + "id": "javascript.lang.security.audit.path-traversal.path-join-resolve-traversal.path-join-resolve-traversal", + "name": "javascript.lang.security.audit.path-traversal.path-join-resolve-traversal.path-join-resolve-traversal", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')", + "LOW CONFIDENCE", + "OWASP-A01:2021 - Broken Access Control", + "OWASP-A05:2017 - Broken Access Control", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.lang.security.audit.path-traversal.path-join-resolve-traversal.path-join-resolve-traversal" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Using user input when accessing files is potentially dangerous. A malicious actor could use this to modify or access files they have no right to." + }, + "help": { + "markdown": "Using user input when accessing files is potentially dangerous. A malicious actor could use this to modify or access files they have no right to.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ruby.rails.security.audit.avoid-tainted-shell-call.avoid-tainted-shell-call)\n - [https://github.com/presidentbeef/brakeman/blob/main/docs/warning_types/file_access/index.markdown](https://github.com/presidentbeef/brakeman/blob/main/docs/warning_types/file_access/index.markdown)\n", + "text": "Using user input when accessing files is potentially dangerous. A malicious actor could use this to modify or access files they have no right to." + }, + "helpUri": "https://semgrep.dev/r/ruby.rails.security.audit.avoid-tainted-shell-call.avoid-tainted-shell-call", + "id": "ruby.rails.security.audit.avoid-tainted-shell-call.avoid-tainted-shell-call", + "name": "ruby.rails.security.audit.avoid-tainted-shell-call.avoid-tainted-shell-call", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')", + "MEDIUM CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: ruby.rails.security.audit.avoid-tainted-shell-call.avoid-tainted-shell-call" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "The LosFormatter type is dangerous and is not recommended for data processing. Applications should stop using LosFormatter as soon as possible, even if they believe the data they're processing to be trustworthy. LosFormatter is insecure and can't be made secure" + }, + "help": { + "markdown": "The LosFormatter type is dangerous and is not recommended for data processing. Applications should stop using LosFormatter as soon as possible, even if they believe the data they're processing to be trustworthy. LosFormatter is insecure and can't be made secure\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/csharp.lang.security.insecure-deserialization.los-formatter.insecure-losformatter-deserialization)\n - [https://docs.microsoft.com/en-us/dotnet/api/system.web.ui.losformatter?view=netframework-4.8](https://docs.microsoft.com/en-us/dotnet/api/system.web.ui.losformatter?view=netframework-4.8)\n", + "text": "The LosFormatter type is dangerous and is not recommended for data processing. Applications should stop using LosFormatter as soon as possible, even if they believe the data they're processing to be trustworthy. LosFormatter is insecure and can't be made secure" + }, + "helpUri": "https://semgrep.dev/r/csharp.lang.security.insecure-deserialization.los-formatter.insecure-losformatter-deserialization", + "id": "csharp.lang.security.insecure-deserialization.los-formatter.insecure-losformatter-deserialization", + "name": "csharp.lang.security.insecure-deserialization.los-formatter.insecure-losformatter-deserialization", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-502: Deserialization of Untrusted Data", + "MEDIUM CONFIDENCE", + "OWASP-A08:2017 - Insecure Deserialization", + "OWASP-A08:2021 - Software and Data Integrity Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: csharp.lang.security.insecure-deserialization.los-formatter.insecure-losformatter-deserialization" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Use of RC2 was detected. RC2 is vulnerable to related-key attacks, and is therefore considered non-compliant. Instead, use a strong, secure cipher: Cipher.getInstance(\"AES/CBC/PKCS7PADDING\"). See https://owasp.org/www-community/Using_the_Java_Cryptographic_Extensions for more information." + }, + "help": { + "markdown": "Use of RC2 was detected. RC2 is vulnerable to related-key attacks, and is therefore considered non-compliant. Instead, use a strong, secure cipher: Cipher.getInstance(\"AES/CBC/PKCS7PADDING\"). See https://owasp.org/www-community/Using_the_Java_Cryptographic_Extensions for more information.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.lang.security.audit.crypto.use-of-rc2.use-of-rc2)\n - [https://owasp.org/Top10/A02_2021-Cryptographic_Failures](https://owasp.org/Top10/A02_2021-Cryptographic_Failures)\n - [https://googleprojectzero.blogspot.com/2022/10/rc4-is-still-considered-harmful.html](https://googleprojectzero.blogspot.com/2022/10/rc4-is-still-considered-harmful.html)\n", + "text": "Use of RC2 was detected. RC2 is vulnerable to related-key attacks, and is therefore considered non-compliant. Instead, use a strong, secure cipher: Cipher.getInstance(\"AES/CBC/PKCS7PADDING\"). See https://owasp.org/www-community/Using_the_Java_Cryptographic_Extensions for more information." + }, + "helpUri": "https://semgrep.dev/r/java.lang.security.audit.crypto.use-of-rc2.use-of-rc2", + "id": "java.lang.security.audit.crypto.use-of-rc2.use-of-rc2", + "name": "java.lang.security.audit.crypto.use-of-rc2.use-of-rc2", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-327: Use of a Broken or Risky Cryptographic Algorithm", + "HIGH CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.lang.security.audit.crypto.use-of-rc2.use-of-rc2" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Detected a possible YAML deserialization vulnerability. `yaml.unsafe_load`, `yaml.Loader`, `yaml.CLoader`, and `yaml.UnsafeLoader` are all known to be unsafe methods of deserializing YAML. An attacker with control over the YAML input could create special YAML input that allows the attacker to run arbitrary Python code. This would allow the attacker to steal files, download and install malware, or otherwise take over the machine. Use `yaml.safe_load` or `yaml.SafeLoader` instead." + }, + "help": { + "markdown": "Detected a possible YAML deserialization vulnerability. `yaml.unsafe_load`, `yaml.Loader`, `yaml.CLoader`, and `yaml.UnsafeLoader` are all known to be unsafe methods of deserializing YAML. An attacker with control over the YAML input could create special YAML input that allows the attacker to run arbitrary Python code. This would allow the attacker to steal files, download and install malware, or otherwise take over the machine. Use `yaml.safe_load` or `yaml.SafeLoader` instead.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.lang.security.deserialization.avoid-pyyaml-load.avoid-pyyaml-load)\n - [https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation](https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation)\n - [https://nvd.nist.gov/vuln/detail/CVE-2017-18342](https://nvd.nist.gov/vuln/detail/CVE-2017-18342)\n", + "text": "Detected a possible YAML deserialization vulnerability. `yaml.unsafe_load`, `yaml.Loader`, `yaml.CLoader`, and `yaml.UnsafeLoader` are all known to be unsafe methods of deserializing YAML. An attacker with control over the YAML input could create special YAML input that allows the attacker to run arbitrary Python code. This would allow the attacker to steal files, download and install malware, or otherwise take over the machine. Use `yaml.safe_load` or `yaml.SafeLoader` instead." + }, + "helpUri": "https://semgrep.dev/r/python.lang.security.deserialization.avoid-pyyaml-load.avoid-pyyaml-load", + "id": "python.lang.security.deserialization.avoid-pyyaml-load.avoid-pyyaml-load", + "name": "python.lang.security.deserialization.avoid-pyyaml-load.avoid-pyyaml-load", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-502: Deserialization of Untrusted Data", + "MEDIUM CONFIDENCE", + "OWASP-A08:2017 - Insecure Deserialization", + "OWASP-A08:2021 - Software and Data Integrity Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.lang.security.deserialization.avoid-pyyaml-load.avoid-pyyaml-load" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "A formatted or concatenated string was detected as input to a java.lang.Runtime call. This is dangerous if a variable is controlled by user input and could result in a command injection. Ensure your variables are not controlled by users or sufficiently sanitized." + }, + "help": { + "markdown": "A formatted or concatenated string was detected as input to a java.lang.Runtime call. This is dangerous if a variable is controlled by user input and could result in a command injection. Ensure your variables are not controlled by users or sufficiently sanitized.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.lang.security.audit.command-injection-formatted-runtime-call.command-injection-formatted-runtime-call)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "A formatted or concatenated string was detected as input to a java.lang.Runtime call. This is dangerous if a variable is controlled by user input and could result in a command injection. Ensure your variables are not controlled by users or sufficiently sanitized." + }, + "helpUri": "https://semgrep.dev/r/java.lang.security.audit.command-injection-formatted-runtime-call.command-injection-formatted-runtime-call", + "id": "java.lang.security.audit.command-injection-formatted-runtime-call.command-injection-formatted-runtime-call", + "name": "java.lang.security.audit.command-injection-formatted-runtime-call.command-injection-formatted-runtime-call", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')", + "LOW CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.lang.security.audit.command-injection-formatted-runtime-call.command-injection-formatted-runtime-call" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Detected string concatenation with a non-literal variable in a \"database/sql\" Go SQL statement. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use parameterized queries or prepared statements instead. You can use prepared statements with the 'Prepare' and 'PrepareContext' calls." + }, + "help": { + "markdown": "Detected string concatenation with a non-literal variable in a \"database/sql\" Go SQL statement. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use parameterized queries or prepared statements instead. You can use prepared statements with the 'Prepare' and 'PrepareContext' calls.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/go.lang.security.audit.sqli.gosql-sqli.gosql-sqli)\n - [https://golang.org/pkg/database/sql/](https://golang.org/pkg/database/sql/)\n", + "text": "Detected string concatenation with a non-literal variable in a \"database/sql\" Go SQL statement. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use parameterized queries or prepared statements instead. You can use prepared statements with the 'Prepare' and 'PrepareContext' calls." + }, + "helpUri": "https://semgrep.dev/r/go.lang.security.audit.sqli.gosql-sqli.gosql-sqli", + "id": "go.lang.security.audit.sqli.gosql-sqli.gosql-sqli", + "name": "go.lang.security.audit.sqli.gosql-sqli.gosql-sqli", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')", + "LOW CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: go.lang.security.audit.sqli.gosql-sqli.gosql-sqli" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "DOCTYPE declarations are enabled for javax.xml.parsers.SAXParserFactory. Without prohibiting external entity declarations, this is vulnerable to XML external entity attacks. Disable this by setting the feature \"http://apache.org/xml/features/disallow-doctype-decl\" to true. Alternatively, allow DOCTYPE declarations and only prohibit external entities declarations. This can be done by setting the features \"http://xml.org/sax/features/external-general-entities\" and \"http://xml.org/sax/features/external-parameter-entities\" to false." + }, + "help": { + "markdown": "DOCTYPE declarations are enabled for javax.xml.parsers.SAXParserFactory. Without prohibiting external entity declarations, this is vulnerable to XML external entity attacks. Disable this by setting the feature \"http://apache.org/xml/features/disallow-doctype-decl\" to true. Alternatively, allow DOCTYPE declarations and only prohibit external entities declarations. This can be done by setting the features \"http://xml.org/sax/features/external-general-entities\" and \"http://xml.org/sax/features/external-parameter-entities\" to false.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/clojure.lang.security.documentbuilderfactory-xxe.documentbuilderfactory-xxe)\n - [https://semgrep.dev/blog/2022/xml-security-in-java](https://semgrep.dev/blog/2022/xml-security-in-java)\n - [https://semgrep.dev/docs/cheat-sheets/java-xxe/](https://semgrep.dev/docs/cheat-sheets/java-xxe/)\n - [https://xerces.apache.org/xerces2-j/features.html](https://xerces.apache.org/xerces2-j/features.html)\n", + "text": "DOCTYPE declarations are enabled for javax.xml.parsers.SAXParserFactory. Without prohibiting external entity declarations, this is vulnerable to XML external entity attacks. Disable this by setting the feature \"http://apache.org/xml/features/disallow-doctype-decl\" to true. Alternatively, allow DOCTYPE declarations and only prohibit external entities declarations. This can be done by setting the features \"http://xml.org/sax/features/external-general-entities\" and \"http://xml.org/sax/features/external-parameter-entities\" to false." + }, + "helpUri": "https://semgrep.dev/r/clojure.lang.security.documentbuilderfactory-xxe.documentbuilderfactory-xxe", + "id": "clojure.lang.security.documentbuilderfactory-xxe.documentbuilderfactory-xxe", + "name": "clojure.lang.security.documentbuilderfactory-xxe.documentbuilderfactory-xxe", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-611: Improper Restriction of XML External Entity Reference", + "HIGH CONFIDENCE", + "OWASP-A04:2017 - XML External Entities (XXE)", + "OWASP-A05:2021 - Security Misconfiguration", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: clojure.lang.security.documentbuilderfactory-xxe.documentbuilderfactory-xxe" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected a unescaped variables using '&attributes'. If external data can reach these locations, your application is exposed to a cross-site scripting (XSS) vulnerability. If you must do this, ensure no external data can reach this location." + }, + "help": { + "markdown": "Detected a unescaped variables using '&attributes'. If external data can reach these locations, your application is exposed to a cross-site scripting (XSS) vulnerability. If you must do this, ensure no external data can reach this location.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.express.security.audit.xss.pug.and-attributes.template-and-attributes)\n - [https://pugjs.org/language/attributes.html#attributes](https://pugjs.org/language/attributes.html#attributes)\n", + "text": "Detected a unescaped variables using '&attributes'. If external data can reach these locations, your application is exposed to a cross-site scripting (XSS) vulnerability. If you must do this, ensure no external data can reach this location." + }, + "helpUri": "https://semgrep.dev/r/javascript.express.security.audit.xss.pug.and-attributes.template-and-attributes", + "id": "javascript.express.security.audit.xss.pug.and-attributes.template-and-attributes", + "name": "javascript.express.security.audit.xss.pug.and-attributes.template-and-attributes", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.express.security.audit.xss.pug.and-attributes.template-and-attributes" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Mcrypt functionality has been deprecated and/or removed in recent PHP versions. Consider using Sodium or OpenSSL." + }, + "help": { + "markdown": "Mcrypt functionality has been deprecated and/or removed in recent PHP versions. Consider using Sodium or OpenSSL.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/php.lang.security.mcrypt-use.mcrypt-use)\n - [https://www.php.net/manual/en/intro.mcrypt.php](https://www.php.net/manual/en/intro.mcrypt.php)\n - [https://github.com/FloeDesignTechnologies/phpcs-security-audit/blob/master/Security/Sniffs/BadFunctions/CryptoFunctionsSniff.php](https://github.com/FloeDesignTechnologies/phpcs-security-audit/blob/master/Security/Sniffs/BadFunctions/CryptoFunctionsSniff.php)\n", + "text": "Mcrypt functionality has been deprecated and/or removed in recent PHP versions. Consider using Sodium or OpenSSL." + }, + "helpUri": "https://semgrep.dev/r/php.lang.security.mcrypt-use.mcrypt-use", + "id": "php.lang.security.mcrypt-use.mcrypt-use", + "name": "php.lang.security.mcrypt-use.mcrypt-use", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-676: Use of Potentially Dangerous Function", + "LOW CONFIDENCE", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: php.lang.security.mcrypt-use.mcrypt-use" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Detected a formatted string in a SQL statement. This could lead to SQL injection if variables in the SQL statement are not properly sanitized. Use a prepared statements (java.sql.PreparedStatement) instead. You can obtain a PreparedStatement using 'connection.prepareStatement'." + }, + "help": { + "markdown": "Detected a formatted string in a SQL statement. This could lead to SQL injection if variables in the SQL statement are not properly sanitized. Use a prepared statements (java.sql.PreparedStatement) instead. You can obtain a PreparedStatement using 'connection.prepareStatement'.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.lang.security.audit.formatted-sql-string.formatted-sql-string)\n - [https://cheatsheetseries.owasp.org/cheatsheets/SQL_Injection_Prevention_Cheat_Sheet.html](https://cheatsheetseries.owasp.org/cheatsheets/SQL_Injection_Prevention_Cheat_Sheet.html)\n - [https://docs.oracle.com/javase/tutorial/jdbc/basics/prepared.html#create_ps](https://docs.oracle.com/javase/tutorial/jdbc/basics/prepared.html#create_ps)\n - [https://software-security.sans.org/developer-how-to/fix-sql-injection-in-java-using-prepared-callable-statement](https://software-security.sans.org/developer-how-to/fix-sql-injection-in-java-using-prepared-callable-statement)\n", + "text": "Detected a formatted string in a SQL statement. This could lead to SQL injection if variables in the SQL statement are not properly sanitized. Use a prepared statements (java.sql.PreparedStatement) instead. You can obtain a PreparedStatement using 'connection.prepareStatement'." + }, + "helpUri": "https://semgrep.dev/r/java.lang.security.audit.formatted-sql-string.formatted-sql-string", + "id": "java.lang.security.audit.formatted-sql-string.formatted-sql-string", + "name": "java.lang.security.audit.formatted-sql-string.formatted-sql-string", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')", + "MEDIUM CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.lang.security.audit.formatted-sql-string.formatted-sql-string" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "User controlled data in methods like `innerHTML`, `outerHTML` or `document.write` is an anti-pattern that can lead to XSS vulnerabilities" + }, + "help": { + "markdown": "User controlled data in methods like `innerHTML`, `outerHTML` or `document.write` is an anti-pattern that can lead to XSS vulnerabilities\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.browser.security.insecure-document-method.insecure-document-method)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "User controlled data in methods like `innerHTML`, `outerHTML` or `document.write` is an anti-pattern that can lead to XSS vulnerabilities" + }, + "helpUri": "https://semgrep.dev/r/javascript.browser.security.insecure-document-method.insecure-document-method", + "id": "javascript.browser.security.insecure-document-method.insecure-document-method", + "name": "javascript.browser.security.insecure-document-method.insecure-document-method", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.browser.security.insecure-document-method.insecure-document-method" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Detected a Storage that was not configured to deny action by default. Add `default_action = \"Deny\"` in your resource block." + }, + "help": { + "markdown": "Detected a Storage that was not configured to deny action by default. Add `default_action = \"Deny\"` in your resource block.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.azure.security.storage.storage-default-action-deny.storage-default-action-deny)\n - [https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/storage_account_network_rules#default_action](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/storage_account_network_rules#default_action)\n - [https://docs.microsoft.com/en-us/azure/firewall/rule-processing](https://docs.microsoft.com/en-us/azure/firewall/rule-processing)\n", + "text": "Detected a Storage that was not configured to deny action by default. Add `default_action = \"Deny\"` in your resource block." + }, + "helpUri": "https://semgrep.dev/r/terraform.azure.security.storage.storage-default-action-deny.storage-default-action-deny", + "id": "terraform.azure.security.storage.storage-default-action-deny.storage-default-action-deny", + "name": "terraform.azure.security.storage.storage-default-action-deny.storage-default-action-deny", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-16: CWE CATEGORY: Configuration", + "LOW CONFIDENCE", + "OWASP-A05:2021 - Security Misconfiguration", + "OWASP-A06:2017 - Security Misconfiguration", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.azure.security.storage.storage-default-action-deny.storage-default-action-deny" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected string concatenation with a non-literal variable in a pg8000 Python SQL statement. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use parameterized queries or prepared statements instead. You can create parameterized queries like so: 'conn.run(\"SELECT :value FROM table\", value=myvalue)'. You can also create prepared statements with 'conn.prepare': 'conn.prepare(\"SELECT (:v) FROM table\")'" + }, + "help": { + "markdown": "Detected string concatenation with a non-literal variable in a pg8000 Python SQL statement. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use parameterized queries or prepared statements instead. You can create parameterized queries like so: 'conn.run(\"SELECT :value FROM table\", value=myvalue)'. You can also create prepared statements with 'conn.prepare': 'conn.prepare(\"SELECT (:v) FROM table\")'\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.lang.security.audit.sqli.pg8000-sqli.pg8000-sqli)\n - [https://github.com/tlocke/pg8000](https://github.com/tlocke/pg8000)\n", + "text": "Detected string concatenation with a non-literal variable in a pg8000 Python SQL statement. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use parameterized queries or prepared statements instead. You can create parameterized queries like so: 'conn.run(\"SELECT :value FROM table\", value=myvalue)'. You can also create prepared statements with 'conn.prepare': 'conn.prepare(\"SELECT (:v) FROM table\")'" + }, + "helpUri": "https://semgrep.dev/r/python.lang.security.audit.sqli.pg8000-sqli.pg8000-sqli", + "id": "python.lang.security.audit.sqli.pg8000-sqli.pg8000-sqli", + "name": "python.lang.security.audit.sqli.pg8000-sqli.pg8000-sqli", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')", + "LOW CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.lang.security.audit.sqli.pg8000-sqli.pg8000-sqli" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "DOCTYPE declarations are enabled for this SAXParserFactory. This is vulnerable to XML external entity attacks. Disable this by setting the feature `http://apache.org/xml/features/disallow-doctype-decl` to true. Alternatively, allow DOCTYPE declarations and only prohibit external entities declarations. This can be done by setting the features `http://xml.org/sax/features/external-general-entities` and `http://xml.org/sax/features/external-parameter-entities` to false. NOTE - The previous links are not meant to be clicked. They are the literal config key values that are supposed to be used to disable these features. For more information, see https://semgrep.dev/docs/cheat-sheets/java-xxe/#3a-documentbuilderfactory." + }, + "help": { + "markdown": "DOCTYPE declarations are enabled for this SAXParserFactory. This is vulnerable to XML external entity attacks. Disable this by setting the feature `http://apache.org/xml/features/disallow-doctype-decl` to true. Alternatively, allow DOCTYPE declarations and only prohibit external entities declarations. This can be done by setting the features `http://xml.org/sax/features/external-general-entities` and `http://xml.org/sax/features/external-parameter-entities` to false. NOTE - The previous links are not meant to be clicked. They are the literal config key values that are supposed to be used to disable these features. For more information, see https://semgrep.dev/docs/cheat-sheets/java-xxe/#3a-documentbuilderfactory.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.lang.security.audit.xxe.saxparserfactory-disallow-doctype-decl-missing.saxparserfactory-disallow-doctype-decl-missing)\n - [https://semgrep.dev/blog/2022/xml-security-in-java](https://semgrep.dev/blog/2022/xml-security-in-java)\n - [https://semgrep.dev/docs/cheat-sheets/java-xxe/](https://semgrep.dev/docs/cheat-sheets/java-xxe/)\n - [https://blog.sonarsource.com/secure-xml-processor](https://blog.sonarsource.com/secure-xml-processor)\n - [https://xerces.apache.org/xerces2-j/features.html](https://xerces.apache.org/xerces2-j/features.html)\n", + "text": "DOCTYPE declarations are enabled for this SAXParserFactory. This is vulnerable to XML external entity attacks. Disable this by setting the feature `http://apache.org/xml/features/disallow-doctype-decl` to true. Alternatively, allow DOCTYPE declarations and only prohibit external entities declarations. This can be done by setting the features `http://xml.org/sax/features/external-general-entities` and `http://xml.org/sax/features/external-parameter-entities` to false. NOTE - The previous links are not meant to be clicked. They are the literal config key values that are supposed to be used to disable these features. For more information, see https://semgrep.dev/docs/cheat-sheets/java-xxe/#3a-documentbuilderfactory." + }, + "helpUri": "https://semgrep.dev/r/java.lang.security.audit.xxe.saxparserfactory-disallow-doctype-decl-missing.saxparserfactory-disallow-doctype-decl-missing", + "id": "java.lang.security.audit.xxe.saxparserfactory-disallow-doctype-decl-missing.saxparserfactory-disallow-doctype-decl-missing", + "name": "java.lang.security.audit.xxe.saxparserfactory-disallow-doctype-decl-missing.saxparserfactory-disallow-doctype-decl-missing", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-611: Improper Restriction of XML External Entity Reference", + "HIGH CONFIDENCE", + "OWASP-A04:2017 - XML External Entities (XXE)", + "OWASP-A05:2021 - Security Misconfiguration", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.lang.security.audit.xxe.saxparserfactory-disallow-doctype-decl-missing.saxparserfactory-disallow-doctype-decl-missing" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "FTP does not encrypt communications by default. This can lead to sensitive data being exposed. Ensure use of FTP here does not expose sensitive data." + }, + "help": { + "markdown": "FTP does not encrypt communications by default. This can lead to sensitive data being exposed. Ensure use of FTP here does not expose sensitive data.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.lang.security.audit.ftplib.ftplib)\n - [https://docs.python.org/3/library/telnetlib.html](https://docs.python.org/3/library/telnetlib.html)\n", + "text": "FTP does not encrypt communications by default. This can lead to sensitive data being exposed. Ensure use of FTP here does not expose sensitive data." + }, + "helpUri": "https://semgrep.dev/r/python.lang.security.audit.ftplib.ftplib", + "id": "python.lang.security.audit.ftplib.ftplib", + "name": "python.lang.security.audit.ftplib.ftplib", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-319: Cleartext Transmission of Sensitive Information", + "LOW CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.lang.security.audit.ftplib.ftplib" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected public S3 bucket. This policy allows anyone to have some kind of access to the bucket. The exact level of access and types of actions allowed will depend on the configuration of bucket policy and ACLs. Please review the bucket configuration to make sure they are set with intended values." + }, + "help": { + "markdown": "Detected public S3 bucket. This policy allows anyone to have some kind of access to the bucket. The exact level of access and types of actions allowed will depend on the configuration of bucket policy and ACLs. Please review the bucket configuration to make sure they are set with intended values.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/json.aws.security.public-s3-bucket.public-s3-bucket)\n - [https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-control-block-public-access.html](https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-control-block-public-access.html)\n", + "text": "Detected public S3 bucket. This policy allows anyone to have some kind of access to the bucket. The exact level of access and types of actions allowed will depend on the configuration of bucket policy and ACLs. Please review the bucket configuration to make sure they are set with intended values." + }, + "helpUri": "https://semgrep.dev/r/json.aws.security.public-s3-bucket.public-s3-bucket", + "id": "json.aws.security.public-s3-bucket.public-s3-bucket", + "name": "json.aws.security.public-s3-bucket.public-s3-bucket", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-264: CWE CATEGORY: Permissions, Privileges, and Access Controls", + "MEDIUM CONFIDENCE", + "OWASP-A01:2021 - Broken Access Control", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: json.aws.security.public-s3-bucket.public-s3-bucket" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected usage of crypto.pseudoRandomBytes, which does not produce secure random numbers." + }, + "help": { + "markdown": "Detected usage of crypto.pseudoRandomBytes, which does not produce secure random numbers.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.lang.security.detect-pseudorandombytes.detect-pseudoRandomBytes)\n - [https://owasp.org/Top10/A02_2021-Cryptographic_Failures](https://owasp.org/Top10/A02_2021-Cryptographic_Failures)\n", + "text": "Detected usage of crypto.pseudoRandomBytes, which does not produce secure random numbers." + }, + "helpUri": "https://semgrep.dev/r/javascript.lang.security.detect-pseudorandombytes.detect-pseudoRandomBytes", + "id": "javascript.lang.security.detect-pseudorandombytes.detect-pseudoRandomBytes", + "name": "javascript.lang.security.detect-pseudorandombytes.detect-pseudoRandomBytes", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-338: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)", + "LOW CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.lang.security.detect-pseudorandombytes.detect-pseudoRandomBytes" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detects direct creations of SSLConnectionSocketFactories that don't disallow SSL v2, SSL v3, and TLS v1. SSLSocketFactory can be used to validate the identity of the HTTPS server against a list of trusted certificates. These protocols are deprecated due to POODLE, man in the middle attacks, and other vulnerabilities." + }, + "help": { + "markdown": "Detects direct creations of SSLConnectionSocketFactories that don't disallow SSL v2, SSL v3, and TLS v1. SSLSocketFactory can be used to validate the identity of the HTTPS server against a list of trusted certificates. These protocols are deprecated due to POODLE, man in the middle attacks, and other vulnerabilities.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/problem-based-packs.insecure-transport.java-stdlib.disallow-old-tls-versions1.disallow-old-tls-versions1)\n - [https://stackoverflow.com/questions/26429751/java-http-clients-and-poodle](https://stackoverflow.com/questions/26429751/java-http-clients-and-poodle)\n", + "text": "Detects direct creations of SSLConnectionSocketFactories that don't disallow SSL v2, SSL v3, and TLS v1. SSLSocketFactory can be used to validate the identity of the HTTPS server against a list of trusted certificates. These protocols are deprecated due to POODLE, man in the middle attacks, and other vulnerabilities." + }, + "helpUri": "https://semgrep.dev/r/problem-based-packs.insecure-transport.java-stdlib.disallow-old-tls-versions1.disallow-old-tls-versions1", + "id": "problem-based-packs.insecure-transport.java-stdlib.disallow-old-tls-versions1.disallow-old-tls-versions1", + "name": "problem-based-packs.insecure-transport.java-stdlib.disallow-old-tls-versions1.disallow-old-tls-versions1", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-319: Cleartext Transmission of Sensitive Information", + "MEDIUM CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: problem-based-packs.insecure-transport.java-stdlib.disallow-old-tls-versions1.disallow-old-tls-versions1" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Detected a formatted string in a SQL statement. This could lead to SQL injection if variables in the SQL statement are not properly sanitized. Avoid using non literal values in `overrideSql(...)`." + }, + "help": { + "markdown": "Detected a formatted string in a SQL statement. This could lead to SQL injection if variables in the SQL statement are not properly sanitized. Avoid using non literal values in `overrideSql(...)`.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/scala.slick.security.scala-slick-overridesql-literal.scala-slick-overrideSql-literal)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "Detected a formatted string in a SQL statement. This could lead to SQL injection if variables in the SQL statement are not properly sanitized. Avoid using non literal values in `overrideSql(...)`." + }, + "helpUri": "https://semgrep.dev/r/scala.slick.security.scala-slick-overridesql-literal.scala-slick-overrideSql-literal", + "id": "scala.slick.security.scala-slick-overridesql-literal.scala-slick-overrideSql-literal", + "name": "scala.slick.security.scala-slick-overridesql-literal.scala-slick-overrideSql-literal", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')", + "LOW CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: scala.slick.security.scala-slick-overridesql-literal.scala-slick-overrideSql-literal" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "RDS instance accessible from the Internet detected." + }, + "help": { + "markdown": "RDS instance accessible from the Internet detected.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.lang.security.rds-public-access.rds-public-access)\n - [https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/db_instance#publicly_accessible](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/db_instance#publicly_accessible)\n - [https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html#USER_VPC.Hiding](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html#USER_VPC.Hiding)\n", + "text": "RDS instance accessible from the Internet detected." + }, + "helpUri": "https://semgrep.dev/r/terraform.lang.security.rds-public-access.rds-public-access", + "id": "terraform.lang.security.rds-public-access.rds-public-access", + "name": "terraform.lang.security.rds-public-access.rds-public-access", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-284: Improper Access Control", + "LOW CONFIDENCE", + "OWASP-A01:2021 - Broken Access Control", + "OWASP-A05:2017 - Broken Access Control", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.lang.security.rds-public-access.rds-public-access" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Git allows shell commands to be specified in ext URLs for remote repositories. For example, git clone 'ext::sh -c whoami% >&2' will execute the whoami command to try to connect to a remote repository. Make sure that the URL is not controlled by external input." + }, + "help": { + "markdown": "Git allows shell commands to be specified in ext URLs for remote repositories. For example, git clone 'ext::sh -c whoami% >&2' will execute the whoami command to try to connect to a remote repository. Make sure that the URL is not controlled by external input.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.lang.security.spawn-git-clone.spawn-git-clone)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "Git allows shell commands to be specified in ext URLs for remote repositories. For example, git clone 'ext::sh -c whoami% >&2' will execute the whoami command to try to connect to a remote repository. Make sure that the URL is not controlled by external input." + }, + "helpUri": "https://semgrep.dev/r/javascript.lang.security.spawn-git-clone.spawn-git-clone", + "id": "javascript.lang.security.spawn-git-clone.spawn-git-clone", + "name": "javascript.lang.security.spawn-git-clone.spawn-git-clone", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')", + "LOW CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.lang.security.spawn-git-clone.spawn-git-clone" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Found usage of the 'blocksize' argument in a HTTPSConnection call. This is only available on Python 3.7+ and is therefore not backwards compatible. Remove this in order for this code to work in Python 3.6 and below." + }, + "help": { + "markdown": "Found usage of the 'blocksize' argument in a HTTPSConnection call. This is only available on Python 3.7+ and is therefore not backwards compatible. Remove this in order for this code to work in Python 3.6 and below.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.lang.compatibility.python37.python37-compatibility-httpsconn)\n", + "text": "Found usage of the 'blocksize' argument in a HTTPSConnection call. This is only available on Python 3.7+ and is therefore not backwards compatible. Remove this in order for this code to work in Python 3.6 and below." + }, + "helpUri": "https://semgrep.dev/r/python.lang.compatibility.python37.python37-compatibility-httpsconn", + "id": "python.lang.compatibility.python37.python37-compatibility-httpsconn", + "name": "python.lang.compatibility.python37.python37-compatibility-httpsconn", + "properties": { + "precision": "very-high", + "tags": [] + }, + "shortDescription": { + "text": "Semgrep Finding: python.lang.compatibility.python37.python37-compatibility-httpsconn" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Checks for models that do not use attr_accessible. This means there is no limiting of which variables can be manipulated through mass assignment. For newer Rails applications, parameters should be allowlisted using strong parameters. For older Rails versions, they should be allowlisted using strong_attributes." + }, + "help": { + "markdown": "Checks for models that do not use attr_accessible. This means there is no limiting of which variables can be manipulated through mass assignment. For newer Rails applications, parameters should be allowlisted using strong parameters. For older Rails versions, they should be allowlisted using strong_attributes.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ruby.lang.security.model-attributes-attr-accessible.model-attributes-attr-accessible)\n - [https://github.com/presidentbeef/brakeman/blob/main/lib/brakeman/checks/check_model_attributes.rb](https://github.com/presidentbeef/brakeman/blob/main/lib/brakeman/checks/check_model_attributes.rb)\n", + "text": "Checks for models that do not use attr_accessible. This means there is no limiting of which variables can be manipulated through mass assignment. For newer Rails applications, parameters should be allowlisted using strong parameters. For older Rails versions, they should be allowlisted using strong_attributes." + }, + "helpUri": "https://semgrep.dev/r/ruby.lang.security.model-attributes-attr-accessible.model-attributes-attr-accessible", + "id": "ruby.lang.security.model-attributes-attr-accessible.model-attributes-attr-accessible", + "name": "ruby.lang.security.model-attributes-attr-accessible.model-attributes-attr-accessible", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes", + "LOW CONFIDENCE", + "OWASP-A08:2021 - Software and Data Integrity Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: ruby.lang.security.model-attributes-attr-accessible.model-attributes-attr-accessible" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Do not use `math/rand`. Use `crypto/rand` instead." + }, + "help": { + "markdown": "Do not use `math/rand`. Use `crypto/rand` instead.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/go.lang.security.audit.crypto.math_random.math-random-used)\n - [https://cheatsheetseries.owasp.org/cheatsheets/Cryptographic_Storage_Cheat_Sheet.html#secure-random-number-generation](https://cheatsheetseries.owasp.org/cheatsheets/Cryptographic_Storage_Cheat_Sheet.html#secure-random-number-generation)\n", + "text": "Do not use `math/rand`. Use `crypto/rand` instead." + }, + "helpUri": "https://semgrep.dev/r/go.lang.security.audit.crypto.math_random.math-random-used", + "id": "go.lang.security.audit.crypto.math_random.math-random-used", + "name": "go.lang.security.audit.crypto.math_random.math-random-used", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-338: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)", + "MEDIUM CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: go.lang.security.audit.crypto.math_random.math-random-used" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected the use of eval(). eval() can be dangerous if used to evaluate dynamic content. If this content can be input from outside the program, this may be a code injection vulnerability. Ensure evaluated content is not definable by external sources." + }, + "help": { + "markdown": "Detected the use of eval(). eval() can be dangerous if used to evaluate dynamic content. If this content can be input from outside the program, this may be a code injection vulnerability. Ensure evaluated content is not definable by external sources.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.browser.security.eval-detected.eval-detected)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "Detected the use of eval(). eval() can be dangerous if used to evaluate dynamic content. If this content can be input from outside the program, this may be a code injection vulnerability. Ensure evaluated content is not definable by external sources." + }, + "helpUri": "https://semgrep.dev/r/javascript.browser.security.eval-detected.eval-detected", + "id": "javascript.browser.security.eval-detected.eval-detected", + "name": "javascript.browser.security.eval-detected.eval-detected", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.browser.security.eval-detected.eval-detected" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Ensure that no IAM policies allow \"*\" as a statement's actions. This allows all actions to be performed on the specified resources, and is a violation of the principle of least privilege. Instead, specify the actions that a certain user or policy is allowed to take." + }, + "help": { + "markdown": "Ensure that no IAM policies allow \"*\" as a statement's actions. This allows all actions to be performed on the specified resources, and is a violation of the principle of least privilege. Instead, specify the actions that a certain user or policy is allowed to take.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.lang.security.iam.no-iam-star-actions.no-iam-star-actions)\n - [https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_policy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_policy)\n - [https://github.com/bridgecrewio/checkov/blob/ca830e14745c2c8e1b941985f305abe985d7f1f9/checkov/terraform/checks/data/aws/StarActionPolicyDocument.py](https://github.com/bridgecrewio/checkov/blob/ca830e14745c2c8e1b941985f305abe985d7f1f9/checkov/terraform/checks/data/aws/StarActionPolicyDocument.py)\n", + "text": "Ensure that no IAM policies allow \"*\" as a statement's actions. This allows all actions to be performed on the specified resources, and is a violation of the principle of least privilege. Instead, specify the actions that a certain user or policy is allowed to take." + }, + "helpUri": "https://semgrep.dev/r/terraform.lang.security.iam.no-iam-star-actions.no-iam-star-actions", + "id": "terraform.lang.security.iam.no-iam-star-actions.no-iam-star-actions", + "name": "terraform.lang.security.iam.no-iam-star-actions.no-iam-star-actions", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-269: Improper Privilege Management", + "LOW CONFIDENCE", + "OWASP-A04:2021 - Insecure Design", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.lang.security.iam.no-iam-star-actions.no-iam-star-actions" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "File traversal when extracting zip archive" + }, + "help": { + "markdown": "File traversal when extracting zip archive\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/go.lang.security.zip.path-traversal-inside-zip-extraction)\n - [https://owasp.org/Top10/A01_2021-Broken_Access_Control](https://owasp.org/Top10/A01_2021-Broken_Access_Control)\n", + "text": "File traversal when extracting zip archive" + }, + "helpUri": "https://semgrep.dev/r/go.lang.security.zip.path-traversal-inside-zip-extraction", + "id": "go.lang.security.zip.path-traversal-inside-zip-extraction", + "name": "go.lang.security.zip.path-traversal-inside-zip-extraction", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')", + "LOW CONFIDENCE", + "OWASP-A01:2021 - Broken Access Control", + "OWASP-A05:2017 - Broken Access Control", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: go.lang.security.zip.path-traversal-inside-zip-extraction" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected a method annotated with 'RequestMapping' that does not specify the HTTP method. CSRF protections are not enabled for GET, HEAD, TRACE, or OPTIONS, and by default all HTTP methods are allowed when the HTTP method is not explicitly specified. This means that a method that performs state changes could be vulnerable to CSRF attacks. To mitigate, add the 'method' field and specify the HTTP method (such as 'RequestMethod.POST')." + }, + "help": { + "markdown": "Detected a method annotated with 'RequestMapping' that does not specify the HTTP method. CSRF protections are not enabled for GET, HEAD, TRACE, or OPTIONS, and by default all HTTP methods are allowed when the HTTP method is not explicitly specified. This means that a method that performs state changes could be vulnerable to CSRF attacks. To mitigate, add the 'method' field and specify the HTTP method (such as 'RequestMethod.POST').\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.spring.security.unrestricted-request-mapping.unrestricted-request-mapping)\n - [https://find-sec-bugs.github.io/bugs.htm#SPRING_CSRF_UNRESTRICTED_REQUEST_MAPPING](https://find-sec-bugs.github.io/bugs.htm#SPRING_CSRF_UNRESTRICTED_REQUEST_MAPPING)\n", + "text": "Detected a method annotated with 'RequestMapping' that does not specify the HTTP method. CSRF protections are not enabled for GET, HEAD, TRACE, or OPTIONS, and by default all HTTP methods are allowed when the HTTP method is not explicitly specified. This means that a method that performs state changes could be vulnerable to CSRF attacks. To mitigate, add the 'method' field and specify the HTTP method (such as 'RequestMethod.POST')." + }, + "helpUri": "https://semgrep.dev/r/java.spring.security.unrestricted-request-mapping.unrestricted-request-mapping", + "id": "java.spring.security.unrestricted-request-mapping.unrestricted-request-mapping", + "name": "java.spring.security.unrestricted-request-mapping.unrestricted-request-mapping", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-352: Cross-Site Request Forgery (CSRF)", + "LOW CONFIDENCE", + "OWASP-A01:2021 - Broken Access Control", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.spring.security.unrestricted-request-mapping.unrestricted-request-mapping" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "By default, the AWS Lambda Environment is encrypted using AWS-managed keys. However, for added security, it's recommended to configure your own AWS KMS encryption key to protect your environment variables in Lambda. You can either create a new aws_kms_key resource or use the ARN of an existing key in your AWS account to do so." + }, + "help": { + "markdown": "By default, the AWS Lambda Environment is encrypted using AWS-managed keys. However, for added security, it's recommended to configure your own AWS KMS encryption key to protect your environment variables in Lambda. You can either create a new aws_kms_key resource or use the ARN of an existing key in your AWS account to do so.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.aws.security.aws-lambda-environment-unencrypted.aws-lambda-environment-unencrypted)\n - [https://owasp.org/Top10/A02_2021-Cryptographic_Failures](https://owasp.org/Top10/A02_2021-Cryptographic_Failures)\n", + "text": "By default, the AWS Lambda Environment is encrypted using AWS-managed keys. However, for added security, it's recommended to configure your own AWS KMS encryption key to protect your environment variables in Lambda. You can either create a new aws_kms_key resource or use the ARN of an existing key in your AWS account to do so." + }, + "helpUri": "https://semgrep.dev/r/terraform.aws.security.aws-lambda-environment-unencrypted.aws-lambda-environment-unencrypted", + "id": "terraform.aws.security.aws-lambda-environment-unencrypted.aws-lambda-environment-unencrypted", + "name": "terraform.aws.security.aws-lambda-environment-unencrypted.aws-lambda-environment-unencrypted", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-320: CWE CATEGORY: Key Management Errors", + "LOW CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.aws.security.aws-lambda-environment-unencrypted.aws-lambda-environment-unencrypted" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Session cookie `Secure` flag is explicitly disabled. The `secure` flag for cookies prevents the client from transmitting the cookie over insecure channels such as HTTP. Set the `Secure` flag by setting `secure` to `true` in configuration file." + }, + "help": { + "markdown": "Session cookie `Secure` flag is explicitly disabled. The `secure` flag for cookies prevents the client from transmitting the cookie over insecure channels such as HTTP. Set the `Secure` flag by setting `secure` to `true` in configuration file.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/scala.play.security.conf-insecure-cookie-settings.conf-insecure-cookie-settings)\n - [https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies#security](https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies#security)\n - [https://www.playframework.com/documentation/2.8.x/SettingsSession#Session-Configuration](https://www.playframework.com/documentation/2.8.x/SettingsSession#Session-Configuration)\n", + "text": "Session cookie `Secure` flag is explicitly disabled. The `secure` flag for cookies prevents the client from transmitting the cookie over insecure channels such as HTTP. Set the `Secure` flag by setting `secure` to `true` in configuration file." + }, + "helpUri": "https://semgrep.dev/r/scala.play.security.conf-insecure-cookie-settings.conf-insecure-cookie-settings", + "id": "scala.play.security.conf-insecure-cookie-settings.conf-insecure-cookie-settings", + "name": "scala.play.security.conf-insecure-cookie-settings.conf-insecure-cookie-settings", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-614: Sensitive Cookie in HTTPS Session Without 'Secure' Attribute", + "MEDIUM CONFIDENCE", + "OWASP-A05:2021 - Security Misconfiguration", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: scala.play.security.conf-insecure-cookie-settings.conf-insecure-cookie-settings" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Missing mutex unlock before returning from a function. This could result in panics resulting from double lock operations" + }, + "help": { + "markdown": "Missing mutex unlock before returning from a function. This could result in panics resulting from double lock operations\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/trailofbits.go.missing-unlock-before-return.missing-unlock-before-return)\n - [https://pkg.go.dev/sync#Mutex](https://pkg.go.dev/sync#Mutex)\n - [https://blog.trailofbits.com/2020/06/09/how-to-check-if-a-mutex-is-locked-in-go/](https://blog.trailofbits.com/2020/06/09/how-to-check-if-a-mutex-is-locked-in-go/)\n", + "text": "Missing mutex unlock before returning from a function. This could result in panics resulting from double lock operations" + }, + "helpUri": "https://semgrep.dev/r/trailofbits.go.missing-unlock-before-return.missing-unlock-before-return", + "id": "trailofbits.go.missing-unlock-before-return.missing-unlock-before-return", + "name": "trailofbits.go.missing-unlock-before-return.missing-unlock-before-return", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-667: Improper Locking", + "MEDIUM CONFIDENCE", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: trailofbits.go.missing-unlock-before-return.missing-unlock-before-return" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "The AWS KMS has no rotation. Missing rotation can cause leaked key to be used by attackers. To fix this, set a `enable_key_rotation`." + }, + "help": { + "markdown": "The AWS KMS has no rotation. Missing rotation can cause leaked key to be used by attackers. To fix this, set a `enable_key_rotation`.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.aws.security.aws-kms-no-rotation.aws-kms-no-rotation)\n - [https://owasp.org/Top10/A02_2021-Cryptographic_Failures](https://owasp.org/Top10/A02_2021-Cryptographic_Failures)\n", + "text": "The AWS KMS has no rotation. Missing rotation can cause leaked key to be used by attackers. To fix this, set a `enable_key_rotation`." + }, + "helpUri": "https://semgrep.dev/r/terraform.aws.security.aws-kms-no-rotation.aws-kms-no-rotation", + "id": "terraform.aws.security.aws-kms-no-rotation.aws-kms-no-rotation", + "name": "terraform.aws.security.aws-kms-no-rotation.aws-kms-no-rotation", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-326: Inadequate Encryption Strength", + "MEDIUM CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.aws.security.aws-kms-no-rotation.aws-kms-no-rotation" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Checks for requests sent to http:// URLs. This is dangerous as the server is attempting to connect to a website that does not encrypt traffic with TLS. Instead, only send requests to https:// URLs." + }, + "help": { + "markdown": "Checks for requests sent to http:// URLs. This is dangerous as the server is attempting to connect to a website that does not encrypt traffic with TLS. Instead, only send requests to https:// URLs.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/problem-based-packs.insecure-transport.ruby-stdlib.net-http-request.net-http-request)\n - [https://ruby-doc.org/stdlib-2.6.5/libdoc/net/http/rdoc/Net/](https://ruby-doc.org/stdlib-2.6.5/libdoc/net/http/rdoc/Net/)\n", + "text": "Checks for requests sent to http:// URLs. This is dangerous as the server is attempting to connect to a website that does not encrypt traffic with TLS. Instead, only send requests to https:// URLs." + }, + "helpUri": "https://semgrep.dev/r/problem-based-packs.insecure-transport.ruby-stdlib.net-http-request.net-http-request", + "id": "problem-based-packs.insecure-transport.ruby-stdlib.net-http-request.net-http-request", + "name": "problem-based-packs.insecure-transport.ruby-stdlib.net-http-request.net-http-request", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-319: Cleartext Transmission of Sensitive Information", + "MEDIUM CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: problem-based-packs.insecure-transport.ruby-stdlib.net-http-request.net-http-request" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Hardcoded password is used as a default argument to '$FUNC'. This could be dangerous if a real password is not supplied." + }, + "help": { + "markdown": "Hardcoded password is used as a default argument to '$FUNC'. This could be dangerous if a real password is not supplied.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.lang.security.audit.hardcoded-password-default-argument.hardcoded-password-default-argument)\n - [https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures](https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures)\n", + "text": "Hardcoded password is used as a default argument to '$FUNC'. This could be dangerous if a real password is not supplied." + }, + "helpUri": "https://semgrep.dev/r/python.lang.security.audit.hardcoded-password-default-argument.hardcoded-password-default-argument", + "id": "python.lang.security.audit.hardcoded-password-default-argument.hardcoded-password-default-argument", + "name": "python.lang.security.audit.hardcoded-password-default-argument.hardcoded-password-default-argument", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-798: Use of Hard-coded Credentials", + "LOW CONFIDENCE", + "OWASP-A07:2021 - Identification and Authentication Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.lang.security.audit.hardcoded-password-default-argument.hardcoded-password-default-argument" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "This rule is deprecated." + }, + "help": { + "markdown": "This rule is deprecated.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ruby.lang.security.yaml-parsing.yaml-parsing)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "This rule is deprecated." + }, + "helpUri": "https://semgrep.dev/r/ruby.lang.security.yaml-parsing.yaml-parsing", + "id": "ruby.lang.security.yaml-parsing.yaml-parsing", + "name": "ruby.lang.security.yaml-parsing.yaml-parsing", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-94: Improper Control of Generation of Code ('Code Injection')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: ruby.lang.security.yaml-parsing.yaml-parsing" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Checks for requests to http (unencrypted) sites using gorequest, a popular HTTP client library. This is dangerous because it could result in plaintext PII being passed around the network." + }, + "help": { + "markdown": "Checks for requests to http (unencrypted) sites using gorequest, a popular HTTP client library. This is dangerous because it could result in plaintext PII being passed around the network.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/problem-based-packs.insecure-transport.go-stdlib.gorequest-http-request.gorequest-http-request)\n - [https://github.com/parnurzeal/gorequest](https://github.com/parnurzeal/gorequest)\n", + "text": "Checks for requests to http (unencrypted) sites using gorequest, a popular HTTP client library. This is dangerous because it could result in plaintext PII being passed around the network." + }, + "helpUri": "https://semgrep.dev/r/problem-based-packs.insecure-transport.go-stdlib.gorequest-http-request.gorequest-http-request", + "id": "problem-based-packs.insecure-transport.go-stdlib.gorequest-http-request.gorequest-http-request", + "name": "problem-based-packs.insecure-transport.go-stdlib.gorequest-http-request.gorequest-http-request", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-319: Cleartext Transmission of Sensitive Information", + "MEDIUM CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: problem-based-packs.insecure-transport.go-stdlib.gorequest-http-request.gorequest-http-request" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "SoftLayer API Key detected" + }, + "help": { + "markdown": "SoftLayer API Key detected\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/generic.secrets.security.detected-softlayer-api-key.detected-softlayer-api-key)\n - [https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures](https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures)\n", + "text": "SoftLayer API Key detected" + }, + "helpUri": "https://semgrep.dev/r/generic.secrets.security.detected-softlayer-api-key.detected-softlayer-api-key", + "id": "generic.secrets.security.detected-softlayer-api-key.detected-softlayer-api-key", + "name": "generic.secrets.security.detected-softlayer-api-key.detected-softlayer-api-key", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-798: Use of Hard-coded Credentials", + "LOW CONFIDENCE", + "OWASP-A07:2021 - Identification and Authentication Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: generic.secrets.security.detected-softlayer-api-key.detected-softlayer-api-key" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Something that looks like a PGP private key block is detected. This is a potential hardcoded secret that could be leaked if this code is committed. Instead, remove this code block from the commit." + }, + "help": { + "markdown": "Something that looks like a PGP private key block is detected. This is a potential hardcoded secret that could be leaked if this code is committed. Instead, remove this code block from the commit.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/generic.secrets.security.detected-pgp-private-key-block.detected-pgp-private-key-block)\n - [https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures](https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures)\n", + "text": "Something that looks like a PGP private key block is detected. This is a potential hardcoded secret that could be leaked if this code is committed. Instead, remove this code block from the commit." + }, + "helpUri": "https://semgrep.dev/r/generic.secrets.security.detected-pgp-private-key-block.detected-pgp-private-key-block", + "id": "generic.secrets.security.detected-pgp-private-key-block.detected-pgp-private-key-block", + "name": "generic.secrets.security.detected-pgp-private-key-block.detected-pgp-private-key-block", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-798: Use of Hard-coded Credentials", + "LOW CONFIDENCE", + "OWASP-A07:2021 - Identification and Authentication Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: generic.secrets.security.detected-pgp-private-key-block.detected-pgp-private-key-block" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected an element with disabled HTML escaping. If external data can reach this, this is a cross-site scripting (XSS) vulnerability. Ensure no external data can reach here, or remove 'escape=false' from this element." + }, + "help": { + "markdown": "Detected an element with disabled HTML escaping. If external data can reach this, this is a cross-site scripting (XSS) vulnerability. Ensure no external data can reach here, or remove 'escape=false' from this element.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.lang.security.audit.xss.jsf.autoescape-disabled.autoescape-disabled)\n - [https://stackoverflow.com/a/7442668](https://stackoverflow.com/a/7442668)\n", + "text": "Detected an element with disabled HTML escaping. If external data can reach this, this is a cross-site scripting (XSS) vulnerability. Ensure no external data can reach here, or remove 'escape=false' from this element." + }, + "helpUri": "https://semgrep.dev/r/java.lang.security.audit.xss.jsf.autoescape-disabled.autoescape-disabled", + "id": "java.lang.security.audit.xss.jsf.autoescape-disabled.autoescape-disabled", + "name": "java.lang.security.audit.xss.jsf.autoescape-disabled.autoescape-disabled", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-150: Improper Neutralization of Escape, Meta, or Control Sequences", + "LOW CONFIDENCE", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.lang.security.audit.xss.jsf.autoescape-disabled.autoescape-disabled" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected 'Fprintf' or similar writing to 'http.ResponseWriter'. This bypasses HTML escaping that prevents cross-site scripting vulnerabilities. Instead, use the 'html/template' package to render data to users." + }, + "help": { + "markdown": "Detected 'Fprintf' or similar writing to 'http.ResponseWriter'. This bypasses HTML escaping that prevents cross-site scripting vulnerabilities. Instead, use the 'html/template' package to render data to users.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/go.lang.security.audit.xss.no-fprintf-to-responsewriter.no-fprintf-to-responsewriter)\n - [https://blogtitle.github.io/robn-go-security-pearls-cross-site-scripting-xss/](https://blogtitle.github.io/robn-go-security-pearls-cross-site-scripting-xss/)\n", + "text": "Detected 'Fprintf' or similar writing to 'http.ResponseWriter'. This bypasses HTML escaping that prevents cross-site scripting vulnerabilities. Instead, use the 'html/template' package to render data to users." + }, + "helpUri": "https://semgrep.dev/r/go.lang.security.audit.xss.no-fprintf-to-responsewriter.no-fprintf-to-responsewriter", + "id": "go.lang.security.audit.xss.no-fprintf-to-responsewriter.no-fprintf-to-responsewriter", + "name": "go.lang.security.audit.xss.no-fprintf-to-responsewriter.no-fprintf-to-responsewriter", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: go.lang.security.audit.xss.no-fprintf-to-responsewriter.no-fprintf-to-responsewriter" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Found user-controllable input to a reflection method. This may allow a user to alter program behavior and potentially execute arbitrary instructions in the context of the process. Do not provide arbitrary user input to `tap`, `method`, or `to_proc`" + }, + "help": { + "markdown": "Found user-controllable input to a reflection method. This may allow a user to alter program behavior and potentially execute arbitrary instructions in the context of the process. Do not provide arbitrary user input to `tap`, `method`, or `to_proc`\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ruby.rails.security.brakeman.check-unsafe-reflection-methods.check-unsafe-reflection-methods)\n - [https://github.com/presidentbeef/brakeman/blob/main/test/apps/rails6/app/controllers/groups_controller.rb](https://github.com/presidentbeef/brakeman/blob/main/test/apps/rails6/app/controllers/groups_controller.rb)\n", + "text": "Found user-controllable input to a reflection method. This may allow a user to alter program behavior and potentially execute arbitrary instructions in the context of the process. Do not provide arbitrary user input to `tap`, `method`, or `to_proc`" + }, + "helpUri": "https://semgrep.dev/r/ruby.rails.security.brakeman.check-unsafe-reflection-methods.check-unsafe-reflection-methods", + "id": "ruby.rails.security.brakeman.check-unsafe-reflection-methods.check-unsafe-reflection-methods", + "name": "ruby.rails.security.brakeman.check-unsafe-reflection-methods.check-unsafe-reflection-methods", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-94: Improper Control of Generation of Code ('Code Injection')", + "MEDIUM CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: ruby.rails.security.brakeman.check-unsafe-reflection-methods.check-unsafe-reflection-methods" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "SonarQube Docs API Key detected" + }, + "help": { + "markdown": "SonarQube Docs API Key detected\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/generic.secrets.security.detected-sonarqube-docs-api-key.detected-sonarqube-docs-api-key)\n - [https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures](https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures)\n", + "text": "SonarQube Docs API Key detected" + }, + "helpUri": "https://semgrep.dev/r/generic.secrets.security.detected-sonarqube-docs-api-key.detected-sonarqube-docs-api-key", + "id": "generic.secrets.security.detected-sonarqube-docs-api-key.detected-sonarqube-docs-api-key", + "name": "generic.secrets.security.detected-sonarqube-docs-api-key.detected-sonarqube-docs-api-key", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-798: Use of Hard-coded Credentials", + "LOW CONFIDENCE", + "OWASP-A07:2021 - Identification and Authentication Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: generic.secrets.security.detected-sonarqube-docs-api-key.detected-sonarqube-docs-api-key" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Warning MONGODB-CR was deprecated with the release of MongoDB 3.6 and is no longer supported by MongoDB 4.0 (see https://api.mongodb.com/python/current/examples/authentication.html for details)." + }, + "help": { + "markdown": "Warning MONGODB-CR was deprecated with the release of MongoDB 3.6 and is no longer supported by MongoDB 4.0 (see https://api.mongodb.com/python/current/examples/authentication.html for details).\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.pymongo.security.mongodb.mongo-client-bad-auth)\n - [https://cwe.mitre.org/data/definitions/477.html](https://cwe.mitre.org/data/definitions/477.html)\n", + "text": "Warning MONGODB-CR was deprecated with the release of MongoDB 3.6 and is no longer supported by MongoDB 4.0 (see https://api.mongodb.com/python/current/examples/authentication.html for details)." + }, + "helpUri": "https://semgrep.dev/r/python.pymongo.security.mongodb.mongo-client-bad-auth", + "id": "python.pymongo.security.mongodb.mongo-client-bad-auth", + "name": "python.pymongo.security.mongodb.mongo-client-bad-auth", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-477: Use of Obsolete Function", + "MEDIUM CONFIDENCE", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.pymongo.security.mongodb.mongo-client-bad-auth" + } + }, + { + "defaultConfiguration": { + "level": "note" + }, + "fullDescription": { + "text": "GCM detected, please check that IV/nonce is not reused, an Initialization Vector (IV) is a nonce used to randomize the encryption, so that even if multiple messages with identical plaintext are encrypted, the generated corresponding ciphertexts are different.Unlike the Key, the IV usually does not need to be secret, rather it is important that it is random and unique. Certain encryption schemes the IV is exchanged in public as part of the ciphertext. Reusing same Initialization Vector with the same Key to encrypt multiple plaintext blocks allows an attacker to compare the ciphertexts and then, with some assumptions on the content of the messages, to gain important information about the data being encrypted." + }, + "help": { + "markdown": "GCM detected, please check that IV/nonce is not reused, an Initialization Vector (IV) is a nonce used to randomize the encryption, so that even if multiple messages with identical plaintext are encrypted, the generated corresponding ciphertexts are different.Unlike the Key, the IV usually does not need to be secret, rather it is important that it is random and unique. Certain encryption schemes the IV is exchanged in public as part of the ciphertext. Reusing same Initialization Vector with the same Key to encrypt multiple plaintext blocks allows an attacker to compare the ciphertexts and then, with some assumptions on the content of the messages, to gain important information about the data being encrypted.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/kotlin.lang.security.gcm-detection.gcm-detection)\n - [https://cwe.mitre.org/data/definitions/323.html](https://cwe.mitre.org/data/definitions/323.html)\n", + "text": "GCM detected, please check that IV/nonce is not reused, an Initialization Vector (IV) is a nonce used to randomize the encryption, so that even if multiple messages with identical plaintext are encrypted, the generated corresponding ciphertexts are different.Unlike the Key, the IV usually does not need to be secret, rather it is important that it is random and unique. Certain encryption schemes the IV is exchanged in public as part of the ciphertext. Reusing same Initialization Vector with the same Key to encrypt multiple plaintext blocks allows an attacker to compare the ciphertexts and then, with some assumptions on the content of the messages, to gain important information about the data being encrypted." + }, + "helpUri": "https://semgrep.dev/r/kotlin.lang.security.gcm-detection.gcm-detection", + "id": "kotlin.lang.security.gcm-detection.gcm-detection", + "name": "kotlin.lang.security.gcm-detection.gcm-detection", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-323: Reusing a Nonce, Key Pair in Encryption", + "LOW CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: kotlin.lang.security.gcm-detection.gcm-detection" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "The object is passed strictly to jsonwebtoken.sign(...) Make sure that sensitive information is not exposed through JWT token payload." + }, + "help": { + "markdown": "The object is passed strictly to jsonwebtoken.sign(...) Make sure that sensitive information is not exposed through JWT token payload.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.jsonwebtoken.security.audit.jwt-exposed-data.jwt-exposed-data)\n - [https://owasp.org/Top10/A04_2021-Insecure_Design](https://owasp.org/Top10/A04_2021-Insecure_Design)\n", + "text": "The object is passed strictly to jsonwebtoken.sign(...) Make sure that sensitive information is not exposed through JWT token payload." + }, + "helpUri": "https://semgrep.dev/r/javascript.jsonwebtoken.security.audit.jwt-exposed-data.jwt-exposed-data", + "id": "javascript.jsonwebtoken.security.audit.jwt-exposed-data.jwt-exposed-data", + "name": "javascript.jsonwebtoken.security.audit.jwt-exposed-data.jwt-exposed-data", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-522: Insufficiently Protected Credentials", + "LOW CONFIDENCE", + "OWASP-A02:2017 - Broken Authentication", + "OWASP-A04:2021 - Insecure Design", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.jsonwebtoken.security.audit.jwt-exposed-data.jwt-exposed-data" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "A session cookie was detected without setting the 'HttpOnly' flag. The 'HttpOnly' flag for cookies instructs the browser to forbid client-side scripts from reading the cookie which mitigates XSS attacks. Set the 'HttpOnly' flag by setting 'HttpOnly' to 'true' in the Cookie." + }, + "help": { + "markdown": "A session cookie was detected without setting the 'HttpOnly' flag. The 'HttpOnly' flag for cookies instructs the browser to forbid client-side scripts from reading the cookie which mitigates XSS attacks. Set the 'HttpOnly' flag by setting 'HttpOnly' to 'true' in the Cookie.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/go.lang.security.audit.net.cookie-missing-httponly.cookie-missing-httponly)\n - [https://github.com/0c34/govwa/blob/139693e56406b5684d2a6ae22c0af90717e149b8/util/cookie.go](https://github.com/0c34/govwa/blob/139693e56406b5684d2a6ae22c0af90717e149b8/util/cookie.go)\n - [https://golang.org/src/net/http/cookie.go](https://golang.org/src/net/http/cookie.go)\n", + "text": "A session cookie was detected without setting the 'HttpOnly' flag. The 'HttpOnly' flag for cookies instructs the browser to forbid client-side scripts from reading the cookie which mitigates XSS attacks. Set the 'HttpOnly' flag by setting 'HttpOnly' to 'true' in the Cookie." + }, + "helpUri": "https://semgrep.dev/r/go.lang.security.audit.net.cookie-missing-httponly.cookie-missing-httponly", + "id": "go.lang.security.audit.net.cookie-missing-httponly.cookie-missing-httponly", + "name": "go.lang.security.audit.net.cookie-missing-httponly.cookie-missing-httponly", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-1004: Sensitive Cookie Without 'HttpOnly' Flag", + "MEDIUM CONFIDENCE", + "OWASP-A05:2021 - Security Misconfiguration", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: go.lang.security.audit.net.cookie-missing-httponly.cookie-missing-httponly" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Oracle update is not restricted in $F()" + }, + "help": { + "markdown": "Oracle update is not restricted in $F()\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/solidity.security.sense-missing-oracle-access-control.sense-missing-oracle-access-control)\n - [https://medium.com/immunefi/sense-finance-access-control-issue-bugfix-review-32e0c806b1a0](https://medium.com/immunefi/sense-finance-access-control-issue-bugfix-review-32e0c806b1a0)\n", + "text": "Oracle update is not restricted in $F()" + }, + "helpUri": "https://semgrep.dev/r/solidity.security.sense-missing-oracle-access-control.sense-missing-oracle-access-control", + "id": "solidity.security.sense-missing-oracle-access-control.sense-missing-oracle-access-control", + "name": "solidity.security.sense-missing-oracle-access-control.sense-missing-oracle-access-control", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-284: Improper Access Control", + "MEDIUM CONFIDENCE", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: solidity.security.sense-missing-oracle-access-control.sense-missing-oracle-access-control" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "By default, clients can connect to App Service by using both HTTP or HTTPS. HTTP should be disabled enabling the HTTPS Only setting." + }, + "help": { + "markdown": "By default, clients can connect to App Service by using both HTTP or HTTPS. HTTP should be disabled enabling the HTTPS Only setting.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.azure.security.appservice.appservice-enable-https-only.appservice-enable-https-only)\n - [https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/app_service#https_only](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/app_service#https_only)\n - [https://docs.microsoft.com/en-us/azure/app-service/configure-ssl-bindings#enforce-https](https://docs.microsoft.com/en-us/azure/app-service/configure-ssl-bindings#enforce-https)\n", + "text": "By default, clients can connect to App Service by using both HTTP or HTTPS. HTTP should be disabled enabling the HTTPS Only setting." + }, + "helpUri": "https://semgrep.dev/r/terraform.azure.security.appservice.appservice-enable-https-only.appservice-enable-https-only", + "id": "terraform.azure.security.appservice.appservice-enable-https-only.appservice-enable-https-only", + "name": "terraform.azure.security.appservice.appservice-enable-https-only.appservice-enable-https-only", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-319: Cleartext Transmission of Sensitive Information", + "MEDIUM CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.azure.security.appservice.appservice-enable-https-only.appservice-enable-https-only" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected a python logger call with a potential hardcoded secret $FORMAT_STRING being logged. This may lead to secret credentials being exposed. Make sure that the logger is not logging sensitive information." + }, + "help": { + "markdown": "Detected a python logger call with a potential hardcoded secret $FORMAT_STRING being logged. This may lead to secret credentials being exposed. Make sure that the logger is not logging sensitive information.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.lang.security.audit.logging.logger-credential-leak.python-logger-credential-disclosure)\n - [https://owasp.org/Top10/A09_2021-Security_Logging_and_Monitoring_Failures](https://owasp.org/Top10/A09_2021-Security_Logging_and_Monitoring_Failures)\n", + "text": "Detected a python logger call with a potential hardcoded secret $FORMAT_STRING being logged. This may lead to secret credentials being exposed. Make sure that the logger is not logging sensitive information." + }, + "helpUri": "https://semgrep.dev/r/python.lang.security.audit.logging.logger-credential-leak.python-logger-credential-disclosure", + "id": "python.lang.security.audit.logging.logger-credential-leak.python-logger-credential-disclosure", + "name": "python.lang.security.audit.logging.logger-credential-leak.python-logger-credential-disclosure", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-532: Insertion of Sensitive Information into Log File", + "MEDIUM CONFIDENCE", + "OWASP-A09:2021 - Security Logging and Monitoring Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.lang.security.audit.logging.logger-credential-leak.python-logger-credential-disclosure" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "If unverified user data can reach the `compileScript` method it can result in Server-Side Request Forgery vulnerabilities" + }, + "help": { + "markdown": "If unverified user data can reach the `compileScript` method it can result in Server-Side Request Forgery vulnerabilities\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.chrome-remote-interface.security.audit.chrome-remote-interface-compilescript-injection.chrome-remote-interface-compilescript-injection)\n - [https://github.com/cyrus-and/chrome-remote-interface](https://github.com/cyrus-and/chrome-remote-interface)\n", + "text": "If unverified user data can reach the `compileScript` method it can result in Server-Side Request Forgery vulnerabilities" + }, + "helpUri": "https://semgrep.dev/r/javascript.chrome-remote-interface.security.audit.chrome-remote-interface-compilescript-injection.chrome-remote-interface-compilescript-injection", + "id": "javascript.chrome-remote-interface.security.audit.chrome-remote-interface-compilescript-injection.chrome-remote-interface-compilescript-injection", + "name": "javascript.chrome-remote-interface.security.audit.chrome-remote-interface-compilescript-injection.chrome-remote-interface-compilescript-injection", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-918: Server-Side Request Forgery (SSRF)", + "MEDIUM CONFIDENCE", + "OWASP-A10:2021 - Server-Side Request Forgery (SSRF)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.chrome-remote-interface.security.audit.chrome-remote-interface-compilescript-injection.chrome-remote-interface-compilescript-injection" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected a template variable used in an anchor tag with the 'href' attribute. This allows a malicious actor to input the 'javascript:' URI and is subject to cross- site scripting (XSS) attacks. If using a relative URL, start with a literal forward slash and concatenate the URL, like this: a(href='/'+url). You may also consider setting the Content Security Policy (CSP) header." + }, + "help": { + "markdown": "Detected a template variable used in an anchor tag with the 'href' attribute. This allows a malicious actor to input the 'javascript:' URI and is subject to cross- site scripting (XSS) attacks. If using a relative URL, start with a literal forward slash and concatenate the URL, like this: a(href='/'+url). You may also consider setting the Content Security Policy (CSP) header.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.express.security.audit.xss.pug.var-in-href.var-in-href)\n - [https://github.com/pugjs/pug/issues/2952](https://github.com/pugjs/pug/issues/2952)\n - [https://flask.palletsprojects.com/en/1.1.x/security/#cross-site-scripting-xss#:~:text=javascript:%20URI](https://flask.palletsprojects.com/en/1.1.x/security/#cross-site-scripting-xss#:~:text=javascript:%20URI)\n", + "text": "Detected a template variable used in an anchor tag with the 'href' attribute. This allows a malicious actor to input the 'javascript:' URI and is subject to cross- site scripting (XSS) attacks. If using a relative URL, start with a literal forward slash and concatenate the URL, like this: a(href='/'+url). You may also consider setting the Content Security Policy (CSP) header." + }, + "helpUri": "https://semgrep.dev/r/javascript.express.security.audit.xss.pug.var-in-href.var-in-href", + "id": "javascript.express.security.audit.xss.pug.var-in-href.var-in-href", + "name": "javascript.express.security.audit.xss.pug.var-in-href.var-in-href", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.express.security.audit.xss.pug.var-in-href.var-in-href" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Ensure Kinesis stream is encrypted at rest using KMS CMKs. CMKs gives you control over the encryption key in terms of access and rotation." + }, + "help": { + "markdown": "Ensure Kinesis stream is encrypted at rest using KMS CMKs. CMKs gives you control over the encryption key in terms of access and rotation.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.aws.security.aws-kinesis-stream-encrypted-with-cmk.aws-kinesis-stream-encrypted-with-cmk)\n - [https://owasp.org/Top10/A02_2021-Cryptographic_Failures](https://owasp.org/Top10/A02_2021-Cryptographic_Failures)\n", + "text": "Ensure Kinesis stream is encrypted at rest using KMS CMKs. CMKs gives you control over the encryption key in terms of access and rotation." + }, + "helpUri": "https://semgrep.dev/r/terraform.aws.security.aws-kinesis-stream-encrypted-with-cmk.aws-kinesis-stream-encrypted-with-cmk", + "id": "terraform.aws.security.aws-kinesis-stream-encrypted-with-cmk.aws-kinesis-stream-encrypted-with-cmk", + "name": "terraform.aws.security.aws-kinesis-stream-encrypted-with-cmk.aws-kinesis-stream-encrypted-with-cmk", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-320: CWE CATEGORY: Key Management Errors", + "LOW CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.aws.security.aws-kinesis-stream-encrypted-with-cmk.aws-kinesis-stream-encrypted-with-cmk" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Detected 'create_subprocess_exec' function with argument tainted by `event` object. If this data can be controlled by a malicious actor, it may be an instance of command injection. Audit the use of this call to ensure it is not controllable by an external resource. You may consider using 'shlex.escape()'." + }, + "help": { + "markdown": "Detected 'create_subprocess_exec' function with argument tainted by `event` object. If this data can be controlled by a malicious actor, it may be an instance of command injection. Audit the use of this call to ensure it is not controllable by an external resource. You may consider using 'shlex.escape()'.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.aws-lambda.security.dangerous-asyncio-create-exec.dangerous-asyncio-create-exec)\n - [https://docs.python.org/3/library/asyncio-subprocess.html#asyncio.create_subprocess_exec](https://docs.python.org/3/library/asyncio-subprocess.html#asyncio.create_subprocess_exec)\n - [https://docs.python.org/3/library/shlex.html](https://docs.python.org/3/library/shlex.html)\n", + "text": "Detected 'create_subprocess_exec' function with argument tainted by `event` object. If this data can be controlled by a malicious actor, it may be an instance of command injection. Audit the use of this call to ensure it is not controllable by an external resource. You may consider using 'shlex.escape()'." + }, + "helpUri": "https://semgrep.dev/r/python.aws-lambda.security.dangerous-asyncio-create-exec.dangerous-asyncio-create-exec", + "id": "python.aws-lambda.security.dangerous-asyncio-create-exec.dangerous-asyncio-create-exec", + "name": "python.aws-lambda.security.dangerous-asyncio-create-exec.dangerous-asyncio-create-exec", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')", + "MEDIUM CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.aws-lambda.security.dangerous-asyncio-create-exec.dangerous-asyncio-create-exec" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected manual creation of an ERB template. Manual creation of templates may expose your application to server-side template injection (SSTI) or cross-site scripting (XSS) attacks if user input is used to create the template. Instead, create a '.erb' template file and use 'render'." + }, + "help": { + "markdown": "Detected manual creation of an ERB template. Manual creation of templates may expose your application to server-side template injection (SSTI) or cross-site scripting (XSS) attacks if user input is used to create the template. Instead, create a '.erb' template file and use 'render'.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ruby.rails.security.audit.xss.manual-template-creation.manual-template-creation)\n - [https://github.com/presidentbeef/brakeman/blob/main/docs/warning_types/template_injection/index.markdown](https://github.com/presidentbeef/brakeman/blob/main/docs/warning_types/template_injection/index.markdown)\n", + "text": "Detected manual creation of an ERB template. Manual creation of templates may expose your application to server-side template injection (SSTI) or cross-site scripting (XSS) attacks if user input is used to create the template. Instead, create a '.erb' template file and use 'render'." + }, + "helpUri": "https://semgrep.dev/r/ruby.rails.security.audit.xss.manual-template-creation.manual-template-creation", + "id": "ruby.rails.security.audit.xss.manual-template-creation.manual-template-creation", + "name": "ruby.rails.security.audit.xss.manual-template-creation.manual-template-creation", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: ruby.rails.security.audit.xss.manual-template-creation.manual-template-creation" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "The SoapFormatter type is dangerous and is not recommended for data processing. Applications should stop using SoapFormatter as soon as possible, even if they believe the data they're processing to be trustworthy. SoapFormatter is insecure and can't be made secure" + }, + "help": { + "markdown": "The SoapFormatter type is dangerous and is not recommended for data processing. Applications should stop using SoapFormatter as soon as possible, even if they believe the data they're processing to be trustworthy. SoapFormatter is insecure and can't be made secure\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/csharp.lang.security.insecure-deserialization.soap-formatter.insecure-soapformatter-deserialization)\n - [https://docs.microsoft.com/en-us/dotnet/api/system.runtime.serialization.formatters.soap.soapformatter?view=netframework-4.8#remarks](https://docs.microsoft.com/en-us/dotnet/api/system.runtime.serialization.formatters.soap.soapformatter?view=netframework-4.8#remarks)\n", + "text": "The SoapFormatter type is dangerous and is not recommended for data processing. Applications should stop using SoapFormatter as soon as possible, even if they believe the data they're processing to be trustworthy. SoapFormatter is insecure and can't be made secure" + }, + "helpUri": "https://semgrep.dev/r/csharp.lang.security.insecure-deserialization.soap-formatter.insecure-soapformatter-deserialization", + "id": "csharp.lang.security.insecure-deserialization.soap-formatter.insecure-soapformatter-deserialization", + "name": "csharp.lang.security.insecure-deserialization.soap-formatter.insecure-soapformatter-deserialization", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-502: Deserialization of Untrusted Data", + "MEDIUM CONFIDENCE", + "OWASP-A08:2017 - Insecure Deserialization", + "OWASP-A08:2021 - Software and Data Integrity Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: csharp.lang.security.insecure-deserialization.soap-formatter.insecure-soapformatter-deserialization" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "The native Python `xml` library is vulnerable to XML External Entity (XXE) attacks. These attacks can leak confidential data and \"XML bombs\" can cause denial of service. Do not use this library to parse untrusted input. Instead the Python documentation recommends using `defusedxml`." + }, + "help": { + "markdown": "The native Python `xml` library is vulnerable to XML External Entity (XXE) attacks. These attacks can leak confidential data and \"XML bombs\" can cause denial of service. Do not use this library to parse untrusted input. Instead the Python documentation recommends using `defusedxml`.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.lang.security.use-defused-xml-parse.use-defused-xml-parse)\n - [https://docs.python.org/3/library/xml.html](https://docs.python.org/3/library/xml.html)\n - [https://github.com/tiran/defusedxml](https://github.com/tiran/defusedxml)\n - [https://owasp.org/www-community/vulnerabilities/XML_External_Entity_(XXE)_Processing](https://owasp.org/www-community/vulnerabilities/XML_External_Entity_(XXE)_Processing)\n", + "text": "The native Python `xml` library is vulnerable to XML External Entity (XXE) attacks. These attacks can leak confidential data and \"XML bombs\" can cause denial of service. Do not use this library to parse untrusted input. Instead the Python documentation recommends using `defusedxml`." + }, + "helpUri": "https://semgrep.dev/r/python.lang.security.use-defused-xml-parse.use-defused-xml-parse", + "id": "python.lang.security.use-defused-xml-parse.use-defused-xml-parse", + "name": "python.lang.security.use-defused-xml-parse.use-defused-xml-parse", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-611: Improper Restriction of XML External Entity Reference", + "MEDIUM CONFIDENCE", + "OWASP-A04:2017 - XML External Entities (XXE)", + "OWASP-A05:2021 - Security Misconfiguration", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.lang.security.use-defused-xml-parse.use-defused-xml-parse" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "It looks like you're using an implementation of XSSRequestWrapper from dzone. (https://www.javacodegeeks.com/2012/07/anti-cross-site-scripting-xss-filter.html) The XSS filtering in this code is not secure and can be bypassed by malicious actors. It is recommended to use a stack that automatically escapes in your view or templates instead of filtering yourself." + }, + "help": { + "markdown": "It looks like you're using an implementation of XSSRequestWrapper from dzone. (https://www.javacodegeeks.com/2012/07/anti-cross-site-scripting-xss-filter.html) The XSS filtering in this code is not secure and can be bypassed by malicious actors. It is recommended to use a stack that automatically escapes in your view or templates instead of filtering yourself.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.lang.security.audit.xssrequestwrapper-is-insecure.xssrequestwrapper-is-insecure)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "It looks like you're using an implementation of XSSRequestWrapper from dzone. (https://www.javacodegeeks.com/2012/07/anti-cross-site-scripting-xss-filter.html) The XSS filtering in this code is not secure and can be bypassed by malicious actors. It is recommended to use a stack that automatically escapes in your view or templates instead of filtering yourself." + }, + "helpUri": "https://semgrep.dev/r/java.lang.security.audit.xssrequestwrapper-is-insecure.xssrequestwrapper-is-insecure", + "id": "java.lang.security.audit.xssrequestwrapper-is-insecure.xssrequestwrapper-is-insecure", + "name": "java.lang.security.audit.xssrequestwrapper-is-insecure.xssrequestwrapper-is-insecure", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.lang.security.audit.xssrequestwrapper-is-insecure.xssrequestwrapper-is-insecure" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "By letting user input control `X-Frame-Options` header, there is a risk that software does not properly verify whether or not a browser should be allowed to render a page in an `iframe`." + }, + "help": { + "markdown": "By letting user input control `X-Frame-Options` header, there is a risk that software does not properly verify whether or not a browser should be allowed to render a page in an `iframe`.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.express.security.x-frame-options-misconfiguration.x-frame-options-misconfiguration)\n - [https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options)\n", + "text": "By letting user input control `X-Frame-Options` header, there is a risk that software does not properly verify whether or not a browser should be allowed to render a page in an `iframe`." + }, + "helpUri": "https://semgrep.dev/r/javascript.express.security.x-frame-options-misconfiguration.x-frame-options-misconfiguration", + "id": "javascript.express.security.x-frame-options-misconfiguration.x-frame-options-misconfiguration", + "name": "javascript.express.security.x-frame-options-misconfiguration.x-frame-options-misconfiguration", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-451: User Interface (UI) Misrepresentation of Critical Information", + "MEDIUM CONFIDENCE", + "OWASP-A04:2021 - Insecure Design", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.express.security.x-frame-options-misconfiguration.x-frame-options-misconfiguration" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Detected use of the 'none' algorithm in a JWT token. The 'none' algorithm assumes the integrity of the token has already been verified. This would allow a malicious actor to forge a JWT token that will automatically be verified. Do not explicitly use the 'none' algorithm. Instead, use an algorithm such as 'HS256'." + }, + "help": { + "markdown": "Detected use of the 'none' algorithm in a JWT token. The 'none' algorithm assumes the integrity of the token has already been verified. This would allow a malicious actor to forge a JWT token that will automatically be verified. Do not explicitly use the 'none' algorithm. Instead, use an algorithm such as 'HS256'.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.jjwt.security.jwt-none-alg.jjwt-none-alg)\n - [https://owasp.org/Top10/A02_2021-Cryptographic_Failures](https://owasp.org/Top10/A02_2021-Cryptographic_Failures)\n", + "text": "Detected use of the 'none' algorithm in a JWT token. The 'none' algorithm assumes the integrity of the token has already been verified. This would allow a malicious actor to forge a JWT token that will automatically be verified. Do not explicitly use the 'none' algorithm. Instead, use an algorithm such as 'HS256'." + }, + "helpUri": "https://semgrep.dev/r/java.jjwt.security.jwt-none-alg.jjwt-none-alg", + "id": "java.jjwt.security.jwt-none-alg.jjwt-none-alg", + "name": "java.jjwt.security.jwt-none-alg.jjwt-none-alg", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-327: Use of a Broken or Risky Cryptographic Algorithm", + "LOW CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.jjwt.security.jwt-none-alg.jjwt-none-alg" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected SQL statement that is tainted by `event` object. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use parameterized queries or prepared statements instead. You can use parameterized statements like so: `cursor.execute('SELECT * FROM projects WHERE status = %s', 'active')`" + }, + "help": { + "markdown": "Detected SQL statement that is tainted by `event` object. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use parameterized queries or prepared statements instead. You can use parameterized statements like so: `cursor.execute('SELECT * FROM projects WHERE status = %s', 'active')`\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.aws-lambda.security.pymssql-sqli.pymssql-sqli)\n - [https://pypi.org/project/pymssql/](https://pypi.org/project/pymssql/)\n", + "text": "Detected SQL statement that is tainted by `event` object. This could lead to SQL injection if the variable is user-controlled and not properly sanitized. In order to prevent SQL injection, use parameterized queries or prepared statements instead. You can use parameterized statements like so: `cursor.execute('SELECT * FROM projects WHERE status = %s', 'active')`" + }, + "helpUri": "https://semgrep.dev/r/python.aws-lambda.security.pymssql-sqli.pymssql-sqli", + "id": "python.aws-lambda.security.pymssql-sqli.pymssql-sqli", + "name": "python.aws-lambda.security.pymssql-sqli.pymssql-sqli", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')", + "MEDIUM CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.aws-lambda.security.pymssql-sqli.pymssql-sqli" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected a user-controlled `filename` that could flow to `flask.send_file()` function. This could lead to an attacker reading arbitrary file from the system, leaking private information. Make sure to properly sanitize filename or use `flask.send_from_directory`" + }, + "help": { + "markdown": "Detected a user-controlled `filename` that could flow to `flask.send_file()` function. This could lead to an attacker reading arbitrary file from the system, leaking private information. Make sure to properly sanitize filename or use `flask.send_from_directory`\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.flask.security.secure-static-file-serve.avoid_send_file_without_path_sanitization)\n - [https://owasp.org/Top10/A04_2021-Insecure_Design](https://owasp.org/Top10/A04_2021-Insecure_Design)\n", + "text": "Detected a user-controlled `filename` that could flow to `flask.send_file()` function. This could lead to an attacker reading arbitrary file from the system, leaking private information. Make sure to properly sanitize filename or use `flask.send_from_directory`" + }, + "helpUri": "https://semgrep.dev/r/python.flask.security.secure-static-file-serve.avoid_send_file_without_path_sanitization", + "id": "python.flask.security.secure-static-file-serve.avoid_send_file_without_path_sanitization", + "name": "python.flask.security.secure-static-file-serve.avoid_send_file_without_path_sanitization", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-73: External Control of File Name or Path", + "LOW CONFIDENCE", + "OWASP-A04:2021 - Insecure Design", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.flask.security.secure-static-file-serve.avoid_send_file_without_path_sanitization" + } + }, + { + "defaultConfiguration": { + "level": "note" + }, + "fullDescription": { + "text": "This rule has been deprecated. It duplicates `javascript/sequelize/security/audit/sequelize-raw-query` rule." + }, + "help": { + "markdown": "This rule has been deprecated. It duplicates `javascript/sequelize/security/audit/sequelize-raw-query` rule.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.lang.security.audit.non-constant-sql-query.non-constant-sql-query)\n - [https://sequelize.org/docs/v6/core-concepts/raw-queries/](https://sequelize.org/docs/v6/core-concepts/raw-queries/)\n", + "text": "This rule has been deprecated. It duplicates `javascript/sequelize/security/audit/sequelize-raw-query` rule." + }, + "helpUri": "https://semgrep.dev/r/javascript.lang.security.audit.non-constant-sql-query.non-constant-sql-query", + "id": "javascript.lang.security.audit.non-constant-sql-query.non-constant-sql-query", + "name": "javascript.lang.security.audit.non-constant-sql-query.non-constant-sql-query", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')", + "LOW CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.lang.security.audit.non-constant-sql-query.non-constant-sql-query" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Wildcard used in your SQS queue policy principal. This grants access to all users, including anonymous users (public access). Unless you explicitly require anyone on the internet to be able to read or write to your queue, limit principals, actions and resources to what you need according to least privilege." + }, + "help": { + "markdown": "Wildcard used in your SQS queue policy principal. This grants access to all users, including anonymous users (public access). Unless you explicitly require anyone on the internet to be able to read or write to your queue, limit principals, actions and resources to what you need according to least privilege.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.aws.security.aws-sqs-queue-policy-wildcard-principal.aws-sqs-queue-policy-wildcard-principal)\n - [https://cwe.mitre.org/data/definitions/732.html](https://cwe.mitre.org/data/definitions/732.html)\n - [https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/sqs_queue](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/sqs_queue)\n - [https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/sqs_queue_policy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/sqs_queue_policy)\n - [https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-security-best-practices.html](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-security-best-practices.html)\n", + "text": "Wildcard used in your SQS queue policy principal. This grants access to all users, including anonymous users (public access). Unless you explicitly require anyone on the internet to be able to read or write to your queue, limit principals, actions and resources to what you need according to least privilege." + }, + "helpUri": "https://semgrep.dev/r/terraform.aws.security.aws-sqs-queue-policy-wildcard-principal.aws-sqs-queue-policy-wildcard-principal", + "id": "terraform.aws.security.aws-sqs-queue-policy-wildcard-principal.aws-sqs-queue-policy-wildcard-principal", + "name": "terraform.aws.security.aws-sqs-queue-policy-wildcard-principal.aws-sqs-queue-policy-wildcard-principal", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-732: Incorrect Permission Assignment for Critical Resource", + "MEDIUM CONFIDENCE", + "OWASP-A05:2021 - Security Misconfiguration", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.aws.security.aws-sqs-queue-policy-wildcard-principal.aws-sqs-queue-policy-wildcard-principal" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "A parameter being passed directly into `fromURL` most likely lead to SSRF. This could allow an attacker to send data to their own server, potentially exposing sensitive data sent with this request. They could also probe internal servers or other resources that the server runnig this code can access. Do not allow arbitrary hosts. Instead, create an allowlist for approved hosts hardcode the correct host." + }, + "help": { + "markdown": "A parameter being passed directly into `fromURL` most likely lead to SSRF. This could allow an attacker to send data to their own server, potentially exposing sensitive data sent with this request. They could also probe internal servers or other resources that the server runnig this code can access. Do not allow arbitrary hosts. Instead, create an allowlist for approved hosts hardcode the correct host.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/scala.lang.security.audit.io-source-ssrf.io-source-ssrf)\n - [https://cheatsheetseries.owasp.org/cheatsheets/Server_Side_Request_Forgery_Prevention_Cheat_Sheet.html](https://cheatsheetseries.owasp.org/cheatsheets/Server_Side_Request_Forgery_Prevention_Cheat_Sheet.html)\n - [https://www.scala-lang.org/api/current/scala/io/Source$.html#fromURL(url:java.net.URL)(implicitcodec:scala.io.Codec):scala.io.BufferedSource](https://www.scala-lang.org/api/current/scala/io/Source$.html#fromURL(url:java.net.URL)(implicitcodec:scala.io.Codec):scala.io.BufferedSource)\n", + "text": "A parameter being passed directly into `fromURL` most likely lead to SSRF. This could allow an attacker to send data to their own server, potentially exposing sensitive data sent with this request. They could also probe internal servers or other resources that the server runnig this code can access. Do not allow arbitrary hosts. Instead, create an allowlist for approved hosts hardcode the correct host." + }, + "helpUri": "https://semgrep.dev/r/scala.lang.security.audit.io-source-ssrf.io-source-ssrf", + "id": "scala.lang.security.audit.io-source-ssrf.io-source-ssrf", + "name": "scala.lang.security.audit.io-source-ssrf.io-source-ssrf", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-918: Server-Side Request Forgery (SSRF)", + "MEDIUM CONFIDENCE", + "OWASP-A10:2021 - Server-Side Request Forgery (SSRF)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: scala.lang.security.audit.io-source-ssrf.io-source-ssrf" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "No token revoking configured for `express-jwt`. A leaked token could still be used and unable to be revoked. Consider using function as the `isRevoked` option." + }, + "help": { + "markdown": "No token revoking configured for `express-jwt`. A leaked token could still be used and unable to be revoked. Consider using function as the `isRevoked` option.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.express.security.audit.express-jwt-not-revoked.express-jwt-not-revoked)\n - [https://owasp.org/Top10/A04_2021-Insecure_Design](https://owasp.org/Top10/A04_2021-Insecure_Design)\n", + "text": "No token revoking configured for `express-jwt`. A leaked token could still be used and unable to be revoked. Consider using function as the `isRevoked` option." + }, + "helpUri": "https://semgrep.dev/r/javascript.express.security.audit.express-jwt-not-revoked.express-jwt-not-revoked", + "id": "javascript.express.security.audit.express-jwt-not-revoked.express-jwt-not-revoked", + "name": "javascript.express.security.audit.express-jwt-not-revoked.express-jwt-not-revoked", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-522: Insufficiently Protected Credentials", + "MEDIUM CONFIDENCE", + "OWASP-A02:2017 - Broken Authentication", + "OWASP-A04:2021 - Insecure Design", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.express.security.audit.express-jwt-not-revoked.express-jwt-not-revoked" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected directly writing to a Response object from user-defined input. This bypasses any HTML escaping and may expose your application to a Cross-Site-scripting (XSS) vulnerability. Instead, use 'resp.render()' to render safely escaped HTML." + }, + "help": { + "markdown": "Detected directly writing to a Response object from user-defined input. This bypasses any HTML escaping and may expose your application to a Cross-Site-scripting (XSS) vulnerability. Instead, use 'resp.render()' to render safely escaped HTML.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.express.security.audit.xss.direct-response-write.direct-response-write)\n - [https://cheatsheetseries.owasp.org/cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.html](https://cheatsheetseries.owasp.org/cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.html)\n", + "text": "Detected directly writing to a Response object from user-defined input. This bypasses any HTML escaping and may expose your application to a Cross-Site-scripting (XSS) vulnerability. Instead, use 'resp.render()' to render safely escaped HTML." + }, + "helpUri": "https://semgrep.dev/r/javascript.express.security.audit.xss.direct-response-write.direct-response-write", + "id": "javascript.express.security.audit.xss.direct-response-write.direct-response-write", + "name": "javascript.express.security.audit.xss.direct-response-write.direct-response-write", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "MEDIUM CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.express.security.audit.xss.direct-response-write.direct-response-write" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected DES cipher algorithm which is considered insecure. This algorithm is not cryptographically secure and can be reversed easily. Use AES instead." + }, + "help": { + "markdown": "Detected DES cipher algorithm which is considered insecure. This algorithm is not cryptographically secure and can be reversed easily. Use AES instead.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.pycryptodome.security.insecure-cipher-algorithm-des.insecure-cipher-algorithm-des)\n - [https://cwe.mitre.org/data/definitions/326.html](https://cwe.mitre.org/data/definitions/326.html)\n", + "text": "Detected DES cipher algorithm which is considered insecure. This algorithm is not cryptographically secure and can be reversed easily. Use AES instead." + }, + "helpUri": "https://semgrep.dev/r/python.pycryptodome.security.insecure-cipher-algorithm-des.insecure-cipher-algorithm-des", + "id": "python.pycryptodome.security.insecure-cipher-algorithm-des.insecure-cipher-algorithm-des", + "name": "python.pycryptodome.security.insecure-cipher-algorithm-des.insecure-cipher-algorithm-des", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-327: Use of a Broken or Risky Cryptographic Algorithm", + "MEDIUM CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.pycryptodome.security.insecure-cipher-algorithm-des.insecure-cipher-algorithm-des" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "User data flows into this manually-constructed SQL string. User data can be safely inserted into SQL strings using prepared statements or an object-relational mapper (ORM). Manually-constructed SQL strings is a possible indicator of SQL injection, which could let an attacker steal or manipulate data from the database. Instead, use prepared statements (`connection.PreparedStatement`) or a safe library." + }, + "help": { + "markdown": "User data flows into this manually-constructed SQL string. User data can be safely inserted into SQL strings using prepared statements or an object-relational mapper (ORM). Manually-constructed SQL strings is a possible indicator of SQL injection, which could let an attacker steal or manipulate data from the database. Instead, use prepared statements (`connection.PreparedStatement`) or a safe library.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/scala.play.security.tainted-sql-from-http-request.tainted-sql-from-http-request)\n - [https://docs.oracle.com/javase/7/docs/api/java/sql/PreparedStatement.html](https://docs.oracle.com/javase/7/docs/api/java/sql/PreparedStatement.html)\n", + "text": "User data flows into this manually-constructed SQL string. User data can be safely inserted into SQL strings using prepared statements or an object-relational mapper (ORM). Manually-constructed SQL strings is a possible indicator of SQL injection, which could let an attacker steal or manipulate data from the database. Instead, use prepared statements (`connection.PreparedStatement`) or a safe library." + }, + "helpUri": "https://semgrep.dev/r/scala.play.security.tainted-sql-from-http-request.tainted-sql-from-http-request", + "id": "scala.play.security.tainted-sql-from-http-request.tainted-sql-from-http-request", + "name": "scala.play.security.tainted-sql-from-http-request.tainted-sql-from-http-request", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')", + "HIGH CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: scala.play.security.tainted-sql-from-http-request.tainted-sql-from-http-request" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "HockeyApp detected" + }, + "help": { + "markdown": "HockeyApp detected\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/generic.secrets.security.detected-hockeyapp.detected-hockeyapp)\n - [https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures](https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures)\n", + "text": "HockeyApp detected" + }, + "helpUri": "https://semgrep.dev/r/generic.secrets.security.detected-hockeyapp.detected-hockeyapp", + "id": "generic.secrets.security.detected-hockeyapp.detected-hockeyapp", + "name": "generic.secrets.security.detected-hockeyapp.detected-hockeyapp", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-798: Use of Hard-coded Credentials", + "LOW CONFIDENCE", + "OWASP-A07:2021 - Identification and Authentication Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: generic.secrets.security.detected-hockeyapp.detected-hockeyapp" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected a formatted string in a SQL statement. This could lead to SQL injection if variables in the SQL statement are not properly sanitized. Use a prepared statements (java.sql.PreparedStatement) instead. You can obtain a PreparedStatement using 'connection.prepareStatement'." + }, + "help": { + "markdown": "Detected a formatted string in a SQL statement. This could lead to SQL injection if variables in the SQL statement are not properly sanitized. Use a prepared statements (java.sql.PreparedStatement) instead. You can obtain a PreparedStatement using 'connection.prepareStatement'.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.lang.security.audit.sqli.hibernate-sqli.hibernate-sqli)\n - [https://owasp.org/Top10/A03_2021-Injection](https://owasp.org/Top10/A03_2021-Injection)\n", + "text": "Detected a formatted string in a SQL statement. This could lead to SQL injection if variables in the SQL statement are not properly sanitized. Use a prepared statements (java.sql.PreparedStatement) instead. You can obtain a PreparedStatement using 'connection.prepareStatement'." + }, + "helpUri": "https://semgrep.dev/r/java.lang.security.audit.sqli.hibernate-sqli.hibernate-sqli", + "id": "java.lang.security.audit.sqli.hibernate-sqli.hibernate-sqli", + "name": "java.lang.security.audit.sqli.hibernate-sqli.hibernate-sqli", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')", + "LOW CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.lang.security.audit.sqli.hibernate-sqli.hibernate-sqli" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "DES is considered deprecated. AES is the recommended cipher. Upgrade to use AES. See https://www.nist.gov/news-events/news/2005/06/nist-withdraws-outdated-data-encryption-standard for more information." + }, + "help": { + "markdown": "DES is considered deprecated. AES is the recommended cipher. Upgrade to use AES. See https://www.nist.gov/news-events/news/2005/06/nist-withdraws-outdated-data-encryption-standard for more information.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.lang.security.audit.crypto.des-is-deprecated.des-is-deprecated)\n - [https://www.nist.gov/news-events/news/2005/06/nist-withdraws-outdated-data-encryption-standard](https://www.nist.gov/news-events/news/2005/06/nist-withdraws-outdated-data-encryption-standard)\n - [https://cheatsheetseries.owasp.org/cheatsheets/Cryptographic_Storage_Cheat_Sheet.html#algorithms](https://cheatsheetseries.owasp.org/cheatsheets/Cryptographic_Storage_Cheat_Sheet.html#algorithms)\n", + "text": "DES is considered deprecated. AES is the recommended cipher. Upgrade to use AES. See https://www.nist.gov/news-events/news/2005/06/nist-withdraws-outdated-data-encryption-standard for more information." + }, + "helpUri": "https://semgrep.dev/r/java.lang.security.audit.crypto.des-is-deprecated.des-is-deprecated", + "id": "java.lang.security.audit.crypto.des-is-deprecated.des-is-deprecated", + "name": "java.lang.security.audit.crypto.des-is-deprecated.des-is-deprecated", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-326: Inadequate Encryption Strength", + "HIGH CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.lang.security.audit.crypto.des-is-deprecated.des-is-deprecated" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Queue $X is missing encryption at rest. Add \"encryption: $Y.QueueEncryption.KMS\" or \"encryption: $Y.QueueEncryption.KMS_MANAGED\" to the queue props to enable encryption at rest for the queue." + }, + "help": { + "markdown": "Queue $X is missing encryption at rest. Add \"encryption: $Y.QueueEncryption.KMS\" or \"encryption: $Y.QueueEncryption.KMS_MANAGED\" to the queue props to enable encryption at rest for the queue.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/typescript.aws-cdk.security.audit.awscdk-sqs-unencryptedqueue.awscdk-sqs-unencryptedqueue)\n - [https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-data-protection.html](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-data-protection.html)\n", + "text": "Queue $X is missing encryption at rest. Add \"encryption: $Y.QueueEncryption.KMS\" or \"encryption: $Y.QueueEncryption.KMS_MANAGED\" to the queue props to enable encryption at rest for the queue." + }, + "helpUri": "https://semgrep.dev/r/typescript.aws-cdk.security.audit.awscdk-sqs-unencryptedqueue.awscdk-sqs-unencryptedqueue", + "id": "typescript.aws-cdk.security.audit.awscdk-sqs-unencryptedqueue.awscdk-sqs-unencryptedqueue", + "name": "typescript.aws-cdk.security.audit.awscdk-sqs-unencryptedqueue.awscdk-sqs-unencryptedqueue", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-311: Missing Encryption of Sensitive Data", + "MEDIUM CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "OWASP-A04:2021 - Insecure Design", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: typescript.aws-cdk.security.audit.awscdk-sqs-unencryptedqueue.awscdk-sqs-unencryptedqueue" + } + }, + { + "defaultConfiguration": { + "level": "note" + }, + "fullDescription": { + "text": "this rule has been deprecated." + }, + "help": { + "markdown": "this rule has been deprecated.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.lang.security.audit.vm-injection.vm-compilefunction-context-injection)\n - [https://nodejs.org/dist/latest-v16.x/docs/api/vm.html](https://nodejs.org/dist/latest-v16.x/docs/api/vm.html)\n", + "text": "this rule has been deprecated." + }, + "helpUri": "https://semgrep.dev/r/javascript.lang.security.audit.vm-injection.vm-compilefunction-context-injection", + "id": "javascript.lang.security.audit.vm-injection.vm-compilefunction-context-injection", + "name": "javascript.lang.security.audit.vm-injection.vm-compilefunction-context-injection", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-94: Improper Control of Generation of Code ('Code Injection')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.lang.security.audit.vm-injection.vm-compilefunction-context-injection" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "XmlReaderSettings found with DtdProcessing.Parse on an XmlReader handling a string argument from a public method. Enabling Document Type Definition (DTD) parsing may cause XML External Entity (XXE) injection if supplied with user-controllable data." + }, + "help": { + "markdown": "XmlReaderSettings found with DtdProcessing.Parse on an XmlReader handling a string argument from a public method. Enabling Document Type Definition (DTD) parsing may cause XML External Entity (XXE) injection if supplied with user-controllable data.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/csharp.lang.security.xxe.xmldocument-unsafe-parser-override.xmldocument-unsafe-parser-override)\n - [https://www.jardinesoftware.net/2016/05/26/xxe-and-net/](https://www.jardinesoftware.net/2016/05/26/xxe-and-net/)\n - [https://docs.microsoft.com/en-us/dotnet/api/system.xml.xmldocument.xmlresolver?view=net-6.0#remarks](https://docs.microsoft.com/en-us/dotnet/api/system.xml.xmldocument.xmlresolver?view=net-6.0#remarks)\n", + "text": "XmlReaderSettings found with DtdProcessing.Parse on an XmlReader handling a string argument from a public method. Enabling Document Type Definition (DTD) parsing may cause XML External Entity (XXE) injection if supplied with user-controllable data." + }, + "helpUri": "https://semgrep.dev/r/csharp.lang.security.xxe.xmldocument-unsafe-parser-override.xmldocument-unsafe-parser-override", + "id": "csharp.lang.security.xxe.xmldocument-unsafe-parser-override.xmldocument-unsafe-parser-override", + "name": "csharp.lang.security.xxe.xmldocument-unsafe-parser-override.xmldocument-unsafe-parser-override", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-611: Improper Restriction of XML External Entity Reference", + "MEDIUM CONFIDENCE", + "OWASP-A04:2017 - XML External Entities (XXE)", + "OWASP-A05:2021 - Security Misconfiguration", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: csharp.lang.security.xxe.xmldocument-unsafe-parser-override.xmldocument-unsafe-parser-override" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Autoescape is globally disbaled for this Django application. If you are rendering any web pages, this exposes your application to cross-site scripting (XSS) vulnerabilities. Remove 'autoescape: False' or set it to 'True'." + }, + "help": { + "markdown": "Autoescape is globally disbaled for this Django application. If you are rendering any web pages, this exposes your application to cross-site scripting (XSS) vulnerabilities. Remove 'autoescape: False' or set it to 'True'.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.django.security.audit.xss.global-autoescape-off.global-autoescape-off)\n - [https://docs.djangoproject.com/en/3.1/ref/settings/#templates](https://docs.djangoproject.com/en/3.1/ref/settings/#templates)\n - [https://docs.djangoproject.com/en/3.1/topics/templates/#django.template.backends.django.DjangoTemplates](https://docs.djangoproject.com/en/3.1/topics/templates/#django.template.backends.django.DjangoTemplates)\n", + "text": "Autoescape is globally disbaled for this Django application. If you are rendering any web pages, this exposes your application to cross-site scripting (XSS) vulnerabilities. Remove 'autoescape: False' or set it to 'True'." + }, + "helpUri": "https://semgrep.dev/r/python.django.security.audit.xss.global-autoescape-off.global-autoescape-off", + "id": "python.django.security.audit.xss.global-autoescape-off.global-autoescape-off", + "name": "python.django.security.audit.xss.global-autoescape-off.global-autoescape-off", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.django.security.audit.xss.global-autoescape-off.global-autoescape-off" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Square OAuth Secret detected" + }, + "help": { + "markdown": "Square OAuth Secret detected\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/generic.secrets.security.detected-square-oauth-secret.detected-square-oauth-secret)\n - [https://github.com/Yelp/detect-secrets/blob/master/tests/plugins/square_oauth_test.py](https://github.com/Yelp/detect-secrets/blob/master/tests/plugins/square_oauth_test.py)\n", + "text": "Square OAuth Secret detected" + }, + "helpUri": "https://semgrep.dev/r/generic.secrets.security.detected-square-oauth-secret.detected-square-oauth-secret", + "id": "generic.secrets.security.detected-square-oauth-secret.detected-square-oauth-secret", + "name": "generic.secrets.security.detected-square-oauth-secret.detected-square-oauth-secret", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-798: Use of Hard-coded Credentials", + "LOW CONFIDENCE", + "OWASP-A07:2021 - Identification and Authentication Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: generic.secrets.security.detected-square-oauth-secret.detected-square-oauth-secret" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "The last user in the container is 'root'. This is a security hazard because if an attacker gains control of the container they will have root access. Switch back to another user after running commands as 'root'." + }, + "help": { + "markdown": "The last user in the container is 'root'. This is a security hazard because if an attacker gains control of the container they will have root access. Switch back to another user after running commands as 'root'.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/generic.dockerfile.security.last-user-is-root.last-user-is-root)\n - [https://github.com/hadolint/hadolint/wiki/DL3002](https://github.com/hadolint/hadolint/wiki/DL3002)\n", + "text": "The last user in the container is 'root'. This is a security hazard because if an attacker gains control of the container they will have root access. Switch back to another user after running commands as 'root'." + }, + "helpUri": "https://semgrep.dev/r/generic.dockerfile.security.last-user-is-root.last-user-is-root", + "id": "generic.dockerfile.security.last-user-is-root.last-user-is-root", + "name": "generic.dockerfile.security.last-user-is-root.last-user-is-root", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-269: Improper Privilege Management", + "MEDIUM CONFIDENCE", + "OWASP-A04:2021 - Insecure Design", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: generic.dockerfile.security.last-user-is-root.last-user-is-root" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Found a potentially user-controllable argument in the construction of a regular expressions. This may result in excessive resource consumption when applied to certain inputs, or when the user is allowed to control the match target. Avoid allowing users to specify regular expressions processed by the server. If you must support user-controllable input in a regular expression, use an allow-list to restrict the expressions users may supply to limit catastrophic backtracking." + }, + "help": { + "markdown": "Found a potentially user-controllable argument in the construction of a regular expressions. This may result in excessive resource consumption when applied to certain inputs, or when the user is allowed to control the match target. Avoid allowing users to specify regular expressions processed by the server. If you must support user-controllable input in a regular expression, use an allow-list to restrict the expressions users may supply to limit catastrophic backtracking.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ruby.rails.security.brakeman.check-regex-dos.check-regex-dos)\n - [https://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_ReDoS](https://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_ReDoS)\n", + "text": "Found a potentially user-controllable argument in the construction of a regular expressions. This may result in excessive resource consumption when applied to certain inputs, or when the user is allowed to control the match target. Avoid allowing users to specify regular expressions processed by the server. If you must support user-controllable input in a regular expression, use an allow-list to restrict the expressions users may supply to limit catastrophic backtracking." + }, + "helpUri": "https://semgrep.dev/r/ruby.rails.security.brakeman.check-regex-dos.check-regex-dos", + "id": "ruby.rails.security.brakeman.check-regex-dos.check-regex-dos", + "name": "ruby.rails.security.brakeman.check-regex-dos.check-regex-dos", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-1333: Inefficient Regular Expression Complexity", + "MEDIUM CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: ruby.rails.security.brakeman.check-regex-dos.check-regex-dos" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected a network listener listening on 0.0.0.0 or an empty string. This could unexpectedly expose the server publicly as it binds to all available interfaces. Instead, specify another IP address that is not 0.0.0.0 nor the empty string." + }, + "help": { + "markdown": "Detected a network listener listening on 0.0.0.0 or an empty string. This could unexpectedly expose the server publicly as it binds to all available interfaces. Instead, specify another IP address that is not 0.0.0.0 nor the empty string.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/go.lang.security.audit.net.bind_all.avoid-bind-to-all-interfaces)\n - [https://owasp.org/Top10/A01_2021-Broken_Access_Control](https://owasp.org/Top10/A01_2021-Broken_Access_Control)\n", + "text": "Detected a network listener listening on 0.0.0.0 or an empty string. This could unexpectedly expose the server publicly as it binds to all available interfaces. Instead, specify another IP address that is not 0.0.0.0 nor the empty string." + }, + "helpUri": "https://semgrep.dev/r/go.lang.security.audit.net.bind_all.avoid-bind-to-all-interfaces", + "id": "go.lang.security.audit.net.bind_all.avoid-bind-to-all-interfaces", + "name": "go.lang.security.audit.net.bind_all.avoid-bind-to-all-interfaces", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-200: Exposure of Sensitive Information to an Unauthorized Actor", + "HIGH CONFIDENCE", + "OWASP-A01:2021 - Broken Access Control", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: go.lang.security.audit.net.bind_all.avoid-bind-to-all-interfaces" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "The profiling 'pprof' endpoint is automatically exposed on /debug/pprof. This could leak information about the server. Instead, use `import \"net/http/pprof\"`. See https://www.farsightsecurity.com/blog/txt-record/go-remote-profiling-20161028/ for more information and mitigation." + }, + "help": { + "markdown": "The profiling 'pprof' endpoint is automatically exposed on /debug/pprof. This could leak information about the server. Instead, use `import \"net/http/pprof\"`. See https://www.farsightsecurity.com/blog/txt-record/go-remote-profiling-20161028/ for more information and mitigation.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/go.lang.security.audit.net.pprof.pprof-debug-exposure)\n - [https://www.farsightsecurity.com/blog/txt-record/go-remote-profiling-20161028/](https://www.farsightsecurity.com/blog/txt-record/go-remote-profiling-20161028/)\n", + "text": "The profiling 'pprof' endpoint is automatically exposed on /debug/pprof. This could leak information about the server. Instead, use `import \"net/http/pprof\"`. See https://www.farsightsecurity.com/blog/txt-record/go-remote-profiling-20161028/ for more information and mitigation." + }, + "helpUri": "https://semgrep.dev/r/go.lang.security.audit.net.pprof.pprof-debug-exposure", + "id": "go.lang.security.audit.net.pprof.pprof-debug-exposure", + "name": "go.lang.security.audit.net.pprof.pprof-debug-exposure", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-489: Active Debug Code", + "LOW CONFIDENCE", + "OWASP-A06:2017 - Security Misconfiguration", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: go.lang.security.audit.net.pprof.pprof-debug-exposure" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Found that the setting for providing detailed exception reports in Rails is set to true. This can lead to information exposure, where sensitive system or internal information is displayed to the end user. Instead, turn this setting off." + }, + "help": { + "markdown": "Found that the setting for providing detailed exception reports in Rails is set to true. This can lead to information exposure, where sensitive system or internal information is displayed to the end user. Instead, turn this setting off.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ruby.rails.security.audit.detailed-exceptions.detailed-exceptions)\n - [https://owasp.org/Top10/A01_2021-Broken_Access_Control](https://owasp.org/Top10/A01_2021-Broken_Access_Control)\n", + "text": "Found that the setting for providing detailed exception reports in Rails is set to true. This can lead to information exposure, where sensitive system or internal information is displayed to the end user. Instead, turn this setting off." + }, + "helpUri": "https://semgrep.dev/r/ruby.rails.security.audit.detailed-exceptions.detailed-exceptions", + "id": "ruby.rails.security.audit.detailed-exceptions.detailed-exceptions", + "name": "ruby.rails.security.audit.detailed-exceptions.detailed-exceptions", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-200: Exposure of Sensitive Information to an Unauthorized Actor", + "LOW CONFIDENCE", + "OWASP-A01:2021 - Broken Access Control", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: ruby.rails.security.audit.detailed-exceptions.detailed-exceptions" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected the decoding of a JWT token without a verify step. JWT tokens must be verified before use, otherwise the token's integrity is unknown. This means a malicious actor could forge a JWT token with any claims. Call '.verify()' before using the token." + }, + "help": { + "markdown": "Detected the decoding of a JWT token without a verify step. JWT tokens must be verified before use, otherwise the token's integrity is unknown. This means a malicious actor could forge a JWT token with any claims. Call '.verify()' before using the token.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.java-jwt.security.audit.jwt-decode-without-verify.java-jwt-decode-without-verify)\n - [https://owasp.org/Top10/A08_2021-Software_and_Data_Integrity_Failures](https://owasp.org/Top10/A08_2021-Software_and_Data_Integrity_Failures)\n", + "text": "Detected the decoding of a JWT token without a verify step. JWT tokens must be verified before use, otherwise the token's integrity is unknown. This means a malicious actor could forge a JWT token with any claims. Call '.verify()' before using the token." + }, + "helpUri": "https://semgrep.dev/r/java.java-jwt.security.audit.jwt-decode-without-verify.java-jwt-decode-without-verify", + "id": "java.java-jwt.security.audit.jwt-decode-without-verify.java-jwt-decode-without-verify", + "name": "java.java-jwt.security.audit.jwt-decode-without-verify.java-jwt-decode-without-verify", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-345: Insufficient Verification of Data Authenticity", + "MEDIUM CONFIDENCE", + "OWASP-A08:2021 - Software and Data Integrity Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.java-jwt.security.audit.jwt-decode-without-verify.java-jwt-decode-without-verify" + } + }, + { + "defaultConfiguration": { + "level": "note" + }, + "fullDescription": { + "text": "this rule has been deprecated." + }, + "help": { + "markdown": "this rule has been deprecated.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.lang.security.audit.vm-injection.vm-script-code-injection)\n - [https://nodejs.org/dist/latest-v16.x/docs/api/vm.html](https://nodejs.org/dist/latest-v16.x/docs/api/vm.html)\n", + "text": "this rule has been deprecated." + }, + "helpUri": "https://semgrep.dev/r/javascript.lang.security.audit.vm-injection.vm-script-code-injection", + "id": "javascript.lang.security.audit.vm-injection.vm-script-code-injection", + "name": "javascript.lang.security.audit.vm-injection.vm-script-code-injection", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-94: Improper Control of Generation of Code ('Code Injection')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.lang.security.audit.vm-injection.vm-script-code-injection" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detects creations of $HTTPS servers from option objects that don't disallow SSL v2, SSL v3, and TLS v1. These protocols are deprecated due to POODLE, man in the middle attacks, and other vulnerabilities." + }, + "help": { + "markdown": "Detects creations of $HTTPS servers from option objects that don't disallow SSL v2, SSL v3, and TLS v1. These protocols are deprecated due to POODLE, man in the middle attacks, and other vulnerabilities.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/problem-based-packs.insecure-transport.js-node.disallow-old-tls-versions2.disallow-old-tls-versions2)\n - [https://us-cert.cisa.gov/ncas/alerts/TA14-290A](https://us-cert.cisa.gov/ncas/alerts/TA14-290A)\n - [https://stackoverflow.com/questions/40434934/how-to-disable-the-ssl-3-0-and-tls-1-0-in-nodejs](https://stackoverflow.com/questions/40434934/how-to-disable-the-ssl-3-0-and-tls-1-0-in-nodejs)\n - [https://nodejs.org/api/https.html#https_https_createserver_options_requestlistener](https://nodejs.org/api/https.html#https_https_createserver_options_requestlistener)\n", + "text": "Detects creations of $HTTPS servers from option objects that don't disallow SSL v2, SSL v3, and TLS v1. These protocols are deprecated due to POODLE, man in the middle attacks, and other vulnerabilities." + }, + "helpUri": "https://semgrep.dev/r/problem-based-packs.insecure-transport.js-node.disallow-old-tls-versions2.disallow-old-tls-versions2", + "id": "problem-based-packs.insecure-transport.js-node.disallow-old-tls-versions2.disallow-old-tls-versions2", + "name": "problem-based-packs.insecure-transport.js-node.disallow-old-tls-versions2.disallow-old-tls-versions2", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-319: Cleartext Transmission of Sensitive Information", + "MEDIUM CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: problem-based-packs.insecure-transport.js-node.disallow-old-tls-versions2.disallow-old-tls-versions2" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Checks for dangerous permitted attributes that can lead to mass assignment vulnerabilities. Query parameters allowed using permit and attr_accessible are checked for allowance of dangerous attributes admin, banned, role, and account_id. Also checks for usages of params.permit!, which allows everything. Fix: don't allow admin, banned, role, and account_id using permit or attr_accessible." + }, + "help": { + "markdown": "Checks for dangerous permitted attributes that can lead to mass assignment vulnerabilities. Query parameters allowed using permit and attr_accessible are checked for allowance of dangerous attributes admin, banned, role, and account_id. Also checks for usages of params.permit!, which allows everything. Fix: don't allow admin, banned, role, and account_id using permit or attr_accessible.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ruby.lang.security.model-attr-accessible.model-attr-accessible)\n - [https://github.com/presidentbeef/brakeman/blob/main/lib/brakeman/checks/check_model_attr_accessible.rb](https://github.com/presidentbeef/brakeman/blob/main/lib/brakeman/checks/check_model_attr_accessible.rb)\n", + "text": "Checks for dangerous permitted attributes that can lead to mass assignment vulnerabilities. Query parameters allowed using permit and attr_accessible are checked for allowance of dangerous attributes admin, banned, role, and account_id. Also checks for usages of params.permit!, which allows everything. Fix: don't allow admin, banned, role, and account_id using permit or attr_accessible." + }, + "helpUri": "https://semgrep.dev/r/ruby.lang.security.model-attr-accessible.model-attr-accessible", + "id": "ruby.lang.security.model-attr-accessible.model-attr-accessible", + "name": "ruby.lang.security.model-attr-accessible.model-attr-accessible", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes", + "LOW CONFIDENCE", + "OWASP-A08:2021 - Software and Data Integrity Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: ruby.lang.security.model-attr-accessible.model-attr-accessible" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "This rule is deprecated." + }, + "help": { + "markdown": "This rule is deprecated.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/ruby.lang.security.nested-attributes.nested-attributes)\n - [https://github.com/presidentbeef/brakeman/blob/main/lib/brakeman/checks/check_nested_attributes.rb](https://github.com/presidentbeef/brakeman/blob/main/lib/brakeman/checks/check_nested_attributes.rb)\n - [https://groups.google.com/g/rubyonrails-security/c/-fkT0yja_gw/discussion](https://groups.google.com/g/rubyonrails-security/c/-fkT0yja_gw/discussion)\n", + "text": "This rule is deprecated." + }, + "helpUri": "https://semgrep.dev/r/ruby.lang.security.nested-attributes.nested-attributes", + "id": "ruby.lang.security.nested-attributes.nested-attributes", + "name": "ruby.lang.security.nested-attributes.nested-attributes", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-20: Improper Input Validation", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: ruby.lang.security.nested-attributes.nested-attributes" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected an explicit unescape in a Pug template, using either '!=' or '!{...}'. If external data can reach these locations, your application is exposed to a cross-site scripting (XSS) vulnerability. If you must do this, ensure no external data can reach this location." + }, + "help": { + "markdown": "Detected an explicit unescape in a Pug template, using either '!=' or '!{...}'. If external data can reach these locations, your application is exposed to a cross-site scripting (XSS) vulnerability. If you must do this, ensure no external data can reach this location.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.express.security.audit.xss.pug.explicit-unescape.template-explicit-unescape)\n - [https://pugjs.org/language/code.html#unescaped-buffered-code](https://pugjs.org/language/code.html#unescaped-buffered-code)\n - [https://pugjs.org/language/attributes.html#unescaped-attributes](https://pugjs.org/language/attributes.html#unescaped-attributes)\n", + "text": "Detected an explicit unescape in a Pug template, using either '!=' or '!{...}'. If external data can reach these locations, your application is exposed to a cross-site scripting (XSS) vulnerability. If you must do this, ensure no external data can reach this location." + }, + "helpUri": "https://semgrep.dev/r/javascript.express.security.audit.xss.pug.explicit-unescape.template-explicit-unescape", + "id": "javascript.express.security.audit.xss.pug.explicit-unescape.template-explicit-unescape", + "name": "javascript.express.security.audit.xss.pug.explicit-unescape.template-explicit-unescape", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.express.security.audit.xss.pug.explicit-unescape.template-explicit-unescape" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "RegExp() called with a `$ARG` function argument, this might allow an attacker to cause a Regular Expression Denial-of-Service (ReDoS) within your application as RegExP blocks the main thread. For this reason, it is recommended to use hardcoded regexes instead. If your regex is run on user-controlled input, consider performing input validation or use a regex checking/sanitization library such as https://www.npmjs.com/package/recheck to verify that the regex does not appear vulnerable to ReDoS." + }, + "help": { + "markdown": "RegExp() called with a `$ARG` function argument, this might allow an attacker to cause a Regular Expression Denial-of-Service (ReDoS) within your application as RegExP blocks the main thread. For this reason, it is recommended to use hardcoded regexes instead. If your regex is run on user-controlled input, consider performing input validation or use a regex checking/sanitization library such as https://www.npmjs.com/package/recheck to verify that the regex does not appear vulnerable to ReDoS.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.lang.security.audit.detect-non-literal-regexp.detect-non-literal-regexp)\n - [https://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_ReDoS](https://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_ReDoS)\n", + "text": "RegExp() called with a `$ARG` function argument, this might allow an attacker to cause a Regular Expression Denial-of-Service (ReDoS) within your application as RegExP blocks the main thread. For this reason, it is recommended to use hardcoded regexes instead. If your regex is run on user-controlled input, consider performing input validation or use a regex checking/sanitization library such as https://www.npmjs.com/package/recheck to verify that the regex does not appear vulnerable to ReDoS." + }, + "helpUri": "https://semgrep.dev/r/javascript.lang.security.audit.detect-non-literal-regexp.detect-non-literal-regexp", + "id": "javascript.lang.security.audit.detect-non-literal-regexp.detect-non-literal-regexp", + "name": "javascript.lang.security.audit.detect-non-literal-regexp.detect-non-literal-regexp", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-1333: Inefficient Regular Expression Complexity", + "LOW CONFIDENCE", + "OWASP-A05:2021 - Security Misconfiguration", + "OWASP-A06:2017 - Security Misconfiguration", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.lang.security.audit.detect-non-literal-regexp.detect-non-literal-regexp" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Ensure IAM policies don't allow resource exposure. These actions can expose AWS resources to the public. For example `ecr:SetRepositoryPolicy` could let an attacker retrieve container images. Instead, use another action that doesn't expose AWS resources." + }, + "help": { + "markdown": "Ensure IAM policies don't allow resource exposure. These actions can expose AWS resources to the public. For example `ecr:SetRepositoryPolicy` could let an attacker retrieve container images. Instead, use another action that doesn't expose AWS resources.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.lang.security.iam.no-iam-resource-exposure.no-iam-resource-exposure)\n - [https://cloudsplaining.readthedocs.io/en/latest/glossary/resource-exposure/](https://cloudsplaining.readthedocs.io/en/latest/glossary/resource-exposure/)\n - [https://github.com/bridgecrewio/checkov/blob/ca830e14745c2c8e1b941985f305abe985d7f1f9/checkov/terraform/checks/data/aws/IAMPermissionsManagement.py](https://github.com/bridgecrewio/checkov/blob/ca830e14745c2c8e1b941985f305abe985d7f1f9/checkov/terraform/checks/data/aws/IAMPermissionsManagement.py)\n", + "text": "Ensure IAM policies don't allow resource exposure. These actions can expose AWS resources to the public. For example `ecr:SetRepositoryPolicy` could let an attacker retrieve container images. Instead, use another action that doesn't expose AWS resources." + }, + "helpUri": "https://semgrep.dev/r/terraform.lang.security.iam.no-iam-resource-exposure.no-iam-resource-exposure", + "id": "terraform.lang.security.iam.no-iam-resource-exposure.no-iam-resource-exposure", + "name": "terraform.lang.security.iam.no-iam-resource-exposure.no-iam-resource-exposure", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-200: Exposure of Sensitive Information to an Unauthorized Actor", + "LOW CONFIDENCE", + "OWASP-A01:2021 - Broken Access Control", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.lang.security.iam.no-iam-resource-exposure.no-iam-resource-exposure" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "A hard-coded credential was detected. It is not recommended to store credentials in source-code, as this risks secrets being leaked and used by either an internal or external malicious adversary. It is recommended to use environment variables to securely provide credentials or retrieve credentials from a secure vault or HSM (Hardware Security Module)." + }, + "help": { + "markdown": "A hard-coded credential was detected. It is not recommended to store credentials in source-code, as this risks secrets being leaked and used by either an internal or external malicious adversary. It is recommended to use environment variables to securely provide credentials or retrieve credentials from a secure vault or HSM (Hardware Security Module).\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/terraform.aws.security.aws-provider-static-credentials.aws-provider-static-credentials)\n - [https://cheatsheetseries.owasp.org/cheatsheets/Secrets_Management_Cheat_Sheet.html](https://cheatsheetseries.owasp.org/cheatsheets/Secrets_Management_Cheat_Sheet.html)\n", + "text": "A hard-coded credential was detected. It is not recommended to store credentials in source-code, as this risks secrets being leaked and used by either an internal or external malicious adversary. It is recommended to use environment variables to securely provide credentials or retrieve credentials from a secure vault or HSM (Hardware Security Module)." + }, + "helpUri": "https://semgrep.dev/r/terraform.aws.security.aws-provider-static-credentials.aws-provider-static-credentials", + "id": "terraform.aws.security.aws-provider-static-credentials.aws-provider-static-credentials", + "name": "terraform.aws.security.aws-provider-static-credentials.aws-provider-static-credentials", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-798: Use of Hard-coded Credentials", + "MEDIUM CONFIDENCE", + "OWASP-A07:2021 - Identification and Authentication Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: terraform.aws.security.aws-provider-static-credentials.aws-provider-static-credentials" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Default session middleware settings: `path` not set. It indicates the path of the cookie; use it to compare against the request path. If this and domain match, then send the cookie in the request." + }, + "help": { + "markdown": "Default session middleware settings: `path` not set. It indicates the path of the cookie; use it to compare against the request path. If this and domain match, then send the cookie in the request.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.express.security.audit.express-cookie-settings.express-cookie-session-no-path)\n - [https://owasp.org/Top10/A04_2021-Insecure_Design](https://owasp.org/Top10/A04_2021-Insecure_Design)\n", + "text": "Default session middleware settings: `path` not set. It indicates the path of the cookie; use it to compare against the request path. If this and domain match, then send the cookie in the request." + }, + "helpUri": "https://semgrep.dev/r/javascript.express.security.audit.express-cookie-settings.express-cookie-session-no-path", + "id": "javascript.express.security.audit.express-cookie-settings.express-cookie-session-no-path", + "name": "javascript.express.security.audit.express-cookie-settings.express-cookie-session-no-path", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-522: Insufficiently Protected Credentials", + "MEDIUM CONFIDENCE", + "OWASP-A02:2017 - Broken Authentication", + "OWASP-A04:2021 - Insecure Design", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.express.security.audit.express-cookie-settings.express-cookie-session-no-path" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detects direct creations of $HTTPS servers that don't disallow SSL v2, SSL v3, and TLS v1. These protocols are deprecated due to POODLE, man in the middle attacks, and other vulnerabilities." + }, + "help": { + "markdown": "Detects direct creations of $HTTPS servers that don't disallow SSL v2, SSL v3, and TLS v1. These protocols are deprecated due to POODLE, man in the middle attacks, and other vulnerabilities.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/problem-based-packs.insecure-transport.js-node.disallow-old-tls-versions1.disallow-old-tls-versions1)\n - [https://us-cert.cisa.gov/ncas/alerts/TA14-290A](https://us-cert.cisa.gov/ncas/alerts/TA14-290A)\n - [https://stackoverflow.com/questions/40434934/how-to-disable-the-ssl-3-0-and-tls-1-0-in-nodejs](https://stackoverflow.com/questions/40434934/how-to-disable-the-ssl-3-0-and-tls-1-0-in-nodejs)\n - [https://nodejs.org/api/https.html#https_https_createserver_options_requestlistener](https://nodejs.org/api/https.html#https_https_createserver_options_requestlistener)\n", + "text": "Detects direct creations of $HTTPS servers that don't disallow SSL v2, SSL v3, and TLS v1. These protocols are deprecated due to POODLE, man in the middle attacks, and other vulnerabilities." + }, + "helpUri": "https://semgrep.dev/r/problem-based-packs.insecure-transport.js-node.disallow-old-tls-versions1.disallow-old-tls-versions1", + "id": "problem-based-packs.insecure-transport.js-node.disallow-old-tls-versions1.disallow-old-tls-versions1", + "name": "problem-based-packs.insecure-transport.js-node.disallow-old-tls-versions1.disallow-old-tls-versions1", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-319: Cleartext Transmission of Sensitive Information", + "MEDIUM CONFIDENCE", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: problem-based-packs.insecure-transport.js-node.disallow-old-tls-versions1.disallow-old-tls-versions1" + } + }, + { + "defaultConfiguration": { + "level": "note" + }, + "fullDescription": { + "text": "Translated strings will not be escaped when rendered in a template. This leads to a vulnerability where translators could include malicious script tags in their translations. Consider using `force_escape` to explicitly escape a translated text." + }, + "help": { + "markdown": "Translated strings will not be escaped when rendered in a template. This leads to a vulnerability where translators could include malicious script tags in their translations. Consider using `force_escape` to explicitly escape a translated text.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.django.security.audit.xss.template-blocktranslate-no-escape.template-blocktranslate-no-escape)\n - [https://edx.readthedocs.io/projects/edx-developer-guide/en/latest/preventing_xss/preventing_xss_in_django_templates.html#html-escaping-translations-in-django-templates](https://edx.readthedocs.io/projects/edx-developer-guide/en/latest/preventing_xss/preventing_xss_in_django_templates.html#html-escaping-translations-in-django-templates)\n - [https://docs.djangoproject.com/en/3.1/topics/i18n/translation/#internationalization-in-template-code](https://docs.djangoproject.com/en/3.1/topics/i18n/translation/#internationalization-in-template-code)\n", + "text": "Translated strings will not be escaped when rendered in a template. This leads to a vulnerability where translators could include malicious script tags in their translations. Consider using `force_escape` to explicitly escape a translated text." + }, + "helpUri": "https://semgrep.dev/r/python.django.security.audit.xss.template-blocktranslate-no-escape.template-blocktranslate-no-escape", + "id": "python.django.security.audit.xss.template-blocktranslate-no-escape.template-blocktranslate-no-escape", + "name": "python.django.security.audit.xss.template-blocktranslate-no-escape.template-blocktranslate-no-escape", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.django.security.audit.xss.template-blocktranslate-no-escape.template-blocktranslate-no-escape" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected a template variable used in a script tag. Although template variables are HTML escaped, HTML escaping does not always prevent cross-site scripting (XSS) attacks when used directly in JavaScript. If you need this data on the rendered page, consider placing it in the HTML portion (outside of a script tag). Alternatively, use a JavaScript-specific encoder, such as the one available in OWASP ESAPI." + }, + "help": { + "markdown": "Detected a template variable used in a script tag. Although template variables are HTML escaped, HTML escaping does not always prevent cross-site scripting (XSS) attacks when used directly in JavaScript. If you need this data on the rendered page, consider placing it in the HTML portion (outside of a script tag). Alternatively, use a JavaScript-specific encoder, such as the one available in OWASP ESAPI.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.express.security.audit.xss.ejs.var-in-script-tag.var-in-script-tag)\n - [https://www.veracode.com/blog/secure-development/nodejs-template-engines-why-default-encoders-are-not-enough](https://www.veracode.com/blog/secure-development/nodejs-template-engines-why-default-encoders-are-not-enough)\n - [https://github.com/ESAPI/owasp-esapi-js](https://github.com/ESAPI/owasp-esapi-js)\n", + "text": "Detected a template variable used in a script tag. Although template variables are HTML escaped, HTML escaping does not always prevent cross-site scripting (XSS) attacks when used directly in JavaScript. If you need this data on the rendered page, consider placing it in the HTML portion (outside of a script tag). Alternatively, use a JavaScript-specific encoder, such as the one available in OWASP ESAPI." + }, + "helpUri": "https://semgrep.dev/r/javascript.express.security.audit.xss.ejs.var-in-script-tag.var-in-script-tag", + "id": "javascript.express.security.audit.xss.ejs.var-in-script-tag.var-in-script-tag", + "name": "javascript.express.security.audit.xss.ejs.var-in-script-tag.var-in-script-tag", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "OWASP-A07:2017 - Cross-Site Scripting (XSS)", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.express.security.audit.xss.ejs.var-in-script-tag.var-in-script-tag" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Calling assert with user input is equivalent to eval'ing." + }, + "help": { + "markdown": "Calling assert with user input is equivalent to eval'ing.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/php.lang.security.assert-use.assert-use)\n - [https://www.php.net/manual/en/function.assert](https://www.php.net/manual/en/function.assert)\n - [https://github.com/FloeDesignTechnologies/phpcs-security-audit/blob/master/Security/Sniffs/BadFunctions/AssertsSniff.php](https://github.com/FloeDesignTechnologies/phpcs-security-audit/blob/master/Security/Sniffs/BadFunctions/AssertsSniff.php)\n", + "text": "Calling assert with user input is equivalent to eval'ing." + }, + "helpUri": "https://semgrep.dev/r/php.lang.security.assert-use.assert-use", + "id": "php.lang.security.assert-use.assert-use", + "name": "php.lang.security.assert-use.assert-use", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')", + "HIGH CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: php.lang.security.assert-use.assert-use" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "This code contains bidirectional (bidi) characters. While this is useful for support of right-to-left languages such as Arabic or Hebrew, it can also be used to trick language parsers into executing code in a manner that is different from how it is displayed in code editing and review tools. If this is not what you were expecting, please review this code in an editor that can reveal hidden Unicode characters." + }, + "help": { + "markdown": "This code contains bidirectional (bidi) characters. While this is useful for support of right-to-left languages such as Arabic or Hebrew, it can also be used to trick language parsers into executing code in a manner that is different from how it is displayed in code editing and review tools. If this is not what you were expecting, please review this code in an editor that can reveal hidden Unicode characters.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/generic.unicode.security.bidi.contains-bidirectional-characters)\n - [https://trojansource.codes/](https://trojansource.codes/)\n", + "text": "This code contains bidirectional (bidi) characters. While this is useful for support of right-to-left languages such as Arabic or Hebrew, it can also be used to trick language parsers into executing code in a manner that is different from how it is displayed in code editing and review tools. If this is not what you were expecting, please review this code in an editor that can reveal hidden Unicode characters." + }, + "helpUri": "https://semgrep.dev/r/generic.unicode.security.bidi.contains-bidirectional-characters", + "id": "generic.unicode.security.bidi.contains-bidirectional-characters", + "name": "generic.unicode.security.bidi.contains-bidirectional-characters", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-94: Improper Control of Generation of Code ('Code Injection')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: generic.unicode.security.bidi.contains-bidirectional-characters" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "The code must not contain any of Unicode Direction Control Characters" + }, + "help": { + "markdown": "The code must not contain any of Unicode Direction Control Characters\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/solidity.security.no-bidi-characters.no-bidi-characters)\n - [https://entethalliance.org/specs/ethtrust-sl/v1/#req-1-unicode-bdo](https://entethalliance.org/specs/ethtrust-sl/v1/#req-1-unicode-bdo)\n", + "text": "The code must not contain any of Unicode Direction Control Characters" + }, + "helpUri": "https://semgrep.dev/r/solidity.security.no-bidi-characters.no-bidi-characters", + "id": "solidity.security.no-bidi-characters.no-bidi-characters", + "name": "solidity.security.no-bidi-characters.no-bidi-characters", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-837: Improper Enforcement of a Single, Unique Action", + "HIGH CONFIDENCE", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: solidity.security.no-bidi-characters.no-bidi-characters" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "The protocol scheme for this proxy is dynamically determined. This can be dangerous if the scheme can be injected by an attacker because it may forcibly alter the connection scheme. Consider hardcoding a scheme for this proxy." + }, + "help": { + "markdown": "The protocol scheme for this proxy is dynamically determined. This can be dangerous if the scheme can be injected by an attacker because it may forcibly alter the connection scheme. Consider hardcoding a scheme for this proxy.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/generic.nginx.security.dynamic-proxy-scheme.dynamic-proxy-scheme)\n - [https://github.com/yandex/gixy/blob/master/docs/en/plugins/ssrf.md](https://github.com/yandex/gixy/blob/master/docs/en/plugins/ssrf.md)\n", + "text": "The protocol scheme for this proxy is dynamically determined. This can be dangerous if the scheme can be injected by an attacker because it may forcibly alter the connection scheme. Consider hardcoding a scheme for this proxy." + }, + "helpUri": "https://semgrep.dev/r/generic.nginx.security.dynamic-proxy-scheme.dynamic-proxy-scheme", + "id": "generic.nginx.security.dynamic-proxy-scheme.dynamic-proxy-scheme", + "name": "generic.nginx.security.dynamic-proxy-scheme.dynamic-proxy-scheme", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-16: CWE CATEGORY: Configuration", + "MEDIUM CONFIDENCE", + "OWASP-A05:2021 - Security Misconfiguration", + "OWASP-A06:2017 - Security Misconfiguration", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: generic.nginx.security.dynamic-proxy-scheme.dynamic-proxy-scheme" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Usage of the insecure ECB mode detected. You should use an authenticated encryption mode instead, which is implemented by the classes AesGcm or ChaCha20Poly1305." + }, + "help": { + "markdown": "Usage of the insecure ECB mode detected. You should use an authenticated encryption mode instead, which is implemented by the classes AesGcm or ChaCha20Poly1305.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/csharp.dotnet.security.use_ecb_mode.use_ecb_mode)\n - [https://learn.microsoft.com/en-gb/dotnet/api/system.security.cryptography.chacha20poly1305?view=net-6.0](https://learn.microsoft.com/en-gb/dotnet/api/system.security.cryptography.chacha20poly1305?view=net-6.0)\n - [https://learn.microsoft.com/en-gb/dotnet/api/system.security.cryptography.aesgcm?view=net-6.0](https://learn.microsoft.com/en-gb/dotnet/api/system.security.cryptography.aesgcm?view=net-6.0)\n - [https://learn.microsoft.com/en-gb/dotnet/api/system.security.cryptography.ciphermode?view=net-6.0](https://learn.microsoft.com/en-gb/dotnet/api/system.security.cryptography.ciphermode?view=net-6.0)\n - [https://cheatsheetseries.owasp.org/cheatsheets/Cryptographic_Storage_Cheat_Sheet.html#cipher-modes](https://cheatsheetseries.owasp.org/cheatsheets/Cryptographic_Storage_Cheat_Sheet.html#cipher-modes)\n", + "text": "Usage of the insecure ECB mode detected. You should use an authenticated encryption mode instead, which is implemented by the classes AesGcm or ChaCha20Poly1305." + }, + "helpUri": "https://semgrep.dev/r/csharp.dotnet.security.use_ecb_mode.use_ecb_mode", + "id": "csharp.dotnet.security.use_ecb_mode.use_ecb_mode", + "name": "csharp.dotnet.security.use_ecb_mode.use_ecb_mode", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-327: Use of a Broken or Risky Cryptographic Algorithm", + "HIGH CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: csharp.dotnet.security.use_ecb_mode.use_ecb_mode" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "User data flows into this manually-constructed SQL string. User data can be safely inserted into SQL strings using prepared statements or an object-relational mapper (ORM). Manually-constructed SQL strings is a possible indicator of SQL injection, which could let an attacker steal or manipulate data from the database. Instead, use prepared statements (`connection.PreparedStatement`) or a safe library." + }, + "help": { + "markdown": "User data flows into this manually-constructed SQL string. User data can be safely inserted into SQL strings using prepared statements or an object-relational mapper (ORM). Manually-constructed SQL strings is a possible indicator of SQL injection, which could let an attacker steal or manipulate data from the database. Instead, use prepared statements (`connection.PreparedStatement`) or a safe library.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/java.spring.security.injection.tainted-sql-string.tainted-sql-string)\n - [https://docs.oracle.com/javase/7/docs/api/java/sql/PreparedStatement.html](https://docs.oracle.com/javase/7/docs/api/java/sql/PreparedStatement.html)\n", + "text": "User data flows into this manually-constructed SQL string. User data can be safely inserted into SQL strings using prepared statements or an object-relational mapper (ORM). Manually-constructed SQL strings is a possible indicator of SQL injection, which could let an attacker steal or manipulate data from the database. Instead, use prepared statements (`connection.PreparedStatement`) or a safe library." + }, + "helpUri": "https://semgrep.dev/r/java.spring.security.injection.tainted-sql-string.tainted-sql-string", + "id": "java.spring.security.injection.tainted-sql-string.tainted-sql-string", + "name": "java.spring.security.injection.tainted-sql-string.tainted-sql-string", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')", + "MEDIUM CONFIDENCE", + "OWASP-A01:2017 - Injection", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: java.spring.security.injection.tainted-sql-string.tainted-sql-string" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "Using 'globals()' as a context to 'render(...)' is extremely dangerous. This exposes Python functions to the template that were not meant to be exposed. An attacker could use these functions to execute code that was not intended to run and could compromise the application. (This is server-side template injection (SSTI)). Do not use 'globals()'. Instead, specify each variable in a dictionary or 'django.template.Context' object, like '{\"var1\": \"hello\"}' and use that instead." + }, + "help": { + "markdown": "Using 'globals()' as a context to 'render(...)' is extremely dangerous. This exposes Python functions to the template that were not meant to be exposed. An attacker could use these functions to execute code that was not intended to run and could compromise the application. (This is server-side template injection (SSTI)). Do not use 'globals()'. Instead, specify each variable in a dictionary or 'django.template.Context' object, like '{\"var1\": \"hello\"}' and use that instead.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/python.django.security.globals-as-template-context.globals-as-template-context)\n - [https://docs.djangoproject.com/en/3.2/ref/settings/#templates](https://docs.djangoproject.com/en/3.2/ref/settings/#templates)\n - [https://docs.djangoproject.com/en/3.2/topics/templates/#django.template.backends.django.DjangoTemplates](https://docs.djangoproject.com/en/3.2/topics/templates/#django.template.backends.django.DjangoTemplates)\n - [https://docs.djangoproject.com/en/3.2/ref/templates/api/#rendering-a-context](https://docs.djangoproject.com/en/3.2/ref/templates/api/#rendering-a-context)\n", + "text": "Using 'globals()' as a context to 'render(...)' is extremely dangerous. This exposes Python functions to the template that were not meant to be exposed. An attacker could use these functions to execute code that was not intended to run and could compromise the application. (This is server-side template injection (SSTI)). Do not use 'globals()'. Instead, specify each variable in a dictionary or 'django.template.Context' object, like '{\"var1\": \"hello\"}' and use that instead." + }, + "helpUri": "https://semgrep.dev/r/python.django.security.globals-as-template-context.globals-as-template-context", + "id": "python.django.security.globals-as-template-context.globals-as-template-context", + "name": "python.django.security.globals-as-template-context.globals-as-template-context", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-96: Improper Neutralization of Directives in Statically Saved Code ('Static Code Injection')", + "LOW CONFIDENCE", + "OWASP-A03:2021 - Injection", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: python.django.security.globals-as-template-context.globals-as-template-context" + } + }, + { + "defaultConfiguration": { + "level": "error" + }, + "fullDescription": { + "text": "By not specifying a USER, a program in the container may run as 'root'. This is a security hazard. If an attacker can control a process running as root, they may have control over the container. Ensure that the last USER in a Dockerfile is a USER other than 'root'." + }, + "help": { + "markdown": "By not specifying a USER, a program in the container may run as 'root'. This is a security hazard. If an attacker can control a process running as root, they may have control over the container. Ensure that the last USER in a Dockerfile is a USER other than 'root'.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/dockerfile.security.missing-user-entrypoint.missing-user-entrypoint)\n - [https://owasp.org/Top10/A04_2021-Insecure_Design](https://owasp.org/Top10/A04_2021-Insecure_Design)\n", + "text": "By not specifying a USER, a program in the container may run as 'root'. This is a security hazard. If an attacker can control a process running as root, they may have control over the container. Ensure that the last USER in a Dockerfile is a USER other than 'root'." + }, + "helpUri": "https://semgrep.dev/r/dockerfile.security.missing-user-entrypoint.missing-user-entrypoint", + "id": "dockerfile.security.missing-user-entrypoint.missing-user-entrypoint", + "name": "dockerfile.security.missing-user-entrypoint.missing-user-entrypoint", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-269: Improper Privilege Management", + "MEDIUM CONFIDENCE", + "OWASP-A04:2021 - Insecure Design", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: dockerfile.security.missing-user-entrypoint.missing-user-entrypoint" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "By setting `allErrors: true` in `Ajv` library, all error objects will be allocated without limit. This allows the attacker to produce a huge number of errors which can lead to denial of service. Do not use `allErrors: true` in production." + }, + "help": { + "markdown": "By setting `allErrors: true` in `Ajv` library, all error objects will be allocated without limit. This allows the attacker to produce a huge number of errors which can lead to denial of service. Do not use `allErrors: true` in production.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/javascript.ajv.security.audit.ajv-allerrors-true.ajv-allerrors-true)\n - [https://ajv.js.org/options.html#allerrors](https://ajv.js.org/options.html#allerrors)\n", + "text": "By setting `allErrors: true` in `Ajv` library, all error objects will be allocated without limit. This allows the attacker to produce a huge number of errors which can lead to denial of service. Do not use `allErrors: true` in production." + }, + "helpUri": "https://semgrep.dev/r/javascript.ajv.security.audit.ajv-allerrors-true.ajv-allerrors-true", + "id": "javascript.ajv.security.audit.ajv-allerrors-true.ajv-allerrors-true", + "name": "javascript.ajv.security.audit.ajv-allerrors-true.ajv-allerrors-true", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-400: Uncontrolled Resource Consumption", + "LOW CONFIDENCE", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: javascript.ajv.security.audit.ajv-allerrors-true.ajv-allerrors-true" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Detected SHA1 hash algorithm which is considered insecure. SHA1 is not collision resistant and is therefore not suitable as a cryptographic signature. Use SHA256 or SHA3 instead." + }, + "help": { + "markdown": "Detected SHA1 hash algorithm which is considered insecure. SHA1 is not collision resistant and is therefore not suitable as a cryptographic signature. Use SHA256 or SHA3 instead.\n\nReferences:\n - [Semgrep Rule](https://semgrep.dev/r/go.lang.security.audit.crypto.use_of_weak_crypto.use-of-sha1)\n - [https://owasp.org/Top10/A02_2021-Cryptographic_Failures](https://owasp.org/Top10/A02_2021-Cryptographic_Failures)\n", + "text": "Detected SHA1 hash algorithm which is considered insecure. SHA1 is not collision resistant and is therefore not suitable as a cryptographic signature. Use SHA256 or SHA3 instead." + }, + "helpUri": "https://semgrep.dev/r/go.lang.security.audit.crypto.use_of_weak_crypto.use-of-sha1", + "id": "go.lang.security.audit.crypto.use_of_weak_crypto.use-of-sha1", + "name": "go.lang.security.audit.crypto.use_of_weak_crypto.use-of-sha1", + "properties": { + "precision": "very-high", + "tags": [ + "CWE-327: Use of a Broken or Risky Cryptographic Algorithm", + "MEDIUM CONFIDENCE", + "OWASP-A02:2021 - Cryptographic Failures", + "OWASP-A03:2017 - Sensitive Data Exposure", + "security" + ] + }, + "shortDescription": { + "text": "Semgrep Finding: go.lang.security.audit.crypto.use_of_weak_crypto.use-of-sha1" + } + }, + { + "defaultConfiguration": { + "level": "warning" + }, + "fullDescription": { + "text": "Consuming CDNs without including a SubResource Integrity (SRI) can expose your application and its users to compromised code. SRIs allow you to consume specific versions of content where if even a single byte is compromised, the resource will not be loaded. Add an integrity attribute to your