← Blog

Claude MCP skill SSRF — skill monitoring alerting and incident notification webhook endpoints (SA-SKL-SSRF88)

SA-SKL-SSRF88 identifies four server-side request forgery vulnerabilities in MCP skill registry skill monitoring alerting and incident notification webhook endpoints. SSRF88-001 exploits the alert notification endpoint, which delivers alert payloads to a user-supplied alertWebhookUrl — an attacker sets this URL to the EC2 Instance Metadata Service address 169.254.169.254/latest/meta-data/iam/security-credentials/ and receives the registry monitor worker's IAM role credentials in the alert notification response body. SSRF88-002 exploits the incident escalation endpoint, which acknowledges escalations by fetching a user-supplied incidentEscalationUrl — an attacker points this URL to an internal Consul instance at port 8500 and receives the full service catalog including internal service addresses and health check metadata as the escalation acknowledgment body. SSRF88-003 exploits the status page update endpoint, which fetches a user-supplied statusPageCallbackUrl with redirect following enabled — an attacker registers a DNS CNAME that resolves to vault.internal:8200 and receives Vault KV secrets through the redirect chain. SSRF88-004 exploits the on-call rotation import endpoint, which fetches a user-supplied oncallImportUrl and stores the raw HTTP response body as a rotation record in the registry database, making internal configuration exfiltrated from etcd.internal:2379 permanently queryable through the rotation history API.

SA-SKL-SSRF88 findings at a glance
CRITICALSSRF88-001 — alert notification endpoint fetches user-supplied alertWebhookUrl — attacker sets to 169.254.169.254; IAM credentials in alert notification response body
CRITICALSSRF88-002 — incident escalation endpoint fetches user-supplied incidentEscalationUrl — attacker points to Consul:8500; full service catalog as incident escalation acknowledgment body
CRITICALSSRF88-003 — status page update endpoint fetches user-supplied statusPageCallbackUrl with redirect:follow — CNAME chain to Vault:8200 returns KV secrets
HIGHSSRF88-004 — on-call rotation import endpoint fetches user-supplied oncallImportUrl and stores raw response as rotation record — attacker points to etcd:2379; etcd config stored persistently via rotation history API

SSRF88-001 — Alert webhook URL fetches IMDS IAM credentials

The alert notification endpoint accepts an alertWebhookUrl parameter specifying where to POST alert payloads when a monitored skill's health check fails or a performance threshold is breached. This webhook mechanism is designed to integrate with external incident management platforms such as PagerDuty, Opsgenie, or custom alerting pipelines, but the endpoint makes no distinction between external URLs and internal infrastructure addresses. An attacker who registers a skill with monitoring configured — available to any authenticated skill publisher on the platform — sets alertWebhookUrl to http://169.254.169.254/latest/meta-data/iam/security-credentials/registry-monitor-role. When the monitoring worker dispatches the next alert, it POSTs the alert payload to this URL, which the EC2 IMDS accepts and responds to with the IAM role's temporary credentials including AccessKeyId, SecretAccessKey, and Token. These credentials are included verbatim in the alert delivery result returned to the caller, exposing the full IAM role credential set for the monitoring worker. Because monitoring workers typically hold broad read access to S3 buckets containing skill packages, DynamoDB tables containing publisher records, and CloudWatch for log querying, these credentials provide significant lateral movement capability for the duration of their TTL, which is typically one hour.

The alert delivery codepath is particularly attractive to attackers because monitoring webhooks are expected to be called frequently and from infrastructure with elevated cloud permissions — the monitoring worker requires IAM permissions to describe EC2 instances, read CloudWatch metrics, and access S3 health check artifacts. The pattern of returning the response body verbatim in the delivery result — intended to help publishers debug webhook endpoint failures — is what transforms the SSRF from a blind probe into a credential exfiltration channel. An attacker who does not immediately receive the credentials through the synchronous response can also query the alert delivery history API, which persists delivery results for debugging purposes.

Vulnerable
// SSRF88-001 — VULNERABLE: alertWebhookUrl fetches IMDS for IAM credentials
const fetch = require('node-fetch');

async function deliverAlertNotification(skillId, alertEvent, alertWebhookUrl) {
  if (!alertWebhookUrl) return { delivered: false, reason: 'no webhook configured' };

  const payload = {
    skillId,
    alertType: alertEvent.type,
    severity: alertEvent.severity,
    message: alertEvent.message,
    triggeredAt: alertEvent.at
  };

  // attacker sets alertWebhookUrl = 'http://169.254.169.254/latest/meta-data/iam/security-credentials/registry-monitor-role'
  const resp = await fetch(alertWebhookUrl, {
    method: 'POST',
    headers: { 'Content-Type': 'application/json' },
    body: JSON.stringify(payload)
  });

  // response body returned verbatim — attacker receives IAM credentials
  return {
    delivered: true,
    webhookStatus: resp.status,
    webhookBody: await resp.text()
  };
}

