Skip to content

Validate sender in all IPC event handlers - #8248

Merged
FreeTubeBot merged 1 commit into
FreeTubeApp:developmentfrom
absidue:ipc-sender-validation
Nov 10, 2025
Merged

FreeTubeBot merged 1 commit into
FreeTubeApp:developmentfrom
absidue:ipc-sender-validation

Conversation

@absidue

@absidue absidue commented Nov 9, 2025 •

Copy link
Copy Markdown
Member

Pull Request Type

  • Security improvement

Description

At the moment we only validate that the sender of the IPC event was actually the FreeTube page in a few event handlers, this pull request adds the checks to the remaining ones.

Testing

Test a few things that use IPC calls e.g. turning on and off the experimental HTTP cache or having multiple windows open and changing some data in one window and check that it is synced to the other window.

Desktop

  • OS: Windows
  • OS Version: 11

@FreeTubeBot
FreeTubeBot enabled auto-merge (squash) November 9, 2025 15:08
@github-actions github-actions Bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Nov 9, 2025

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ctrl + enter doesnt work in the search bar

Image

@absidue

absidue commented Nov 9, 2025

Copy link
Copy Markdown
Member Author

Yay, more Vue 3 migration issues, not caused by this PR.

@absidue

absidue commented Nov 9, 2025

Copy link
Copy Markdown
Member Author

Updated the test case to something that actually works.

@FreeTubeBot
FreeTubeBot merged commit eff85a5 into FreeTubeApp:development Nov 10, 2025
@github-actions github-actions Bot removed the PR: waiting for review For PRs that are complete, tested, and ready for review label Nov 10, 2025
@absidue
absidue deleted the ipc-sender-validation branch November 10, 2025 05:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants