← Blog

Claude MCP skill CORS misconfiguration — skill certification and trust badge endpoints (SA-SKL-CORS83)

SA-SKL-CORS83 identifies four CORS misconfiguration vulnerabilities in MCP skill registry skill certification and trust badge endpoints. Credential-bearing CORS on the certification record endpoint exposes the full certification document including unreleased badge tiers that reveal the registry's internal roadmap for trust levels not yet announced to publishers, internal reviewer notes containing unpublished vulnerability findings that disclose security issues before the publisher has been notified, and admin-only certification override flags that reveal which skills received manual certification bypassing the standard review process — all using the victim admin's session; wildcard ACAO on the certification request endpoint allows any page to submit certification requests under the admin's identity and flood them, consuming the entire review queue capacity and causing indefinite certification delays for every legitimate applicant on the platform; a timing oracle on the certification status endpoint reveals which skills are actively under certification review by measuring the warm-cache latency differential (~4ms active vs ~175ms cold); and credential-bearing CORS on the badge revocation endpoint allows any page to silently destroy trust badges that publishers spent months earning through the full certification process.

SA-SKL-CORS83 findings at a glance
CRITICALCORS83-001 — GET /api/skills/:id/certification has cors({origin:true,credentials:true}) — any origin reads full certification record including unreleased badge tiers, internal reviewer notes with unpublished vulnerability findings, and admin-only certification override flags using victim admin session
HIGHCORS83-002 — POST /api/skills/:id/certification/request has ACAO:* — any page triggers certification request under victim admin identity; attacker floods requests exhausting certification review queue capacity causing indefinite delay for all pending certification applicants
MEDIUMCORS83-003 — GET /api/skills/:id/certification/status reflects Origin before auth check — timing oracle reveals skills undergoing active certification review (review-active warm cache ~4ms vs cold ~175ms)
CRITICALCORS83-004 — DELETE /api/skills/:id/certification/:badgeId has cors({origin:true,credentials:true}) — any origin revokes skill certifications permanently destroying trust badges earned through the full certification process

CORS83-001 — Credential-bearing CORS exposes unreleased badge tiers and reviewer vulnerability notes

The GET /api/skills/:id/certification endpoint returns the full certification record for a skill, including every earned badge, the certification tier, internal reviewer notes, and admin-only fields. With cors({origin:true,credentials:true}) applied before authentication, any cross-origin page visited by an authenticated admin reads this complete record using the admin's session credentials. The unreleased badge tiers field reveals internal product roadmap details about trust levels not yet announced — competitive intelligence that benefits rival registry operators. The reviewer notes field is the most dangerous: it contains unpublished vulnerability findings that the certification reviewer documented while assessing the skill, findings that the publisher has not yet been notified about and that therefore remain in the skill's production version. An attacker extracting these pre-disclosure vulnerability notes can exploit the unpatched vulnerabilities immediately, before the standard notification-and-remediation cycle begins.

Vulnerable
// CORS83-001 — VULNERABLE
router.get('/skills/:id/certification',
  cors({ origin: true, credentials: true }),
  requireSession,
  async (req, res) => {
    const isAdmin = req.session.roles.includes('registry_admin');
    const cert = await db.getCertificationRecord(req.params.id, {
      includeUnreleasedTiers: isAdmin,
      includeReviewerNotes: isAdmin,
      includeCertOverrideFlags: isAdmin
    });
    res.json(cert);
  }
);
Fixed
// CORS83-001 — FIXED: auth before CORS; strip admin-only fields; separate admin endpoint
router.get('/skills/:id/certification',
  requireSession,
  applyCorsAllowlist,
  async (req, res) => {
    const cert = await db.getCertificationRecord(req.params.id, {
      includeUnreleasedTiers: false,
      includeReviewerNotes: false,
      includeCertOverrideFlags: false
    });
    res.json(cert);
  }
);