IAM role credentials returned from the IMDS provide full AWS API access under the monitoring worker's permissions — an attacker who exfiltrates them can read all S3 skill packages, write to DynamoDB publisher records, and query CloudWatch logs for the credential TTL period. assertSafeExternalUrl() blocks RFC 1918, loopback, and link-local addresses including 169.254.169.254; DNS rebinding protection re-resolves the hostname at fetch time and validates the resolved IP; redirect: 'error' prevents redirect chains from bypassing the allowlist check; returning only the HTTP status code eliminates the response body exfiltration channel.

Fixed
// SSRF88-001 — FIXED: assertSafeExternalUrl(); redirect:error; return only statusCode
const fetch = require('node-fetch');
const { assertSafeExternalUrl } = require('../security/ssrf');

async function deliverAlertNotification(skillId, alertEvent, alertWebhookUrl) {
  if (!alertWebhookUrl) return { delivered: false, reason: 'no webhook configured' };

  assertSafeExternalUrl(alertWebhookUrl);

  const payload = {
    skillId,
    alertType: alertEvent.type,
    severity: alertEvent.severity,
    message: alertEvent.message,
    triggeredAt: alertEvent.at
  };

  const resp = await fetch(alertWebhookUrl, {
    method: 'POST',
    redirect: 'error',
    headers: { 'Content-Type': 'application/json' },
    body: JSON.stringify(payload)
  });

  // return only status code — never return response body to caller
  return { delivered: true, webhookStatus: resp.status };
}

CVSS score: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N — Base Score 9.0 (CRITICAL); scope changed because IAM credential exfiltration extends impact to all AWS services accessible to the monitoring worker role, well beyond the registry system boundary.

SSRF88-002 — Incident escalation URL fetches Consul service catalog

The incident escalation endpoint accepts an incidentEscalationUrl parameter specifying where to POST a notification when a skill-related incident is escalated to the on-call team. The escalation mechanism is intended to integrate with external on-call management platforms, but the endpoint makes no distinction between external on-call platforms and internal service discovery endpoints. An attacker who can trigger an incident escalation — available to any authenticated publisher whose skill has an active alert — sets incidentEscalationUrl to http://consul.internal:8500/v1/catalog/services. The monitoring worker POSTs the escalation payload to this URL, which Consul's HTTP API accepts on the /v1/catalog/services endpoint and responds with the full service catalog as a JSON object. This catalog includes the names, addresses, tagged metadata, and health check endpoint paths for every service registered with Consul — the registry database cluster, the Redis cache tier, internal API services, background worker queues, and any other services that use Consul for service discovery. The response body is included in the escalation acknowledgment returned to the attacker, providing a complete internal network topology map that is immediately actionable for targeted lateral movement against services that do not require authentication from the registry worker network.

The escalation codepath presents a particularly high-value SSRF target because incident escalation endpoints are designed to be reachable from monitoring infrastructure that often sits on a privileged internal network segment with broad connectivity. Registry monitoring workers require network access to health check every registered skill endpoint, which means their outbound network policy is intentionally permissive. This permissive outbound posture — combined with the lack of URL validation — means the SSRF can reach not only well-known service discovery ports like Consul at 8500 but also any other internal service accessible from the monitoring worker's subnet, including administrative interfaces that are blocked from the public internet.

Vulnerable
// SSRF88-002 — VULNERABLE: incidentEscalationUrl fetches Consul:8500 service catalog
const fetch = require('node-fetch');

async function notifyIncidentEscalation(skillId, incident, incidentEscalationUrl) {
  if (!incidentEscalationUrl) return { notified: false };

  const payload = {
    skillId,
    incidentId: incident.id,
    severity: incident.severity,
    summary: incident.summary,
    escalatedAt: new Date()
  };

  // attacker sets incidentEscalationUrl = 'http://consul.internal:8500/v1/catalog/services'
  const resp = await fetch(incidentEscalationUrl, {
    method: 'POST',
    headers: { 'Content-Type': 'application/json' },
    body: JSON.stringify(payload)
  });

  // full Consul service catalog returned to attacker in acknowledgment body
  return {
    notified: true,
    escalationStatus: resp.status,
    escalationAck: await resp.text()
  };
}

The Consul service catalog maps the entire internal service topology — an attacker who exfiltrates it has a complete lateral movement blueprint for targeting every internal service accessible from the monitoring worker network, including unauthenticated administrative interfaces. assertSafeExternalUrl() blocks internal DNS names resolving to RFC 1918 addresses including Consul's default port; returning only the HTTP status code from the escalation POST eliminates the response body exfiltration channel; a HEAD-only method variant removes the need to send a request body entirely for acknowledgment probes.

Fixed
// SSRF88-002 — FIXED: assertSafeExternalUrl(); redirect:error; return only escalationStatus
const fetch = require('node-fetch');
const { assertSafeExternalUrl } = require('../security/ssrf');

async function notifyIncidentEscalation(skillId, incident, incidentEscalationUrl) {
  if (!incidentEscalationUrl) return { notified: false };

  assertSafeExternalUrl(incidentEscalationUrl);

  const payload = {
    skillId,
    incidentId: incident.id,
    severity: incident.severity,
    summary: incident.summary,
    escalatedAt: new Date()
  };

  const resp = await fetch(incidentEscalationUrl, {
    method: 'POST',
    redirect: 'error',
    headers: { 'Content-Type': 'application/json' },
    body: JSON.stringify(payload)
  });

  // return only status code — never return response body to caller
  return { notified: true, escalationStatus: resp.status };
}

CVSS score: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N — Base Score 7.7 (HIGH); scope changed because service catalog exfiltration enables lateral movement against internal services beyond the registry system boundary; monitoring worker network access amplifies the range of reachable internal targets.

SSRF88-003 — Status page callback URL with redirect:follow CNAME chains to Vault

The status page update endpoint accepts a statusPageCallbackUrl parameter specifying where to POST a notification after a skill's public status page has been updated to reflect a new incident or resolution. The endpoint is intended to notify external status page aggregators and customer-facing dashboards, and it fetches the callback URL with redirect following enabled to handle CDN-fronted callback endpoints that redirect canonical URLs to versioned resource addresses. An attacker exploits this redirect following by registering a DNS CNAME record pointing to vault.internal:8200. When the registry monitoring worker follows the redirect chain to the CNAME target, it reaches the Vault HTTP API and the response body — which may include KV secrets, database credentials, API signing keys, and TLS certificates stored in the Vault KV store — is included in the callback response returned to the attacker. The initial URL check that validates the hostname before fetching runs against the attacker-controlled external DNS name, not the internal address the CNAME ultimately resolves to, so the allowlist check passes even though the actual destination is an internal secrets store.

DNS CNAME-chain SSRF is particularly difficult to detect and mitigate because the external hostname used in the initial URL appears legitimate, and DNS resolvers commonly cache CNAME chains in ways that make re-resolution at fetch time unreliable unless specifically implemented. The monitoring worker's status page callback path is an ideal SSRF vehicle because status page integrations are inherently external-facing — the security team is accustomed to seeing outbound connections to external hostnames from monitoring infrastructure, and an alert for a connection to what appears to be a legitimate external status aggregator URL is unlikely to trigger incident response. The redirect:follow flag compounds the exposure by silently following the CNAME chain without logging the intermediate redirect targets.

Vulnerable
// SSRF88-003 — VULNERABLE: statusPageCallbackUrl with redirect:follow allows CNAME to Vault
const fetch = require('node-fetch');

async function notifyStatusPageUpdate(skillId, statusEvent, statusPageCallbackUrl) {
  if (!statusPageCallbackUrl) return { notified: false };

  // attacker registers CNAME: attacker-status.com -> vault.internal:8200
  // statusPageCallbackUrl = 'http://attacker-status.com/v1/secret/data/registry-keys'
  const resp = await fetch(statusPageCallbackUrl, {
    method: 'POST',
    redirect: 'follow',   // follows CNAME chain to vault.internal:8200
    headers: { 'Content-Type': 'application/json' },
    body: JSON.stringify({
      skillId,
      status: statusEvent.status,
      updatedAt: statusEvent.at
    })
  });

  // Vault KV secrets returned to attacker in callback response body
  return {
    notified: true,
    callbackStatus: resp.status,
    callbackBody: await resp.text()
  };
}

redirect:follow with no post-redirect hostname validation allows DNS CNAME chains to bypass initial URL allowlist checks — the security check runs against the attacker-controlled external hostname, not the internal Vault target the redirect resolves to. Setting redirect: 'error' prevents all redirect following and eliminates the CNAME chain attack vector entirely; assertSafeExternalUrl() provides defense-in-depth against direct internal URL submission; returning only the HTTP status code prevents response body exfiltration from the Vault API regardless of how the connection was established.

Fixed
// SSRF88-003 — FIXED: assertSafeExternalUrl(); redirect:error; return only callbackStatus
const fetch = require('node-fetch');
const { assertSafeExternalUrl } = require('../security/ssrf');

