mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 11:44:32 +03:00
Adds support to capture this fingerprint of the detectSQLi operator
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
#include "operators/pm.h"
|
||||
#include "operators/rx.h"
|
||||
#include "operators/contains.h"
|
||||
#include "operators/detect_sqli.h"
|
||||
|
||||
namespace ModSecurity {
|
||||
namespace actions {
|
||||
@@ -49,6 +50,11 @@ bool Capture::evaluate(Rule *rule, Assay *assay) {
|
||||
match = &contains->matched;
|
||||
}
|
||||
|
||||
operators::DetectSQLi *dsqli = dynamic_cast<operators::DetectSQLi *>(op);
|
||||
if (dsqli != NULL) {
|
||||
match = &dsqli->matched;
|
||||
}
|
||||
|
||||
if (match->empty()) {
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user