Skip to content

P2: hide tracked URLs in safe Mail WebGUI until explicit admin reveal - #112

Merged
the-code-learner merged 12 commits into
mainfrom
fix/p2-mail-safe-url-redaction-on-demand
Nov 28, 2026
Merged

the-code-learner merged 12 commits into
mainfrom
fix/p2-mail-safe-url-redaction-on-demand

Conversation

@the-code-learner

Copy link
Copy Markdown
Owner

Security hardening after investigating multi-link click bursts attributed to a known operator network without evidence the message was opened in WebGUI. The cause of those requests is not established; do not suppress/alter historical tracking events or infer that the admin actually opened the email.

  • The Safe Mail WebGUI now redacts full URLs, including bearer-style /t/c links, in the normal safe email reader (text and sanitized HTML), list snippets and diagnostic URL/source evidence. Original raw MIME and URL inventory stay intact server-side for audit and forensic queries.
  • An explicit Reveal original URLs POST is CSRF verified, checks enabled account, exact cached mailbox and UID, and returns a dedicated plain-text no-cache/no-script/no-link response only after a direct operator action. No tracking link is followed, no file downloaded and no email sent.
  • Tests cover token redaction, HTML escaping, redacted diagnostics, explicit reveal, invalid account/CSRF/missing body and unchanged original data.
  • The campaign postmaster_nov15_gpt_assets was actually sent 2026-10-26; its message is present in IMAP INBOX.Sent (UID 331) on the sending account. WebGUI is cache-first and may need explicit folder sync. This is evidence of message location, not proof of the burst's initiating client.
  • No IP-based filtering, tracking metric rewriting, Cloudflare Access or Portainer YAML changes. Follow-up forensic investigation requires browser HAR Initiator plus edge/origin logs correlated with event times.

CI must pass before merge. Keep P2 open until origin and historical event attribution are confirmed.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant