-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
feat(security): Block abusive email patterns #10152
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
Conversation
cc @adhiraj |
src/sentry/conf/server.py
Outdated
@@ -1377,3 +1378,6 @@ def get_raven_config(): | |||
JS_SDK_LOADER_SDK_VERSION = '' | |||
# This should be the url pointing to the JS SDK | |||
JS_SDK_LOADER_DEFAULT_SDK_URL = '' | |||
|
|||
# too much junk happening from bots, lets kill things that clearly shouldn't be humans | |||
INVALID_EMAIL_ADDRESS_PATTERN = re.compile(r'^\d\@qq\.com$', re.I) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
INVALID_EMAIL_ADDRESS_PATTERN = re.compile(r'^\d\@qq\.com$', re.I) | |
INVALID_EMAIL_ADDRESS_PATTERN = re.compile(r'^\d+\@qq\.com$', re.I) |
I think you want this, otherwise it won't work for anything I've seen.
2521824
to
3c1719e
Compare
Its VERY possible this will block legit email addresses, but clealry people are also using this for abuse, so Im ok with that. https://www.reddit.com/r/todayilearned/comments/3xpeaf/til_that_many_chinese_people_use_phonenumber/ |
I'm also ok if we block qq.com entirely. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔨
3c1719e
to
b03122c
Compare
We're seeing a lot of junk signups from \d@qq.com so this is a simply quick fix to make a configurable pattern match on blocking email addresses. It's not the be-all-end-all, but it prevents this simplistic attack. We'll likely also want to restore captcha in some cases in the future, but thats going to be a much more complex feature.
b03122c
to
a0d9292
Compare
👍 to banning |
Fixes a bug in #10152, so that we actually block invalid email addresses.
Fixes a bug in #10152, so that we actually block invalid email addresses.
We're seeing a lot of junk signups from \d@qq.com so this is a simply quick fix to make a configurable pattern match on blocking email addresses.
It's not the be-all-end-all, but it prevents this simplistic attack. We'll likely also want to restore captcha in some cases in the future, but thats going to be a much more complex feature.