Skip to content

P2: Investigate unsolicited multi-link email tracking bursts; preserve evidence and exclude only confirmed internal actions #114

Backlog

Description

@the-code-learner

Problem (P2, investigation still open)

The tracking database contains bursts of distinct Stored File email links fetched within milliseconds under a shared network/browser fingerprint. The installation owner reports that the corresponding emails were not opened in Postmaster WebGUI, so a claim of "WebGUI self-tracking" is not established.

Read-only historical review on 2026-11-28 found 344 available email_click events (2026-10-15–2026-11-28), including 21 bursts involving 103 events, grouping at least three distinct links of one delivery requested within two seconds from the same recorded IP/UA. Three bursts (5, 6 and 6 links) match a network the operator recognizes. Many other bursts originate from different networks, compatible with automated scanning but not conclusively attributable to any particular client.

Do not put private network addresses, bearer URLs, recipient email addresses or full request logs in this public issue.

Established facts

  • The source email in the controlled sample is present on its originating IMAP server in the actual provider Sent folder; it was sent in October, though its campaign label refers to November. WebGUI is cache-first, so the operator may not see it without refreshing that folder. Its existence does not prove that its HTML was rendered by WebGUI.
  • Safe Email removes navigable anchors and remote images by default. Full HTML requires explicit confirmation. The previous Technical Details HTML included original URLs as text only when that email was opened.
  • Tracking pages also exposed some generic outbound/tracked URLs directly in HTML attributes and as event links. However, the observed Stored File email-click event rows have no populated original URL, so the Tracking-page exposure alone does not explain the specific JPG bursts.
  • The persisted click-event metadata does not include the browser DevTools Initiator stack, Referer, Sec-Fetch-Dest, Sec-Fetch-Mode or Sec-Fetch-Site; IP and UA are insufficient proof of origin.
  • The provider heuristic likely_email_provider means a high-speed multi-link behavior; it is not proof that an email provider initiated the traffic.

Preventive fix

PR #112 (merged) prevents default DOM exposure of tracked/public URLs in Safe Email, Mail snippets/diagnostics and Tracking manager/events. Real URLs are disclosed only on explicit CSRF-verified read-only requests. This does not retroactively classify or delete analytics data.

Remaining forensic acceptance

  1. Reproduce with a controlled test email having distinct disposable tracked file links; observe WebGUI safe inbox, Sent list, Tracking tabs, and browser extensions separately. Preserve a sanitized HAR with Initiator, request type and request headers.
  2. Correlate exact UTC times, delivery ID and link IDs with edge and origin request logs. Preserve Referer and Sec-Fetch-* where available, without storing secrets in analytics.
  3. Differentiate admin-rendering, browser extensions, downstream recipient scanners, and other clients sharing a network; no IP-only or UA-only heuristics should suppress records.
  4. Only after a cause is confirmed introduce a provenance distinction such as admin_preview, retain raw immutable events in audit history, and exclude confirmed non-recipient activity from human-engagement KPIs.
  5. Confirm public recipient clicks and downloads are still recorded, and that visiting WebGUI pages without explicit reveal cannot itself trigger clicks.

Priority P2: preventive UI protection shipped separately, underlying event-origin investigation remains open. No real email sending, tracking mutations or deletion are needed to maintain this issue.

Activity

  1. the-code-learner commented on Nov 28, 2026

    @the-code-learner
    OwnerAuthor

    Preventive WebGUI URL redaction shipped — 9.8.10-beta.14 (2026-11-28)

    Merged PR #112 and published the official v9.8.10-beta.14 from the exact CI-green main commit 62fd8f07450fecac1495fe80ec4843857151fe29. The v9 suite completed 779 tests on the functional PR; main, metadata PR and final release commit were green.

    • Safe Mail text/HTML, snippets, subjects and technical evidence no longer expose raw tracked/public URLs in the default DOM.
    • Tracking event details no longer link or display outbound destinations, and generic tracked URLs are no longer in readonly input values.
    • Explicit CSRF-verified, account/mailbox/UID-validated Mail reveal or owner/project/link-scoped Tracking reveal returns a text-only, no-cache, no-script response, without fetching any URL.
    • No raw tracking data or KPI numbers were changed. No changes to Cloudflare Access, Portainer YAML, public /t/c handlers or installed instances.

    Root cause remains unproven: The original seven-asset email is present in its real IMAP Sent folder, but the owner reports never opening it. An event's original_url for Stored File clicks is empty, so the generic Tracking dashboard URL display alone cannot explain these exact observed bursts. Event metadata contains no browser Initiator/Referer/Sec-Fetch fields. Keep P2 open pending controlled HAR/edge-log correlation and independent recipient/browser-extension checks. Do not IP-filter or retroactively recategorize without stronger evidence.

  2. the-code-learner commented on Nov 28, 2026

    @the-code-learner
    OwnerAuthor

    Status after v9.8.10 stable — preventive UI fix shipped, origin not identified

    Official v9.8.10 stable includes PR #112's safe-by-default URL redaction, nonclickable default Tracking and Mail views, and explicit CSRF-protected text-only URL reveal.

    After installing beta.14, the operator reopened a message and browsed the WebGUI. A read-only check of the existing tracking event history found no new recorded email clicks or generic tracked URL/file events beyond the pre-update reference sample. This is a useful negative reproduction test, not proof of root cause or of permanent remediation.

    The invariant remains: every actual public tracked-link request is recorded, including automated or failed requests; optional HTTP status/error/byte diagnostics may be added without suppressing raw events or altering historical KPIs. Keep this P2 investigation open until a controlled reproduction and browser Initiator / sanitized edge-log correlation establish attribution. No user address, raw tracking capability, recipient identity or sensitive request metadata is included here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions