aboutsummaryrefslogtreecommitdiff
path: root/src/lib/Utility/pushEndpoint.ts
Commit message (Collapse)AuthorAgeFilesLines
* fix(security): allow-list web-push endpoints to stop SSRFFuwn24 hours1-0/+26
Stored push subscriptions carry a client-supplied `endpoint`, and the notifications job POSTed to it with no host check, so a subscription with an internal/metadata URL turned the Trigger.dev worker into a blind SSRF primitive. Add isAllowedPushEndpoint (https + known vendor hosts: FCM, Mozilla, Apple, WNS), skip non-conforming endpoints in the job, and reject them at subscribe time. Browser-minted subscriptions always match a vendor host, so real delivery is unchanged; a behaviour-gate test asserts vendor endpoints pass and internal/non-https/look-alikes fail.