Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User can add tag to a room that they are not member of #17819

Open
lamoboos223 opened this issue Oct 10, 2024 · 0 comments
Open

User can add tag to a room that they are not member of #17819

lamoboos223 opened this issue Oct 10, 2024 · 0 comments

Comments

@lamoboos223
Copy link

Description

There is no validation on tag creation on the user room membership. Hence, a user can create a tag to a room that they are not member of and flood the db with trivial data.

Steps to reproduce

PUT /<room_id_user_is_not_member_of>/tags/<tag_name>

Response: 200 OK. And if you check the db you will see the tag added there.

Proposed solution: add membership check step before invoking the create tag code.

Homeserver

Localhost

Synapse Version

I’m using 1.80 but I see it’s not patched in the latest version as well

Installation Method

Debian packages from packages.matrix.org

Database

Postgresql

Workers

Single process

Platform

MacOS

Configuration

NA

Relevant log output

NA

Anything else that would be useful to know?

I have patched it on my codebase, and I would love to contribute to this project if you allow me 🙏🏻

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

No branches or pull requests

1 participant