An HTML-only email from a gov agency has a logo referencing an URL that looks like this:

https://1wy1y.mjt.lu/tplimg/1wy1y/f/l9hl7/g3q3v.png

Itā€™s not exactly that (apart from the domain) but of course itā€™s rather unique looking. They send email routinely. The initial emails had an obviously non-suspicious basic logo, like ā€œ(their office domain)/files/logo.pngā€. But then later they switched and every message from them is the URL in the mjt.lu domain. Itā€™s not unique per message but it could be unique to the user, perhaps to keep tabs on when each person reads their messages.

The output of torsocks curl -LI looks like this:

HTTP/2 200
date: (exactly now)
content-type: image/png
accept-ranges: bytes

Thatā€™s it. Itā€™s the shortest HTTP header Iā€™ve seen. Thereā€™s no content-length. I find that suspicious because if this is a service that facilitates tracker pixels, then they would want to withhold the length in order to dodge detection. Although from its usage in my case it wouldnā€™t just be a pixel ā€“ itā€™s a logo.

The date is also suspect. Shouldnā€™t the date be the date of the object, not the current time this second?

Are there any other checks to investigate this?

  • key@lemmy.keychat.org
    link
    fedilink
    English
    arrow-up
    8
    Ā·
    edit-2
    8 months ago

    Mailjetā€™s documentation indicates they use an explicit pixel image for tracking email open status and that can be turned on or off in account settings. However it also indicates they put all images included in an email template through the same infrastructure as tracking links. So most likely they record the view but whether that usage data is retained and available to the gov agency is hard to say without making an account with Mailjet and testing.

    If youā€™re concerned, just turn off images for untrusted senders in your email client.

    • coffeeClean@infosec.pubOP
      link
      fedilink
      English
      arrow-up
      2
      Ā·
      8 months ago

      I was imagining how a well-designed mail client might detect likely tracker pixels and signal the user. If MUAs were sufficiently evolved, that kind of convenience/sloppiness of transmitting tracker pixels but then putting the switch somewhere on the server wouldnā€™t fly. Anyway, I appreciate the insight. It certainly raises a transparency issue.

  • stevedidwhat_infosec@infosec.pub
    link
    fedilink
    English
    arrow-up
    4
    Ā·
    8 months ago

    Honestly without a copy of the email file with all the information included Iā€™m not sure whatā€™s going on here based off your description. You say they have a logo ā€œreferencingā€ this oddball url (btw itā€™s a hosting company, seems theyā€™re owned by OVH in France)

    What does referencing mean exactly? Are you saying this url is the source listed in the email of the logo/tracking image?

    Itā€™s possible thats the logo is used for tracking but I wouldnā€™t go drawing any conclusions outside of that hypothesis. Tracking pixels are pretty commonplace in emails both by businesses and by govts. Why? Because the communications and outreach folk care about metrics like how long you read an email and if you made it to the bottom or not, etc.

    Based off what I do see here/understand in your case, this does seem to be a tracking pixel, but I canā€™t stress enough not to let your mind run off and start making further assumptions based off this singular fact.

    Donā€™t let worry/anxiety blur any lines in your head between what you know and what you suspect/predict.

    - An infosec guy who has talked to waaaaaaaay too many people struggling with schizophrenia/paranoid delusions/etc

    • coffeeClean@infosec.pubOP
      link
      fedilink
      English
      arrow-up
      4
      Ā·
      edit-2
      8 months ago

      What does referencing mean exactly?

      Sometimes HTML email comes with the logos and objects needed to render it, sometimes not. When the objects are included itā€™s possible to render the message while offline. In the case at hand, the logo was not included and the HTML body defined a logo with that unique URL inside img tags.

      In the very least, if we assume the tracking is appropriate and that itā€™s consistent with the privacy policy and ToS I agreed to, I would still find it objectionable that a government would conceal the fact that they are using a tracker pixel/image by withholding the content-length header. The gov should be transparent about what they are doing. They should even disclose in each such message ā€œwe have a tracker pixel in hereā€, for transparency which should not be an issue if itā€™s legit. I personally need the content-length header because Iā€™m on a shit internet connection and have a need to know how big something is before I fetch it. So Iā€™m disturbed that all Cloudflare sites (which is like Ā½ the web now) withhold the content-length header. The agency at hand is sloppy with privacy and probably sloppy with everything. Itā€™s not necessarily malicious but nonetheless Iā€™m not going to lower the standard by which they should be held to.

      • stevedidwhat_infosec@infosec.pub
        link
        fedilink
        English
        arrow-up
        2
        Ā·
        8 months ago

        Right right, I know how html tags and all that works just wanted to make sure we were for sure both talking about the same thing thatā€™s all. Wasnā€™t verbiage I normally see so I verified quick

        And this 2nd part you have here makes total sense with me and I fully agree, just wanted to make sure I wouldnā€™t be inadvertently causing any harm to you if you were struggling with paranoia or anything like that, thatā€™s all. Hope I wasnā€™t coming off as too dismissive!!

  • kivulallo@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    Ā·
    edit-2
    8 months ago

    if you run a whois on the domain, it turns out it belongs to mailjet. they are a big service provider for bulk emails, notifications, stuff like that.

    my guess is this is their cdn or something similar. you can see the ā€œ1wy1yā€ string in the URL path as well as a sub-domain. thatā€™s most likely the customer ID or ā€œtenant idā€ for the gov agency inside the mailjet cloud. also guessing that ā€œtplimgā€ could stand for ā€œtemplate imageā€ or similar, indicating that they have an email template with this image always being there. which makes sense if itā€™s a logo.

    as for the curl call, i tried to open the url in a browser, but it just sends an empty response, thatā€™s why you donā€™t see a content-length header. i guess mailjet checks where the url is being called from, either with user-agent or some custom headers or whatever, so it only loads if you actually open the email. this prevents unnecessary traffic costs for them.

    i donā€™t think there is anything wrong here, just laziness on the gov agencyā€™s side. they could have created some sub-domain that is an alias pointing to this mess. it wouldnā€™t cost anything.

    • coffeeClean@infosec.pubOP
      link
      fedilink
      English
      arrow-up
      3
      Ā·
      edit-2
      8 months ago

      as for the curl call, i tried to open the url in a browser,

      I scrambled it for my own privacyā€¦ so that would not work. But I preserved the structure well enough that your insight was helpful.

  • nothacking@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    2
    Ā·
    8 months ago

    Make another account to see if a different user/email address gets a different URL, which would indicate that it is used to track users.

    • coffeeClean@infosec.pubOP
      link
      fedilink
      English
      arrow-up
      2
      Ā·
      edit-2
      8 months ago

      Thatā€™s cheating. I wish it were that easy but I really canā€™t create another account for this. I will ask around if anyone else has an account so we can compare notes. But I was just wondering if there is anything else I can do in a solo investigation to get more clues. It would generally be a useful skill to detect messages from other senders as well. I did a search on the domain to see if itā€™s a known service that sells tracking capability but that came up dry. nvmā€¦ it seems mailjet.com is behind this and they appear to be pitching analytics services.