HomeFreeBSD

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

Description

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
MFC after: 3 weeks

Details

Provenance
asomersAuthored on
Parents
rS330717: nvme_da: Fix minor memory leak in error case
Branches
Unknown
Tags
Unknown