Skip to content

Firewall fails open on missing or unknown X-Taint / X-Sink #4

Closed

Description

@SMC17

FirewallServer.handleConnection takes its decision inputs from headers the caller sends:

  • No X-Taint header means USER_INTENT, which is allowed at every sink.
  • An unrecognised X-Sink (for example a typo) means read_public, which is always allowed.

So a caller that forgets the header, or misspells it, is allowed. The decision is only as good as the labels the caller declares: nothing inspects the payload. That is by design for an IFC label check, but the README must say so, and the defaults should deny.

Fix: deny when X-Taint or X-Sink is missing or unrecognised, and add a test for each case.

Found in the 2026-11-19 README audit at fca8a21.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions