UNPKG

mcp-server-semgrep

Version:

MCP Server for Semgrep Integration - static code analysis with AI

51 lines (50 loc) 1.47 kB
rules: - id: mass-assignment message: Mass assignment or Autobinding vulnerability in code allows an attacker to execute over-posting attacks, which could create a new parameter in the binding request and manipulate the underlying object in the application. severity: WARNING metadata: likelihood: MEDIUM impact: MEDIUM confidence: MEDIUM category: security cwe: - 'CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes' owasp: - A08:2021 - Software and Data Integrity Failures references: - https://cwe.mitre.org/data/definitions/915.html - https://github.com/OWASP/API-Security/blob/master/2019/en/src/0xa6-mass-assignment.md subcategory: - vuln technology: - .net languages: - csharp mode: taint pattern-sources: - patterns: - pattern-either: - pattern: | public IActionResult $METHOD(..., $TYPE $ARG, ...){ ... } - pattern: | public ActionResult $METHOD(..., $TYPE $ARG, ...){ ... } - pattern-inside: | using Microsoft.AspNetCore.Mvc; ... - pattern-not: | public IActionResult $METHOD(..., [Bind(...)] $TYPE $ARG, ...){ ... } - pattern-not: | public ActionResult $METHOD(..., [Bind(...)] $TYPE $ARG, ...){ ... } - focus-metavariable: $ARG pattern-sinks: - pattern: View(...)