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

fix discord bot unknown character vulnerability crashing the server. #116

Open
wants to merge 63 commits into
base: main
Choose a base branch
from

Conversation

Brentdbr
Copy link
Contributor

@Brentdbr Brentdbr commented Mar 2, 2024

There is an issue where if a message containing unsupported characters (e.g. ( ͡° ͜ʖ ͡°), 𒀜) gets sent in the set discord relay channel, the entire server crashes with an error stating that the rune sent is not supported. This commit adds a regex rule that aims to filter out any characters not belonging to Hiragana, Katakana, Kanji, Alphanumeric and Japanese special characters such as 「」.

@matthe815 matthe815 added the bug Something isn't working label Mar 2, 2024
matthe815 and others added 28 commits March 2, 2024 15:24
It will just continue crashing so long as it allows anything other than ASCII characters at some point when you enter a string of them that ends up messy. katakana, hiragana and han should therefore not be allowed until a fix for that is found.
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.18.0 to 0.23.0.
- [Commits](golang/net@v0.18.0...v0.23.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
sekaiwish and others added 30 commits July 16, 2024 00:57
…/golang.org/x/net-0.23.0

Bump golang.org/x/net from 0.18.0 to 0.23.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants