mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-12-10 01:10:09 +03:00
/data directory is exposed #2165
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @carlchan on GitHub.
Looks like the default rocket config exposes the /data directory, allowing download of the db.sqlite3 password database. While everything in it is encrypted, that doesn't seem like a good idea.
reproduce via going directly to
https://bitwarden_rs.domain/data/db.sqlite3
@mprasil commented on GitHub:
There must be something else at play here.
bitwarden_rsserves static files fromweb-vaultsub-directory by default. I can't reproduce the issue personally, can you maybe provide some steps to reproduce?@mprasil commented on GitHub:
This is what I get when trying the same:
Do you have your data folder somewhere inside your
web-vaultfolder by any chance?@carlchan commented on GitHub:
huh. you're right! how did that get there??
Yes that would be it, sorry, thank you.
@carlchan commented on GitHub:
Hmm. I just have a mostly default config, with web-vault enabled (instaleld using pre-compiled version)
here's the relevant log from cargo: