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. |
||
---|---|---|
.. | ||
cli | ||
defaults | ||
example_filesystems | ||
hkdf_sanity | ||
matrix | ||
plaintextnames | ||
reverse | ||
stress_tests | ||
test_helpers | ||
canonical-benchmarks.bash | ||
dl-linux-tarball.bash | ||
fuse-unmount.bash | ||
maxlen.bash |