// Admin-only endpoint — separate route with admin role gate
router.get('/admin/skills/:id/certification',
  requireSession,
  requireAdminRole,
  applyCorsAllowlist,
  async (req, res) => {
    const cert = await db.getCertificationRecord(req.params.id, {
      includeUnreleasedTiers: true,
      includeReviewerNotes: true,
      includeCertOverrideFlags: true
    });
    res.json(cert);
  }
);

Reviewer notes containing pre-disclosure vulnerability findings are the most sensitive artifact in a certification workflow. Once an attacker obtains these notes via CORS, the standard responsible disclosure timeline is broken — the attacker knows the exact vulnerability and the publisher has not yet been notified. Separate admin endpoints with explicit role gates prevent the CORS misconfiguration from ever reaching data that carries pre-disclosure obligations.

CORS83-002 — Wildcard ACAO on certification request endpoint exhausts review queue capacity

The POST /api/skills/:id/certification/request endpoint submits a skill for entry into the certification review queue. The queue has finite capacity — certification reviewers process a fixed number of submissions per day. With ACAO:*, any page can trigger this endpoint without credentials and direct submissions at arbitrary skill IDs. An attacker floods the queue with hundreds of fraudulent certification requests across different skill IDs, consuming every available queue slot; legitimate publishers whose skills are genuinely ready for certification find the queue perpetually full and face indefinite delays. Because each submission triggers notification emails to reviewers and publishers, the flood also generates hundreds of spurious emails that erode trust in the notification system and risk the registry's sending domain being classified as a spam source.

Vulnerable
// CORS83-002 — VULNERABLE: wildcard ACAO on certification request endpoint
router.post('/skills/:id/certification/request',
  cors({ origin: '*' }),
  requireSession,
  async (req, res) => {
    const submission = await certificationService.submitForReview({
      skillId: req.params.id,
      requestedBy: req.session.userId,
      tier: req.body.tier
    });
    res.json({ submissionId: submission.id, queuePosition: submission.position });
  }
);
Fixed
// CORS83-002 — FIXED: allowlist CORS; CSRF token; per-skill rate limit 1/month
router.post('/skills/:id/certification/request',
  requireSession,
  applyCorsAllowlist,
  csrfProtection,
  requireSkillOwnerRole,
  rateLimit({ key: req => `cert-request:${req.params.id}`, max: 1, window: '30d' }),
  async (req, res) => {
    const submission = await certificationService.submitForReview({
      skillId: req.params.id,
      requestedBy: req.session.userId,
      tier: req.body.tier
    });
    res.json({ submissionId: submission.id, queuePosition: submission.position });
  }
);

Certification review queues are a shared finite resource — rate limiting must reflect the natural cadence of legitimate use. A skill owner legitimately submits for recertification at most once per month. A per-skill monthly limit of one request matches this cadence while making queue exhaustion attacks require an impractical number of distinct skill IDs under attacker control.

CORS83-003 — Timing oracle reveals skills under active certification review via Origin reflection

The GET /api/skills/:id/certification/status endpoint returns the current certification pipeline state for a skill. Skills actively undergoing certification review maintain a warm cache entry that returns in approximately 4ms. Skills with no active review hit a cold database path that takes approximately 175ms. Because the endpoint reflects the requesting Origin header before the authentication check, an unauthenticated cross-origin request can measure this latency differential to identify exactly which skills are currently in the certification pipeline. This timing intelligence has competitive value: knowing a competitor's skill is mid-certification reveals that they are actively pursuing trust badges, allows competitors to accelerate their own submission to claim queue position ahead of rivals, and in combination with CORS83-001 gives an attacker a targeted list of skills where reviewer notes with pre-disclosure findings are most likely to exist.

