Menu

#36 We hit a DKIM bomb email on our system

open-fixed
5
2010-11-14
2010-06-03
Anonymous
No

We hit a DKIM bomb email on our system. This single email requires 7GB
of ram to be verified via spamassassin or dkimverify.pl.

This is first time I have ever seen this kind of dkim bomb but I'm very
sure this won't be last time if this inefficiency isn't being fixed.

On very fast machine with it took nearly 7 minutes to verify this email
with dkimverify.pl.

This is clearly a bomb which is designed to break ssytems using Mail::DKIM.

--
Submitted by Tuomo Soini (@d-fence.fi)

Discussion

  • Jason Long

    Jason Long - 2010-06-03

    The sample email he sent to me contained over 3800 DKIM-Signature headers.

     
  • Jason Long

    Jason Long - 2010-06-10

    Note to self: each canonicalization object keeps a copy of the entire header, this is why the system runs out of memory with so many signatures. I.e. memory usage is (size of header) TIMES (number of signatures).

    It does this because it takes into account the header ordering only after the entire header has been read. I think this can be changed.

     
  • Jason Long

    Jason Long - 2010-11-14

    fixed for version 0.39

     
  • Jason Long

    Jason Long - 2010-11-14
    • assigned_to: nobody --> jasonlong
    • status: open --> open-fixed
     

Log in to post a comment.

Monday.com Logo