From 539af97afc41be51d7f9d70a7d1e94c0ed0516cc Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Fri, 11 Aug 2017 13:42:53 -0700 Subject: [PATCH] ignore supplied filenames in MIME to avoid taint issues --- Debbugs/CGI/Bugreport.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/Debbugs/CGI/Bugreport.pm b/Debbugs/CGI/Bugreport.pm index 7883cd5..95201d2 100644 --- a/Debbugs/CGI/Bugreport.pm +++ b/Debbugs/CGI/Bugreport.pm @@ -476,6 +476,7 @@ sub handle_record{ # this will be cleaned up once it goes out of scope my $tempdir = File::Temp->newdir(); $parser->output_under($tempdir->dirname()); + $parser->filer->ignore_filename(1); my $entity; if ($record->{inner_file}) { $entity = $parser->parse($record->{fh}); -- 2.39.2