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

Prevent low-risk SQL injection from roomId values when entered into the config #1619

Merged
merged 4 commits into from
Sep 26, 2022

Conversation

jaller94
Copy link
Contributor

Prevents low-risk SQL injection from roomId values when checking room visibility.

This fixes a hard to exploit SQL injection vector.
To abuse this, an attacker needs to be able to set malicious Matrix IDs in the room mappings.

@jaller94 jaller94 requested a review from a team as a code owner September 26, 2022 09:01
@Half-Shot Half-Shot changed the title Prevent low-risk SQL injection from roomId values Prevent low-risk SQL injection from roomId values when entered into the config Sep 26, 2022
Copy link
Contributor

@Half-Shot Half-Shot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does the things, though we might want to revise the changelog statement.

@Half-Shot Half-Shot merged commit 179313a into develop Sep 26, 2022
@Half-Shot Half-Shot deleted the j94/room-visibility-injection branch September 26, 2022 11:12
Half-Shot added a commit that referenced this pull request Sep 26, 2022
…he config (#1619)

* Prevent SQL injection from roomId values when checking room visibility

* Add newsfile

* Update newsfile

* Update 1619.bugfix

Co-authored-by: Will Hunt <will@half-shot.uk>
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

Successfully merging this pull request may close these issues.

2 participants