Thank you for reaching out.
Based on your response above
I guess I can add a separate exclusion for rule
941130
by matching variables as "RequestArgNames starts withattachments
".
Yes your guess is correct here, I think adding an exclusion rule in this manner should help.
The request was blocked as the Arg Name contained base64 string and the exclusion rule above should help in by passing this block. This the OWASP implementation for this rule.
Adding an exclusion is definitely better than disabling the rule.
Based on your statement above
The only way I've been able to work around this issue is to disable this rule (or change behavior to just logging), but of course that removes all the other checks as well -- and the setting is needlessly broad.
I understand that disabling the rule has a broader effect and to prevent that you can use Per-URI policy in cases where applying an exclusion is not possible and you need to disable the rule. This way the rule is disabled for that particular path only.
Hope this helps. Please let me know if you have any questions. Thank you!
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.