← Blog

Claude MCP skill SSRF via webhooks and integration URL configuration in skill management — SA-SKL-SSRF15

Integration features — webhook notifications, CI/CD callbacks, Slack alerts, Jira sync, Microsoft Teams connectors — all require the server to make outbound HTTP requests to URLs supplied by users. Each of these is a potential SSRF (Server-Side Request Forgery) vector: if the URL is not validated before the request is made, an attacker can configure any URL including AWS instance metadata (169.254.169.254), internal database endpoints, or other services on the private network. The validation logic itself has well-known bypass patterns: startsWith checks are bypassed by domain-prefixed hostnames, DNS-based allowlists can be bypassed through DNS rebinding, and "verify reachability" test endpoints that make a GET request to the stored URL are SSRF on demand. Four SA-SKL-SSRF15 patterns cover the most common webhook and integration SSRF paths in MCP skill management platforms.

By SkillAudit  |  9 Nov 2026
SA-SKL-SSRF15 findings at a glance
CRITICALSSRF15-001 — Slack webhook URL stored from user settings and fired on every audit completion event; URL not validated on update; attacker changes webhook URL to http://169.254.169.254/latest/meta-data/iam/security-credentials/; server fetches AWS instance metadata on each audit and the response body (containing IAM access keys) is logged to the audit event log
CRITICALSSRF15-002 — GitHub-style webhook delivery has a "test delivery" endpoint that calls GET on the stored webhook URL to verify it is reachable; test delivery endpoint is unauthenticated or accessible to any team member; attacker stores http://redis:6379/ as the webhook URL and calls the test-delivery endpoint to probe internal services
HIGHSSRF15-003 — Jira integration URL from org settings validated against *.atlassian.net using url.hostname.startsWith('atlassian.net') — wait, reversed: attacker sets URL to https://atlassian.net.evil.com/; check passes because hostname starts with or ends with the expected domain segment; server POSTs audit results to attacker-controlled Jira clone
HIGHSSRF15-004 — Microsoft Teams webhook configured to custom connector URL; validation checks the URL is reachable (HTTP 200) but does not check the resolved IP; connector URL https://teams-hook.internal.company.com resolves to 10.20.30.40 in the private network; server posts audit summaries to an internal service

SSRF15-001 — Unvalidated Slack webhook URL fires to AWS instance metadata

Slack incoming webhook URLs are user-configurable in most SaaS integrations. When the server fires an HTTP POST to the stored webhook URL on every audit completion event, it is making a server-side request to an attacker-controlled destination. Without URL validation at save time, the attacker can set the webhook URL to http://169.254.169.254/latest/meta-data/ — the AWS instance metadata endpoint. The server then POSTs the audit payload to that IP, receives the metadata response (which may include IAM credentials), and depending on the application logs the response body or returns it in the UI as a "webhook delivery error". This is one of the most reliable SSRF vectors in SaaS applications because outbound webhook requests are considered normal traffic and rarely firewalled.

// VULNERABLE — SSRF15-001
// Slack webhook URL stored directly from user input, fired on audit completion.
// No URL validation at save time or fire time.
// Attacker sets: webhookUrl = "http://169.254.169.254/latest/meta-data/iam/security-credentials/role"

async function saveWebhookSettings(orgId, webhookUrl) {
  // VULNERABLE: URL stored without validation
  await db.query('UPDATE orgs SET slack_webhook = ? WHERE id = ?', [webhookUrl, orgId]);
}

async function notifyAuditComplete(orgId, auditResult) {
  const org = await db.query('SELECT slack_webhook FROM orgs WHERE id = ?', [orgId]);
  if (!org.slack_webhook) return;

  // VULNERABLE: fires to attacker-supplied URL — could be 169.254.169.254
  const response = await fetch(org.slack_webhook, {
    method: 'POST',
    headers: { 'Content-Type': 'application/json' },
    body: JSON.stringify({ text: `Audit complete: ${auditResult.score}/100` }),
  });
  // VULNERABLE: response body logged — attacker can read AWS credentials from logs
  const body = await response.text();
  await logWebhookDelivery(orgId, response.status, body);
}
// FIXED — SSRF15-001
// Fix 1: Validate webhook URL at save time — allowlist scheme (https only), block private IPs.
// Fix 2: Resolve DNS and check resolved IP against RFC1918/link-local/loopback blocklist.
// Fix 3: Pin Slack webhook to known Slack domains if Slack-only integration.
// Fix 4: Never log webhook response body.

import { Resolver } from 'dns/promises';
import { isIP } from 'net';

const BLOCKED_IP_RANGES = [
  /^10\./,           // RFC1918
  /^172\.(1[6-9]|2\d|3[01])\./,  // RFC1918
  /^192\.168\./,     // RFC1918
  /^127\./,          // loopback
  /^169\.254\./,     // link-local (AWS metadata)
  /^::1$/,           // IPv6 loopback
  /^fc00:/,          // IPv6 ULA
];

async function validateWebhookUrl(urlString) {
  let url;
  try {
    url = new URL(urlString);
  } catch {
    throw new Error('Invalid URL');
  }

  // FIX 1: HTTPS only
  if (url.protocol !== 'https:') {
    throw new Error('Webhook URL must use HTTPS');
  }

  // FIX 2: Resolve DNS and check IP
  const resolver = new Resolver();
  const addresses = await resolver.resolve4(url.hostname).catch(() => []);
  const addresses6 = await resolver.resolve6(url.hostname).catch(() => []);
  const allAddresses = [...addresses, ...addresses6];

  for (const addr of allAddresses) {
    if (BLOCKED_IP_RANGES.some(r => r.test(addr))) {
      throw new Error(`Webhook URL resolves to blocked IP range: ${addr}`);
    }
  }

  // FIX 3: Optional — pin to Slack domains for Slack-specific integration
  const SLACK_DOMAINS = new Set(['hooks.slack.com']);
  if (!SLACK_DOMAINS.has(url.hostname)) {
    throw new Error('Webhook URL must be a valid Slack incoming webhook URL');
  }
}

async function saveWebhookSettings(orgId, webhookUrl) {
  await validateWebhookUrl(webhookUrl);  // FIX: validate before saving
  await db.query('UPDATE orgs SET slack_webhook = ? WHERE id = ?', [webhookUrl, orgId]);
}

async function notifyAuditComplete(orgId, auditResult) {
  const org = await getOrg(orgId);
  if (!org.slack_webhook) return;

  // Re-validate at fire time in case DNS changed (defense-in-depth)
  await validateWebhookUrl(org.slack_webhook);

  await fetch(org.slack_webhook, {
    method: 'POST',
    body: JSON.stringify({ text: `Audit complete: ${auditResult.score}/100` }),
    signal: AbortSignal.timeout(5000),
  });
  // FIX 4: Never log response body — only log status code
  await logWebhookDelivery(orgId, 'delivered');
}

Detection: SkillAudit's SSRF scanner checks all webhook URL fields for missing validation logic. It tests by attempting to save http://169.254.169.254/ as a webhook URL and observing whether it is accepted. It also checks for RFC1918 IP resolution in DNS validation code.

SSRF15-002 — Webhook test-delivery endpoint GETs the stored URL

Many webhook management interfaces include a "test delivery" button that sends a sample payload to the configured webhook URL to verify connectivity. A common implementation calls GET on the stored URL first to verify it returns HTTP 200 before sending the POST payload. This "verify reachability" step is itself an SSRF on demand: any team member with access to the webhook settings page can trigger an arbitrary GET request to any URL by storing it and clicking "test delivery". Internal services that respond to HTTP GET requests (Redis INFO, Elasticsearch, database health endpoints, internal admin UIs) are probed and their responses can be observed.

// VULNERABLE — SSRF15-002
// Test delivery endpoint makes a GET request to the stored webhook URL to verify reachability.
// Attacker stores: webhookUrl = "http://redis:6379/" (or any internal service)
// Calls: POST /api/webhooks/test-delivery
// Server makes GET http://redis:6379/ — Redis responds with RESP protocol error body
// Response body returned to the attacker, confirming Redis is reachable and leaking version.

app.post('/api/webhooks/:id/test-delivery', requireAuth, async (req, res) => {
  const webhook = await getWebhook(req.params.id, req.user.orgId);

  // VULNERABLE: GET request to stored URL to "verify" it's reachable
  try {
    const verifyResponse = await fetch(webhook.url, { method: 'GET' });
    if (verifyResponse.status !== 200) {
      return res.status(400).json({ error: 'Webhook URL not reachable' });
    }
  } catch (e) {
    return res.status(400).json({ error: 'Could not reach webhook URL: ' + e.message });
  }

  // Then send actual test payload
  await sendTestPayload(webhook.url);
  res.json({ ok: true });
});
// FIXED — SSRF15-002
// Fix 1: Never make a GET request to verify webhook reachability — just send the POST.
//         The POST response (or timeout) is the reachability signal.
// Fix 2: Validate URL at save time (see SSRF15-001 fix) — by the time test-delivery runs,
//         the URL is already validated and safe to POST to.
// Fix 3: If you must verify before posting, check the URL is in the validated allowlist
//         from the saved settings — do not re-accept URL from the request body.

app.post('/api/webhooks/:id/test-delivery', requireAuth, async (req, res) => {
  const webhook = await getWebhook(req.params.id, req.user.orgId);

  // FIX: Re-validate the stored URL before firing (belt + suspenders in case config changed)
  try {
    await validateWebhookUrl(webhook.url);
  } catch (e) {
    return res.status(400).json({ error: 'Webhook URL failed validation: ' + e.message });
  }

  // FIX: Send the test POST directly — do NOT make a preliminary GET request
  //      The POST response is the reachability signal.
  try {
    const response = await fetch(webhook.url, {
      method: 'POST',
      headers: { 'Content-Type': 'application/json', 'X-SkillAudit-Event': 'test' },
      body: JSON.stringify({ event: 'test', message: 'SkillAudit webhook test delivery' }),
      signal: AbortSignal.timeout(10000),
    });
    res.json({ ok: true, status: response.status });
  } catch (e) {
    res.status(400).json({ error: 'Webhook delivery failed: ' + e.message });
  }
});

SSRF15-003 — Jira integration URL allowlist bypassed via startsWith

When validating that a Jira integration URL points to an Atlassian-hosted instance, developers often write a check like url.hostname.endsWith('.atlassian.net') or url.hostname.includes('atlassian.net'). The endsWith check is correct for hostname validation, but includes is bypassed by https://skillaudit.dev/?atlassian.net (the query string). The startsWith check in the reverse direction — checking that the URL starts with https://atlassian.net — is bypassed by https://atlassian.net.evil.com/ which starts with the expected prefix. The correct check is an exact hostname match or a strict suffix check on the parsed hostname.

// VULNERABLE — SSRF15-003
// Jira URL validated with startsWith on the full URL string — easily bypassed.
// Attacker sets: https://atlassian.net.evil.com/rest/api/2/issue/
// URL.hostname = "atlassian.net.evil.com"
// startsWith check: "https://atlassian.net.evil.com/".startsWith("https://atlassian.net") === true ✓

async function saveJiraIntegration(orgId, jiraUrl, jiraToken) {
  // VULNERABLE: startsWith on full URL string — attacker domain bypasses it
  if (!jiraUrl.startsWith('https://atlassian.net') &&
      !jiraUrl.startsWith('https://your-org.atlassian.net')) {
    throw new Error('Invalid Jira URL — must be an Atlassian Cloud instance');
  }
  // Attacker reaches here with https://atlassian.net.evil.com
  await db.query('UPDATE orgs SET jira_url = ?, jira_token = ? WHERE id = ?',
    [jiraUrl, jiraToken, orgId]);
}

async function postAuditToJira(orgId, auditResult) {
  const org = await getOrg(orgId);
  // VULNERABLE: POSTs audit data (including jira_token) to attacker-controlled server
  await fetch(org.jira_url + '/rest/api/2/issue/', {
    method: 'POST',
    headers: {
      'Authorization': 'Basic ' + Buffer.from(':' + org.jira_token).toString('base64'),
      'Content-Type': 'application/json',
    },
    body: JSON.stringify({ fields: { summary: 'Audit result', description: auditResult } }),
  });
}
// FIXED — SSRF15-003
// Fix 1: Parse URL with new URL() and check hostname exactly — not string prefix matching.
// Fix 2: Hostname must end with .atlassian.net (suffix check) or be an exact known host.
// Fix 3: Re-validate at use time in case the saved URL was inserted before validation was added.

async function validateJiraUrl(jiraUrl) {
  let url;
  try {
    url = new URL(jiraUrl);
  } catch {
    throw new Error('Invalid URL format');
  }

  if (url.protocol !== 'https:') {
    throw new Error('Jira URL must use HTTPS');
  }

  // FIX: exact hostname suffix check using parsed URL — not string prefix
  // .atlassian.net suffix means hostname must END with .atlassian.net
  if (!url.hostname.endsWith('.atlassian.net')) {
    throw new Error('Jira URL must be an Atlassian Cloud instance (*.atlassian.net)');
  }

  // FIX: also check for private IP ranges in the resolved hostname
  await assertNotPrivateIP(url.hostname);  // same DNS-resolve check as SSRF15-001
}

async function saveJiraIntegration(orgId, jiraUrl, jiraToken) {
  await validateJiraUrl(jiraUrl);  // FIX: validate first
  await db.query('UPDATE orgs SET jira_url = ?, jira_token = ? WHERE id = ?',
    [jiraUrl, encryptToken(jiraToken), orgId]);
}

SSRF15-004 — Teams connector URL resolves to RFC1918 address

