-
Notifications
You must be signed in to change notification settings - Fork 46
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
Implement alternative to qvm-open-in-vm #671
Comments
The 2020 SecureDrop Workstation audit flagged the risks of our current MIME type definitions being overwritten as a medium severity issue, identified as
Figure 17.1: The salt script that installs mime type handler files:
{% if grains['id'] in ["sd-viewer", "sd-app", "sd-devices-dvm"] %}
sd-private-volume-mimeapps-handling:
file.symlink:
- name: /home/user/.local/share/applications/mimeapps.list
- target: /opt/sdw/mimeapps.list.{{ grains['id'] }}
- user: user
- group: user
- require:
- file: sd-private-volume-mimeapps-config-dir
{% else %}
sd-private-volume-mimeapps-handling:
file.symlink:
- name: /home/user/.local/share/applications/mimeapps.list
- target: /opt/sdw/mimeapps.list.default
- user: user
- group: user
- require:
- file: sd-private-volume-mimeapps-config-dir
{% endif %} |
backlog pruning:
|
As we saw with the Fail-Open behavior resolved via freedomofpress/securedrop-builder#221,
xdg-open
, which we implicitly rely on viaqvm-open-in-vm
, holds quite a bit of complexity within it: it attempts MIME type->application lookup via multiple files and methods before giving up. This provides a needlessly large surface for an adversary to explore for weaknesses.For our purposes, a much more narrowly defined allow-list of MIME types and applications would be sufficient and arguably more maintainable. This could be potentially implemented as a custom RPC service with its own policy, which would then let us fully lock down the
qubes.OpenInVM
policy forsd-workstation
VMs.The scope of this issue is to:
qvm-open-in-vm
/qubes.OpenInVM
for opening files in disposable VMs or exporting them viasd-devices
The text was updated successfully, but these errors were encountered: