Skip to content

Commit c9f87f0

Browse files
authored
vpatch rule for CVE-2026-41940 (#1784)
1 parent bac5441 commit c9f87f0

4 files changed

Lines changed: 64 additions & 0 deletions

File tree

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
id: CVE-2026-41940
2+
info:
3+
name: CVE-2026-41940
4+
author: crowdsec
5+
severity: info
6+
description: CVE-2026-41940 testing - cPanel WHM auth bypass via stripped ob cookie
7+
tags: appsec-testing
8+
http:
9+
- raw:
10+
- |
11+
GET / HTTP/1.1
12+
Host: {{Hostname}}
13+
Cookie: whostmgrsession=%3aQSJN_sFdKZtCi2o_
14+
Authorization: Basic cm9vdDp4DQpoYXNyb290PTENCnRmYV92ZXJpZmllZD0xDQp1c2VyPXJvb3Q=
15+
- |
16+
GET / HTTP/1.1
17+
Host: {{Hostname}}
18+
Cookie: whostmgrsession=%3aQSJN_sFdKZtCi2o_%2C
19+
Authorization: Basic cm9vdDp4DQpoYXNyb290PTENCnRmYV92ZXJpZmllZD0xDQp1c2VyPXJvb3Q=
20+
- |
21+
GET / HTTP/1.1
22+
Host: {{Hostname}}
23+
Cookie: whostmgrsession=%3aQSJN_sFdKZtCi2o_%2Ctoto
24+
Authorization: Basic cm9vdDp4DQpoYXNyb290PTENCnRmYV92ZXJpZmllZD0xDQp1c2VyPXJvb3Q=
25+
cookie-reuse: true
26+
matchers:
27+
- type: dsl
28+
condition: and
29+
dsl:
30+
- 'status_code_1 == 403'
31+
- 'status_code_2 == 403'
32+
- 'status_code_3 == 200'
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
appsec-rules:
2+
- ./appsec-rules/crowdsecurity/base-config.yaml
3+
- ./appsec-rules/crowdsecurity/vpatch-CVE-2026-41940.yaml
4+
nuclei_template: CVE-2026-41940.yaml
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: crowdsecurity/vpatch-CVE-2026-41940
2+
description: 'Detects cPanel & WHM authentication bypass (CVE-2026-41940) by identifying a whostmgrsession cookie with a stripped ob segment (no comma separator)'
3+
rules:
4+
- and:
5+
- zones:
6+
- COOKIES
7+
variables:
8+
- whostmgrsession
9+
transform:
10+
- lowercase
11+
- urldecode
12+
- trim
13+
match:
14+
type: regex
15+
value: '^:[a-z0-9_]+,?$'
16+
17+
labels:
18+
type: exploit
19+
service: http
20+
confidence: 3
21+
spoofable: 0
22+
behavior: 'http:exploit'
23+
label: 'cPanel WHM - Authentication Bypass'
24+
classification:
25+
- cve.CVE-2026-41940
26+
- attack.T1190
27+
- cwe.CWE-306

collections/crowdsecurity/appsec-virtual-patching.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ appsec-rules:
185185
- crowdsecurity/vpatch-CVE-2025-24582
186186
- crowdsecurity/vpatch-CVE-2025-15503
187187
- crowdsecurity/vpatch-CVE-2025-13956
188+
- crowdsecurity/vpatch-CVE-2026-41940
188189
author: crowdsecurity
189190
contexts:
190191
- crowdsecurity/appsec_base

0 commit comments

Comments
 (0)