Skip to content

fix(post-message): verify incoming and outgoing origin#5874

Merged
elzody merged 2 commits into
mainfrom
fix/postmessage-origin
Jul 23, 2026
Merged

fix(post-message): verify incoming and outgoing origin#5874
elzody merged 2 commits into
mainfrom
fix/postmessage-origin

Conversation

@elzody

@elzody elzody commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator
  • Target version: main

Summary

Post messages sent between Nextcloud and Collabora never actually had their origins verified, so now we verify those origins to make sure they cannot be acted upon from an untrusted origin.

Checklist

  • Code is properly formatted
  • Sign-off message is added to all commits
  • Documentation (manuals or wiki) has been updated or is not required

@elzody
elzody requested review from emberfiend and rikled July 17, 2026 19:06
@elzody elzody self-assigned this Jul 17, 2026
@elzody
elzody requested a review from juliusknorr as a code owner July 17, 2026 19:06
@elzody elzody added the 4. to release Ready to release, can be waiting for the tests to finish label Jul 17, 2026
Signed-off-by: Elizabeth Danzberger <elizabeth@elzody.dev>
@elzody
elzody force-pushed the fix/postmessage-origin branch from 5e58bf2 to 04c9ad6 Compare July 23, 2026 16:00
In the Cypress container, the incorrect Collabora URL is used which
causes the origin validation to fail

Signed-off-by: Elizabeth Danzberger <elizabeth@elzody.dev>
@elzody

elzody commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator Author

/backport to stable34 please

@elzody

elzody commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator Author

/backport to stable33 please

@elzody

elzody commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator Author

/backport to stable32 please

@elzody

elzody commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator Author

/backport to stable31 please

@elzody

elzody commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator Author

/backport to stable30 please

@elzody

elzody commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator Author

/backport to stable29 please

@elzody
elzody merged commit 091d4b1 into main Jul 23, 2026
44 checks passed
@elzody
elzody deleted the fix/postmessage-origin branch July 23, 2026 18:23
@backportbot

backportbot Bot commented Jul 23, 2026

Copy link
Copy Markdown

The backport to stable29 failed. Please do this backport manually.

# Switch to the target branch and update it
git checkout stable29
git pull origin stable29

# Create the new backport branch
git checkout -b backport/5874/stable29

# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts, resolve them
git cherry-pick 04c9ad64 7b25afad

# Push the cherry pick commit to the remote repository and open a pull request
git push origin backport/5874/stable29

Error: Failed to check for changes with origin/stable29: No changes found in backport branch


Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

@backportbot

This comment was marked as resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to release Ready to release, can be waiting for the tests to finish backport-request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants