Index of every page on this site: llms.txt
All skills
jeremylongshore avatar

/detecting-sql-injection-vulnerabilities

@0d57af8
Run it yourself

Detect and analyze SQL injection vulnerabilities in application code and database queries. Use when you need to scan code for SQL injection risks, review query construction, validate input sanitization, or implement secure query patterns. Trigger with phrases like "detect SQL injection", "scan for SQLi vulnerabilities", "review database queries", or "check SQL security".

Use this Skill: https://skilld.dev/gh/jeremylongshore/tons-of-skills-marketplace/detecting-sql-injection-vulnerabilities

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencescritical-findings.md

≈341 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Critical Findings

Critical Findings

1. Authentication Bypass via SQL Injection

File: ${CLAUDE_SKILL_DIR}/src/auth/login.py Line: 45 Severity: CRITICAL (CVSS 9.8)

Vulnerable Code:

def authenticate_user(username, password):
    query = f"SELECT * FROM users WHERE username='{username}' AND password='{password}'"
    user = db.execute(query).fetchone()
    return user is not None

Attack Vector:

Username: admin' --
Password: anything

Resulting Query: SELECT * FROM users WHERE username='admin' --' AND password='anything'
Effect: Password check bypassed, authentication as admin succeeds

Impact:

  • Complete authentication bypass
  • Unauthorized access to any account
  • Administrative privilege escalation
  • No audit trail of compromise

Remediation:

def authenticate_user(username, password):
    query = "SELECT * FROM users WHERE username=%s AND password=%s"
    user = db.execute(query, (username, password)).fetchone()
    return user is not None

Additional Recommendations:

  • Use password hashing (bcrypt, Argon2)
  • Implement account lockout after failed attempts
  • Add MFA for admin accounts

2. Data Exfiltration via UNION-based SQLi

File: ${CLAUDE_SKILL_DIR}/src/api/products.py Line: 78 Severity: CRITICAL (CVSS 8.6)

[Similar detailed structure...]

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    This skill provides tools and instructions for identifying SQL injection vulnerabilities by analyzing source code and database interactions. It includes payloads and scripts for scanning and exploitation verification. The primary security consideration is the potential for indirect prompt injection when the agent processes untrusted code files.

  • Socket2mo

    1 alert: gptSecurity

  • Snyk2mo

    Risk: LOW · No issues

Signed by skilld at 0d57af8. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated last month
What it can do
Reads files Edits files Runs commands
version
1.32.0
author
Jeremy Longshore <jeremy@intentsolutions.io>
tags
[
  "security",
  "database",
  "detecting-sql"
]
All 7 allowed tools
ReadWriteEditGrepGlobBash(code-scan:*)Bash(security-test:*)
Other metadata
compatibility
Designed for Claude Code

README badge

README badge for jeremylongshore/tons-of-skills-marketplace/detecting-sql-injection-vulnerabilities