From: Simon McVittie Date: Mon, 19 Dec 2016 13:48:56 +0000 (+0000) Subject: Tell `git revert` not to follow renames (CVE-2016-10026) X-Git-Tag: debian/3.20120629.2+deb7u2~33 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/b96507ee3bc891becd9078ec7556daa29f2cf513?hp=b96507ee3bc891becd9078ec7556daa29f2cf513 Tell `git revert` not to follow renames (CVE-2016-10026) Otherwise, we have an authorization bypass vulnerability: rcs_preprevert looks at what changed in the commit we are reverting, not at what would result from reverting it now. In particular, if some files were renamed since the commit we are reverting, a revert of changes that were within the designated subdirectory and allowed by check_canchange() might now affect files that are outside the designated subdirectory or disallowed by check_canchange(). Signed-off-by: Simon McVittie ---