Skip to content

Images are loaded from external resources

Low
charlag published GHSA-32w8-v5fc-vpp7 Jan 22, 2024

Package

No package listed

Affected versions

<119.10

Patched versions

119.10

Description

Summary

An attacker can attach an image in a html mail which is loaded from external resouce in the default setting, which should prevent loading of external resources.

Details

When displaying emails containing external content, they should be loaded by default only after confirmation by the user (see the following figure).
loading of external images must be activated

However, it could be recognized that certain embedded images (see PoC) are loaded, even though the "Automatic Reloading of Images" function is disabled by default. The reloading is also done unencrypted via HTTP and redirections are followed.

I have a guess that this has something to do with dompurify, as you use this to sanitize the data, but dompurify does not remove external embedded images.

PoC

  1. send an html mail with the following svg image
<svg version="1.1" baseProfile="full" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
    <image xlink:href="http://ahvw9qknip6davbd2yk9g441qswpkf84.oastify.com/SVG-inline-with-remote-image"/>
</svg>
  1. when recipient opens the mail, the external image is loaded
    loading external image in e-mail

Impact

This behavior is unexpected for the user, since the user assumes that external content will only be loaded after explicit manual confirmation. The loading of external content in e-mails represents a risk, because this makes the sender aware that the e-mail address is used, when the e-mail was read, which device is used and expose the user's IP address.

Severity

Low

CVE ID

CVE-2024-23330

Weaknesses

No CWEs

Credits