Forum archive
Leantime vulnerability?
A while ago I installed Leantime on Proxmox using TKL's template. It worked fine.
I also run a mailserver (mailcow) at home and recently got listed again on Spamhaus' exploit and css blocklist.
The info I got from Spamhaus' website it the following:
Why was this IP listed?[my-public-ip] has been classified as part of a proxy network. There is a type of malware using this IP that installs a proxy that can be used for nearly anything, including sending spam or stealing customer data. This should be of more concern than a Spamhaus listing, which is a symptom and not the problem.The proxy is installed on a device - usually an Android mobile, firestick, smart doorbell, etc, but also iPads, and Windows computers - that is using your IP to send spam DIRECTLY to the internet via port 25: This is very often the result of third party "free" apps like VPNs, channel unlockers, streaming, etc being installed on someone's personal device, usually a phone.Technical informationImportant: If this IP operates as a mail server, it should look and behave like a mail server. The HELO currently used appears to be dynamic and that is behaviour commonly observed in malware/proxy networks.Recent connections:(IP, UTC timestamp, HELO value)[my-public-ip] 2024-04-12 05:50:00 leantimeImportant points:The HELOs are often dynamic-looking rDNS and usually claim to be from geographically very different networks OR spoofs of major brands.They can include impossible HELOs like "gmail.com", "outlook.com", "comcast.net" - Gmail, Outlook and Comcast do not use these. These are all fake.If the HELO does not make sense for the IP generating it, it should be looked at closely.There is often more than one compromised device.Guest networks should also be secured.This is a simple explanation of how it can work: https://www.spamhaus.com/resource-center/when-doorbells-go-rogue/Any devices with "free" VPNs, TV streaming, channel unlocking, or 3rd-party apps installed are the first things to check.What should be done about it?We very strongly recommend securing your firewall to not allow any packets outbound on port 25, except those coming from any email server(s) on your local network. Remote sending of email to servers on the Internet should still work if web-based, or configured properly to use port 587 using SMTP-AUTH. Guest networks should be secured too.After port 25 is outbound is secured, the proxy needs to be found and removed. We can only see what's coming from the NAT (public) IP; anything inside your network is visible only to you. You can start logging at the router or firewall to see what's trying to use port 25 and that should lead you right to the compromised device(s).
When I saw this report, I closed port 25 (which at the time pointed to mailcow) and killed the leantime container as the only device on my network with the HELO/hostname leantime, was the leantime container.
I checked my mailcow logs and they are clean as far as I could find with the help of the mailcow community.
I disconnected the network of the container and started examining it, but email sending was never set up either for TKL or leantime itself.
Does anyone have an idea what could be the problem/coulprit?
PS: If any more information required, ask for it and I'll try to post it.
Sorry for the bad formatting, I don't know HTML, but am used to markdown.
It would indeed appear as if postfix has been trying to send emails to my email address, which is an iCloud address.
And indeed my SPF is set to only allow emails from my root domain and mail.mydomain.nl.
I don't know if I can provide you with any more logs to further investigate what caused is to go nuts and spam my IP into oblivion.