async function notifyStatusPageUpdate(skillId, statusEvent, statusPageCallbackUrl) {
  if (!statusPageCallbackUrl) return { notified: false };

  assertSafeExternalUrl(statusPageCallbackUrl);

  const resp = await fetch(statusPageCallbackUrl, {
    method: 'POST',
    redirect: 'error',    // reject any redirect — eliminates CNAME chain attack
    headers: { 'Content-Type': 'application/json' },
    body: JSON.stringify({
      skillId,
      status: statusEvent.status,
      updatedAt: statusEvent.at
    })
  });

  // return only status code — never return response body to caller
  return { notified: true, callbackStatus: resp.status };
}

CVSS score: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N — Base Score 7.7 (HIGH); scope changed because Vault KV exfiltration provides credentials for systems beyond the registry boundary; the CNAME technique makes detection difficult and standard SSRF mitigations ineffective without explicit redirect blocking.

SSRF88-004 — On-call rotation import URL fetches etcd and stores configuration persistently

The on-call rotation import endpoint accepts an oncallImportUrl parameter specifying where to fetch an on-call rotation schedule in iCalendar or JSON format for import into the skill's incident management configuration. The endpoint fetches the URL and stores the raw HTTP response body as a rotation record in the registry database, making it available through the rotation history and configuration API. An attacker who can trigger an on-call rotation import — available to any authenticated skill publisher who has enabled incident management features — sets oncallImportUrl to http://etcd.internal:2379/v3/keys?recursive=true. The monitoring worker fetches this URL, which returns the full etcd key-value store as a JSON response including all stored configuration keys, TLS certificates, cluster membership records, Raft consensus state, and any application secrets stored in etcd such as database connection strings and API keys. Because the response is stored as a rotation record in the registry database, the attacker can retrieve the full etcd dump at any time through the rotation history API — even hours or days after the fetch — and can share the rotation record download URL with collaborators who have no direct access to the monitoring infrastructure.

The persistence vector introduced by this SSRF variant is especially damaging: rotating the etcd secrets after discovery does not remediate the exposure because the historical snapshot remains stored in the registry database and queryable through the rotation API. An attacker who successfully executes this attack before detection has a durable copy of the etcd configuration that retains forensic value and continues to expose historical credentials that may still be in use in backup or disaster recovery contexts. The import endpoint's design — storing raw response bodies to allow round-tripping of rotation data — creates an implicit persistence mechanism that transforms a transient SSRF probe into a permanent secondary data store for exfiltrated internal configuration.

Vulnerable
// SSRF88-004 — VULNERABLE: oncallImportUrl fetches etcd:2379 and stores response persistently
const fetch = require('node-fetch');
const { db } = require('../db');

async function importOncallRotation(skillId, oncallImportUrl, rotationName) {
  // attacker sets oncallImportUrl = 'http://etcd.internal:2379/v3/keys?recursive=true'
  const resp = await fetch(oncallImportUrl);
  const body = await resp.buffer();

  // etcd full key-value dump stored persistently in registry DB as rotation record
  const rotationId = await db.storeOncallRotation({
    skillId,
    name: rotationName,
    rawContent: body,       // attacker-controlled etcd dump stored here
    sourceUrl: oncallImportUrl,
    importedAt: new Date()
  });

  return { rotationId, size: body.length };
}

Storing the SSRF response body persistently in the registry database means that rotating etcd credentials after discovery does not remediate the exposure — the historical snapshot remains accessible through the rotation history API indefinitely and can be queried or shared by any publisher with access to the rotation record. assertSafeExternalUrl() blocks internal DNS names resolving to RFC 1918 addresses; a HEAD-only probe verifies the URL is reachable without fetching the response body; storing only the validated source URL and the HEAD probe status code eliminates both the body exfiltration and the persistence vector entirely.

Fixed
// SSRF88-004 — FIXED: assertSafeExternalUrl(); HEAD-only probe; store only URL and probeStatusCode
const fetch = require('node-fetch');
const { db } = require('../db');
const { assertSafeExternalUrl } = require('../security/ssrf');

async function importOncallRotation(skillId, oncallImportUrl, rotationName) {
  assertSafeExternalUrl(oncallImportUrl);

  // HEAD-only probe — verify URL is reachable without fetching response body
  const probe = await fetch(oncallImportUrl, {
    method: 'HEAD',
    redirect: 'error'
  });

  // store only the validated source URL reference — never store response body content
  const rotationId = await db.storeOncallRotationReference({
    skillId,
    name: rotationName,
    sourceUrl: oncallImportUrl,
    probeStatusCode: probe.status,
    importedAt: new Date()
  });

  return { rotationId, probeStatus: probe.status };
}

CVSS score: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N — Base Score 8.1 (HIGH); scope changed because etcd exfiltration extends to cluster infrastructure and secrets shared across multiple services; integrity impact because persistent storage of exfiltrated data in the rotation history API creates a permanent secondary exposure path that survives credential rotation.

SkillAudit scans for SSRF patterns as part of its automated skill security audit. Get on the waitlist to audit your MCP skill registry.