Skip to content

Add a way to disable checking LAN/USB sources #1863

Closed

Description

@mwleeds

For privacy and performance reasons, some people might want to disable checking for refs on the LAN. But we still want everyone to use collection IDs eventually, so we might want a new repo config option.

Activity

  1. mwleeds commented on Jul 11, 2018

    @mwleeds
    ContributorAuthor

    There's probably a security argument to be made for this too, with e.g. ostreedev/ostree#1527

  2. pwithnall commented on Jul 11, 2018

    @pwithnall
    Collaborator

    Sounds good to me. I’d like to see this enabled by default, but I can see why people might have privacy concerns about it†. I suggest the way to do this would be to add a ‘enabled repo finders’ option to the OSTree repo config, in libostree. Looks like the code in common/flatpak-installation.c which instantiates some OstreeRepoFinder instances would need to pay attention to this config option too.

    † The way that P2P ref resolution works means that when you’re looking for a specific ref (say, app/my-super-secret-app), the OstreeRepoFinderAvahi will grab the latest bloom filter from every peer on the LAN, without actually mentioning which refs it’s looking for. It’s only in the case of a bloom filter match that OstreeRepoFinderAvahi will make a HTTP request to the matching peer to get the checksum for that ref by name. So the privacy issue is not immediate, but an attacker could fairly easily publish an all-ones bloom filter (which matches every ref name) to snoop for update requests. So there is definitely an issue.

  3. mwleeds commented on Jul 11, 2018

    @mwleeds
    ContributorAuthor

    an attacker could fairly easily publish an all-ones bloom filter (which matches every ref name) to snoop for update requests

    I think the attacker would have to also publish a summary with every ref the victim might have.

  4. pwithnall commented on Jul 11, 2018

    @pwithnall
    Collaborator

    True, but also quite possible. If you’re doing a targeted attack to work out who has (say) a particular vulnerable application installed, for example.

  5. changed the title [-]Add a way to disable P2P or at least LAN traffic[/-] [+]Add a way to disable checking LAN/USB sources[/+] on Jul 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions