aboutsummaryrefslogtreecommitdiffstats
path: root/dns/secondary.conf
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-11-06 23:15:17 -0700
committerAdam Soltys <[email protected]>2026-11-06 23:15:17 -0700
commit2fef93f3f9bf646d66625deb09c8b5b278a32cae (patch)
tree5f171bb9af135537c2f0504db54a8f6df3a7c0cf /dns/secondary.conf
parent0c5041764999f9f74e6982cc59791bf3b3778981 (diff)
downloadcoinosv3-server-2fef93f3f9bf646d66625deb09c8b5b278a32cae.tar.gz
coinosv3-server-2fef93f3f9bf646d66625deb09c8b5b278a32cae.zip
nwcpush only pushes to push services and public hosts. A subscription is whatever a stranger POSTs to /register, and delivering one is this server making a request to the URL in it: unchecked, anyone could point it at an address inside our own network — an interactsh (oast.pro) probe registered one under the coinos service key (2026-11-06). Now a browser subscription must name a browser push service (FCM/jmt Google, Mozilla, Apple, Windows); a UnifiedPush endpoint must be https on a public host, its name re-resolved at send time (a name can be re-pointed after registering) and refused if any address is private, loopback, link-local, CGNAT or multicast, with redirects not followed; an fcm: endpoint must be a token. /register refuses the rest (400); at delivery a failing endpoint counts as dead (410) so stored ones are dropped, except a name that merely didn't resolve just then (503, kept). Audited against the live registrations: 760 kept; dropped are the probe, example.com, a 10.x ntfy, an IP-literal private endpoint, two hosts that no longer resolve and one unparseable endpoint
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VMan6Ts5Tktega8VbLg31q
Diffstat (limited to 'dns/secondary.conf')
0 files changed, 0 insertions, 0 deletions