Score:0

The ModSecurity WAF used with the authentication mode

ph flag

I have two Apache VirtualHost allowing access to lists of files. The first directory or server is accessible without authentication. On the other hand, the second has the native Apache authentication mode called mod_authn_dbd.

I configured the ModSecurity module as a WAF to add protection against XSS attacks, injections, etc.

When I do the basic tests, which should work by default, with attacks of the type:

curl 'hxxp://yourdomain.com/test.html?a=alert(1);'

It works for the server without authentication but not for the other. On the server with authentication, if I authenticate myself and I request the above request again, the alert is raised!

So there's something I don't understand, it's as if the way the data/requests were analyzed with the authentication mode makes it not compatible with ModSecurity

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.