Commit 3f3cc3c9 authored by Byron Jones's avatar Byron Jones Committed by Frédéric Buclin

Bug 600464: (CVE-2010-3172) [SECURITY] Content/Header injection due to…

Bug 600464: (CVE-2010-3172) [SECURITY] Content/Header injection due to non-random multipart/x-mixed-replace boundary r=mkanat a=LpSolit
parent c793bb32
......@@ -213,7 +213,8 @@ sub multipart_init {
}
# Set the MIME boundary and content-type
my $boundary = $param{'-boundary'} || '------- =_aaaaaaaaaa0';
my $boundary = $param{'-boundary'}
|| '------- =_' . generate_random_password(16);
delete $param{'-boundary'};
$self->{'separator'} = "\r\n--$boundary\r\n";
$self->{'final_separator'} = "\r\n--$boundary--\r\n";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment