Claude MCP skill SSRF — badge serving and CDN integration endpoints — SA-SKL-SSRF28
Badge serving and CDN integration endpoints are infrastructure-adjacent surfaces: they interact with cloud metadata services, cache infrastructure, and internal certificate stores as part of their normal operation. SA-SKL-SSRF28 covers four SSRF patterns in MCP skill registry badge serving and CDN integration endpoints — a badge proxy endpoint that caches AWS IAM credentials as CDN-distributed SVG content, a CDN purge endpoint that exposes Varnish admin port access via a user-supplied origin parameter, a headless Chrome OG image renderer exploited via the gopher:// scheme to send raw Redis commands, and a webhook JWKS URI fetch that reaches the internal Vault PKI store to bypass signature verification.
GET /badge?url= fetches a user-supplied URL and caches the response as badge content — attacker sets url=http://169.254.169.254/latest/meta-data/iam/security-credentials/ resulting in AWS IAM credentials being cached as badge SVG and served to every badge viewer via CDN edge nodes globallyPOST /api/cdn/purge accepts a user-supplied origin URL — attacker sets origin to http://varnish-admin:6082/purge reaching the Varnish cache admin port; server response includes purge confirmation containing internal Varnish node IDs and cache topologypreviewUrl via headless Chrome screenshot — attacker supplies gopher://redis:6379/_AUTH%20password%0D%0ACONFIG%20GET%20* enabling raw Redis command injection; Chrome's URL handling passes gopher:// scheme through to the OS resolverjwksUri in webhook registration payload — attacker sets jwksUri to http://internal-cert-store:8200/v1/pki/ca/pem (Vault PKI internal endpoint) allowing webhook signature bypass using a self-signed key and enabling full internal PKI enumerationBackground: badge and CDN endpoints as SSRF attack surfaces
Badge serving endpoints occupy a privileged position in the request lifecycle: they perform HTTP fetches as part of their core function (fetching the upstream badge SVG), their responses are cached and redistributed by CDN edge nodes, and they are typically accessible without authentication (badge URLs are embedded in public READMEs and documentation). An SSRF in a badge proxy is not a single exfiltration event — it is a standing instruction to the CDN to cache and globally distribute whatever the internal fetch returns. When that fetch reaches a cloud metadata endpoint, every subsequent request for that badge delivers the cached IAM credentials to the requester.
CDN integration endpoints introduce a second attack surface: they communicate with cache infrastructure components (Varnish, Nginx, Squid) that expose admin interfaces on internal ports. These interfaces are designed for operator use and trust their callers; they return rich operational metadata including topology information, internal node identifiers, and cache statistics that are valuable for further attack planning.
Headless Chrome-based renderers compound SSRF risk because modern headless Chrome supports a wider range of URL schemes than a simple HTTP library. The gopher:// scheme in particular allows an attacker to compose arbitrary TCP payloads, effectively turning the headless renderer into a raw TCP client that can send Redis commands, SMTP commands, or HTTP requests to internal services without the restrictions that an HTTP library's redirect handling would impose.
Related patterns: SA-SKL-SSRF27 (SSRF in package analysis pipeline), SA-SKL-SSRF26 (SSRF in badge generation and social preview), SA-SKL-CORS25 (CORS misconfiguration in webhook registration).
SSRF28-001 — CRITICAL — Badge proxy caches AWS IAM credentials as CDN-served SVG content
The badge serving endpoint GET /badge?url= is designed to proxy shield.io-style badge SVGs for display in skill registry listings. It accepts a url query parameter, fetches the content at that URL, and returns it with Content-Type: image/svg+xml. The CDN layer is configured to cache responses to /badge?url=* for one hour to reduce origin load.
An attacker submits a skill with a badge URL set to http://169.254.169.254/latest/meta-data/iam/security-credentials/role-name — the AWS Instance Metadata Service (IMDSv1) endpoint that returns temporary IAM credentials in JSON format. The badge proxy fetches this URL from the EC2 instance running the registry server, receives a JSON blob containing AccessKeyId, SecretAccessKey, and Token, and returns it as the badge response. The CDN caches this response.
All subsequent requests for that badge URL — from developers browsing the skill registry, from CI pipelines rendering README badges, from monitoring systems — receive the cached IAM credentials as the response body. The CDN may distribute this cached content to dozens of edge nodes globally, each serving the credentials to any requester. The credentials remain valid until they rotate (typically one hour), but the CDN cache TTL means they continue to be served even after rotation. The attacker need not make any further requests; the CDN distributes the credentials on their behalf.
// VULNERABLE — SSRF28-001
// routes/badge.js
const axios = require('axios');
// BUG: user-supplied URL fetched without any allowlisting
// Attacker sets url=http://169.254.169.254/latest/meta-data/iam/security-credentials/role-name
// IMDSv1 returns JSON with AccessKeyId, SecretAccessKey, Token
// CDN caches the IAM credentials and serves them to all badge viewers
app.get('/badge', async (req, res) => {
const { url } = req.query;
if (!url) return res.status(400).json({ error: 'url required' });
try {
const response = await axios.get(url, { timeout: 5000 });
res.setHeader('Content-Type', response.headers['content-type'] || 'image/svg+xml');
res.setHeader('Cache-Control', 'public, max-age=3600'); // CDN caches for 1 hour
res.send(response.data);
} catch (err) {
res.status(502).json({ error: 'Badge fetch failed' });
}
});
// FIXED — SSRF28-001
// routes/badge.js
const axios = require('axios');
const { URL } = require('url');
const dns = require('dns').promises;
const ipRangeCheck = require('ip-range-check');
// Allowlist of badge provider hostnames
const ALLOWED_BADGE_HOSTS = new Set([
'img.shields.io',
'badgen.net',
'badge.fury.io',
'codecov.io',
]);
// Private/reserved IP ranges that must never be fetched
const PRIVATE_RANGES = [
'10.0.0.0/8',
'172.16.0.0/12',
'192.168.0.0/16',
'127.0.0.0/8',
'169.254.0.0/16', // AWS IMDSv1 — block explicitly
'::1/128',
'fc00::/7',
'100.64.0.0/10', // Carrier-grade NAT
];
async function isSafeUrl(rawUrl) {
let parsed;
try { parsed = new URL(rawUrl); } catch { return false; }
// Only allow HTTPS to badge provider allowlist
if (parsed.protocol !== 'https:') return false;
if (!ALLOWED_BADGE_HOSTS.has(parsed.hostname)) return false;
// Resolve hostname and block private/reserved IPs (TOCTOU-resistant: check at fetch time)
let addrs;
try { addrs = await dns.resolve4(parsed.hostname); } catch { return false; }
for (const addr of addrs) {
if (ipRangeCheck(addr, PRIVATE_RANGES)) return false;
}
return true;
}
app.get('/badge', async (req, res) => {
const { url } = req.query;
if (!url) return res.status(400).json({ error: 'url required' });
if (!(await isSafeUrl(url))) {
logger.warn('SSRF28-001: blocked badge URL', { url, ip: req.ip });
return res.status(400).json({ error: 'Badge URL not in allowlist' });
}
try {
const response = await axios.get(url, {
timeout: 4000,
maxRedirects: 2,
// Prevent redirect to private IP — re-validate on each redirect
beforeRedirect: async (options) => {
const redirectUrl = `${options.protocol}//${options.hostname}${options.path}`;
if (!(await isSafeUrl(redirectUrl))) throw new Error('Redirect to disallowed URL');
},
// Only accept SVG content; refuse JSON or other MIME types that indicate SSRF
validateStatus: (s) => s === 200,
});
const ct = response.headers['content-type'] || '';
if (!ct.startsWith('image/svg') && !ct.startsWith('image/png')) {
logger.warn('SSRF28-001: unexpected content-type from badge URL', { url, ct });
return res.status(502).json({ error: 'Unexpected badge content type' });
}
// Restrict cache to short TTL and add Vary to prevent CDN poisoning across users
res.setHeader('Content-Type', 'image/svg+xml');
res.setHeader('Cache-Control', 'public, max-age=300, s-maxage=300');
res.setHeader('X-Content-Type-Options', 'nosniff');
res.send(response.data);
} catch (err) {
res.status(502).json({ error: 'Badge fetch failed' });
}
});
SSRF28-001 impact: AWS IAM credentials for the EC2 instance role are cached as badge SVG content and distributed globally by the CDN to any requester. The attacker does not need to retrieve the credentials themselves — the CDN delivers them on demand to anyone who requests the badge. The compromised role credentials may grant access to S3 buckets containing skill packages, RDS databases, Secrets Manager entries, or other AWS services. SkillAudit detects this pattern by identifying badge proxy routes that perform HTTP fetches with user-supplied URL parameters and lack a hostname allowlist — the absence of a new URL() parse followed by a Set.has(hostname) check is the primary signal.
SSRF28-002 — HIGH — CDN purge endpoint accesses Varnish admin port via user-supplied origin URL
The CDN cache purge endpoint POST /api/cdn/purge allows operators to programmatically purge cached content after a skill update. It accepts an origin parameter specifying the cache origin server to contact for purge coordination. The endpoint constructs a purge HTTP request to the specified origin using the internal Varnish HTTP client.
An attacker sets origin to http://varnish-admin:6082/purge. Port 6082 is the Varnish administration interface, which accepts the Varnish CLI protocol. While the registry server sends an HTTP PURGE request (not a Varnish CLI command), the Varnish admin interface responds to unexpected input with error messages that include the Varnish version, internal cache topology details, server node identifiers, and VCL configuration excerpts. These details are returned in the purge endpoint's response body, which the attacker can read.
Beyond information disclosure, an attacker who can enumerate internal Varnish admin ports can potentially trigger cache invalidations for content they do not own, probe cache topology to identify all nodes in the CDN cluster, and in some Varnish configurations execute VCL reload operations via the admin interface. The fix requires validating that the origin parameter resolves to a hostname on the CDN provider's allowlist and that the port is explicitly 80 or 443.
// VULNERABLE — SSRF28-002
// routes/cdn.js
const axios = require('axios');
// BUG: user-supplied origin URL passed directly to internal purge request
// Attacker sets origin=http://varnish-admin:6082/purge
// Varnish admin interface (port 6082) responds with internal topology info
// Response (including node IDs and VCL config) returned directly to attacker
app.post('/api/cdn/purge', authenticate, requireRole('operator'), async (req, res) => {
const { origin, paths } = req.body;
if (!origin || !paths?.length) return res.status(400).json({ error: 'origin and paths required' });
const results = [];
for (const path of paths) {
const purgeUrl = `${origin}${path}`; // BUG: attacker controls origin
const response = await axios({ method: 'PURGE', url: purgeUrl, timeout: 5000 });
results.push({ path, status: response.status, body: response.data });
}
res.json({ purged: results });
});
// FIXED — SSRF28-002
// routes/cdn.js
const axios = require('axios');
const { URL } = require('url');
// Allowlist of legitimate CDN origin hostnames and their allowed port
const ALLOWED_CDN_ORIGINS = new Map([
['cdn-origin-1.skillaudit.internal', 80],
['cdn-origin-2.skillaudit.internal', 80],
['cdn-origin-eu.skillaudit.internal', 80],
]);
function validateCdnOrigin(rawOrigin) {
let parsed;
try { parsed = new URL(rawOrigin); } catch { return null; }
const hostname = parsed.hostname;
const port = parseInt(parsed.port || '80', 10);
if (!ALLOWED_CDN_ORIGINS.has(hostname)) return null;
const allowedPort = ALLOWED_CDN_ORIGINS.get(hostname);
if (port !== allowedPort) return null;
if (parsed.protocol !== 'http:' && parsed.protocol !== 'https:') return null;
// Return canonical origin (strip any path component from origin parameter)
return `${parsed.protocol}//${parsed.hostname}:${allowedPort}`;
}
app.post('/api/cdn/purge', authenticate, requireRole('operator'), async (req, res) => {
const { origin, paths } = req.body;
if (!origin || !paths?.length) return res.status(400).json({ error: 'origin and paths required' });
const safeOrigin = validateCdnOrigin(origin);
if (!safeOrigin) {
logger.warn('SSRF28-002: rejected CDN purge origin', { origin, user: req.user.id });
return res.status(400).json({ error: 'origin not in CDN allowlist' });
}
// Validate paths: must start with / and contain no protocol or host
const safePaths = paths.filter(p => typeof p === 'string' && p.startsWith('/') && !p.includes('://'));
if (safePaths.length !== paths.length) {
return res.status(400).json({ error: 'Invalid path in purge request' });
}
const results = [];
for (const path of safePaths) {
const purgeUrl = `${safeOrigin}${path}`;
try {
const response = await axios({ method: 'PURGE', url: purgeUrl, timeout: 4000 });
// Return only status code — do not return body (may contain internal metadata)
results.push({ path, status: response.status });
} catch (err) {
results.push({ path, status: err.response?.status ?? 0, error: 'purge failed' });
}
}
res.json({ purged: results });
});
SSRF28-002 impact: Attacker-controlled origin parameter reaches internal Varnish admin port at 6082, returning internal cache topology details including node identifiers, VCL configuration excerpts, and server version strings. This information is sufficient to map the internal CDN cluster and plan further attacks against cache infrastructure. In Varnish configurations where the admin interface accepts unauthenticated CLI commands from internal addresses, the attacker may also be able to issue VCL reload commands or forcibly expire cache entries for other users. SkillAudit detects this by identifying CDN purge routes where a URL parameter from the request body is concatenated into the target URL for an outbound HTTP request without origin hostname validation.
SSRF28-003 — HIGH — Headless Chrome OG image renderer exploited via gopher:// for Redis command injection
The OG image generation endpoint renders social preview images for skill listing pages by launching a headless Chrome instance and taking a screenshot of the rendered page at a user-supplied previewUrl. The endpoint is intended to render the skill's own landing page, but accepts any URL to allow custom preview customization.
An attacker supplies previewUrl=gopher://redis:6379/_AUTH%20password%0D%0ACONFIG%20GET%20*. The gopher:// scheme allows an attacker to compose raw TCP payloads: the bytes after the first path component are sent verbatim to the target host and port. Chrome's headless mode supports the gopher:// scheme (or passes it to the OS resolver depending on the Chrome version), and the URL is not restricted by standard HTTP library controls such as redirect validation or header inspection. Redis running on the internal network receives the raw AUTH password\r\nCONFIG GET *\r\n commands and responds with its full configuration including requirepass, bind, and all configured keyspaces.
Even in Chrome configurations that have disabled gopher://, the attacker can use http://redis:6379/ with a crafted path to send an HTTP request that Redis interprets as commands (the HTTP request line GET / HTTP/1.1 is ignored by Redis, but subsequent headers matching Redis command syntax may execute). Additionally, file:// scheme access to local configuration files and data: URI rendering are attack vectors in unconfined headless Chrome processes.
// VULNERABLE — SSRF28-003
// routes/ogimage.js
const puppeteer = require('puppeteer');
// BUG: user-supplied previewUrl passed directly to Chrome with no scheme/host validation
// gopher://redis:6379/_AUTH password\r\nCONFIG GET *\r\n
// → Chrome sends raw TCP payload to Redis
// → Redis responds with CONFIG GET output (all keys/values)
// Also exploitable via file:// for local file read, data: for XSS
app.post('/api/og-image', authenticate, async (req, res) => {
const { previewUrl, skillId } = req.body;
if (!previewUrl) return res.status(400).json({ error: 'previewUrl required' });
const browser = await puppeteer.launch({ headless: true });
const page = await browser.newPage();
await page.setViewport({ width: 1200, height: 630 });
// BUG: no URL validation — attacker controls the URL navigated by Chrome
await page.goto(previewUrl, { waitUntil: 'networkidle2' });
const screenshot = await page.screenshot({ type: 'png' });
await browser.close();
res.setHeader('Content-Type', 'image/png');
res.send(screenshot);
});
// FIXED — SSRF28-003
// routes/ogimage.js
const puppeteer = require('puppeteer');
const { URL } = require('url');
const dns = require('dns').promises;
const ipRangeCheck = require('ip-range-check');
const ALLOWED_PREVIEW_HOSTS = new Set([
'skillaudit.dev',
'app.skillaudit.dev',
'preview.skillaudit.dev',
]);
const PRIVATE_RANGES = [
'10.0.0.0/8', '172.16.0.0/12', '192.168.0.0/16',
'127.0.0.0/8', '169.254.0.0/16', '::1/128', 'fc00::/7',
];
async function validatePreviewUrl(rawUrl) {
let parsed;
try { parsed = new URL(rawUrl); } catch { return null; }
// Only allow https:// to known preview hostnames
if (parsed.protocol !== 'https:') return null;
if (!ALLOWED_PREVIEW_HOSTS.has(parsed.hostname)) return null;
// Resolve and block private IPs
let addrs;
try { addrs = await dns.resolve4(parsed.hostname); } catch { return null; }
for (const addr of addrs) {
if (ipRangeCheck(addr, PRIVATE_RANGES)) return null;
}
return parsed.href;
}
app.post('/api/og-image', authenticate, async (req, res) => {
const { previewUrl, skillId } = req.body;
if (!previewUrl) return res.status(400).json({ error: 'previewUrl required' });
const safeUrl = await validatePreviewUrl(previewUrl);
if (!safeUrl) {
logger.warn('SSRF28-003: blocked previewUrl', { previewUrl, user: req.user.id });
return res.status(400).json({ error: 'previewUrl must be an https:// URL on skillaudit.dev' });
}
const browser = await puppeteer.launch({
headless: true,
args: [
'--disable-web-security=false',
'--no-sandbox',
'--disable-setuid-sandbox',
'--disable-dev-shm-usage',
// Disable non-http schemes to prevent gopher://, file://, ftp:// SSRF
'--disable-ftp',
'--disable-background-networking',
'--host-resolver-rules=MAP * ~NOTFOUND, EXCLUDE preview.skillaudit.dev, EXCLUDE skillaudit.dev',
],
});
try {
const page = await browser.newPage();
await page.setViewport({ width: 1200, height: 630 });
// Intercept navigation — block any redirect to non-allowlist URL
await page.setRequestInterception(true);
page.on('request', async (request) => {
const reqUrl = request.url();
const safe = await validatePreviewUrl(reqUrl);
if (!safe) {
logger.warn('SSRF28-003: Chrome navigation blocked mid-render', { reqUrl });
request.abort('blockedbyclient');
} else {
request.continue();
}
});
await page.goto(safeUrl, { waitUntil: 'networkidle2', timeout: 10000 });
const screenshot = await page.screenshot({ type: 'png' });
res.setHeader('Content-Type', 'image/png');
res.setHeader('Cache-Control', 'public, max-age=3600');
res.send(screenshot);
} finally {
await browser.close();
}
});
SSRF28-003 impact: Headless Chrome navigates to attacker-supplied gopher://redis:6379/ URL, sending raw Redis commands to the internal cache instance. Redis responds with its full configuration including passwords, keyspace layout, and bound addresses. With CONFIG SET commands the attacker can reconfigure Redis persistence to write arbitrary files to the filesystem, potentially achieving remote code execution via Redis config rewrite. The file:// scheme variant reads local configuration files including /etc/passwd, application config files, and private keys. SkillAudit detects this by identifying headless browser render routes where the navigated URL originates from a request body parameter without prior scheme validation — specifically the absence of a parsed.protocol === 'https:' check before page.goto().
SSRF28-004 — HIGH — Webhook JWKS URI fetch reaches internal Vault PKI store enabling signature bypass
The webhook delivery system supports JWKS-based signature verification: when registering a webhook, an operator can supply a jwksUri pointing to a JSON Web Key Set document. When a webhook delivery is received, the registry fetches the JWKS from the registered URI and uses the public keys to verify the delivery signature. This allows webhook consumers to rotate keys without updating the registry configuration.
An attacker registers a webhook with jwksUri set to http://internal-cert-store:8200/v1/pki/ca/pem — the Vault server's internal PKI endpoint that returns the CA certificate in PEM format. The registry server fetches this URL from inside the internal network, receives the Vault CA certificate, and attempts to parse it as a JWKS document. When parsing fails, some implementations fall back to treating the CA certificate as a trusted public key, allowing the attacker to sign webhook payloads with the corresponding CA private key (if compromised) or to bypass verification entirely via the error path.
Even without a fallback bypass, the fetch itself constitutes SSRF: the registry server makes an authenticated internal request to Vault's API, potentially triggering Vault audit log entries that reveal internal service addresses, leaking the Vault version and PKI configuration in error responses, or triggering rate-limiting that disrupts legitimate certificate operations. The fix requires that jwksUri values resolve only to public, non-RFC-1918 addresses and that the fetched document passes strict JWKS schema validation before any keys are trusted.
// VULNERABLE — SSRF28-004
// services/webhookVerification.js
const axios = require('axios');
const jose = require('jose');
// BUG: jwksUri from user-supplied webhook registration payload fetched without validation
// Attacker sets jwksUri=http://internal-cert-store:8200/v1/pki/ca/pem
// Registry fetches Vault internal PKI endpoint from inside the private network
// Error response or fallback path may allow signature bypass
async function verifyWebhookSignature(webhook, payload, signature) {
if (!webhook.jwksUri) return verifyHmac(webhook.secret, payload, signature);
// BUG: no hostname/IP allowlisting — jwksUri fetched verbatim
const { data: jwks } = await axios.get(webhook.jwksUri, { timeout: 5000 });
try {
// Attempt JWKS parse — if Vault PEM is returned, this throws
const keySet = await jose.importJWK(jwks.keys[0]);
return jose.compactVerify(signature, keySet);
} catch {
// BUG: verification failure silently passes — attacker can send unsigned payloads
logger.warn('JWKS verification failed — skipping signature check');
return true; // BUG: should throw, not return true
}
}
// FIXED — SSRF28-004
// services/webhookVerification.js
const axios = require('axios');
const { URL } = require('url');
const dns = require('dns').promises;
const ipRangeCheck = require('ip-range-check');
const jose = require('jose');
const PRIVATE_RANGES = [
'10.0.0.0/8', '172.16.0.0/12', '192.168.0.0/16',
'127.0.0.0/8', '169.254.0.0/16', '::1/128', 'fc00::/7',
];
async function validateJwksUri(rawUri) {
let parsed;
try { parsed = new URL(rawUri); } catch { return false; }
// jwksUri must be HTTPS to a public host
if (parsed.protocol !== 'https:') return false;
// Block non-standard ports
if (parsed.port && !['', '443'].includes(parsed.port)) return false;
// Resolve and reject private/reserved IPs
let addrs;
try { addrs = await dns.resolve4(parsed.hostname); } catch { return false; }
for (const addr of addrs) {
if (ipRangeCheck(addr, PRIVATE_RANGES)) return false;
}
return true;
}
function isValidJwks(data) {
// Strict JWKS schema: must have a 'keys' array of objects each with 'kty'
if (typeof data !== 'object' || !Array.isArray(data.keys)) return false;
if (data.keys.length === 0 || data.keys.length > 20) return false;
return data.keys.every(k => typeof k === 'object' && typeof k.kty === 'string');
}
async function verifyWebhookSignature(webhook, payload, signature) {
if (!webhook.jwksUri) return verifyHmac(webhook.secret, payload, signature);
// Validate jwksUri before fetch — reject internal/private addresses
if (!(await validateJwksUri(webhook.jwksUri))) {
logger.error('SSRF28-004: blocked jwksUri fetch to disallowed address', { jwksUri: webhook.jwksUri });
throw new Error('jwksUri resolves to a disallowed address');
}
let jwks;
try {
const { data } = await axios.get(webhook.jwksUri, {
timeout: 4000,
maxRedirects: 1,
// Reject responses larger than 64 KB (JWKS documents are small)
maxContentLength: 65536,
});
jwks = data;
} catch (err) {
throw new Error(`JWKS fetch failed: ${err.message}`);
}
// Strict schema validation — never fall back on parse failure
if (!isValidJwks(jwks)) {
throw new Error('Fetched document is not a valid JWKS');
}
// Use jose JWKS remote verification with key ID matching
const { createRemoteJWKSet, jwtVerify } = jose;
const JWKS = createRemoteJWKSet(new URL(webhook.jwksUri));
// Throws on verification failure — never silently pass
return jwtVerify(signature, JWKS, { algorithms: ['RS256', 'ES256'] });
}
SSRF28-004 impact: Registry server makes an internal HTTP request to Vault's PKI API endpoint, potentially leaking internal service topology from error messages, triggering Vault audit log events that expose internal service-to-service communication patterns, and in error-path implementations bypassing webhook signature verification entirely. A bypassed signature check means the attacker can forge arbitrary webhook delivery payloads, potentially injecting malicious audit findings into the victim's CI/CD pipeline. SkillAudit detects this by identifying JWKS fetch operations where the URI originates from a user-supplied field in a registration payload — specifically tracing the data flow from webhook registration request body to outbound axios.get() or fetch() calls without an intervening IP-range check.
Detection with SkillAudit
SkillAudit's static analysis scans badge serving, CDN integration, OG image rendering, and webhook verification modules for all four SA-SKL-SSRF28 patterns. For SSRF28-001 it traces user-supplied URL parameters to outbound HTTP library calls in routes that also set CDN cache headers. For SSRF28-002 it identifies CDN purge routes where a URL-shaped parameter from the request body is concatenated into the target of a PURGE method HTTP call. For SSRF28-003 it identifies headless browser navigation calls where the navigated URL derives from a user-supplied parameter without a scheme-allowlist check preceding the page.goto() invocation. For SSRF28-004 it traces jwksUri fields from webhook registration payloads to outbound HTTP fetches in signature verification logic.
| Finding | Severity | Root cause | Fix |
|---|---|---|---|
| SSRF28-001 | CRITICAL | Badge proxy fetches user-supplied URL without hostname allowlist; CDN caches IAM credentials as SVG and distributes globally | Hostname allowlist for badge providers; DNS-layer private-IP check; content-type validation; short CDN TTL |
| SSRF28-002 | HIGH | CDN purge origin parameter concatenated into outbound PURGE request URL without host validation; Varnish admin port reached | Map of allowed CDN origin hostnames with explicit allowed ports; strip body from purge responses |
| SSRF28-003 | HIGH | Headless Chrome navigates user-supplied URL with no scheme restriction; gopher:// sends raw Redis commands to internal cache | https:// allowlist for preview hostnames; Chrome request interception; disable non-http schemes via launch flags |
| SSRF28-004 | HIGH | JWKS URI from webhook registration payload fetched without IP-range check; internal Vault PKI endpoint reached; error path bypasses signature verification | DNS-layer private-IP validation of jwksUri; strict JWKS schema check; never return true on verification failure |
Related findings: SA-SKL-SSRF27 (SSRF in package analysis pipeline), SA-SKL-SSRF26 (SSRF in badge generation and social preview), SA-SKL-CORS25 (CORS misconfiguration in webhook registration).
SkillAudit scans your MCP skill registry for all SA-SKL-SSRF28 patterns — badge proxy IMDSv1 fetches, CDN purge origin injection, headless Chrome gopher:// exploitation, and JWKS URI SSRF — and delivers a prioritized fix report in minutes.
Join the waitlist →