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 #1742 from pyllyukko/fix-nextcloud-vcard-put
Browse files Browse the repository at this point in the history
Suppress rule 200002 when editing contacts in Nextcloud
  • Loading branch information
franbuehler authored May 5, 2020
2 parents f3eba30 + 2f38ef0 commit e988d3e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions rules/REQUEST-903.9003-NEXTCLOUD-EXCLUSION-RULES.conf
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,17 @@ SecRule REQUEST_FILENAME "@contains /remote.php/dav/addressbooks/" \
ver:'OWASP_CRS/3.2.0',\
setvar:'tx.allowed_request_content_type=%{tx.allowed_request_content_type}|text/vcard'"

# Allow modifying contacts via the web interface
SecRule REQUEST_METHOD "@streq PUT" \
"id:9003321,\
phase:1,\
pass,\
t:none,\
nolog,\
chain"
SecRule REQUEST_FILENAME "@contains /remote.php/dav/addressbooks/" \
"t:none,\
ctl:ruleRemoveById=200002"

# [ Calendar ]
#
Expand Down

0 comments on commit e988d3e

Please sign in to comment.