Skip to main content

Exim accepting fake logins!!!

Answered

Comments

22 comments

  • Daniel Santos

    I just checked the logs and it started immediately after updating today to 132.0.14

    0
  • rbairwell

    Can you clarify exactly what you mean as I'm unsure which systems may be affected and how.

    Based on your description, it sounds like somebody remote is able to send email through your server without authentication (as this is the only thing Exim handles - Dovecot handles POP3/IMAP "pickup" of email, cPanel handles port 2082/2083/2087 etc logins). Is this correct?

    Is this only a remote mail profile server and the main cPanel/WHM server is not affected? Did the same IP address recently login to send emails?

    If this is a security issue, it'll probably be best to email security@cpanel.net with the full details (including version numbers of each server and which version of Exim is installed on each server), logs showing this issue and a copy of your Exim configuration which should allow them to replicate the issue and get it fixed.

    0
  • Daniel Santos

    Correct, they are sending email, through the server.
    The server is relaying every email, that apparently come with valid authentication but, in fact,  it's not valid. There are even examples of using an address to Auth that is just a forwarder.

    So, I basically, the MAIN/PARENT node it's openly relaying emails for domains that have their MX on the MAIL node.
    The same PARENT node is actively refusing emails with wrong auth if the MX is the PARENT node itself so, that is OK.

    So, to answer you questions clearly:

    "Based on your description, it sounds like somebody remote is able to send email through your server without authentication (as this is the only thing Exim handles - Dovecot handles POP3/IMAP "pickup" of email, cPanel handles port 2082/2083/2087 etc logins). Is this correct?" 
    Yes, correct

    "Is this only a remote mail profile server and the main cPanel/WHM server is not affected?"
    Correct

    "Did the same IP address recently login to send emails?"
    No, this is not related to the relay ips from popbeforesmtp. Relay is completely open and it's from a few hundred IP addresses from all over the world. 

    0
  • cPRex Jurassic Moderator

    We'll need to investigate this directly on your system.  Were you able to email security or create a ticket on this yet?

    0
  • Daniel Santos

    Hi, yes, I already have a ticket for this, thanks.

    0
  • cPRex Jurassic Moderator

    Could you post the number here so I can follow along?

    0
  • Daniel Santos

    it's #95865570 

    0
  • Daniel Santos

    Meanwhile, parent node update as this

    "Completed update 11.130.0.16 -> 11.132.0.14"


    0
  • Daniel Santos

    just noticed on the /var/log/maillog with a lot of lines like these

    Dec 15 05:30:10 aquarius dovecot[612203]: auth(XXXX@XXXX.com,149.54.62.54,sasl:login): Error: policy: Policy server HTTP error: Absolute request timeout expired (Request queued 2.002 secs ago, 1 send attempts in 2.001 secs, 2.002 in other ioloops)

    0
  • Daniel Santos

    also on /var/maillog
    maybe dovecot auth is being forced to fail and then defaults to accepting that connection?

    Dec 15 22:25:18 aquarius dovecot[3151918]: auth(__cpanel__service__auth__exim__alz8ugzoz5cc_jrp,127.0.0.1,sasl:plain): Error: policy: Policy server HTTP error: Connection lost: read((conn:127.0.0.1:579,id=84)) failed: read(size=7676) failed: Connection reset by peer (Request queued 0.008 secs ago, 1 send attempts in 0.007 secs, 0.008 in other ioloops, connected 0.041 secs ago)

    0
  • cPRex Jurassic Moderator

    Update: As mentioned in the ticket, our team has created case CPANEL-50715 so they can address this.  It's been given some priority, although I don't have any specific ETA on what that will be completely resolved.

    0
  • Daniel Santos

    Issue has been solved with an update to Cpanel 132.0.15
    Thanks to all Cpanel helpdesk assistants for their support.

    0
  • cPRex Jurassic Moderator

    I'm glad we were able to get that one out so quickly before the end of the year!

    0
  • 0
  • cPRex Jurassic Moderator

    We'll check it out!

    0
  • Daniel Santos

    I'm affraid this issue has returned maybe in a different form..
    It actually validates the user but, if the authentication data gets compromised and we change it, the proxy still accepts email with the previous password.

    Is there some kind of cache we can clean? Or which services should we restart to restart the proxies?

    Best regards
    Daniel

    0
  • cPRex Jurassic Moderator

    If you have a machine where this is happening it would be best to create a ticket so we can see this in action directly on an affected system.

    0
  • Daniel Santos

    This is still happening...

    An account had its password changed, the account has suspended login, incoming email and outgoing email and the PROXY server (main server on a server/mail node configuration) still accepts and delivers emails for that account.
    Shouldn't the emails accepted on the proxy be proxied to the mail node for delivery?
    This also causes the mail archive not to work properly but that's another topic.
    Most important in terms of security is proxy server accepting and delivering authenticated email without respecting:
    - password
    - account suspensions

    0
  • Hi,

     

    Thank you for your detailed report. That said, since we haven't seen widespread reports of this behavior, it's likely something specific to your server configuration rather than a platform-wide issue. The mail node/proxy setup adds several moving parts to authentication and suspension enforcement, so diagnosing this properly likely requires direct access to the servers involved.

     

    This isn't something we'd be able to reliably troubleshoot through the forum alone. I'd recommend opening a ticket at your earliest convenience so the issue can be reviewed closer with server access.

    0
  • Daniel Santos

    I'm guessing it can be the @pwcache folder.
    It had an old entry, on the main server, for that email address.

    I deleted this one. Is it save to delete the entire @pwcache folder, on the main node, at least for this account?

    0
  • cPRex Jurassic Moderator

    Rather than deleting, I'd move it to a different location temporarily so you have a copy in case you need to put it back, but it's fine to do that for testing.

    0
  • Daniel Santos

    Done.
    I'll return with feedback as soon as I have news.

    0

Please sign in to leave a comment.