Re: [mod-security-users] My variable seems to never expire...
Brought to you by:
victorhora,
zimmerletw
|
From: Ervin H. <ai...@gm...> - 2020-09-15 19:56:22
|
Hi Mikaël, On Tue, Sep 15, 2020 at 08:29:50PM +0200, Mikaël Pirio wrote: ... > SecRule REQUEST_URI "^/api/" \ > "id:400011,\ > phase:2,\ > pass,\ > nolog,\ > setvar:'session.api_req_counter=+1',\ > expirevar:'session.api_req_counter=60'" ... > It works: requests are denied! but they are forever. My > variable session.api_req_counter is never reseted. I didn't checked the logic of the rules, but after the quick view I assume the expirevar has no effect (it's not implemented). Btw it's documented: https://github.com/SpiderLabs/ModSecurity/wiki/Reference-Manual-(v2.x)#expirevar "Supported on libModSecurity: TBI" a. |