EGroupware Vulnerable to Local File Inclusion via file:// URI in Mail Compose
The function processes image URLs embedded in an HTML email body without validating or restricting URI schemes. The check !str_starts_with($myUrl, 'http') evaluates to true for file:// URIs, causing file_get_contents($basedir . urldecode($myUrl)) to read arbitrary files from the server filesystem and embed them as inline MIME attachments in outgoing email. str_starts_with('file:///etc/passwd', 'http') → false !false → true // api/src/Mail.php foreach($images[2] as $i => $url) { //$isData = false; $basedir = $data …