mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-26 09:46:00 +03:00
[GH-ISSUE #729] Attachments can be downloaded without authorisation #495
Labels
No labels
SSO
Third party
better for forum
bug
bug
documentation
duplicate
enhancement
future Vault
future Vault
future Vault
good first issue
help wanted
low priority
notes
pull-request
question
troubleshooting
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vaultwarden#495
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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 @ntimo on GitHub (Nov 16, 2019).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/729
Hello,
Currently the API does not check if the user is authorized to download the encrypted attachment file via /attachments/.
It would be quite nice to have somekind of authentication here. So that it is not possible to download attachments without having a active session. I also noted that vault.bitwarden.com does the same :( .
Best wishes,
Timo
@mprasil commented on GitHub (Nov 17, 2019):
Yeah, unfortunately this is limitation on the Bitwarden side and I'm not sure what we can do about it. I assume the reason why it's implemented that way in the upstream is that they can offload attachment handling to "dumb" http server. (or even something like S3) On the plus side attachments are decrypted client side. So even if someone managed to guess the attachment URL (which is pretty hard with that uuid) they still wouldn't get the contents.
@ntimo commented on GitHub (Nov 17, 2019):
Maybe we could limit by IP address? I think that should work. So if we know that the user has a active session with IP xy then this IP is allowed to download attachments for this user.
@mprasil commented on GitHub (Nov 17, 2019):
Not really. The active session is very loose concept. You can have mobile client logging in and then fetch the attachment hours later from completely different network.
@mprasil commented on GitHub (Nov 27, 2019):
I'm going to close this as it's essentially working as intended. (trying to be upstream compatible)