[Bug 8405] New: idn_to_ascii: conversion to ACE failed - log messages tryinig to convert img src=data: tags

[email protected] Fri, 31 Jul 2026 16:35:27 +0000
Newsgroups gmane.mail.spam.spamassassin.devel
Message-ID <[email protected]/SpamAssassin/>
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=3D8405

            Bug ID: 8405
           Summary: idn_to_ascii: conversion to ACE failed - log messages
                    tryinig to convert img src=3Ddata: tags
           Product: Spamassassin
           Version: 4.0.2
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: spamc/spamd
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: Undefined

Created attachment 6070
  --> https://bz.apache.org/SpamAssassin/attachment.cgi?id=3D6070&action=3D=
edit
redacted message example

This seems to be related to Bug ID 8302, but in my tests the resolution for
8302 does not solve this.

Identified that messages that contain embedded image data such as:

<img alt=3D""
src=3D"data:imagepngbase64,iVBORw0KGgoAAAANSUhEUgAAAbQAAACDCAYAAADlPO7n ...

results in bloated noisy mail logs when run as a production mail server 'sp=
amd'
daemon.

My thinking may be naive, but I think a solution would lie in modifying
PerMsgStatus.pm sub 'add_uri_detail_list - in the loop:

foreach my $cleanuri (@uris) {
...
}

add a test to verify that the URI is of a type that supports a remote domain
payload - and if not, skip processing the URI.

e.g.:

next if (substr($cleanuri, 0, 5) eq 'data:');

(sorry, this is a poor example but hopefully it gets the idea across).

--=20
You are receiving this mail because:
You are the assignee for the bug.=