mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-15 23:55:03 +03:00
Better discovery of partial quoting evasion.
This commit is contained in:
parent
b1949b7ebc
commit
323f9f81a0
@ -574,7 +574,11 @@ int multipart_init(modsec_rec *msr, char **error_msg) {
|
||||
}
|
||||
} else {
|
||||
/* Not quoted. */
|
||||
if (*b == '"') {
|
||||
|
||||
/* Test for partial quoting. */
|
||||
if ( (*b == '"')
|
||||
|| ((len >= 2)&&(*(b + len - 1) == '"')) )
|
||||
{
|
||||
*error_msg = apr_psprintf(msr->mp, "Invalid boundary (quote).");
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user