ubon
Version:
Security scanner for AI-generated apps (Cursor, Lovable, Windsurf, v0). Catches hardcoded secrets, prompt injection, hallucinated imports, Server Actions / Edge runtime mistakes, and the vibe-coded vulnerabilities traditional linters miss.
27 lines • 975 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const rule = {
meta: {
id: 'SEC003',
category: 'security',
severity: 'high',
message: 'Supabase anon key hardcoded (JWT token pattern)',
fix: 'Use NEXT_PUBLIC_SUPABASE_ANON_KEY environment variable',
impact: 'Exposed database keys allow unauthorized access to your Supabase instance'
},
impl: {
patterns: [
{
ruleId: 'SEC003',
confidence: 0.95,
pattern: /(['"`])eyJ[A-Za-z0-9_-]*\.[A-Za-z0-9_-]*\.[A-Za-z0-9_-]*\1/gi,
message: 'Supabase anon key hardcoded (JWT token pattern)',
severity: 'high',
fix: 'Use NEXT_PUBLIC_SUPABASE_ANON_KEY environment variable'
}
],
fileTypes: ['js', 'jsx', 'ts', 'tsx', 'svelte', 'astro', 'env']
}
};
exports.default = rule;
//# sourceMappingURL=SEC003.js.map