mcp-server-semgrep
Version:
MCP Server for Semgrep Integration - static code analysis with AI
34 lines (33 loc) • 946 B
YAML
rules:
- id: curl-eval
severity: WARNING
languages:
- bash
message: 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.
metadata:
owasp:
- A03:2021 - Injection
cwe:
- "CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')"
category: security
technology:
- bash
- curl
confidence: MEDIUM
references:
- https://owasp.org/Top10/A03_2021-Injection
subcategory:
- vuln
likelihood: MEDIUM
impact: MEDIUM
mode: taint
pattern-sources:
- pattern: |
$(curl ...)
- pattern: |
`curl ...`
pattern-sinks:
- pattern: eval ...