Share via

Repetitive GET request qurey in requestUri_s field of ApplicationGatewayFirewallLog

Kit Shing Kwong 5 Reputation points
17 Mar 2025, 07:32

Hi,

I am currently facing a strage behavior with Azure Application Gateway and WAF.

We have a web application running in AKS connected to Application Gateway connected with AGIC. The application serves 2 hosts, let's say HostA and HostB. We found that the GET request query get double in requestUri_s field of ApplicationGatewayFirewallLog, but in ApplicationGatewayAccessLog looks fine. Such behavior occurs only for HostA, but not HostB.

for example, for a GET request HostA?id=1, requestUri_s of ApplicationGatewayFirewallLog will be HostA?id=1?id=1

In some particular cases, this triggers 941100 XSS Attack Detected via libinjection. For example, the GET request HostA?x=Oni. In ApplicationGatewayFirewallLog, requestUri_s of ApplicationGatewayFirewallLog is /?x=Oni?x=Oni and detail_data_s is {Oni?x=Oni found within [ARGS:x:Oni?x=Oni]}

We have been debugging the issue for days and still have no idea what is the cause. There is no rewrite rules on incoming uri. I think it is unlikely caused by the application. The cause we could think of is that there is bug in WAF or AGIC. Any idea what could be the cause?

Azure Web Application Firewall
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.