-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Encrypted file may start with "<?xml ". #84
Comments
I am not sure, but it is possible, since the encfs config file leaks as well according to vgough#174. So it should be rather easy to reproduce this on linux:
|
I can't reproduce this with upstream on FreeBSD (no reason to be different on Linux). In addition, @vovcacik, I think the following from your test case is wrong : |
@benrubson I have updated report description to make clear that You might be right that I should not mess with the ciphered files/dirs. But my understanding was that the ciphered files can be manipulated just like any other, e.g. you can copy them, move them, rsync them, git them etc. It is not exaggerated to say one of such tool could create local configuration file of some sort in the encrypted dirs that would start with My concern here is that any files starting with |
Also I was explicit about that the |
I did my tests with the trailing space :)
You're right, but not modify them as plain file. I was going through all encfs-upstream issues to see how I could help, and I think this one is rather an user issue, as EncFS is not intended to be used like this :) |
There are legitimate use cases. For example you want to cloud sync your directory (think Dropbox, bittorrent sync, syncthing or other) and you decide to use encfs for end-to-end encryption. But the sync solution of your choice is creating xml configuration files inside the synchronized directory. |
Put your encfs directory in a subfolder of the synced directory, so that your sync solution xml file is not inside the encfs dir, but in the top-folder ? |
Environment
Description
When I use Null filename encryption and I edit a specially crafted txt file starting with
<?xml
(note the trailing space) through encfs, the underlying encrypted file won't be binary but is mixed - the<?xml
is preserved and encrypted binary data follows it. This is the minimal example, but the problem can be made as bad as this.The file starting with
<?xml
have to be created in underlying filesystem first and then it can be edited through dokan mount. If the file is created and edited through dokan mount it all works correctly.Expected behavior vs. actual behavior
When I save file through encfs I expect the underlying encrypted file to contain only cipher binary data.
Steps to reproduce problem
Follow the prompts, it is 100 % reproducible. When you create encfs disk choose Null filename encryption, otherwise default values.
Relevant logs
None.
The text was updated successfully, but these errors were encountered: