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

Open relay #192

Open
hasufell opened this issue Jan 8, 2019 · 5 comments
Open

Open relay #192

hasufell opened this issue Jan 8, 2019 · 5 comments

Comments

@hasufell
Copy link

hasufell commented Jan 8, 2019

Is this docker image by default an open relay in such that it allows in-band registration?

## In-band registration allows registration of any possible username.
register:
{%- if env['EJABBERD_REGISTER_ADMIN_ONLY'] == "true" %}
all: deny
admin: allow
{% else %}
all: allow
{% endif %}

@shred
Copy link
Contributor

shred commented Jan 28, 2019

It seems so... I just had the pleasure to remove almost 4000 unwanted users from my server. 😉

The EJABBERD_REGISTER_ADMIN_ONLY option is missing in the README.md, so I wasn't aware of it. Maybe its logic should also be reversed, so in-band registration is disabled by default, and only enabled if an env is explicitly set to true.

@hasufell
Copy link
Author

Awful. I wonder how many more users of this image are affected.

@shred
Copy link
Contributor

shred commented Jan 28, 2019

Also, EJABBERD_REGISTER_TRUSTED_NETWORK_ONLY is supposed to be true by default, according to the README. However this default value does not seem to be set anywhere.

@youmad
Copy link
Contributor

youmad commented Jan 30, 2019

I just had the pleasure to remove almost 4000 unwanted users from my server.

@shred I guess that those users were registered by a spammer. Setting EJABBERD_CAPTCHA env var to true can help save you from such situations.

@hasufell
Copy link
Author

A default configuration should never be an open relay.

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