]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r330718:
authorasomers <asomers@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 3 Aug 2018 14:18:02 +0000 (14:18 +0000)
committerasomers <asomers@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 3 Aug 2018 14:18:02 +0000 (14:18 +0000)
commit456a9f9905482a27479a30e2fe48b7447402ff43
tree0345cd047d60592939edb438775a1163b2c0dbf9
parent344f72c85126bb18c29187659caa4844f10fbbea
MFC r330718:

tftpd: Verify world-writability for WRQ when using relative paths

tftpd(8) says that files may only be written if they already exist and are
publicly writable.  tftpd.c verifies that a file is publicly writable if it
uses an absolute pathname.  However, if the pathname is relative, that check
is skipped.  Fix it.

Note that this is not a security vulnerability, because the transfer
ultimately doesn't work unless the file already exists and is owned by user
nobody.  Also, this bug does not affect the default configuration, because
the default uses the "-s" option which makes all pathnames absolute.

PR: 226004

git-svn-id: svn://svn.freebsd.org/base/stable/10@337248 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
libexec/tftpd/tests/functional.c
libexec/tftpd/tftpd.c