# HTML Code injection Not detected by ASM

**URL:** <https://community.f5.com/t/html-code-injection-not-detected-by-asm/75380>\
**Category:** Technical Forums\
**Tags:** security, application-delivery\
**Created:** [November 8, 2024, 4:44am UTC](https://community.f5.com/t/html-code-injection-not-detected-by-asm/75380 "2024-11-08T04:44:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MattAlex1](https://avatars.discourse-cdn.com/v4/letter/m/b5a626/32.png) [@MattAlex1](https://community.f5.com/u/MattAlex1)\
**Post date:** [November 8, 2024, 4:44am UTC](https://community.f5.com/t/html-code-injection-not-detected-by-asm/75380/1 "2024-11-08T04:44:30Z")

</div>

There was PT conducted on our application and was reported to be HTML injection vulnerable.

URL used for evidence of exploitation is:

[https://abc.com/SimpleSamples812/ChatWidget/ChatPanel.aspx?BackgroundColor=black"\>;\<+img+scr+=x+;onerror+:+alert,1](https://abc.com/SimpleSamples812/ChatWidget/ChatPanel.aspx?BackgroundColor=%00black%22%3e;%3c+img+scr+=x+;onerror+:+alert,1)

ASM have neither triggered ‘onerror’ attack signatures which are enforced nor did trigger any meta character violations.

Isn’t ASM capable of detecting attack in this pattern?

Please suggest.

---

<div class="post-metadata">

**Author:** ![Amine\_Kadimi](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@Amine\_Kadimi](https://community.f5.com/u/Amine_Kadimi)\
**Post date:** [November 8, 2024, 9:05pm UTC](https://community.f5.com/t/html-code-injection-not-detected-by-asm/75380/2 "2024-11-08T21:05:46Z")

</div>

I can confirm this is blocked by F5. %00 generates a http compliance failed (null in request) violation. Meta characters also generate an illegal metacharacter in value violation. Check your policy settings and enforcement.

 ![image_336285.png](https://d20hrnpixdzcsd.cloudfront.net/original/3X/8/9/89b4ce31d9bba1cde3d0b89080a69b246b8824f4.png)
