Skip to content

[IN-189] fix: stop deleting previous sharings on public share and invite creation - #1257

Merged
apsantiso merged 1 commit into
masterfrom
fix/IN-189-sharing-delete-before-ownership
Oct 29, 2026
Merged

apsantiso merged 1 commit into
masterfrom
fix/IN-189-sharing-delete-before-ownership

Conversation

@apsantiso

@apsantiso apsantiso commented Oct 29, 2026 •

Copy link
Copy Markdown
Member

What

Creating a public share or an invite no longer deletes the item's previous sharings. persistPreviousSharing was a field we used for retrocompatibility.

Why

Reported in security finding C07 (CWE-863: Incorrect Authorization) #1246

POST /sharings deleted an item's invites and private shares before checking ownership, so any user with the item UUID could revoke another user's sharing access.

@apsantiso
apsantiso deployed to development October 29, 2026 11:02 — with GitHub Actions Active
@apsantiso
apsantiso deployed to development October 29, 2026 11:02 — with GitHub Actions Active
@apsantiso apsantiso self-assigned this Oct 29, 2026
@apsantiso apsantiso added the bug Something isn't working label Oct 29, 2026
@apsantiso
apsantiso deployed to development October 29, 2026 11:09 — with GitHub Actions Active
@apsantiso
apsantiso deployed to development October 29, 2026 11:09 — with GitHub Actions Active
@apsantiso
apsantiso force-pushed the fix/IN-189-sharing-delete-before-ownership branch from f08a28a to f0b78a8 Compare October 29, 2026 11:09
@apsantiso
apsantiso deployed to development October 29, 2026 11:09 — with GitHub Actions Active
@apsantiso
apsantiso deployed to development October 29, 2026 11:09 — with GitHub Actions Active
@apsantiso
apsantiso marked this pull request as ready for review October 29, 2026 11:10
@apsantiso
apsantiso requested a review from jzunigax2 as a code owner October 29, 2026 11:10
@sonarqubecloud

Copy link
Copy Markdown

@apsantiso
apsantiso merged commit d1f51c9 into master Oct 29, 2026
9 checks passed
@apsantiso
apsantiso deleted the fix/IN-189-sharing-delete-before-ownership branch October 29, 2026 11:16

This branch was successfully deployed

1 active deployment
development — f0b78a8a Deployed Oct 29, 2026 by apsantiso via run-tests (24.22.1) #1340
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants