Skip to content

Commit 203c986

Browse files
authored
Merge pull request #1 from gensecaihq/feat/enhanced-exploit-detection
feat: add enhanced exploit detection patterns for CVE-2025-55182
2 parents 8c180f8 + 0727def commit 203c986

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

src/middleware/detector.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,20 @@ const EXPLOIT_PATTERNS = [
2929
severity: 'high' as const,
3030
description: 'Prototype pollution attempt',
3131
},
32+
// Object.prototype.then pollution (CVE-2025-55182 exploit technique)
33+
{
34+
name: 'then_pollution',
35+
pattern: /prototype\s*\.\s*then|\.then\s*=/i,
36+
severity: 'high' as const,
37+
description: 'Object.prototype.then pollution attempt',
38+
},
39+
// _prefix property injection (CVE-2025-55182 exploit technique)
40+
{
41+
name: 'prefix_injection',
42+
pattern: /"_prefix"\s*:/i,
43+
severity: 'high' as const,
44+
description: 'Potential _prefix property injection',
45+
},
3246
// Malformed module references
3347
{
3448
name: 'malformed_module_ref',

0 commit comments

Comments
 (0)