Release demo mode marks the helper connected and enforcement on without applying it

Open
#296 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
54/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
macos, swift
Domain
desktop, security

Research direction

Read the startup paths in Sources/GUI/App/FreeSnitchApp.swift:113-135, 148-164, and 194-208, then trace the enforcement flag in Sources/GUI/ViewModels/AppState.swift:171-177. Check release startup with FREESNITCH_DEMO=1 and confirm the window does not report helper or enforcement as live when those services were skipped. Done when release startup cannot present fabricated helper and enforcement state.

Written by the indexing model from the issue text.

Description

area:gui bug priority:low status:queued type:diagnostics

I can select the demo startup path in a release build using its launch environment. FreeSnitchApp.swift:113 checks environment["FREESNITCH_DEMO"] == "1" without a debug guard and sets the helper state to connected. Lines 133-135 skip extension activation, and AppState.swift:175 sets enforcementEnabled = true while suppressing the helper request. This proves fabricated app state, not that an existing filter is stopped or that every readiness indicator reports protection. I have not checked the resulting release window on a Mac.

Steps

  1. Start the release app with FREESNITCH_DEMO=1 in its launch environment.
  2. Startup skips helper registration/connection and extension activation.
  3. The app marks the helper connected and sets the enforcement flag to true without applying enforcement.

Where

  • Sources/GUI/App/FreeSnitchApp.swift:113-135
  • Sources/GUI/App/FreeSnitchApp.swift:148-164
  • Sources/GUI/App/FreeSnitchApp.swift:194-208
  • Sources/GUI/ViewModels/AppState.swift:171-177

Done when: Release startup cannot silently present fabricated helper and enforcement flags as live state.

I found this reading the code and haven't reproduced it on a signed build yet: the release app presentation with the demo environment needs checking.

Dominant language
Swift
Stars
49
Forks
5
Avg merge
16h 48m
Merged PRs (30d)
82

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from isaaclins/freesnitch

All issues in isaaclins/freesnitch

Similar issues

More Swift issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.