We have a base ArcGIS Enterprise deployment behind an Azure Application Gateway with WAF enabled using the OWASP 3.1 ruleset. We have run this in detection mode for a few months while we build the exceptions for valid requests. We have managed to build the exceptions for all of our valid requests except one that is triggers when publishing a hosted feature layer from ArcGIS Pro or ArcMap. The only way of overcoming this is by turning body inspection off in the WAF which defeats the purpose of having a WAF in the first place.
This is the WAF log for the mandatory rule.
OperationName | ApplicationGatewayFirewall |
requestUri_s | /portal/sharing/rest/content/users/<redactedemail>/addItem |
Message | Mandatory rule. Cannot be disabled. Failed to parse request body. |
ruleSetType_s | OWASP_CRS |
ruleSetVersion_s | 3.1.0 |
ruleId_s | 200002 |
action_s | Blocked |
site_s | Global |
details_message_s | Access denied with code 400 (phase 2). Match of \"eq 0\" against \"REQBODY_ERROR\" required. |
details_data_s | Multipart: Invalid boundary in C-T (characters). |
details_file_s | \"/etc/nginx/modsec/<redacted>/modsecurity.conf |
details_line_s | 72 |