Latest / Decrypted: The UK Cyber Briefing / FortiMail's encryption portal let attackers write files without logging in
Transcript
- 0:03This is Decrypted. Saturday, the third of October.
- 0:06FortiMail's encryption portal let attackers write files without logging in.
- 0:11The mail gateway is meant to check the post before it reaches your staff.
- 0:16This week, Fortinet confirmed that attackers are using a flaw in its FortiMail product to write their own fil
- 0:23es onto that gateway without logging in.
- 0:25Fortinet published its advisory on 1 October.
- 0:30Sisa added the flaw, C V E twenty twenty-six, one zero four two eight six, to its Known Exploited Vulnerabili
- 0:39ties catalogue the same day.
- 0:41US federal agencies have a deadline of 4 October.
- 0:45Next.
- 0:49The bug scores 9.8 out of 10.
- 0:53It sits in the web component for Identity-Based Encryption, or I B E.
- 0:58That's the feature that lets FortiMail send encrypted messages to outside recipients, who collect them throug
- 1:05h a web portal. Fortinet describes a path traversal combined with improper handling of N U L L characters.
- 1:13Those are two classic input-handling mistakes.
- 1:16Think of a hotel porter told to deliver parcels only to the post room.
- 1:20The flaw lets a stranger hand over a note reading "post room, then up three floors and along the corridor".
- 1:28The porter simply follows it, never asking who the stranger is.
- 1:32In technical terms, an unauthenticated attacker can write arbitrary files to the underlying system using craf
- 1:39ted H T T P or H T T P S requests.
- 1:43And also.
- 1:46Fortinet's indicators of compromise include newly added files named liblog.
- 1:53so, webconsole and mailservice.
- 1:56There's also a ld.so.preload file, and modified configuration files such as httpd.
- 2:05conf. A preload file is a Linux mechanism for loading a chosen library into every program that starts.
- 2:12That's exactly what you'd want if you planned to stay hidden.
- 2:15Two I P addresses are listed: 79.
- 2:19141.169 dot 187, and 45.129.
- 2:250 dot 192. Reporting says the actor behind the attacks hasn't been identified.
- 2:31One caution. Sources disagree on patch status.
- 2:36Fortinet's advisory lists 8.
- 2:380.2, 7.6.7 and 7.4.9 as fixed releases.
- 2:45It tells 7.2 users to move to the 7.
- 2:494 branch. But some write-ups describe the fixes as forthcoming.
- 2:53Check the advisory against your own appliance rather than trusting a summary, including this one.
- 2:59And also.
- 3:03An email gateway sees the contents of an organisation's correspondence.
- 3:07So it should present the smallest surface possible.
- 3:10Here, an optional feature exposed a web interface, and one weak check turned it into a foothold.
- 3:17Secure by Design asks the vendor for three things.
- 3:21Optional features should be off until chosen.
- 3:24Input that contains path characters should be rejected rather than tidied up.
- 3:29And portals and management interfaces shouldn't be reachable from the open internet by default.
- 3:34Fortinet's own workarounds point the same way.
- 3:37Disable I B E. Restrict access to trusted networks.
- 3:42Or use a web application firewall to block P O S T requests to /ibe containing ".
- 3:49./".
- 3:54First, find out whether you run FortiMail, including through a managed provider, and which version.
- 4:01Then disable I B E if you don't need it, and apply the fixed release if you do.
- 4:06Next, hunt for the listed files and addresses.
- 4:10A patch closes the door, but it doesn't evict someone already inside.
- 4:14Finally, ask your supplier in writing which features are enabled by default and reachable from the internet.
- 4:22That last question costs an afternoon.
- 4:25It's far cheaper than explaining to a regulator, or your board, why your mail gateway was open.
- 4:31That was Decrypted. The written version and every source are linked in the show notes.
- 4:37Thanks for listening.