]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix an s_server arbitrary file read issue on Windows
authorMatt Caswell <matt@openssl.org>
Fri, 18 Oct 2019 15:40:44 +0000 (16:40 +0100)
committerMatt Caswell <matt@openssl.org>
Mon, 28 Oct 2019 13:20:02 +0000 (13:20 +0000)
commitb39c0475a671879e2dd6c7a29de1127139f2dc0d
tree39b852b1ca24f1e57789f0de0e1aaab385f7c0ff
parent0159a1bb41b385a00836e9e7baeadad2f014b788
Fix an s_server arbitrary file read issue on Windows

Running s_server in WWW mode on Windows can allow a client to read files
outside the s_server directory by including backslashes in the name, e.g.

GET /..\myfile.txt HTTP/1.0

There exists a check for this for Unix paths but it is not sufficient
for Windows.

Since s_server is a test tool no CVE is assigned.

Thanks to Jobert Abma for reporting this.

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/10215)

(cherry picked from commit 0a4d6c67480a4d2fce514e08d3efe571f2ee99c9)
apps/s_server.c