Skip to content

fix(transaction): prevent unauthorized updates by validating existing transaction ownership - #70

Merged
dedyf5 merged 1 commit into
mainfrom
feat/identity
Oct 13, 2026
Merged

dedyf5 merged 1 commit into
mainfrom
feat/identity

Conversation

@dedyf5

@dedyf5 dedyf5 commented Oct 13, 2026

Copy link
Copy Markdown
Owner
  • Fix security vulnerability where updates relied solely on payload validation, allowing users to modify unauthorized existing transactions if the new payload targeted an authorized branch.
  • Add existing transaction lookup via TransactionGetByPublicID scoped to the user's permitted branches before processing the update.
  • Expand unit tests to verify access control errors (403/404) on existing records.

… transaction ownership

- Fix security vulnerability where updates relied solely on payload validation,
  allowing users to modify unauthorized existing transactions if the new payload
  targeted an authorized branch.
- Add existing transaction lookup via TransactionGetByPublicID scoped to
  the user's permitted branches before processing the update.
- Expand unit tests to verify access control errors (403/404) on existing records.
@dedyf5
dedyf5 merged commit 16eb34b into main Oct 13, 2026
2 checks passed
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.

1 participant