UNPKG

mcp-server-semgrep

Version:

MCP Server for Semgrep Integration - static code analysis with AI

34 lines (33 loc) 928 B
rules: - id: dangerous-open3-pipeline patterns: - pattern: | Open3.$PIPE(...) - pattern-not: | Open3.$PIPE(...,"...",...) - metavariable-regex: metavariable: $PIPE regex: ^(pipeline|pipeline_r|pipeline_rw|pipeline_start|pipeline_w)$ message: >- 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. metadata: cwe: - "CWE-94: Improper Control of Generation of Code ('Code Injection')" owasp: - A03:2021 - Injection category: security technology: - ruby references: - https://owasp.org/Top10/A03_2021-Injection cwe2022-top25: true subcategory: - audit likelihood: LOW impact: HIGH confidence: LOW severity: WARNING languages: [ruby]