-
Notifications
You must be signed in to change notification settings - Fork 249
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
s/// doesn't support regex #166
Comments
AFAIK this was removed because of security vulnerabilities with allowing anyone to specify any regex. See #99. |
That seems correct. Abra rewrote it and it appears to no longer be vulnerable, so this can be fixed. |
I noticed that the bot doesn't support regex today and started tinkering with it before checking the issues. I've pushed my work adding regex back in to my fork. I've tested it against the malicious example in #99 and the examples in the article linked from there. It doesn't hang at all. Though, in the longer malicious examples from the article, it didn't replace, either. I suspect python's re package itself has been updated to sanitize that kind of input. |
…anup Add check for joining user's nick in join mode hook
…ache Add caching to herald.py
s/// doesn't support regex. It should.
Test:
(test(
s/($/)/
s/./
Expected output:
(test)
Actual output:
Bot doesn't seem to be triggered...
Did not find . in any recent messages.
The text was updated successfully, but these errors were encountered: