Skip to content

fix: enforce borrower SSE stream ownership - #1439

Open
silentgeckoaudit3801 wants to merge 1 commit into
LabsCrypt:mainfrom
silentgeckoaudit3801:fix-sse-borrower-stream-auth
Open

fix: enforce borrower SSE stream ownership#1439
silentgeckoaudit3801 wants to merge 1 commit into
LabsCrypt:mainfrom
silentgeckoaudit3801:fix-sse-borrower-stream-auth

Conversation

@silentgeckoaudit3801

Copy link
Copy Markdown

Fixes #1332.

This PR corrects the ownership guard in �ackend/src/controllers/eventStreamController.ts::streamEvents. Non-admin users are now blocked when they request a borrower stream for a wallet other than their authenticated public key, while admins can still request a specific borrower feed.

The existing eventStream test suite already includes the regression expectation: a borrower token requesting ?borrower=GOTHERWALLET must receive 403.

Validation: static GitHub API/source inspection only; local backend tests were not run in this environment to avoid installing or executing additional toolchains.

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.

[Backend] SSE event stream authorization is bypassed for non-admins

1 participant