All problems

A Group Notice Exposes Coworkers' Addresses in a Shared To List

Level 2 · node · Security · Recipient address disclosure through a shared To header

Scenario

A fictional facility operations service emails the same announcement to members of a work shift. Each employee must receive an individual message addressed only to them; coworkers' email addresses must not appear in its recipient list. Notices to a one-person group work, but notices to a larger group currently put every address into a single shared recipient list. Trace the group repository, notice service, and mail gateway to examine recipient isolation.

Requirements

Send a separate message with the same subject and body to each group member. The to array of each outgoing message must contain only that member's address. Send no messages for an empty group and return a delivered count of zero. Return HTTP 404 for an unknown group, preserving the existing response structure and single-recipient behavior.

Acceptance criteria

  • A group with one member receives exactly one message addressed only to that member.
  • An unknown group returns HTTP 404 and sends no message.
  • A group with several members receives a separate message for each recipient.
  • No message lists a coworker's address, and each message preserves the subject and body.
  • An empty group sends no message and reports a delivered count of zero.