Skip to content

Commit c6dc26d

Browse files
authored
WAF: fix rule for CVE-2025-55182 (#1595)
1 parent 9db8d62 commit c6dc26d

File tree

2 files changed

+19
-10
lines changed

2 files changed

+19
-10
lines changed

.appsec-tests/vpatch-CVE-2025-55182/vpatch-CVE-2025-55182.yaml

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,34 @@ info:
55
severity: info
66
description: vpatch-CVE-2025-55182 testing
77
tags: appsec-testing
8+
variables:
9+
request-id: "{{to_lower(rand_text_alphanumeric(8))}}"
10+
nextjs-html: "{{rand_text_alphanumeric(21)}}"
811
http:
912
#FIXME: this is not a working explot, but it should follow the general idea of the actual exploit
1013
#Must be updated with a better payload when more information is available
1114
- raw:
1215
- |
1316
POST / HTTP/1.1
1417
Host: {{Hostname}}
15-
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary123456789
16-
next-action: x
18+
Next-Action: x
19+
X-Nextjs-Request-Id: {{request-id}}
20+
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryx8jO2oVc6SWP3Sad
21+
X-Nextjs-Html-Request-Id: {{nextjs-html}}
1722
18-
------WebKitFormBoundary123456789
19-
Content-Disposition: form-data; name="$@ACTION_1:1"
23+
------WebKitFormBoundaryx8jO2oVc6SWP3Sad
24+
Content-Disposition: form-data; name="0"
2025
21-
{"status":"resolved_model"}
22-
------WebKitFormBoundary123456789
23-
Content-Disposition: form-data; name="$@ACTION_REF_1"
26+
{"then":"$1:__proto__:then","status":"resolved_model","reason":-1,"value":"{\"then\":\"$B1337\"}","_response":{"_prefix":"var res=process.mainModule.require('child_process').execSync('id').toString().trim();;throw Object.assign(new Error('NEXT_REDIRECT'),{digest: `NEXT_REDIRECT;push;/login?a=${res};307;`});","_chunks":"$Q2","_formData":{"get":"$1:constructor:constructor"}}}
27+
------WebKitFormBoundaryx8jO2oVc6SWP3Sad
28+
Content-Disposition: form-data; name="1"
2429
25-
{}
26-
------WebKitFormBoundary123456789--
30+
"$@0"
31+
------WebKitFormBoundaryx8jO2oVc6SWP3Sad
32+
Content-Disposition: form-data; name="2"
33+
34+
[]
35+
------WebKitFormBoundaryx8jO2oVc6SWP3Sad--
2736
2837
cookie-reuse: true
2938
#test will fail because we won't match http status

appsec-rules/crowdsecurity/vpatch-CVE-2025-55182.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ rules:
3333
type: contains
3434
value: 'resolved_model'
3535
- zones:
36-
- BODY_ARGS_NAMES
36+
- BODY_ARGS
3737
transform:
3838
- urldecode
3939
- lowercase

0 commit comments

Comments
 (0)