-
-
Notifications
You must be signed in to change notification settings - Fork 660
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
smtp_bridge allows to use an unauthorized connection pool #3022
Comments
msimerson
added a commit
to msimerson/Haraka
that referenced
this issue
Mar 30, 2022
auth_proxy: run "secured" only once, improvement for haraka#3022
msimerson
added a commit
to msimerson/Haraka
that referenced
this issue
Apr 1, 2022
- auth_proxy: run "secured" only once, improvement for haraka#3022
msimerson
added a commit
that referenced
this issue
Apr 4, 2022
* clean up get_pool call signature * smtp_client: pass args as object (was positional) * smtp_client: run "secured" once, fixes #3020 - auth_proxy: run "secured" only once, improvement for #3022 * update outbound for generic-pool v4 too * force a newer node-gyp version - fixes #3017 * reduce windows testing to working version
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Prerequisites: backend postfix server with multiple users + haraka configured as a reverse proxy with smtp_bridge plugin
According to smtp_bridge docs:
However there is a combination of bugs:
try_auth_proxy
func (similar issue as in Haraka doesn't correctly handle failed plain auth in smtp_client.js #3020)get_client
func) independently on authenticated username (for instance smtp_forward uses properget_client_plugin
func with unique connection per user)Expected behavior
try_auth_proxy
should correctly handle authObserved behavior
When smtp_bridge plugin is used, there is a high probability that unauthorized user with any credentials can send emails on behalf of other authed haraka users.
Steps To Reproduce
pool_concurrency_max=1
to increase the bug hit probabilitySystem Info:
Additional context
smtp_client.js
and inplugins/auth/auth_proxy.js
short fix at least disallows the successful attempt to send emails by unauthenticated users:
But even applying this short fix still allows other authenticated users to send emails on behalf of another account, when multiple accounts on the backend have different strict rules (good example is AWS SES). I think bigger code refactoring is the best long term aim.
The text was updated successfully, but these errors were encountered: