← Lab /Security & privacy

SFMC email view links can be decrypted to read any subscriber's email

Salesforce Marketing Cloud’s email view feature uses a static encryption key and weak unauthenticated CBC encryption, enabling arbitrary email read across tenants via a padding oracle and template injection.

Security & privacy Assetnote / Searchlight 5 May 2026 Disclosure Real-world evidence

Published as “Salesforce Marketing Cloud: Arbitrary Email Read via Weak Crypto”

Why it matters

Attackers could read or enumerate any subscriber’s email across Salesforce Marketing Cloud tenants.

Summary

The researchers discovered that SFMC evaluates email subjects twice, allowing AMPscript template injection via the TreatAsContent function. They also found that the view.* URLs use a single static encryption key and unauthenticated CBC, which can be broken with a padding oracle to decrypt and forge query strings, exposing subscriber data. Using the MicrositeURL function they bypassed parameter restrictions to generate arbitrary encrypted payloads. Salesforce patched the issues by deploying AES-GCM, rotating keys, and disabling double evaluation of subjects.

What they found 3

  1. Email subjects are double-evaluated, enabling template injection.

    “the subject of emails sent by SFMC were double evaluated by default.”

  2. SFMC uses a single, static encryption key for all customers in view URLs.

    “This also indicated to us that SFMC used a single, static encryption key for all customers.”

  3. The view URL encryption uses unauthenticated CBC, allowing a padding oracle attack.

    “we recognised this meant the backend was using unauthenticated CBC to decrypt the parameters!”

Caveats 4

  • Salesforce has once again disabled double evaluation of email subject line AMPscript.
  • Salesforce deployed AES-GCM encryption across the platform, expired all links created prior to January 23, 2026 at 21:00 UTC, and disabled double evaluation of email subject line AMPscript.
  • Exploitation requires a template injection vulnerability (e.g., via TreatAsContent) to be present.
  • The attack relies on the static encryption key not being rotated; key rotation status is unknown.

What’s new here 4

  • Identified double evaluation of AMPscript in email subjects leading to template injection.
  • Revealed that view.* URLs use a static key and unauthenticated CBC, vulnerable to a padding oracle attack.
  • Developed a CBC padding oracle exploit (padre) and a MicrositeURL bypass to forge encrypted query strings.
  • Demonstrated cross-tenant email enumeration and data leakage on live SFMC instances.