]> git.openstreetmap.org Git - chef.git/commitdiff
Avoid using tainted data to construct file names in exim configuration
authorTom Hughes <tom@compton.nu>
Thu, 31 Dec 2020 19:27:55 +0000 (19:27 +0000)
committerTom Hughes <tom@compton.nu>
Fri, 1 Jan 2021 07:25:52 +0000 (07:25 +0000)
cookbooks/exim/templates/default/exim4.conf.erb

index 3c4ebd4aa254ccd79bfb2bc9009cd9e513d5adc1..17160ecf3a4290fb45711cb595b5256ef56bfb1e 100644 (file)
@@ -768,7 +768,7 @@ noreply:
   to = $sender_address
   subject = Re: $header_subject:
   headers = MIME-Version: 1.0\nContent-Type: text/plain; charset=utf-8
-  file = /etc/exim4/noreply/$local_part
+  file = /etc/exim4/noreply/$local_part_data
   user = Debian-exim
   group = Debian-exim