CORS Misconfigurations in MCP Skill Registry Skill Notification and Alert Subscription Endpoints
Notification and alert subscription endpoints sit at the intersection of two functions that look unrelated until they are attacked together: they store your security monitoring configuration, and they control the delivery pipeline that tells your team when something has gone wrong. For a skill registry, the notification system is simultaneously a source of sensitive operational secrets (webhook signing keys, alert threshold calibrations, incident response routing) and the last line of automated defense before a security event escalates to human review. The four SA-SKL-CORS43 patterns show how CORS misconfigurations on these endpoints chain into a compound attack that first exfiltrates the monitoring configuration, then uses the stolen signing secrets to forge trusted-looking alerts to downstream incident response systems, and finally deletes the monitoring subscriptions themselves — leaving defenders responding to fabricated incidents while a real attack proceeds undetected.
In this post
- Why notification endpoints are a CORS blind spot
- CORS43-001 — Credential-bearing CORS on notification config leaks alert thresholds and signing secrets
- CORS43-002 — Wildcard ACAO on subscribe exhausts notification quota and hijacks security alerts
- CORS43-003 — Timing oracle on notification history enumerates actively monitored skills
- CORS43-004 — Credential-bearing CORS on subscription delete blinds security monitoring
- Compound alert-disablement and notification-forgery chain
- Detection with SkillAudit AST queries
- Summary and remediation checklist
Why notification endpoints are a CORS blind spot
When registry developers think about which endpoints need strict CORS controls, they prioritize the ones that handle write operations with obviously destructive potential: skill publication, billing mutations, permission grants, API key creation. Notification and alert subscription endpoints rarely appear in this mental model. They manage monitoring configuration — something that feels administrative and low-impact. The worst case, the reasoning goes, is someone reading your alert thresholds or deleting an email subscription. Neither seems catastrophic.
This reasoning misses three structural properties that make notification endpoints uniquely dangerous under CORS misconfiguration. First, notification configuration contains operational secrets. HMAC signing keys used to authenticate webhook payloads to downstream incident response platforms — PagerDuty, OpsGenie, Slack Incoming Webhooks — are stored alongside notification settings. Any attacker who reads the notification configuration has the cryptographic material needed to forge legitimate-looking security alerts to any downstream system that trusts those keys. This is not a credential that rotates on a schedule; most registries treat webhook signing secrets as long-lived configuration values. An exfiltrated signing secret has a long useful life.
Second, notification subscription endpoints are quota-enforced write operations, not read operations. Creating a subscription triggers background processing, consumes quota, and may trigger delivery validation — behaviors that persist long after the HTTP response is returned. A CORS misconfiguration on a subscription endpoint is a CORS misconfiguration on a resource-exhaustion vector.
Third, notification deletion is a preparation attack, not an end goal. Attackers do not delete alert subscriptions because they want an empty notification dashboard. They delete subscriptions to remove the automated detection layer before executing a primary attack. The deletion is Stage N-1 in a compound chain; the actual damage happens at Stage N, after the monitoring is gone.
CORS misconfigurations on notification routers arise through the same mechanism as analytics and permission routers: a secondary router built on top of a broadly-configured CORS middleware instance, with less disciplined ownership enforcement, deployed after the core API was already in production. The main router's CORS policy becomes the notification router's CORS policy by inheritance, and the notification router never received a targeted security review.
cors({origin:true,credentials:true}) on GET /api/skills/:id/notifications; any origin reads full notification config including alert thresholds, webhook URLs, and HMAC signing secrets using victim sessionACAO: * on POST /api/skills/:id/notifications/subscribe; any page creates alert subscriptions exhausting notification quota and routing security events to attacker-controlled destinationsACAO origin reflection on GET /api/skills/:id/notifications/history emitted before ownership check; timing oracle reveals notification event existence across all orgscors({origin:true,credentials:true}) on DELETE /api/skills/:id/notifications/:subId; any origin deletes any notification subscription using victim admin session, disabling security alerts before follow-on attacksCORS43-001 — Credential-bearing CORS on notification config leaks alert thresholds and signing secrets
The notification configuration endpoint at GET /api/skills/:id/notifications returns the complete monitoring setup for a published skill: error rate thresholds that trigger alerts, latency spike triggers, security event categories that activate paging, the full list of subscribed delivery addresses, webhook target URLs, and — critically — the HMAC signing secrets used to authenticate outbound webhook payloads to downstream incident response systems. When this endpoint is configured with cors({origin:true,credentials:true}), any page can read all of this using the victim's authenticated browser session.
The HMAC signing secret exfiltration is the most damaging consequence and the least obvious one. Registries that deliver security alerts via webhooks authenticate those payloads using an HMAC signature computed over the payload body with a shared secret. PagerDuty, OpsGenie, Slack, and virtually every other incident response platform that accepts inbound webhooks trusts payloads that carry a valid HMAC signature. When an attacker reads the notification configuration via CORS43-001 and extracts the signing secret, they have everything they need to construct payloads that those downstream systems will accept as authentic registry security alerts.
The forgery attack that follows does not require any further access to the registry. The attacker calls the downstream system's inbound webhook URL directly — no authentication beyond the HMAC signature — and delivers crafted security alerts. These alerts can describe any event the attacker chooses: a false-positive critical vulnerability in a competitor's skill, a fabricated authentication breach requiring immediate incident response, a manufactured supply-chain compromise event that triggers a security team's runbooks. The incident response team receiving these alerts cannot immediately distinguish them from genuine registry-generated events, because the cryptographic signature is valid.
The practical impact is two-fold. In the foreground, the fabricated alerts consume incident response capacity — on-call engineers page in, runbooks activate, executives are notified of a breach that did not occur. This creates operational noise and responder fatigue. In the background, the same window of occupied incident response capacity is when the attacker executes their actual primary attack on the registry, knowing that the security team is busy with the fabricated event and that automated monitoring has not yet detected the real intrusion.
Beyond the signing secret, the alert threshold configuration data has its own intelligence value. Organizations calibrate their alert thresholds carefully to minimize false positives — too sensitive and the on-call team burns out on noise; too insensitive and genuine incidents are missed. An attacker who reads the threshold configuration knows exactly how much anomalous traffic, how many failed authentication attempts, and how unusual a tool call pattern needs to be before the monitoring system triggers. With this knowledge, they can conduct their reconnaissance and exploitation within the threshold envelope, staying invisible to automated detection for the duration of the attack.
CORS43-001 fix: Replace cors({origin:true,credentials:true}) with an explicit allowlist limited to your own frontend origins. Add requireSession middleware before CORS middleware. For public callers, return only a boolean indicating whether notifications are enabled — never thresholds, recipient lists, webhook URLs, or signing secrets. Consider treating signing secrets as write-only: expose them only at creation time, never return them in GET responses even to authenticated owners.
// Notification config to any origin via session credential forwarding
router.get('/skills/:id/notifications',
cors({ origin: true, credentials: true }), // reflects any origin
async (req, res) => {
const config = await db.getNotificationConfig(req.params.id);
// includes: thresholds, recipients, webhookUrl, signingSecret, subscriptions
res.json(config);
}
);
const ALLOWED_ORIGINS = new Set([
'https://skillaudit.dev',
'https://app.skillaudit.dev'
]);
function strictCors(req, res, next) {
const origin = req.headers.origin;
if (origin && ALLOWED_ORIGINS.has(origin)) {
res.setHeader('Access-Control-Allow-Origin', origin);
res.setHeader('Access-Control-Allow-Credentials', 'true');
res.setHeader('Vary', 'Origin');
}
next();
}
router.get('/skills/:id/notifications',
requireSession, // auth before CORS headers are emitted
strictCors,
async (req, res) => {
const isMember = await db.isSkillMember(req.params.id, req.session.orgId);
if (!isMember) {
// public callers: existence flag only — no thresholds, recipients, URLs, or secrets
const enabled = await db.hasNotificationsEnabled(req.params.id);
return res.json({ enabled });
}
const config = await db.getNotificationConfig(req.params.id);
// Never return signingSecret in GET — treat it as write-only
const { signingSecret: _dropped, ...safeConfig } = config;
res.json({ ...safeConfig, signingSecretSet: Boolean(_dropped) });
}
);
CORS43-002 — Wildcard ACAO on subscribe exhausts notification quota and hijacks security alerts
The notification subscribe endpoint POST /api/skills/:id/notifications/subscribe accepts a destination address and an event type filter, then creates a new alert subscription that will receive delivery of matching security events. With ACAO: *, any page that holds the victim's Bearer token — harvested via XSS in the registry frontend, extracted from localStorage by a compromised third-party script, or obtained through a token-leaking CORS misconfiguration elsewhere in the API — can create subscriptions without restriction.
The attack has two distinct damage profiles that reinforce each other. The first is quota exhaustion. Notification delivery is a metered operation: registries enforce per-skill or per-org subscription quotas to control email sending infrastructure costs and to prevent abuse of downstream delivery systems. When an attacker creates hundreds of subscriptions targeting attacker-controlled addresses, the quota ceiling is consumed. When the organization's on-call system attempts to deliver a genuine security alert — a failed audit detecting a critical vulnerability, an authentication anomaly indicating a compromised API key — the delivery fails because the quota is exhausted. Security monitoring is silenced not by deleting subscriptions but by flooding the quota budget until there is no capacity left for legitimate delivery.
The second damage profile is alert hijack. By subscribing an attacker-controlled email address or webhook to security event types — vulnerability detection, audit failure, authentication anomaly, permission change — the attacker receives real-time delivery of the same security events the legitimate team receives. This creates an asymmetric advantage: the attacker knows the moment a security team member begins investigating a suspicious event, because they receive the same alert. They can observe the team's response cadence, adjust their own activity accordingly, and exploit the precise window between alert delivery and human response — typically the first few minutes when the investigation is at its least systematic.
Alert hijack via subscription is particularly difficult to detect after the fact because the subscription appears in the registry's subscription list as a normal entry. Without comprehensive audit logging of subscription creation events, there is no routine way to identify which subscriptions were created by the account owner versus which were injected by an attacker using a stolen Bearer token. The attacker's subscription may persist for weeks or months before being discovered during a manual audit.
CORS43-002 fix: Remove the wildcard ACAO: * entirely. Require session authentication. Add a CSRF token for mutation operations. Require requireRole('admin'). Validate destination addresses against an org-verified domain allowlist so attacker-controlled addresses cannot be subscribed. Enforce per-org subscription count limits. Emit an audit log entry and admin notification on every subscription creation event — anomalous creation bursts are detectable if log entries exist.
// WRONG — wildcard ACAO; anyone with a Bearer token can create subscriptions
router.post('/skills/:id/notifications/subscribe',
cors({ origin: '*' }),
async (req, res) => {
await db.createSubscription(req.params.id, req.body.destination, req.body.events);
res.json({ ok: true });
}
);
// RIGHT — allowlist + session + CSRF + admin role + verified domain + quota
router.post('/skills/:id/notifications/subscribe',
requireSession,
requireRole('admin'),
strictCors,
verifyCsrfToken,
async (req, res) => {
const skill = await db.getSkill(req.params.id);
if (!skill || skill.orgId !== req.session.orgId) {
return res.status(403).json({ error: 'forbidden' });
}
const org = await db.getOrg(req.session.orgId);
if (!isAllowedDestination(req.body.destination, org.verifiedDomains)) {
return res.status(400).json({ error: 'destination must be a verified org domain' });
}
const count = await db.getSubscriptionCount(req.session.orgId);
if (count >= org.subscriptionQuota) {
return res.status(429).json({ error: 'subscription quota exceeded' });
}
await db.createSubscription(req.params.id, req.body.destination, req.body.events);
await audit.log('subscription_created', {
skillId: req.params.id,
destination: req.body.destination,
events: req.body.events,
createdBy: req.session.userId
});
// notify org admins of new subscription so anomalous creation is visible
await notifications.notifyAdmins(req.session.orgId, 'new_subscription', {
skillId: req.params.id,
destination: req.body.destination
});
res.json({ ok: true });
}
);
CORS43-003 — Timing oracle on notification history enumerates actively monitored skills
The notification history endpoint GET /api/skills/:id/notifications/history exhibits a middleware ordering vulnerability: the CORS handler that reflects the Origin header runs before the ownership check that verifies whether the requesting user is authorized to see notification history for the specified skill. This ordering means the server emits Access-Control-Allow-Origin and Access-Control-Allow-Credentials: true before determining whether the request should succeed — and the latency difference between a skill with notification history and one without is cross-origin measurable.
When a skill has an active notification history, the server executes the ownership check and then queries the notification_events table with a pagination query across potentially hundreds or thousands of historical events. When a skill ID is not found, or when it exists but has never generated any notification events, the server reaches a fast-path return after a simple primary key lookup. The latency difference between these two code paths — typically tens to hundreds of milliseconds depending on notification_events table size — is well within the measurement precision of performance.now() in modern browsers, which is accessible from JavaScript on any cross-origin page that receives the preflight response.
The practical value of this oracle is as a preflight scan for CORS43-001. Before executing the credential-bearing CORS read against the notification configuration endpoint, an attacker first runs the notification history oracle to enumerate which skills have active notification histories. Skills with large notification histories are production-critical tooling with real security monitoring — the kind of skills whose notification configurations contain populated webhook delivery targets and active signing secrets. The oracle reduces the CORS43-001 target list from an entire registry to a focused set of high-value skills worth exfiltrating, without requiring any authenticated session for the oracle phase itself.
The timing oracle is also composable with other enumeration techniques. Combined with CORS43-001's analytics dashboard patterns, an attacker who runs the notification history oracle alongside the funnel analytics oracle from SA-SKL-CORS41 gets a two-dimensional view of the registry: skills with real users (from the funnel oracle) cross-referenced against skills with active security monitoring (from the notification history oracle). The intersection — high-usage skills that are actively monitored — is the highest-value target set for supply chain attacks, because those skills are production-critical and their monitoring configuration contains the most sensitive operational secrets.
CORS43-003 fix: Move CORS middleware after authentication and ownership enforcement. Unify the WHERE clause to include both skillId and orgId in a single query so the database execution time is uniform regardless of whether notification history exists. Apply a minimum-latency strategy (a small fixed sleep before response) to normalize timing across the 403 and 404 response paths. Never emit the Access-Control-Allow-Origin header for requests that fail authorization.
// WRONG — CORS emitted before ownership check; timing oracle leaks notification existence
router.get('/skills/:id/notifications/history',
cors({ origin: true, credentials: true }), // CORS before auth
async (req, res) => {
const isOwner = await db.isSkillOwner(req.params.id, req.session?.userId);
if (!isOwner) return res.status(403).json({ error: 'forbidden' }); // 403 path is slower
const history = await db.getNotificationHistory(req.params.id, req.query);
res.json(history);
}
);
// RIGHT — auth and ownership before CORS; unified query; timing normalization
router.get('/skills/:id/notifications/history',
requireSession,
async (req, res) => {
const start = Date.now();
// Single query enforces both skillId and orgId — no timing difference between
// "no notification history" and "history exists but wrong owner"
const history = await db.query(
`SELECT * FROM notification_events
WHERE skill_id = ? AND org_id = ?
ORDER BY created_at DESC LIMIT ? OFFSET ?`,
[req.params.id, req.session.orgId, req.query.limit ?? 50, req.query.offset ?? 0]
);
// Apply CORS only after auth/ownership is confirmed
const origin = req.headers.origin;
if (origin && ALLOWED_ORIGINS.has(origin)) {
res.setHeader('Access-Control-Allow-Origin', origin);
res.setHeader('Access-Control-Allow-Credentials', 'true');
}
if (!history.length) {
await minLatency(start, 50); // normalize to ≥50ms regardless of query speed
return res.status(404).json({ error: 'not found' });
}
res.json(history);
}
);
CORS43-004 — Credential-bearing CORS on subscription delete blinds security monitoring
The subscription deletion endpoint DELETE /api/skills/:id/notifications/:subId uses cors({origin:true,credentials:true}). An attacker who tricks an org admin into visiting a malicious page — a phishing email disguised as a registry digest, a compromised npm package documentation page, a poisoned search result for a registry documentation query — can silently delete any notification subscription from any skill in the organization. The deletion completes in a single HTTP request, with no confirmation dialog, no secondary verification, and no outbound notification to remaining subscribers.
The security impact of CORS43-004 is not primarily the deletion itself — it is what the deletion enables immediately afterward. Alert disablement is a canonical pre-attack preparation step in the incident response playbooks of sophisticated adversaries. After an attacker deletes the subscription that routes security events to the security team's incident response platform, the registry continues to generate internal alerts for anomalous activity, but those alerts are no longer delivered to the humans who would act on them. The attacker has purchased an operational window — from the moment of deletion until the organization discovers the gap in their monitoring — during which they can conduct their primary attack without triggering automated human review.
The duration of this operational window depends on how the organization discovers the subscription deletion. If there are no audit logs recording the deletion event, and if the security team does not conduct routine subscription audits, the discovery may come only when a genuine security incident fails to trigger an alert — which may be days or weeks after the deletion. For organizations with compliance obligations that require documented security monitoring coverage, the gap between deletion and discovery represents an audit finding regardless of whether any secondary attack occurred.
CORS43-004 is also a one-request attack that scales across all skills in the organization. If the victim admin's session is used to enumerate and delete all notification subscriptions across all skills, the organization's entire automated monitoring coverage is removed in a single browser visit. The attacker does not need to know in advance which subscriptions are configured — they can query the notification endpoint (via CORS43-001) to enumerate all subscription IDs, then delete them all, in the same session. The combined CORS43-001 + CORS43-004 sequence is a complete monitoring takedown that takes under a second of browser execution time.
CORS43-004 fix: Replace credential-bearing CORS with an explicit allowlist. Add requireRole('admin') and skill ownership verification. Require a CSRF token. Emit an append-only audit log entry before the deletion is applied. Send a notification to the fixed security contact email regardless of which subscription was deleted — this ensures that subscription deletion is always visible to a known party even if all subscriptions are deleted. For subscriptions routing to security-critical destinations (PagerDuty, OpsGenie, incident response webhooks), require re-authentication before deletion can proceed.
// Subscription deletion with credential-bearing CORS — single cross-origin DELETE
// silently disables security monitoring for any org the victim admin belongs to
router.delete('/skills/:id/notifications/:subId',
cors({ origin: true, credentials: true }),
async (req, res) => {
await db.deleteSubscription(req.params.id, req.params.subId);
res.json({ ok: true });
}
);
router.delete('/skills/:id/notifications/:subId',
requireSession,
requireRole('admin'),
strictCors,
verifyCsrfToken,
async (req, res) => {
const skill = await db.getSkill(req.params.id);
if (!skill || skill.orgId !== req.session.orgId) {
return res.status(403).json({ error: 'forbidden' });
}
const sub = await db.getSubscription(req.params.subId);
if (!sub || sub.skillId !== req.params.id) {
return res.status(404).json({ error: 'not found' });
}
// For security-critical destinations, require re-authentication
if (sub.category === 'security' || sub.type === 'webhook_incident_response') {
const reauthed = await tokens.verifyReauthToken(req.session.userId, req.body.reauthToken);
if (!reauthed) return res.status(403).json({ error: 're-authentication required for security subscription deletion' });
}
await db.deleteSubscription(req.params.id, req.params.subId);
// Append-only audit log entry before notification
await audit.log('subscription_deleted', {
skillId: req.params.id,
subId: req.params.subId,
destination: sub.destination,
category: sub.category,
deletedBy: req.session.userId,
orgId: req.session.orgId
});
// Always notify security contact regardless of which subscription was deleted
await notifications.notifySecurityContact(req.session.orgId, 'subscription_deleted', {
skillId: req.params.id,
destination: sub.destination,
deletedBy: req.session.userId
});
res.json({ ok: true });
}
);
Compound alert-disablement and notification-forgery chain
The four CORS43 patterns are individually exploitable, but they are architecturally designed to chain into a single-session compound attack. Each stage uses the output of the previous stage as input, and each stage serves both a primary tactical objective and a preparatory function for the stage that follows. The victim needs to visit only one malicious page. All four stages complete before the victim closes the tab.
Stage 1 — Enumerate high-activity targets via notification history oracle (CORS43-003, no credentials needed). The attacker's page iterates through known or guessed skill IDs in the registry, sending requests to the notification history endpoint and measuring response latency via performance.now(). Skills with active notification histories produce measurably slower 403 responses than the fast 404 path for skills with no history. After 60 seconds of enumeration, the attacker has a ranked list of skills with active security monitoring — the production-critical tooling worth targeting with the credential-dependent exfiltration in Stage 2. This stage leaves no log entries pointing to the attacker's true intent; every request looks like a failed ownership check from an unauthenticated session.
Stage 2 — Exfiltrate notification config and signing secrets (CORS43-001, requires victim session). For each skill identified in Stage 1, the attacker uses the credential-bearing CORS on the notification configuration endpoint to read the full notification setup: alert thresholds, delivery addresses, webhook target URLs, and HMAC signing secrets. This data is exfiltrated to the attacker's collection server. The signing secrets are the primary payload — with them, the attacker can forge authentic-looking security alerts to any downstream incident response system that the organization has connected. The threshold calibrations are secondary intelligence that informs how to stay below detection limits.
Stage 3 — Forge alert payloads to incident response platforms (uses signing secrets from Stage 2, no further registry access needed). With the HMAC signing secrets from Stage 2, the attacker calls the downstream system webhook URLs directly, delivering crafted security alerts. These alerts are designed to consume incident response capacity: a fabricated critical vulnerability in a high-profile skill, a manufactured authentication breach, a staged supply-chain compromise event. The incident response team responds to these fabricated events, activating their runbooks, bringing in on-call engineers, and occupying senior security staff. This creates the operational window for Stage 4.
Stage 4 — Delete alert subscriptions to blind security monitoring (CORS43-004, requires victim admin session). While the incident response team is occupied with the fabricated alerts from Stage 3, the attacker uses the credential-bearing CORS on the subscription deletion endpoint to delete all real security monitoring subscriptions from the targeted skills. The organization continues to generate internal alerts for anomalous activity, but delivery to human responders is now severed. The fabricated incidents from Stage 3 are consuming the available incident response attention; the monitoring that would detect the actual primary attack has been deleted. The attacker proceeds with their primary objective — supply chain injection, privilege escalation, credential harvesting — without triggering any automated human notification.
The sophistication of this chain lies in the temporal coordination between the forgery in Stage 3 and the deletion in Stage 4. If the subscription deletion happens before the fabricated alerts are delivered, the incident response team never receives the fabricated alerts and there is no distraction created. If the deletions happen after the incident response team has already begun investigating the fabricated alerts — which typically requires 5-10 minutes of initial triage before escalation paths activate — the deletion removes the infrastructure that the team would use to monitor for new events during their investigation. The window between Stage 3 alert delivery and Stage 4 deletion is typically under two minutes in a browser execution context, well within the latency between alert delivery and incident response activation.
Detection with SkillAudit AST queries
SkillAudit's static analysis engine detects all four CORS43 patterns through three classes of AST query applied across your skill registry codebase.
Class 1: Credential-bearing CORS on notification configuration endpoints. SkillAudit identifies middleware chains where cors({origin:true}) or cors({origin: (origin, cb) => cb(null, true)}) appears before an endpoint handler on routes matching notification configuration read patterns (/notifications, /alerts/config, /webhooks/config). The query flags both explicit credentials:true and implicit credential forwarding enabled by origin reflection on frameworks that treat unconditional reflection as equivalent to credentials:true. The same query covers CORS43-004 by scanning DELETE handlers on notification subscription routes for the same credential-bearing CORS pattern.
Class 2: Wildcard ACAO on notification subscription mutation endpoints. SkillAudit scans for cors({ origin: '*' }) on router.post handler registrations that match subscription creation route patterns (/subscribe, /subscriptions, /alerts/subscribe). This catches CORS43-002's pattern of using a wildcard on a quota-consuming POST endpoint. The same query class also covers wildcard CORS on other mutation endpoints in the notifications sub-router: unsubscribe, threshold update, delivery configuration changes.
Class 3: Middleware ordering oracle pattern on notification endpoints. SkillAudit detects when CORS middleware appears before requireSession, requireAuth, or any authentication guard middleware in Express, Fastify, Koa, and Hapi router registration chains, specifically on routes matching notification history and event log patterns. This catches CORS43-003's ordering anti-pattern. The detection is applied to all notification sub-router route registrations, not just the history endpoint, since the same ordering vulnerability frequently appears on adjacent endpoints — notification event counts, delivery status checks, and audit sub-endpoints — that were built in the same session as the history endpoint and inherited the same middleware ordering mistake.
SkillAudit scans for credential-bearing CORS reflection on notification configuration endpoints, wildcard ACAO on subscription creation operations, middleware ordering that emits CORS before ownership checks, and credential-bearing CORS on subscription deletion — across all notification and alert sub-routers in your MCP skill registry codebase. Paste your GitHub URL for a graded report in 60 seconds.
Scan your registrySummary and remediation checklist
| Finding | Severity | Root cause | Key fix |
|---|---|---|---|
| CORS43-001 | CRITICAL | cors({origin:true,credentials:true}) on notification config GET | Allowlist + requireSession before CORS; public callers get boolean only; treat signing secrets as write-only |
| CORS43-002 | HIGH | ACAO: * on notification subscribe POST endpoint | Remove wildcard; session + CSRF + admin role + verified-domain allowlist + quota enforcement |
| CORS43-003 | MEDIUM | CORS emitted before ownership check creates timing oracle | Auth before CORS; unified WHERE clause with orgId; minimum-latency normalization |
| CORS43-004 | CRITICAL | cors({origin:true,credentials:true}) on subscription delete | Allowlist + requireRole('admin') + CSRF + re-auth for security subs + append-only audit log + security contact notification |
The common thread across all four findings is a failure to treat notification endpoints as security-critical infrastructure rather than administrative convenience endpoints. Notification routers inherit broadly-configured CORS middleware and receive less disciplined ownership enforcement, producing the conditions for signing secret exfiltration, quota exhaustion, timing-based enumeration, and monitoring takedown via a single cross-origin request flow.
See also: SA-SKL-CORS43 advisory page for the technical findings summary, SA-SKL-CORS42 for the companion CORS patterns in permission and ACL endpoints, and SA-SKL-CORS41 blog post for the compound competitive intelligence exfiltration chain that credential-bearing CORS enables across analytics and usage metrics endpoints.