mcp-server-semgrep
Version:
MCP Server for Semgrep Integration - static code analysis with AI
36 lines (35 loc) • 921 B
YAML
rules:
- id: ruby-jwt-exposed-data
message: >-
The object is passed strictly to jsonwebtoken.sign(...)
Make sure that sensitive information is not exposed through JWT token payload.
severity: WARNING
metadata:
owasp:
- A02:2017 - Broken Authentication
- A04:2021 - Insecure Design
cwe:
- 'CWE-522: Insufficiently Protected Credentials'
source-rule-url: https://semgrep.dev/blog/2020/hardcoded-secrets-unverified-tokens-and-other-common-jwt-mistakes/
category: security
technology:
- jwt
references:
- https://owasp.org/Top10/A04_2021-Insecure_Design
cwe2021-top25: true
subcategory:
- audit
likelihood: LOW
impact: LOW
confidence: LOW
languages: [ruby]
patterns:
- pattern-inside: |
require 'jwt'
...
- pattern-inside: |
def $FUNC(...,$INPUT,...)
...
end
- pattern: |
JWT.encode($INPUT,...)