# Can't upload msg file - ASM block

**URL:** <https://community.f5.com/t/cant-upload-msg-file-asm-block/58681>\
**Category:** Technical Forums\
**Tags:** asm-advanced-waf, big-ip, security, application-delivery\
**Created:** [October 5, 2021, 5:43am UTC](https://community.f5.com/t/cant-upload-msg-file-asm-block/58681 "2021-10-05T05:43:51Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![THE\_BLUE](https://avatars.discourse-cdn.com/v4/letter/t/a88e57/32.png) [@THE\_BLUE](https://community.f5.com/u/THE_BLUE)\
**Post date:** [October 5, 2021, 5:43am UTC](https://community.f5.com/t/cant-upload-msg-file-asm-block/58681/1 "2021-10-05T05:43:51Z")

</div>

WAF block my request due to " attack signature detected" when try to upload msg file , and the Context : HTTP Request Body Unparsed Payload.

the request is look like this :

Content-Type: multipart/form-data;

Content-Disposition: form-data; name=“sth.msg” fileName=“sth.msg”

the name of parameter take the same name of file upload with each request, so how can we solve this?

---

<div class="post-metadata">

**Author:** ![Daniel\_Wolf](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/daniel_wolf/32/1119_2.png) [@Daniel\_Wolf](https://community.f5.com/u/Daniel_Wolf)\
**Post date:** [October 5, 2021, 2:01pm UTC](https://community.f5.com/t/cant-upload-msg-file-asm-block/58681/2 "2021-10-05T14:01:51Z")

</div>

Hi ,

I guess this discribes your blocking message and a possibe solution:

[K32081491: ASM blocked a request due to Attack Signatures triggered with Violation Context AMF body](https://support.f5.com/csp/article/K32081491)

KR

Daniel

---

<div class="post-metadata">

**Author:** ![THE\_BLUE](https://avatars.discourse-cdn.com/v4/letter/t/a88e57/32.png) [@THE\_BLUE](https://community.f5.com/u/THE_BLUE)\
**Post date:** [October 6, 2021, 5:24am UTC](https://community.f5.com/t/cant-upload-msg-file-asm-block/58681/3 "2021-10-06T05:24:27Z")

</div>

Dear Daniel,

Many thanks for sharing.

For **Request Header Name** , enter an explicit header name that must appear in requests for this URL.

so in my case i have to do like this :

Request Header Name : Content-Type

Request Header Value : multipart/form-data;

Request Body Handling : **Do Nothing**

---

<div class="post-metadata">

**Author:** ![Daniel\_Wolf](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/daniel_wolf/32/1119_2.png) [@Daniel\_Wolf](https://community.f5.com/u/Daniel_Wolf)\
**Post date:** [October 6, 2021, 7:18pm UTC](https://community.f5.com/t/cant-upload-msg-file-asm-block/58681/4 "2021-10-06T19:18:11Z")

</div>

This looks correct, though I don’t have any lab where I could test this at the moment.

Your configuration would apply anytime the Content-Type header value is _multipart/form-data_.

The _Request Header Value_ allows wildcards. You could try to narrow down to _Do Nothing_ only for .msg files by testing this combination:

Request Header Name : Content-Disposition

Request Header Value : form-data; name=“\*.msg”; filename=“\*.msg”

Request Body Handling :&nbsp;Do Nothing

EDIT: A word of caution. You should consider to what risk you are exposing your application when not checking these uploads.

---

<div class="post-metadata">

**Author:** ![THE\_BLUE](https://avatars.discourse-cdn.com/v4/letter/t/a88e57/32.png) [@THE\_BLUE](https://community.f5.com/u/THE_BLUE)\
**Post date:** [October 7, 2021, 9:05am UTC](https://community.f5.com/t/cant-upload-msg-file-asm-block/58681/5 "2021-10-07T09:05:28Z")

</div>

Many thanks, i will test that.

Thanks for the note, sure I will.

---

<div class="post-metadata">

**Author:** ![THE\_BLUE](https://avatars.discourse-cdn.com/v4/letter/t/a88e57/32.png) [@THE\_BLUE](https://community.f5.com/u/THE_BLUE)\
**Post date:** [October 11, 2021, 9:15am UTC](https://community.f5.com/t/cant-upload-msg-file-asm-block/58681/6 "2021-10-11T09:15:51Z")

</div>

I have test that but still the same issue is still exist.

---

<div class="post-metadata">

**Author:** ![Daniel\_Wolf](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/daniel_wolf/32/1119_2.png) [@Daniel\_Wolf](https://community.f5.com/u/Daniel_Wolf)\
**Post date:** [October 11, 2021, 5:01pm UTC](https://community.f5.com/t/cant-upload-msg-file-asm-block/58681/7 "2021-10-11T17:01:49Z")

</div>

As said, I don’t have a lab that I could use to test your particular case.

Did you try with this combination too?

Request Header Name : Content-Type

Request Header Value : multipart/form-data;

Request Body Handling :&nbsp;Do Nothing

Maybe the _Request Header Value_ is just not matching with the wildcards?

---

<div class="post-metadata">

**Author:** ![Nikoolayy1](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/nikoolayy1/32/3589_2.png) [@Nikoolayy1](https://community.f5.com/u/Nikoolayy1)\
**Post date:** [February 22, 2023, 11:53am UTC](https://community.f5.com/t/cant-upload-msg-file-asm-block/58681/8 "2023-02-22T11:53:00Z")

</div>

The strange thing is that I as well may test this solution as I have a query paramater in a POST request (strange yup !) that is for file upload with Content-Type: application/xxxx but F5 ASM/AWAF still is trying to inspect the body and thinks that the file body is another Parameter name and I get “Failed to convert character” and “HTTP protocol compliance failed”, so making the query parameter of type file upload just can’t stop the F5 to try to understand the body and try to check it 😁

---

<div class="post-metadata">

**Author:** ![myselt](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@myselt](https://community.f5.com/u/myselt)\
**Post date:** [September 11, 2023, 2:50am UTC](https://community.f5.com/t/cant-upload-msg-file-asm-block/58681/9 "2023-09-11T02:50:50Z")

</div>

are you have any&nbsp;&nbsp;solution&nbsp;?
