Another check for evasion through partial quoting of multipart boundary.

This commit is contained in:
ivanr 2007-08-10 14:40:22 +00:00
parent d0ac05c3ea
commit b1949b7ebc

View File

@ -574,6 +574,11 @@ int multipart_init(modsec_rec *msr, char **error_msg) {
}
} else {
/* 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->flag_boundary_quoted = 0;
}