matcha icon indicating copy to clipboard operation
matcha copied to clipboard

BUG: Unchecked Content-ID parsing in sender

Open andrinoff opened this issue 7 months ago • 2 comments

Describe the bug Content-ID parsing at sender/sender.go:379 uses filepath.Ext(strings.Split(cid, "@")[0]) without checking split result. Empty CID could panic.

To reproduce

  1. Send email with malformed Content-ID header
  2. Split returns empty array or single element
  3. Accessing [0] on empty or subsequent operations fail

Expected behavior Validate split result before accessing elements

Matcha version master

OS All

Additional context File: sender/sender.go line 379 Missing validation on split result

andrinoff avatar Apr 21 '26 14:04 andrinoff

This has had no activity for 30 days. It will be closed in 14 days unless updated. Comment or remove the stale label to keep it open.

floatpanebot avatar May 22 '26 06:05 floatpanebot

Closing due to inactivity. Reopen if still relevant.

floatpanebot avatar Jun 04 '26 19:06 floatpanebot