advisory-mining
Mine GitHub Security Advisories and CVE databases for incomplete fixes, finding variant vulnerabilities in patched code or…
Detect authentication and authorization bypass vulnerabilities including missing auth middleware, JWT algorithm confusion, IDOR, and session fixation.
Claude Code
$ npx -y skills add ByamB4/find-cve-agent --skill auth-bypass --agent claude-code
Codex
$ npx skills add ByamB4/find-cve-agent --skill auth-bypass -a codex -y
Cursor
$ npx skills add ByamB4/find-cve-agent --skill auth-bypass -a cursor -y
Gemini CLI
$ npx skills add ByamB4/find-cve-agent --skill auth-bypass -a gemini-cli -y
GitHub Copilot
$ npx skills add ByamB4/find-cve-agent --skill auth-bypass -a github-copilot -y
OpenCode
$ npx skills add ByamB4/find-cve-agent --skill auth-bypass -a opencode -y
Windsurf
$ npx skills add ByamB4/find-cve-agent --skill auth-bypass -a windsurf -y
name: auth-bypass
description: "Detect authentication and authorization bypass vulnerabilities including missing auth middleware, JWT algorithm confusion, IDOR, and session fixation."
metadata:
filePattern:
- "**/*.js"
- "**/*.ts"
- "**/*.py"
- "**/*.go"
- "**/*.rb"
bashPattern:
- "grep.*(auth|login|session|jwt|token|middleware)"
priority: 88Audit web frameworks, API gateways, admin panels, CMS systems, and any application with role-based access control.
# Express.js grep -rn "app\.get\|app\.post\|app\.put\|app\.delete\|app\.patch\|router\." . # Django grep -rn "path(\|url(\|urlpatterns" . # Flask grep -rn "@app\.route\|@blueprint\.route" . # Go grep -rn "HandleFunc\|Handle\|mux\.\|router\." . # Rails grep -rn "get \|post \|put \|delete \|patch " config/routes.rb
# Express grep -rn "isAuthenticated\|requireAuth\|authMiddleware\|passport\|jwt\.verify" . grep -rn "app\.use(.*auth\|router\.use(.*auth" . # Django grep -rn "login_required\|permission_required\|@permission_classes\|IsAuthenticated" . # Flask grep -rn "login_required\|@jwt_required\|current_user" . # Go grep -rn "AuthMiddleware\|RequireAuth\|WithAuth" . # Rails grep -rn "before_action.*authenticate\|before_action.*authorize" .
For EACH route, verify: 1. Is auth middleware applied? 2. Is it the RIGHT auth level? (user vs admin) 3. Is it applied to ALL HTTP methods? (GET might be protected but PUT is not) 4. Are there any conditional bypasses?
# JWT issues grep -rn "algorithms\|algorithm\|alg\|verify.*false\|verify.*False" . grep -rn "jwt\.decode\|jwt\.verify\|jose\|jsonwebtoken" . # Session fixation grep -rn "session\.regenerate\|session\.destroy" . # IDOR (missing ownership check) grep -rn "findById\|findOne\|params\.id\|req\.params" .
// Protected
app.get('/api/users', authMiddleware, getUsers);
// MISSING AUTH
app.get('/api/users/:id/export', exportUser); // No middleware!// VULNERABLE: accepts algorithm from token header
jwt.verify(token, publicKey); // If alg=HS256, public key used as HMAC secret
// SAFE: specifies allowed algorithms
jwt.verify(token, publicKey, { algorithms: ['RS256'] });app.get('/api/documents/:id', auth, (req, res) => {
// VULNERABLE: finds document by ID without checking owner
const doc = await Document.findById(req.params.id);
res.json(doc);
// SAFE: checks ownership
const doc = await Document.findOne({ _id: req.params.id, owner: req.user.id });
});Open Source CVE Hunting Harness for Claude Code A Claude Code plugin that systematically finds real CVEs in open source packages through coordinated multi-agent security research.
Mine GitHub Security Advisories and CVE databases for incomplete fixes, finding variant vulnerabilities in patched code or…
Detect code injection vulnerabilities in packages that dynamically generate or evaluate code via new Function(), eval(), vm.run*,…
Detect OS command injection via shell execution sinks where user-controlled input reaches system commands without proper…
Cross-pollination multiplier technique: find a vulnerability in one package, then search for the same pattern across all similar…
Detect decompression bomb vulnerabilities where compressed input can expand to exhaust memory, targeting buffer-based…
Detect XML/SVG/YAML entity expansion (Billion Laughs) vulnerabilities in parsers that allow unbounded entity definitions.
Use for authorized security assessment of REST, GraphQL, WebSocket, or SOAP APIs, including discovery, authentication,…
Extract and decrypt Windows DPAPI-protected secrets (Credential Manager, browser logins/cookies, Wi-Fi credentials, KeePass keys)…
Clean and finalize authorized natural-language text intended for readers by auditing suspicious invisible Unicode and rewriting…