Forum Discussion

coding-connect's avatar
coding-connect
Copper Contributor
Feb 07, 2024

WAF detection with sending MultipartFormDataContent

I recently report a bug trying to send MultipartFormDataContent with .net.

Azure WAF block the request with a Multipart request body failed strict validation.

https://github.com/dotnet/runtime/issues/98089

This is a false positive because the boundaries are surrounds in the HTTP header with double quotes.

The answer given by .net team is using quotes is legal by RFC, even necessary in some cases, see https://www.rfc-editor.org/rfc/rfc2046#section-5.1.1.

See the issue in https://github.com/dotnet/runtime/issues/98089

No RepliesBe the first to reply