UNPKG

mcp-server-semgrep

Version:

MCP Server for Semgrep Integration - static code analysis with AI

36 lines (35 loc) 1.04 kB
rules: - id: misconfigured-lockout-option message: >- A misconfigured lockout mechanism allows an attacker to execute brute-force attacks. Account lockout must be correctly configured and enabled to prevent these attacks. severity: WARNING metadata: likelihood: LOW impact: HIGH confidence: LOW category: security cwe: - 'CWE-307: Improper Restriction of Excessive Authentication Attempts' owasp: - A07:2021 - Identification and Authentication Failures references: - https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures - https://cwe.mitre.org/data/definitions/307.html subcategory: - audit technology: - dotnet languages: - csharp patterns: - pattern-either: - pattern: | $SIGNIN.PasswordSignInAsync(...,lockoutOnFailure: false,...); - pattern: | $SIGNIN.CheckPasswordSignInAsync(...,lockoutOnFailure: false,...); - pattern-inside: | public async $TYPE<IActionResult> $METHOD(...) { ... }