Skip to content

Commit 1ccce99

Browse files
feat: add detection patterns from original CVE-2025-55182 PoC (#2)
Add 4 new detection patterns based on Lachlan Davidson's original PoC: - chunk_reference: Detects $@ Chunk object reference notation - formdata_gadget: Detects _formData gadget chain access - constructor_chain: Detects constructor:constructor traversal - setprototypeof_access: Detects setPrototypeOf manipulation Also updated README acknowledgments with link to original PoC repository.
1 parent 9f33967 commit 1ccce99

2 files changed

Lines changed: 30 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ Security scanner for **CVE-2025-55182** - a critical (CVSS 10.0) unauthenticated
1616
1717
## Acknowledgments
1818

19-
This project exists to help the community respond to CVE-2025-55182. We acknowledge and thank the following individuals:
19+
This project exists to help the community respond to CVE-2025-55182. We acknowledge and thank:
2020

21-
- **[Lachlan Davidson](https://github.com/lachlan2k)** ([react2shell.com](https://react2shell.com/)) - For discovering and responsibly disclosing the React Server Components vulnerability (CVE-2025-55182) on November 29th, 2025. The security community owes him gratitude for his diligence in identifying this critical flaw and working with the React and Next.js teams to ensure patches were available. His efforts have helped protect countless applications and users worldwide.
21+
- **[Lachlan Davidson](https://github.com/lachlan2k)** ([react2shell.com](https://react2shell.com/)) - For discovering and responsibly disclosing the React Server Components vulnerability (CVE-2025-55182) on November 29th, 2025. The security community owes him gratitude for his diligence in identifying this critical flaw and working with the React and Next.js teams to ensure patches were available. His efforts have helped protect countless applications and users worldwide. See his [original PoC](https://github.com/lachlan2k/React2Shell-CVE-2025-55182-original-poc) for technical details.
2222

2323
## Quick Start
2424

src/middleware/detector.ts

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,34 @@ const EXPLOIT_PATTERNS = [
4343
severity: 'high' as const,
4444
description: 'Potential _prefix property injection',
4545
},
46+
// $@ Chunk reference notation (original PoC technique)
47+
{
48+
name: 'chunk_reference',
49+
pattern: /\$@\d+/,
50+
severity: 'high' as const,
51+
description: 'RSC Chunk object reference access',
52+
},
53+
// _formData gadget chain access (original PoC technique)
54+
{
55+
name: 'formdata_gadget',
56+
pattern: /"_formData"\s*:/i,
57+
severity: 'high' as const,
58+
description: 'FormData gadget chain access',
59+
},
60+
// Constructor chain traversal (original PoC technique)
61+
{
62+
name: 'constructor_chain',
63+
pattern: /constructor\s*:\s*constructor/i,
64+
severity: 'high' as const,
65+
description: 'Constructor chain traversal attempt',
66+
},
67+
// setPrototypeOf manipulation (original PoC technique)
68+
{
69+
name: 'setprototypeof_access',
70+
pattern: /setPrototypeOf/i,
71+
severity: 'high' as const,
72+
description: 'setPrototypeOf manipulation attempt',
73+
},
4674
// Malformed module references
4775
{
4876
name: 'malformed_module_ref',

0 commit comments

Comments
 (0)