Skip to content

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

Open
backportbot[bot] wants to merge 3 commits into
stable34from
backport/63878/stable34
Open

[stable34] fix: fail uploads when uri does not match session/share token#63960
backportbot[bot] wants to merge 3 commits into
stable34from
backport/63878/stable34

Conversation

@backportbot

@backportbot backportbot Bot commented Sep 2, 2026

Copy link
Copy Markdown

Backport of PR #63878

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>
@backportbot
backportbot Bot requested a review from a team as a code owner September 2, 2026 14:51
@backportbot
backportbot Bot requested review from Altahrim, AndyScherzinger, CarlSchwan, come-nc, salmart-dev, sorbaugh and susnux and removed request for a team September 2, 2026 14:51
@backportbot backportbot Bot added the 3. to review Waiting for reviews label Sep 2, 2026
@backportbot backportbot Bot added this to the Nextcloud 34.0.4 milestone Sep 2, 2026
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