]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit - contrib/llvm/projects/libunwind/src/EHHeaderParser.hpp
scp: validate filenames provided by server against wildcard in client
authorEd Maste <emaste@FreeBSD.org>
Thu, 21 Feb 2019 22:45:54 +0000 (22:45 +0000)
committerEd Maste <emaste@FreeBSD.org>
Thu, 21 Feb 2019 22:45:54 +0000 (22:45 +0000)
commitafde5170533a488a5404d1dba7650598aa41fc65
treef146644184f8722abe707227085d7eb6c175712f
parentf10dc8380662faadeb0187014e5d659d331b5d8c
parent85f19ec0ec269b902d29184ff0b8aeb93d9ecb75
scp: validate filenames provided by server against wildcard in client

OpenSSH-portable commits:

check in scp client that filenames sent during remote->local directory
copies satisfy the wildcard specified by the user.

This checking provides some protection against a malicious server
sending unexpected filenames, but it comes at a risk of rejecting wanted
files due to differences between client and server wildcard expansion rules.

For this reason, this also adds a new -T flag to disable the check.

reported by Harry Sintonen
fix approach suggested by markus@;
has been in snaps for ~1wk courtesy deraadt@

OpenBSD-Commit-ID: 00f44b50d2be8e321973f3c6d014260f8f7a8eda

Minor patch conflict (getopt) resolved.

Obtained from: OpenSSH-portable 391ffc4b9d31fa1f4ad566499fef9176ff8a07dc

scp: add -T to usage();

OpenBSD-Commit-ID: a7ae14d9436c64e1bd05022329187ea3a0ce1899

Obtained from: OpenSSH-portable 2c21b75a7be6ebdcbceaebb43157c48dbb36f3d8

PR: 234965
Approved by: des
MFC after: 3 days
Obtained from: OpenSSH-portable 391ffc4b9d2c21b75a7b
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D19076
crypto/openssh/scp.1
crypto/openssh/scp.c