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 • 854 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const rule = {
meta: {
id: 'SEC010',
category: 'security',
severity: 'high',
message: 'Google OAuth token exposed',
fix: 'Use secure token storage',
impact: 'OAuth tokens can be used to impersonate users and access their Google data'
},
impl: {
patterns: [
{
ruleId: 'SEC010',
confidence: 0.9,
pattern: /(['"`])(?:ya29\.|1\/\/[0-9A-Za-z_-]+)\1/gi,
message: 'Google OAuth token exposed',
severity: 'high',
fix: 'Use secure token storage'
}
],
fileTypes: ['js', 'jsx', 'ts', 'tsx', 'svelte', 'astro', 'env']
}
};
exports.default = rule;
//# sourceMappingURL=SEC010.js.map