Skip to content

[stable35] fix: fail uploads when uri does not match session/share token - #63959

Merged
AndyScherzinger merged 3 commits into
stable35from
backport/63878/stable35
Sep 4, 2026
Merged

[stable35] fix: fail uploads when uri does not match session/share token#63959
AndyScherzinger merged 3 commits into
stable35from
backport/63878/stable35

Conversation

@backportbot

@backportbot backportbot Bot commented Sep 2, 2026

Copy link
Copy Markdown

Backport of PR #63878

@backportbot
backportbot Bot requested a review from a team as a code owner September 2, 2026 14:14
@backportbot
backportbot Bot requested review from AndyScherzinger, CarlSchwan, come-nc, leftybournes, salmart-dev, sorbaugh and susnux and removed request for a team, AndyScherzinger and susnux September 2, 2026 14:14
@backportbot backportbot Bot added the 3. to review Waiting for reviews label Sep 2, 2026
@backportbot backportbot Bot added this to the Nextcloud 35 milestone Sep 2, 2026
@AndyScherzinger
AndyScherzinger force-pushed the backport/63878/stable35 branch 2 times, most recently from 42c002b to 0349493 Compare September 2, 2026 17:56
This is a cosmetic change that can cause false security reports: the
current implementation of the upload root collection returns UploadHome
in every case, based on the current session, either the one of the
logged in user, or for the share. The former allows uploading files in
what looks like the upload folder of another user, but is in reality the
one of the logged in user. Those requests will now fail with a 403
instead.

Signed-off-by: Salvatore Martire <4652631+salmart-dev@users.noreply.github.com>
Assisted-by: Claude:claude-sonnet-5
Signed-off-by: Salvatore Martire <4652631+salmart-dev@users.noreply.github.com>
Assisted-by: Claude:claude-sonnet-5
Signed-off-by: Salvatore Martire <4652631+salmart-dev@users.noreply.github.com>
@AndyScherzinger
AndyScherzinger merged commit f387e13 into stable35 Sep 4, 2026
180 of 190 checks passed
@AndyScherzinger
AndyScherzinger deleted the backport/63878/stable35 branch September 4, 2026 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants