UNPKG

mcp-server-semgrep

Version:

MCP Server for Semgrep Integration - static code analysis with AI

35 lines (34 loc) 1.04 kB
rules: - id: insecure-urlretrieve-ftp message: >- 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. metadata: owasp: - A03:2017 - Sensitive Data Exposure - A02:2021 - Cryptographic Failures cwe: - 'CWE-319: Cleartext Transmission of Sensitive Information' references: - https://docs.python.org/3/library/urllib.request.html#urllib.request.urlretrieve category: security technology: - urllib subcategory: - audit likelihood: LOW impact: LOW confidence: LOW severity: WARNING languages: [python] pattern-either: - pattern: urllib.request.urlretrieve("=~/^[Ff][Tt][Pp]://.*/", ...) - pattern: | $URL = "=~/^[Ff][Tt][Pp]://.*/" ... urllib.request.urlretrieve($URL, ...) - pattern: |- def $FUNC(..., $URL = "=~/^[Ff][Tt][Pp]://.*/", ...): ... urllib.request.urlretrieve($URL, ...)