Microsoft Teams supports custom connector URLs for delivering webhooks to external services. Some organizations run internal Teams-compatible webhook receivers that are hosted on private network addresses behind internal DNS. When a user configures a custom connector URL, the server may validate that the URL is "reachable" — i.e., returns HTTP 200 — but fail to check whether the resolved IP address is in a private (RFC1918) range. An attacker who can configure the Teams connector URL provides a hostname that resolves to an internal service IP. The reachability check passes (the internal service responds), and subsequently every audit event is POSTed to the internal service, potentially exposing audit data or probing internal endpoints.

// VULNERABLE — SSRF15-004
// Teams connector URL validated by checking HTTP 200 response — but IP not checked.
// Attacker sets: https://teams.internal.company.com/webhook
// DNS resolves to: 10.20.30.40 (internal network)
// Validation fetches the URL, gets 200 from internal service → passes.
// Subsequent audit events are POSTed to 10.20.30.40.

async function validateTeamsConnector(connectorUrl) {
  // VULNERABLE: only checks HTTP reachability — does not check resolved IP
  try {
    const response = await fetch(connectorUrl, {
      method: 'GET',
      signal: AbortSignal.timeout(5000),
    });
    if (response.status === 200) {
      return true;  // VULNERABLE: 10.20.30.40 also returns 200 — passes
    }
  } catch {
    return false;
  }
  return false;
}
// FIXED — SSRF15-004
// Fix 1: Resolve DNS before making any request — check resolved IP against blocklist.
// Fix 2: Use a dedicated SSRF-safe HTTP client that blocks private IP ranges.
// Fix 3: Consider an allowlist of known Teams webhook endpoints instead of arbitrary URLs.

import dns from 'dns/promises';

async function validateTeamsConnector(connectorUrl) {
  let url;
  try {
    url = new URL(connectorUrl);
  } catch {
    throw new Error('Invalid URL');
  }

  if (url.protocol !== 'https:') {
    throw new Error('Teams connector URL must use HTTPS');
  }

  // FIX 1: Resolve DNS first — check all resolved IPs against RFC1918/link-local/loopback
  const ipv4s = await dns.resolve4(url.hostname).catch(() => []);
  const ipv6s = await dns.resolve6(url.hostname).catch(() => []);

  for (const ip of [...ipv4s, ...ipv6s]) {
    if (isPrivateIP(ip)) {
      throw new Error(`Teams connector URL resolves to private IP: ${ip}. Only public endpoints are allowed.`);
    }
  }

  // FIX 2: Only after IP validation, verify reachability via POST (not GET)
  // Note: even this POST is an SSRF risk if DNS rebinding is possible.
  // For highest security, skip the reachability check entirely and rely on IP validation.
  return true;
}

function isPrivateIP(ip) {
  const privateRanges = [
    /^10\./,
    /^172\.(1[6-9]|2\d|3[01])\./,
    /^192\.168\./,
    /^127\./,
    /^169\.254\./,
    /^::1$/,
    /^fc00:/,
    /^fe80:/,
  ];
  return privateRanges.some(r => r.test(ip));
}

SSRF defense-in-depth for integration URLs: (1) Parse with new URL() — never use string matching. (2) Allowlist https: scheme only. (3) Resolve DNS and block RFC1918, link-local, and loopback addresses before making any request. (4) Set short timeouts (AbortSignal.timeout(5000)). (5) Never log response bodies from outbound webhook calls. (6) Re-validate at fire time, not just at save time. (7) Consider using a dedicated SSRF-safe HTTP proxy library like ssrf-req-filter (Node.js) which enforces these rules automatically.

Summary — SA-SKL-SSRF15 at a glance

PatternRoot causeFixSeverity
SSRF15-001Slack webhook URL stored without IP validation; fires to 169.254.169.254 and logs IAM credentials from responseValidate HTTPS scheme, resolve DNS, block RFC1918/link-local at save time and fire time; never log response bodyCritical
SSRF15-002Test-delivery endpoint makes GET to stored webhook URL to verify reachability; probes internal services on demandRemove preliminary GET verification; send POST directly; validate URL before firingCritical
SSRF15-003Jira URL allowlist uses startsWith on full URL string; bypassed by atlassian.net.evil.comParse URL with new URL(); check hostname.endsWith('.atlassian.net') exactlyHigh
SSRF15-004Teams connector URL validated by HTTP reachability only; RFC1918 resolved IP not checked; internal service receives audit eventsResolve DNS, check resolved IP against RFC1918 blocklist before any requestHigh
SkillAudit

Does your MCP skill's webhook integration validate URLs against SSRF attacks?

SkillAudit scans for missing SSRF validation in webhook URL fields, test-delivery GET requests, startsWith hostname checks, and missing RFC1918 IP blocking in outbound integration code — before an attacker routes your webhooks to your internal network.

Audit your MCP skill →