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 • 948 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const rule = {
meta: {
id: 'SEC002',
category: 'security',
severity: 'medium',
message: 'Supabase URL hardcoded (should use env var)',
fix: 'Use NEXT_PUBLIC_SUPABASE_URL environment variable',
impact: 'Hardcoded URLs make it difficult to manage different environments securely'
},
impl: {
patterns: [
{
ruleId: 'SEC002',
confidence: 0.8,
pattern: /(['"`])https:\/\/[a-zA-Z0-9]+\.supabase\.co\1/gi,
message: 'Supabase URL hardcoded (should use env var)',
severity: 'medium',
fix: 'Use NEXT_PUBLIC_SUPABASE_URL environment variable'
}
],
fileTypes: ['js', 'jsx', 'ts', 'tsx', 'svelte', 'astro', 'env']
}
};
exports.default = rule;
//# sourceMappingURL=SEC002.js.map