Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By danielmiesslerv1.0.0MITIn 1 marketplace
Finds SQL injection flaws in your code and suggests parameterized query fixes for MySQL, PostgreSQL, SQL Server, Oracle and SQLite. Its README says it also runs safe proof-of-concept exploit checks against your app, so use it only on systems you own.
You run one by typing its /name in Claude Code.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
SQL, PostgreSQL, MySQL, SQLite, SQL Server, Oracle
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Comprehensive SQL injection vulnerability detection with pattern matching, context analysis, and exploit verification.
/plugin install sql-injection-detector@claude-code-plugins-plus
/detect-sqli
# Or shortcut
/sqli
Scans for dangerous patterns:
Checks all input sources:
Understands query context:
// VULNERABLE
const query = `SELECT * FROM users WHERE username='${username}'`;
db.query(query);
// Exploit
username = "admin' OR '1'='1' --"
// Results in: SELECT * FROM users WHERE username='admin' OR '1'='1' --'
// SECURE
const query = 'SELECT * FROM users WHERE username = ?';
db.query(query, [username]);
// VULNERABLE
app.post('/register', (req, res) => {
const username = req.body.username;
db.query(`INSERT INTO users (username) VALUES ('${username}')`);
});
app.get('/profile', (req, res) => {
const username = req.session.username;
// Unsafe use of previously stored data
db.query(`SELECT * FROM profiles WHERE username='${username}'`);
});
// Attack
username = "admin' OR '1'='1' --"
// Stored in database during registration
// Exploited when profile is loaded
// SECURE
Use parameterized queries for all database interactions
// VULNERABLE (Sequelize)
User.findAll({
where: {
username: req.query.username,
$or: req.query.filter // User-controlled raw query
}
});
// SECURE
User.findAll({
where: {
username: req.query.username
}
});
// VULNERABLE
const query = `SELECT * FROM products WHERE id=${id}`;
const result = db.query(query);
// No error message, but behavior changes
// Time-based blind SQLi exploit
id = "1 AND SLEEP(5)--"
// SECURE
const query = 'SELECT * FROM products WHERE id = ?';
db.query(query, [id]);
SQL INJECTION SCAN REPORT
=========================
Files Scanned: 247
Vulnerabilities Found: 12
Critical: 8
High: 3
Medium: 1
CRITICAL VULNERABILITIES
------------------------
1. SQL Injection in User Authentication
File: src/auth/login.js:45
Severity: CRITICAL (CVSS 9.8)
Database: MySQL
Vulnerable Code:
const query = `SELECT * FROM users WHERE username='${username}' AND [REDACTED:Password]`;
const user = await db.query(query);
Attack Vector:
username: admin' --
password: anything
Resulting Query:
SELECT * FROM users WHERE username='admin' --' AND [REDACTED:Password]
Impact:
- Authentication bypass
- Access to all user accounts
- Complete database access
Proof of Concept:
curl -X POST http://localhost:3000/api/login \
-H "Content-Type: application/json" \
-d '{"username":"admin'\'' --","password":"anything"}'
Remediation:
const query = 'SELECT * FROM users WHERE username = ? AND password = ?';
const user = await db.query(query, [username, hashedPassword]);
Additional Security:
- Use bcrypt for password hashing
- Implement rate limiting
- Add account lockout
- Log failed attempts
2. SQL Injection in Product Search
File: src/api/products.js:78
Severity: CRITICAL (CVSS 9.1)
Database: PostgreSQL
Vulnerable Code:
app.get('/api/products/search', (req, res) => {
const searchQuery = `
SELECT * FROM products
WHERE name LIKE '%${req.query.q}%'
ORDER BY ${req.query.sort}
`;
const results = db.query(searchQuery);
res.json(results);
});
Attack Vectors:
1. UNION-based extraction:
q=test%' UNION SELECT username,password,email FROM users--
2. ORDER BY injection:
sort=price; DROP TABLE products--
Impact:
- Complete database extraction
- Data modification/deletion
- Privilege escalation
Remediation:
app.get('/api/products/search', async (req, res) => {
const allowedSorts = ['price', 'name', 'date'];
const sort = allowedSorts.includes(req.query.sort) ? req.query.sort : 'name';
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub danielmiessler/claude-code-plugins-plus --plugin sql-injection-detectorPlugins from other owners that cover similar ground