X-Git-Url: https://git.exim.org/users/jgh/exim.git/blobdiff_plain/8280aa0c334a7ce06c55df35d9da7a99f79c3568..0d2e392e281e96d9f9f2f3dd438affe3f2563c57:/src/src/transports/appendfile.c diff --git a/src/src/transports/appendfile.c b/src/src/transports/appendfile.c index d99a17956..de193db44 100644 --- a/src/src/transports/appendfile.c +++ b/src/src/transports/appendfile.c @@ -3,6 +3,7 @@ *************************************************/ /* Copyright (c) University of Cambridge 1995 - 2018 */ +/* Copyright (c) The Exim maintainers 2020 */ /* See the file NOTICE for conditions of use and distribution. */ @@ -1342,6 +1343,12 @@ if (!(path = expand_string(fdname))) expand_string_message); goto ret_panic; } +if (is_tainted(path)) + { + addr->message = string_sprintf("Tainted '%s' (file or directory " + "name for %s transport) not permitted", path, tblock->name); + goto ret_panic; + } if (path[0] != '/') {