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

s/// doesn't support regex #166

Open
lf- opened this issue Jun 16, 2015 · 3 comments
Open

s/// doesn't support regex #166

lf- opened this issue Jun 16, 2015 · 3 comments

Comments

@lf-
Copy link

lf- commented Jun 16, 2015

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.

@daboross
Copy link
Contributor

AFAIK this was removed because of security vulnerabilities with allowing anyone to specify any regex. See #99.

@lf-
Copy link
Author

lf- commented Jun 17, 2015

That seems correct. Abra rewrote it and it appears to no longer be vulnerable, so this can be fixed.

@lethargilistic
Copy link

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.

linuxdaemon pushed a commit to linuxdaemon/CloudBot that referenced this issue Sep 24, 2017
…anup

Add check for joining user's nick in join mode hook
linuxdaemon pushed a commit to linuxdaemon/CloudBot that referenced this issue Jan 31, 2018
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

3 participants