matcha
matcha copied to clipboard
BUG: Unchecked Content-ID parsing in sender
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
- Send email with malformed Content-ID header
- Split returns empty array or single element
- 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
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.
Closing due to inactivity. Reopen if still relevant.