Skip to content

Commit b4e0af1

Browse files
adjusted query
1 parent 0e2db42 commit b4e0af1

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

rules/network/initial_access_react_server_components_rce_attempt.toml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -77,16 +77,15 @@ network where http.request.method == "POST" and
7777
(
7878
http.response.status_code in (500, 303) and
7979
http.response.body.content like "*E{\"digest\"*" and
80-
http.request.body.content regex~ """\$\d+:[_a-zA-Z][_a-zA-Z0-9]*:[_a-zA-Z][_a-zA-Z0-9]*"""
80+
http.request.body.content regex~ """.*\$[0-9]+:[a-zA-Z_0-9]+:[a-zA-Z_0-9]+.*"""
81+
8182
) or
8283
// Prototype pollution patterns specific to RSC Flight exploitation
83-
(
84-
http.request.body.content like~ "*__proto__*" and
85-
http.request.body.content like~ "*constructor*"
86-
) or
87-
// RSC Flight chunk reference exploitation pattern ($N:property:property)
88-
(
89-
http.request.body.content regex~ """\$\d+:[_a-zA-Z][_a-zA-Z0-9]*:[_a-zA-Z][_a-zA-Z0-9]*"""
84+
( http.request.body.content regex~ """.*\$[0-9]+:[a-zA-Z_0-9]+:[a-zA-Z_0-9]+.*""" and (
85+
(
86+
http.request.body.content like~ "*__proto__*" or
87+
http.request.body.content like~ "*prototype*"
88+
) and http.request.body.content like~ "*constructor*")
9089
)
9190
)
9291
'''

0 commit comments

Comments
 (0)