Vulnerable
// CORS83-003 — VULNERABLE: Origin reflected before auth
router.get('/skills/:id/certification/status',
  cors({ origin: true }),
  requireSession,
  async (req, res) => {
    const status = await certificationStatusCache.get(`cert-status:${req.params.id}`)
      || await db.getCertificationStatus(req.params.id);
    res.json(status);
  }
);
Fixed
// CORS83-003 — FIXED: auth before CORS; constant-time response floor 50ms
const CERT_STATUS_FLOOR_MS = 50;
router.get('/skills/:id/certification/status',
  requireSession,
  applyCorsAllowlist,
  async (req, res) => {
    const start = Date.now();
    const status = await certificationStatusCache.get(`cert-status:${req.params.id}`)
      || await db.getCertificationStatus(req.params.id);
    const elapsed = Date.now() - start;
    if (elapsed < CERT_STATUS_FLOOR_MS) await sleep(CERT_STATUS_FLOOR_MS - elapsed);
    res.json(status);
  }
);

Certification review state is competitive intelligence. Knowing a skill is actively under review is itself a disclosure — it reveals that a publisher is actively pursuing trust badges and allows competitors to infer go-to-market timelines. Fixing Origin reflection before auth eliminates the CORS timing channel; the constant-time floor prevents residual measurement through any remaining cache branching.

CORS83-004 — Credential-bearing CORS revokes trust badges permanently destroying certification history

The DELETE /api/skills/:id/certification/:badgeId endpoint removes a trust badge from a skill's certification record. Trust badges are the primary trust signal that users rely on when deciding whether to install a skill — their presence indicates the skill has passed a security review conducted by a qualified reviewer. With cors({origin:true,credentials:true}), any cross-origin page visited by an authenticated admin can silently revoke any badge from any skill in the registry. An attacker who lures an admin to a malicious page can strip all trust badges from every certified skill simultaneously, destroying the trust signal that the entire platform is built on. Because hard-deletion removes the badge record entirely, there is no self-service path for publishers to demonstrate prior certification without initiating the full review process again from the beginning.

Vulnerable
// CORS83-004 — VULNERABLE: credential-bearing CORS on badge revocation
router.delete('/skills/:id/certification/:badgeId',
  cors({ origin: true, credentials: true }),
  requireSession,
  requireAdminRole,
  async (req, res) => {
    await db.revokeCertificationBadge(req.params.id, req.params.badgeId);
    res.json({ revoked: req.params.badgeId });
  }
);
Fixed
// CORS83-004 — FIXED: auth before CORS; re-auth; soft-revoke 90-day retention; audit log
router.delete('/skills/:id/certification/:badgeId',
  requireSession,
  applyCorsAllowlist,
  csrfProtection,
  requireAdminRole,
  reAuthRequired,
  async (req, res) => {
    const expiresAt = new Date(Date.now() + 90 * 24 * 60 * 60 * 1000);
    await db.softRevokeCertificationBadge(req.params.id, req.params.badgeId, {
      revokedBy: req.session.userId,
      reason: req.body.reason,
      expiresAt
    });
    await auditLog.write({
      action: 'certification.badge.revoke',
      skillId: req.params.id,
      badgeId: req.params.badgeId,
      actorId: req.session.userId,
      reason: req.body.reason,
      at: new Date()
    });
    res.json({ revoked: req.params.badgeId, reinstateableUntil: expiresAt });
  }
);

Trust badges are reputational assets that took months of reviewer time to award — they must be as hard to remove as they are to earn. Soft-revoke with a 90-day retention window gives publishers a self-service reinstatement path if the revocation was caused by an attacker exploiting the CORS misconfiguration rather than a genuine policy violation. The audit log with mandatory reason field provides the forensic record needed to distinguish legitimate revocation from CORS-driven attack.

Scan your MCP skill for CORS83 and 200+ other vulnerability classes

SkillAudit checks for all SA-SKL-CORS vulnerability patterns including credential-bearing CORS before auth, wildcard ACAO on certification endpoints, timing oracle misconfigurations on status checks, and soft-revoke enforcement on trust badge deletion. Get a graded report with line-level code fixes in 60 seconds.

Get a free audit