UNPKG

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 886 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const rule = { meta: { id: 'SEC004', category: 'security', severity: 'medium', message: 'Supabase URL hardcoded in variable', fix: 'Use process.env.NEXT_PUBLIC_SUPABASE_URL', impact: 'Hardcoded configuration prevents secure environment management' }, impl: { patterns: [ { ruleId: 'SEC004', confidence: 0.8, pattern: /supabaseUrl\s*[:=]\s*['"`][^'"`]+['"`]/gi, message: 'Supabase URL hardcoded in variable', severity: 'medium', fix: 'Use process.env.NEXT_PUBLIC_SUPABASE_URL' } ], fileTypes: ['js', 'jsx', 'ts', 'tsx', 'svelte', 'astro'] } }; exports.default = rule; //# sourceMappingURL=SEC004.js.map