GNU bug report logs -
#58472
[PATCH] Make `message-unique-id' less prone to collisions
Previous Next
Reported by: Stefan Kangas <stefankangas <at> gmail.com>
Date: Wed, 12 Oct 2022 16:09:01 UTC
Severity: wishlist
Tags: patch
Done: Stefan Kangas <stefankangas <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Lars Ingebrigtsen <larsi <at> gnus.org> writes:
> Stefan Kangas <stefankangas <at> gmail.com> writes:
>
>> It still has the privacy issues I've indicated. Leaking the euid for no
>> good reason leaves you vulnerable to fingerprinting (or even attack, in
>> the worst case scenario).
>
> I don't think the privacy issues here are compelling.
Do you find it problematic that it's very easy for us to have
collisions? We will have a 1 in 625 chance for a _partial_ Message-ID
collision every time two users:
1. send an email the same second, and
2. have the same euid (e.g. 1000 on Ubuntu, or 501 or whatever it is on
macOS, etc.).
Just try this:
(let ((tim (time-convert nil 'integer))
(i 0) ids)
(while t
(cl-incf i)
(cl-flet ((time-convert (lambda (_ _) tim)))
(let ((id (message-unique-id)))
(if (member id ids)
(error "oops after %d tries" i)
(push id ids))))))
We will have a _full_ Message-ID collision if they also:
3. have the same host (e.g. it's misconfigured [a not insignificant
number of desktops, mind you, so it says "tickle-me" or whatever
non-hilarious thing we use now], or they are on the same big domain
like eecs.mit.edu).
Is that really "good enough"? We could do drastically better here, with
very small means, so I'm not sure why we wouldn't.
> No, matching on References/In-reply-to is the only way to get at that
> functionality.
I still don't know which functionality that is. Getting an In-reply-to
for your highly unique euid 1000? What's wrong with just checking if
your email address is in To/Cc?
If this use-case is important, wouldn't it be much better to use a
defcustom that you could at least set yourself to something somewhat
unique to you? We could just set it to 1000 or whatever by default (so
we're not worse off than today, but also not leaking information by
default), and then users could set that to whatever they like (even to
their euid).
This bug report was last modified 2 years and 173 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.