Skip to main content

Exim, blank cwd parameter

Comments

17 comments

  • Jcats
    +1 I am having the same issue, I think this started occurring since cPanel Security Team: exim CVE-2016-1531 All I am seeing is cwd=/
    0
  • nickl_sa
    Hi there Now and again I SSH into my server to check if any spam scripts are running using the following code -
    grep cwd /var/log/exim_mainlog | grep -v /var/spool | awk -F"cwd=" '{print $2}' | awk '{print $1}' | sort | uniq -c | sort -n
    Today a got a report as follows -
    6 /home/graphicm/public_html 6 /home/kellydan/public_html 6 /root 8 /home/infracom 10 /home/sardinia/public_html 13 /home/bruniquelco/public_html 16 /home/slenderw/public_html 17 /home/pro3agen/public_html 18 30 /home/hoorawhi/public_html 33 /home/stylemec 38 /home/wbgroupc 170 /home/propergr 31309 /
    What does the 31309 (and climbing) messages in the / directory mean? There's no spam mails in the outgoing mail queue. How can I check the source of these mails? Thanks Nick
    0
  • hoststage
    I really want to put it out there that the recent exim update isn't welcome at all : csf no longer processing LF_SCRIPT_ALERT | ConfigServer Services Blog Exim doens't seem to return the proper path when scripts are sending emails. Please do something about that. We were about to invest 2 days ago into some custom script working from this feature. If you could restore it, it would be hugely appreciated.
    0
  • hoststage
    Noticed the same thing. And latest info, is that an Exim update shall be released soon, it will be fixed. @Jcats it was indeed from Exim CVE-2016-1531
    0
  • hoststage
    Apparently, update on its way, can't wait for it.
    0
  • Jcats
    Hope so!
    0
  • Eric
    Howdy, I bet this is part of the Exim update. Give us a few days and we have a patch that will fix this. Thanks!
    0
  • hoststage
    Is it official or a temporary work around until an official update is released ? Did it work properly for you ?
    0
  • Jcats
    We can't use that patch, its used for when building exim, not after its already installed so just SOL. We've already had 3 servers get black listed, just been tailing mail logs all night.
    0
  • rahulkshinde
    Exim logs does not shows the detailed logs Steps to reproduce: cat /var/log/exim_mainlog | grep 'cwd=/home' | grep '2016-03-02'| less above command shows output : 2016-03-02 01:00:02 cwd=/home/##### 9 args: /usr/sbin/sendmail -FCronDaemon -i -odi -oem -oi -t -f root 2016-03-02 01:06:04 cwd=/home/#####/public_html 3 args: /usr/sbin/sendmail -t -i 2016-03-02 01:06:10 cwd=/home/#####/public_html 3 args: /usr/sbin/sendmail -t -i 2016-03-02 01:08:14 cwd=/home/#####/public_html 3 args: /usr/sbin/sendmail -t -i 2016-03-02 01:08:16 cwd=/home/#####/public_html 3 args: /usr/sbin/sendmail -t -i 2016-03-02 01:10:02 cwd=/home/#####/ 9 args: /usr/sbin/sendmail -FCronDaemon -i -odi -oem -oi -t -f ro where as : cat /var/log/exim_mainlog | grep 'cwd=/home' | grep '2016-03-04'| less does not show anything, we have confirmed and stopped the active spamming from this server but still logs did not collect any CWD paths This has been since the Exim CVE-2016-1531 update. Result of this our malware quarantine script stop working as its not getting the path. We have submitted a ticket to Support and they have recognize this as Bug CPANEL-4597.
    0
  • Robert Duller
    any update on this yet?
    0
  • cPanelMichael
    Hello :) The lack of a specific current working directory (cwd) entry in /var/log/exim_mainlog stems from the recent Exim security patch:
    0
  • cPanelMichael
    To update, the resolution is now published to the "Current" and "Release" build tiers as part of cPanel version 54.0.19: Fixed case CPANEL-4597: Emit cwd=/path/to/caller to logs when exim is called from command line. Thank you.
    0
  • Jcats
    To update, the resolution is now published to the "Current" and "Release" build tiers as part of cPanel version 54.0.19: Fixed case CPANEL-4597: Emit cwd=/path/to/caller to logs when exim is called from command line. Thank you.

    Woo hoo! Thank you!
    0
  • hoststage
    Yeehhaa! Way to go cPanel!
    0
  • rahulkshinde
    Thanks for the quick resolution on this guys :)
    0

Please sign in to leave a comment.