mcp-server-semgrep
Version:
MCP Server for Semgrep Integration - static code analysis with AI
32 lines (31 loc) • 864 B
YAML
rules:
- id: http-customized-request
message: >-
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.
severity: WARNING
metadata:
likelihood: MEDIUM
impact: MEDIUM
confidence: MEDIUM
category: security
cwe: 'CWE-319: Cleartext Transmission of Sensitive Information'
owasp: 'A03:2017 - Sensitive Data Exposure'
references:
- https://golang.org/pkg/net/http/#NewRequest
subcategory:
- vuln
technology:
- go
vulnerability: Insecure Transport
languages:
- go
fix-regex:
regex: '[Hh][Tt][Tt][Pp]://'
replacement: https://
count: 1
pattern: |
http.NewRequest(..., "=~/[hH][tT][tT][pP]://.*/", ...)