<Directory /var/www/nextcloud/># VIDEOS SecRuleRemoveById 958291 # Range Header Checks SecRuleRemoveById 981203 # Correlated Attack Attempt # PDF SecRuleRemoveById 950109 # Check URL encodings # ADMIN (webdav) SecRuleRemoveById 960024 # Repeatative Non-Word Chars (heuristic) SecRuleRemoveById 981173 # SQL Injection Character Anomaly Usage SecRuleRemoveById 981204 # Correlated Attack Attempt SecRuleRemoveById 981243 # PHPIDS - Converted SQLI Filters SecRuleRemoveById 981245 # PHPIDS - Converted SQLI Filters SecRuleRemoveById 981246 # PHPIDS - Converted SQLI Filters SecRuleRemoveById 981318 # String Termination/Statement Ending Injection Testing SecRuleRemoveById 973332 # XSS Filters from IE SecRuleRemoveById 973338 # XSS Filters - Category 3 SecRuleRemoveById 981143 # CSRF Protections ( TODO edit LocationMatch filter ) # COMING BACK FROM OLD SESSION SecRuleRemoveById 970903 # Microsoft Office document properties leakage # NOTES APP SecRuleRemoveById 981401 # Content-Type Response Header is Missing and X-Content-Type-Options is either missing or not set to 'nosniff' SecRuleRemoveById 200002 # Failed to parse request body # UPLOADS ( 5 MB max excluding file size ) SecRequestBodyNoFilesLimit 5242880 # GENERAL SecRuleRemoveById 960017 # Host header is a numeric IP address # REGISTERED WARNINGS, BUT DID NOT HAVE TO DISABLE THEM #SecRuleRemoveById 981220 900046 981407 #SecRuleRemoveById 981222 981405 981185 981184</Directory>
Is there any way to translate Modsecurity rules IDs to NAXSi IDs?
/logout&learning=0&vers=0.56&total_processed=1&total_blocked=1&block=1&cscore0=$policy8caca66bc2054683b0f9dcc96d4bb44c&score0=8&zone0=ARGS&id0=1206&var_name0=requesttoken, and/logout&learning=0&vers=0.56&total_processed=23&total_blocked=3&block=1&cscore0=$policyeeb570a227a940a7b044aac8b8faeffc&score0=16&zone0=ARGS&id0=1009&var_name0=requesttoken,
&learning=0&vers=0.56&total_processed=62&total_blocked=1&block=1&zone0=BODY&id0=11&var_name0=,
Is it Body 11? Doesn't seem to be correct ID...
By enabling only security rules and not choosing custom policies, location has all basic or main rules active?
location / { SecRulesEnabled; BasicRule wl:19; CheckRule "$policy6298af02d84e47f39f2489ec77a92aaa >= 8" BLOCK; CheckRule "$policy8caca66bc2054683b0f9dcc96d4bb44c >= 8" BLOCK; CheckRule "$policy9016671b2ac443bfaae9d74836e045af >= 8" BLOCK; CheckRule "$policy4c041911949f42e5a3e5c5b8d31c65fd >= 8" BLOCK; BasicRule wl:11; BasicRule wl:1009; BasicRule wl:1206; CheckRule "$policy4e07ebd58e85405e8f0b9ccaf2398aaa >= 8" LOG; CheckRule "$policye6a7ab1e0b6b45149022b45c2cf63345 >= 8" BLOCK; CheckRule "$policyeeb570a227a940a7b044aac8b8faeffc >= 8" BLOCK; DeniedUrl "/waf_denied.html";
for example, I'm not able yet to upload a file with WAF Policies enabled
so you get "Request Denied For Security Reasons" page and nothing in logs?and how it works in LearningMode?