90687215a4
Fixes https://github.com/rfjakob/gocryptfs/issues/168 Steps to reproduce the problem: * Create a regular reverse mount point * Create files with the same very long name in multiple directories - so far everything works as expected, and it will appear with a different name each time, for example, gocryptfs.longname.A in directory A and gocryptfs.longname.B in directory B * Try to access a path with A/gocryptfs.longname.B or B/gocryptfs.longname.A - this should fail, but it actually works. The problem is that the longname cache only uses the path as key and not the dir or divIV. Assume an attacker can directly interact with a reverse mount and knows the relation longname path -> unencoded path in one directory, it allows to test if the same unencoded filename appears in any other directory. |
||
---|---|---|
.. | ||
configfile | ||
contentenc | ||
cryptocore | ||
ctlsock | ||
exitcodes | ||
fusefrontend | ||
fusefrontend_reverse | ||
nametransform | ||
openfiletable | ||
pathiv | ||
prefer_openssl | ||
readpassword | ||
serialize_reads | ||
siv_aead | ||
speed | ||
stupidgcm | ||
syscallcompat | ||
tlog |