Skip to content

Commit f633889

Browse files
committed
prevent user enumeration via /wp-json
1 parent a1b63d0 commit f633889

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

05-HARDENING.conf

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,22 @@ SecRule tx:wprs_allow_user_enumeration "@eq 1" \
6363

6464
SecMarker BEGIN_WPRS_USER_ENUMERATION
6565

66-
SecRule REQUEST_URI "(author\=[0-9]+)" "phase:1,id:22200019,\
66+
SecRule REQUEST_URI "(author\=[0-9]+)" "phase:1,id:22200029,\
67+
t:lowercase,t:urlDecode,t:trim,\
68+
block,\
69+
log,\
70+
rev:'1',\
71+
severity:'6',\
72+
maturity:'9',\
73+
accuracy:'9',\
74+
capture,\
75+
ver:'%{tx.wprs_version}',\
76+
tag:'wordpress',\
77+
tag:'enumeration',\
78+
logdata:'Detected on %{TX:1}',\
79+
msg:'WordPress: User enumeration'"
80+
81+
SecRule REQUEST_FILENAME "^(/wp\-json/wp/v[0-9]+/users)" "phase:1,id:22200033,\
6782
t:lowercase,t:urlDecode,t:trim,\
6883
block,\
6984
log,\

0 commit comments

Comments
 (0)