Skip to content
This repository has been archived by the owner on May 14, 2020. It is now read-only.

Commit

Permalink
Merge pull request #1739 from lifeforms/xenforo-update
Browse files Browse the repository at this point in the history
XenForo: update exclusions
  • Loading branch information
lifeforms authored May 4, 2020
2 parents 02f4c35 + b078953 commit f1f7595
Showing 1 changed file with 28 additions and 4 deletions.
32 changes: 28 additions & 4 deletions rules/REQUEST-903.9006-XENFORO-EXCLUSION-RULES.conf
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ SecRule REQUEST_FILENAME "@endsWith /proxy.php" \
#
# attachment_hash_combined example:
# {"type":"post","context":{"post_id":12345},"hash":"0123456789abcdef..."}
SecRule REQUEST_FILENAME "@rx /(?:conversations|(?:conversations|forums|threads)/.*\.\d+)/draft$" \
SecRule REQUEST_FILENAME "@rx /(?:conversations|(?:conversations|forums|threads)/.*)/draft$" \
"id:9006110,\
phase:2,\
pass,\
Expand Down Expand Up @@ -129,6 +129,7 @@ SecRule REQUEST_FILENAME "@rx /(?:conversations|threads)/.*\.\d+/multi-quote$" \
ctl:ruleRemoveTargetByTag=OWASP_CRS;ARGS:insert[9][value]"

# Delete thread
# POST /xf/threads/thread-title.12345/delete
SecRule REQUEST_FILENAME "@rx /threads/.*\.\d+/delete$" \
"id:9006150,\
phase:2,\
Expand All @@ -137,9 +138,19 @@ SecRule REQUEST_FILENAME "@rx /threads/.*\.\d+/delete$" \
nolog,\
ctl:ruleRemoveTargetById=942130;ARGS:starter_alert_reason"

# Feature thread
# POST /xf/threads/thread-title.12345/feature-edit
SecRule REQUEST_FILENAME "@rx /threads/.*\.\d+/feature-edit$" \
"id:9006155,\
phase:2,\
pass,\
t:none,\
nolog,\
ctl:ruleRemoveTargetByTag=OWASP_CRS;ARGS:feature[feature_excerpt]"

# Inline moderate thread
# POST /xf/inline-mod/
SecRule REQUEST_FILENAME "@streq /inline-mod/" \
SecRule REQUEST_FILENAME "@endsWith /inline-mod/" \
"id:9006160,\
phase:2,\
pass,\
Expand Down Expand Up @@ -242,6 +253,16 @@ SecRule REQUEST_FILENAME "@endsWith /register/register" \
ctl:ruleRemoveTargetById=942130;ARGS,\
ctl:ruleRemoveTargetByTag=OWASP_CRS;ARGS:reg_key"

# Confirm account
# GET /xf/account-confirmation/name.12345/email?c=foo
SecRule REQUEST_FILENAME "@rx /account-confirmation/.*\.\d+/email$" \
"id:9006315,\
phase:2,\
pass,\
t:none,\
nolog,\
ctl:ruleRemoveTargetByTag=OWASP_CRS;ARGS:c"

# Edit account
# POST /xf/account/account-details
SecRule REQUEST_FILENAME "@endsWith /account/account-details" \
Expand Down Expand Up @@ -399,6 +420,7 @@ SecAction \
ctl:ruleRemoveTargetById=942100;REQUEST_COOKIES:xf_csrf,\
ctl:ruleRemoveTargetById=942210;REQUEST_COOKIES:xf_csrf,\
ctl:ruleRemoveTargetById=942440;REQUEST_COOKIES:xf_csrf,\
ctl:ruleRemoveTargetById=942100;REQUEST_COOKIES:xf_emoji_usage,\
ctl:ruleRemoveTargetById=942150;REQUEST_COOKIES:xf_emoji_usage,\
ctl:ruleRemoveTargetById=942410;REQUEST_COOKIES:xf_emoji_usage,\
ctl:ruleRemoveTargetByTag=OWASP_CRS;REQUEST_COOKIES:xf_ls,\
Expand Down Expand Up @@ -509,9 +531,11 @@ SecRule REQUEST_URI "@rx /admin\.php\?options/update" \
nolog,\
ctl:ruleRemoveTargetByTag=OWASP_CRS;ARGS:options[boardInactiveMessage]"

# Edit pages
# Edit pages/templates
# POST /xf/admin.php?pages/0/save
# POST /xf/admin.php?pages/foo.12345/save
SecRule REQUEST_URI "@rx /admin\.php\?pages/.*\.\d+/save" \
# POST /xf/admin.php?templates/foo.1234/save
SecRule REQUEST_URI "@rx /admin\.php\?(?:pages|templates)/.*/save" \
"id:9006970,\
phase:2,\
pass,\
Expand Down

0 comments on commit f1f7595

Please sign in to comment.