mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 13:56:01 +03:00
Another check for evasion through partial quoting of multipart boundary.
This commit is contained in:
parent
d0ac05c3ea
commit
b1949b7ebc
@ -574,6 +574,11 @@ int multipart_init(modsec_rec *msr, char **error_msg) {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
/* Not quoted. */
|
/* Not quoted. */
|
||||||
|
if (*b == '"') {
|
||||||
|
*error_msg = apr_psprintf(msr->mp, "Invalid boundary (quote).");
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
msr->mpd->boundary = apr_pstrdup(msr->mp, b);
|
msr->mpd->boundary = apr_pstrdup(msr->mp, b);
|
||||||
msr->mpd->flag_boundary_quoted = 0;
|
msr->mpd->flag_boundary_quoted = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user