Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .appsec-tests/CVE-2025-54782/CVE-2025-54782.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
## autogenerated on 2025-09-01 14:55:22
id: CVE-2025-54782
info:
name: CVE-2025-54782
author: crowdsec
severity: info
description: CVE-2025-54782 testing
tags: appsec-testing
http:
- raw:
- |
POST /inspector/graph/interact HTTP/1.1
Host: {{Hostname}}
Content-Type: text/plain

{"code":"(function(){try{propertyIsEnumerable.call()}catch(pp){pp.constructor.constructor('return process')().mainModule.require('child_process').execSync('id')}})()"}
cookie-reuse: true
matchers:
- type: status
status:
- 403
5 changes: 5 additions & 0 deletions .appsec-tests/CVE-2025-54782/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## autogenerated on 2025-09-01 14:55:22
appsec-rules:
- ./appsec-rules/crowdsecurity/base-config.yaml
- ./appsec-rules/crowdsecurity/vpatch-CVE-2025-54782.yaml
nuclei_template: CVE-2025-54782.yaml
31 changes: 31 additions & 0 deletions appsec-rules/crowdsecurity/CVE-2025-54782.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
## autogenerated on 2025-09-01 14:55:22
name: crowdsecurity/vpatch-CVE-2025-54782
description: 'Detects RCE in NestJS DevTools Integration via unsafe code execution in /inspector/graph/interact endpoint.'
rules:
- and:
- zones:
- URI
transform:
- lowercase
match:
type: equals
value: /inspector/graph/interact
- zones:
- RAW_BODY
transform:
- lowercase
match:
type: contains
value: '"code":'

labels:
type: exploit
service: http
confidence: 3
spoofable: 0
behavior: 'http:exploit'
label: 'NestJS DevTools - RCE'
classification:
- cve.CVE-2025-54782
- attack.T1190
- cwe.CWE-77
1 change: 1 addition & 0 deletions collections/crowdsecurity/appsec-virtual-patching.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ appsec-rules:
- crowdsecurity/vpatch-CVE-2024-27292
- crowdsecurity/vpatch-CVE-2025-24893
- crowdsecurity/vpatch-CVE-2021-43798
- crowdsecurity/CVE-2025-54782
author: crowdsecurity
contexts:
- crowdsecurity/appsec_base
Expand Down