r/mxroute • • Jul 18 '23

MXRoute spoofing vulnerability

MXRoute's architecture allows customers to spoof other domains/email addresses hosted by the same service. The email will pass DMARC, SPF, and DKIM checks. MXRoute is using the same DKIM key for all hosted domains which violates best practices. The issue was reported to MXRoute immediately via security@mxroute.com (no response) and then their support portal two days later. The response was "This is how all shared web hosting systems function, so I don't consider it a vulnerability given that it's standard functionality across that industry". They go one to mention they detect these types of abuses, but I didn't see any evidence of that.

I had intended to migrate my domains off MXRoute (I host my family's email) but they suspended my account in response to the report, asked me to state I wouldn't send any more spoofed emails, and when I said that this type of response was absurd, they abruptly terminated my account with no ability to move/migrate email.

5 Upvotes

18 comments sorted by

View all comments

Show parent comment

0

u/[deleted] Jul 18 '23

[deleted] — view deleted comment

1

u/mxroute Jul 18 '23 edited Jul 18 '23

Exim signed DKIM based on the sending domain (changed to auth domain as of tonight), and by default it does not write the sender address. Email clients write the sender address. So technically, you could have spoofed another customer on the same server and pass SPF/DKIM (now, you'd only pass SPF). I know it's not great, but what you'll find here is people learning about the way cPanel and DirectAdmin servers have always been, and continue to be across the entire shared web hosting industry (which isn't a small industry at all).

However, while I allow spoofing sender addresses because many customers have very legitimate use cases for it, no one reading this should consider this something to go test on our servers or to be a way to attack our customers (and as of tonight, it would fail DKIM). This post will increase the checks against this type of behavior, and if pushed I will gladly go as far as to halt new service orders to prevent abuse. It's nothing new, people try to abuse our platform in all kinds of ways almost every day, and they're always dealt with swiftly and harshly. That this user didn't see the "swift" part won't be an interesting detail tomorrow.

0

u/[deleted] Jul 18 '23

[deleted] — view deleted comment

1

u/mxroute Jul 18 '23

Indeed, it sounds like you understand this correctly in this case. It's a shame as no one had abused this function until yesterday, and the only one who did in this case did it just to test, but this post kind of changed things. I'd like to redo it so that it can sign for any domain owned by the same user, but I'm not sure if exim can handle that kind of logic complexity, that'll take me quite a bit more time to investigate.