CORS Misconfigurations in MCP Skill Registry Skill Certification and Trust Badge Endpoints
Certification and trust badge endpoints represent the highest-value attack surface in an MCP skill registry: they are the mechanism by which a registry vouches publicly for the security, quality, and integrity of a skill, and compromise of these endpoints lets an attacker silently read pre-disclosure vulnerability findings that publishers have not yet been notified about, flood the review queue to prevent any recertification from completing, and then permanently revoke every trust badge from every certified skill in a single page visit from one admin. The SA-SKL-CORS83 vulnerability class arises when certification endpoints are configured with permissive CORS to support multi-origin compliance dashboards and embedded trust badge widgets, leaving the full certification lifecycle — including the most sensitive reviewer notes ever written about a skill — exposed to any cross-origin page that can reach a logged-in registry administrator.
In this post
- Why certification endpoints are especially dangerous CORS targets
- CORS83-003 — Timing oracle via Origin reflection on certification status
- CORS83-001 — Credential-bearing CORS on certification record leaks pre-disclosure findings
- CORS83-002 — Wildcard ACAO on certification request floods review queue
- CORS83-004 — Credential-bearing CORS destroys trust badges permanently
- Compound four-stage certification trust destruction chain
- Detection with AST queries
- Summary and 12-point remediation checklist
GET /api/skills/:id/certification/status reflects Origin before auth check; response-time oracle (review-active warm cache ~4 ms vs cold ~175 ms) reveals which skills are currently undergoing active certification review without requiring body access — reconnaissance to identify skills whose pre-disclosure reviewer notes are worth stealingGET /api/skills/:id/certification uses cors({origin:true,credentials:true}); any origin reads the full certification record including unreleased badge tiers, internal reviewer notes containing pre-disclosure vulnerability findings, and admin-only certification override flags using the victim admin’s session cookie — attacker reads security findings the publisher hasn’t been notified about yetPOST /api/skills/:id/certification/request has ACAO: *; any page floods certification requests exhausting review queue capacity, causing indefinite delay for all pending certification applicants — prevents emergency recertification during the attack window and denies the certification pathway to legitimate publishersDELETE /api/skills/:id/certification/:badgeId uses cors({origin:true,credentials:true}); any origin revokes trust badges permanently, destroying years of earned certification reputation — instant, irreversible destruction of the trust signal that users and enterprise integrators rely on when deploying skillsWhy certification endpoints are especially dangerous CORS targets
When security engineers audit the CORS configuration of an MCP skill registry, the standard review focuses on the endpoints that handle the most obviously sensitive operations: session tokens, payment data, user credentials, and administrative user management. Certification endpoints occupy a different conceptual category in most reviewers’ mental models. They are associated with a process that is largely read-only from the publisher’s perspective — a publisher submits a skill, a reviewer evaluates it, and a badge is eventually awarded or withheld. The registry manages the state; the publisher observes outcomes. This framing obscures the true attack surface, because it conflates the publisher’s limited view of the certification process with the full set of data that the certification system holds internally.
The reality is that certification endpoints hold some of the most damaging data in the entire registry, and that data is structurally invisible to standard CORS security reviews for four reasons specific to how certification systems work in practice. First, internal reviewer notes are pre-disclosure vulnerability records. When a certification reviewer identifies a security deficiency in a skill — a path traversal, a credential leak, an injection vector — they record their findings in the internal reviewer notes attached to the certification record long before those findings are disclosed to the skill’s publisher. The registry may hold these notes for days or weeks while the publisher is notified and given time to respond. During that window, the notes constitute a one-sided security intelligence file: the registry knows about a vulnerability that neither the publisher nor the broader security community is yet aware of. Any CORS misconfiguration that allows cross-origin reads of the certification record during this window is effectively a pre-disclosure exfiltration channel.
Second, trust badges are asymmetric in their value-to-destruction ratio. It takes a skill publisher months or years of active maintenance, security investment, and successful re-audits to accumulate a full set of trust badges from a registry. Badges signal to enterprise integrators, to AI agent orchestration platforms, and to individual users that a skill has been independently verified to meet specific standards. The asymmetry is severe: earning a badge requires sustained, documented effort across a long time horizon, while revoking a badge takes a single authenticated DELETE request. If that DELETE request can be forged cross-origin because the badge deletion endpoint uses cors({origin:true,credentials:true}), then every badge that every certified skill has earned becomes fragile against a one-page-visit attack. The destruction is permanent unless the registry has a soft-revocation path, and most registries do not, because badge revocation is intended to be a deliberate, final administrative act.
Third, the certification review queue is a shared resource with no natural elasticity. Unlike a database query that can be scaled horizontally or a cache that absorbs read spikes, a certification review queue is bounded by the number of human reviewers who can process skill submissions. Each review involves reading the skill’s source code, running automated security scans, evaluating the results against the registry’s certification criteria, and writing reviewer notes. This process cannot be parallelized beyond the reviewer headcount. If the certification request endpoint accepts unlimited cross-origin POST requests with wildcard ACAO, an attacker can flood the queue with synthetic certification requests that occupy reviewer capacity indefinitely. The legitimate applicants who submitted skills days or weeks before the attack have no mechanism to escalate past the flood, and the registry has no easy way to distinguish synthetic flood entries from genuine submissions at the queue level without reviewing each one.
Fourth, unreleased badge tiers and certification override flags represent internal roadmap and policy data whose exposure causes damage beyond the immediate attack. Unreleased badge tiers reveal the registry’s future certification strategy to competitors. Admin-only certification override flags — used when a reviewer manually overrides the automated scoring to award or withhold a badge despite the automated result — reveal which skills received favorable or unfavorable manual treatment, creating legal and reputational exposure for the registry if those decisions become public. The CORS83-001 credential-bearing read leaks all of this data in a single request to any origin that holds a victim admin session. This is not a niche edge case: any registry employee who browses the web while authenticated to the registry admin panel is a potential victim.
CORS83-003 — Timing oracle via Origin reflection on certification status
The certification status endpoint GET /api/skills/:id/certification/status returns a summary of a skill’s current position in the certification pipeline: whether the skill has an active certification record, the current review stage (submitted, in-review, awaiting-publisher-response, approved, rejected), and the timestamp of the last status transition. The endpoint was added to allow publishers to poll their skill’s review progress from their own tooling without requiring a full authentication context, so the CORS configuration was set to reflect any incoming Origin with credentials to support polling from multiple publisher dashboard integrations. Because the endpoint was added late in the certification feature’s development cycle and was treated as a low-sensitivity status read, the CORS middleware was placed before the authentication check in the handler chain rather than after it.
The placement matters because the certification system’s response cache uses a hot path specifically for skills that are currently in the review-active stage. When a reviewer opens a skill’s certification record, the system pre-caches the certification status record under the key cert-status:SKILL_ID:review-active with a ten-minute TTL. This cache entry is populated on the first reviewer access and remains warm for the entire duration of the reviewer’s session. When the status endpoint receives a request for a skill that is in this warm-cache state, it returns the cached record in approximately 4 milliseconds. When the cache is cold — either because no reviewer has opened the record recently, or because the skill has no active certification review — the endpoint performs a database join across the certification records, review assignments, and reviewer session tables, which takes approximately 175 milliseconds on average.
An attacker measuring the response latency from a cross-origin page does not need to read the response body to extract the binary fact “this skill is currently under active review by a reviewer.” The 40× timing difference (4 ms warm vs 175 ms cold) is a stable, observable signal that is recoverable using performance.now() across multiple samples to filter out network jitter. CORS blocks the response body from being read by the attacking script, but the HTTP round-trip time is recorded by the browser regardless of the CORS outcome. An attacker can therefore enumerate skill IDs and produce a list of skills that are currently under active certification review — and therefore have hot reviewer notes being written right now — without reading a single byte of a response body.
The practical value of this reconnaissance goes beyond simple target selection. Skills that are currently under active review have reviewer notes that are being actively written, which means the notes are likely to contain the most current and undisclosed security findings. A skill that completed certification six months ago and has not been re-audited since may have reviewer notes, but those findings are six months old and may already be publicly known or patched. A skill whose reviewer opened the certification record in the last ten minutes has findings that are almost certainly pre-disclosure. The timing oracle therefore provides a temporal signal that allows the attacker to prioritize targets by the recency and therefore the intelligence value of their reviewer notes, not just by the existence of a certification record.
// CORS83-003 — VULNERABLE
// CORS reflection runs before authentication check — creates timing oracle.
// Attacker page cannot read the response body, but can observe whether the warm-cache
// path (review-active cache hit, ~4 ms) or the cold-DB path (~175 ms) was taken,
// revealing which skills are currently under active certification review.
// skills/certification/router.js
const express = require('express');
const cors = require('cors');
const router = express.Router({ mergeParams: true });
// VULNERABLE: cors() runs first — reflects Origin with credentials before any auth
router.get('/status', cors({ origin: true, credentials: true }), async (req, res) => {
// requireSession runs AFTER the CORS reflection has already committed the response headers
if (!req.session || !req.session.userId) {
return res.status(401).json({ error: 'Not authenticated' });
// ^ 401 response — but CORS headers already sent; timing oracle already observable
}
const skillId = req.params.id;
// HOT PATH: review-active cache populated when a reviewer opens the skill record
// Cache key: 'cert-status:SKILL_ID:review-active', TTL: 10 minutes
const reviewActiveCached = appCache.get(`cert-status:${skillId}:review-active`);
if (reviewActiveCached) {
// WARM PATH: ~4 ms — signals "reviewer actively has this record open right now"
return res.json(reviewActiveCached);
}
// COLD PATH: DB join across certification_records, review_assignments, reviewer_sessions
// ~175 ms — signals "not currently under active review (or cold cache)"
const certRecord = await db.certificationRecords.findWithReviewStatus(skillId);
if (!certRecord) {
return res.json({ status: 'not-submitted', skillId });
}
const status = {
skillId,
status: certRecord.reviewStage, // 'submitted' | 'in-review' | 'awaiting-publisher-response' | 'approved' | 'rejected'
lastTransitionAt: certRecord.lastTransitionAt,
reviewerId: certRecord.assignedReviewerId ? '[assigned]' : null,
};
// Populate cache if skill is in an active review stage
if (['in-review', 'awaiting-publisher-response'].includes(certRecord.reviewStage)) {
appCache.set(`cert-status:${skillId}:review-active`, status, 600); // 10-min TTL
}
res.json(status);
});
// Attacker JavaScript (hosted on any page the victim admin visits):
// async function probeReviewActive(skillId) {
// const TIMING_THRESHOLD_MS = 20;
// const SAMPLES = 4;
// let total = 0;
// for (let i = 0; i < SAMPLES; i++) {
// const t0 = performance.now();
// try {
// await fetch(`https://registry.example.com/api/skills/${skillId}/certification/status`, {
// credentials: 'include', // victim admin session
// });
// } catch (_) {}
// total += performance.now() - t0;
// }
// const avg = total / SAMPLES;
// // avg < 20 ms → warm cache hit → skill under active review RIGHT NOW → high-value target
// // avg > 100 ms → cold DB path → not currently under active review → lower priority
// return avg < 20;
// }
Timing oracles are especially dangerous when they reveal operational state rather than merely structural state: A timing oracle that reveals “this record exists in the database” is a moderate information leak. A timing oracle that reveals “a reviewer has this record open right now and is actively writing findings” is an operational intelligence leak — it tells the attacker not just that sensitive data exists, but that the data is currently being written and is therefore at peak sensitivity. The fix requires both moving authentication before CORS and enforcing a constant-time response floor across all warm and cold paths. A floor of 50 ms after authentication resolves is sufficient to collapse the 40× timing signal to noise.
// CORS83-003 — FIXED
// 1. Authentication runs BEFORE the CORS middleware is applied.
// 2. CORS uses an explicit origin allowlist (not origin:true reflection).
// 3. A minimum 50 ms response floor neutralises the warm/cold timing oracle.
// config/cors.js (shared across the certification router)
const ALLOWED_ORIGINS = new Set([
'https://app.skillaudit.dev',
'https://skillaudit.dev',
'https://partners.skillaudit.dev',
]);
const certificationCorsOptions = {
origin: (origin, callback) => {
if (!origin || ALLOWED_ORIGINS.has(origin)) return callback(null, true);
callback(Object.assign(new Error('CORS: origin not permitted'), { status: 403 }));
},
credentials: true,
methods: ['GET', 'POST', 'DELETE', 'OPTIONS'],
allowedHeaders: ['Content-Type', 'Authorization', 'X-CSRF-Token'],
};
module.exports = { certificationCorsOptions };
// skills/certification/router.js — auth-first ordering
const { certificationCorsOptions } = require('../../config/cors');
const RESPONSE_FLOOR_MS = 50; // neutralise warm/cold timing oracle
router.get('/status',
requireSession, // 1. auth check FIRST — before CORS
cors(certificationCorsOptions), // 2. CORS applied only after auth passes
requireSkillRole(['owner', 'admin']), // 3. only owners/admins see certification status
async (req, res) => {
const start = Date.now();
const skillId = req.params.id;
const certRecord = await db.certificationRecords.findWithReviewStatus(skillId);
// 4. Enforce a minimum response time floor to neutralise timing oracle
const elapsed = Date.now() - start;
if (elapsed < RESPONSE_FLOOR_MS) {
await new Promise(resolve => setTimeout(resolve, RESPONSE_FLOOR_MS - elapsed));
}
if (!certRecord) {
return res.json({ status: 'not-submitted', skillId });
}
// 5. Return only the public-facing status fields — never internal reviewer state
res.json({
skillId,
status: certRecord.reviewStage,
lastTransitionAt: certRecord.lastTransitionAt,
// reviewerId: OMITTED — never expose reviewer identity or assignment in status endpoint
// reviewerNotes: OMITTED — served only from the separate admin certification record endpoint
});
}
);
CVSS 3.1 approximate score for CORS83-003: 5.3 (MEDIUM) — AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:N/A:N. Confidentiality is Low because the oracle reveals only binary “review active / not active” state rather than any finding content. Attack Complexity is High because the attacker must visit a page controlled by the victim and must be able to measure sub-20 ms response times reliably, which requires a low-latency network path and multiple samples to filter jitter. The finding is rated MEDIUM rather than LOW because it is a critical enabler for the CORS83-001 chain stage that follows, and because the operational intelligence value of “reviewer has this record open right now” is substantially higher than a purely structural timing oracle.
CORS83-001 — Credential-bearing CORS on certification record leaks pre-disclosure findings
The certification record endpoint GET /api/skills/:id/certification returns the full certification record for a skill: the current badge tier, the certification history, the automated scan scores, and — for requests authenticated as a reviewer, skill owner, or admin — additional fields including internal reviewer notes, unreleased badge tier eligibility assessments, and admin-only certification override flags. The endpoint was originally protected by strict session authentication, but when the registry launched a third-party compliance dashboard at a separate subdomain and an embedded trust badge widget for skill publisher landing pages, the team applied cors({origin:true,credentials:true}) to the entire certification router to avoid maintaining an explicit origin list across multiple integration surfaces.
With origin:true, the Express cors middleware reflects the incoming Origin header value back as the Access-Control-Allow-Origin response header, combined with Access-Control-Allow-Credentials: true. Any cross-origin request that includes the victim’s admin session cookie will receive the full certification record response, including fields that the application intends to show only to registry administrators and assigned reviewers. The most damaging of these fields are the internal reviewer notes.
Reviewer notes in a certification system are fundamentally different from other administrative data fields. When a certification reviewer identifies a security vulnerability in a skill — say, an SSRF via an unvalidated URL parameter, or an injection vector in a tool’s argument parsing code — they record the finding in the internal reviewer notes attached to the certification record. This record creation happens before the reviewer contacts the skill publisher. The registry’s responsible disclosure policy may give the publisher 30, 60, or 90 days to patch the vulnerability before any public disclosure. During that entire window, the reviewer notes constitute the definitive record of an unpatched, undisclosed vulnerability in a production skill that may be deployed in thousands of AI agent workflows. An attacker who reads these notes has obtained a targeted exploit guide for a vulnerability that the publisher does not yet know has been discovered.
The unreleased badge tier eligibility assessments are the secondary leakage. These fields record the reviewer’s assessment of whether the skill qualifies for a badge tier that has not yet been announced to the market. Leaking this data reveals the registry’s future certification roadmap, allowing competitors to position their own certification offerings ahead of the announcement. The admin-only certification override flags are the tertiary leakage: these flags record cases where a reviewer or admin manually overrode the automated scoring engine to award or withhold a badge, along with the internal justification for the override. Exposure of these override records may reveal favoritism, exceptions granted to specific publishers, or cases where the automated engine was overridden without documented justification — all of which create legal and reputational risk for the registry.
// CORS83-001 — VULNERABLE
// cors({origin:true,credentials:true}) on the certification record endpoint.
// Any origin reads the full certification record including internal reviewer notes
// containing pre-disclosure vulnerability findings, unreleased badge tier assessments,
// and admin-only certification override flags, using the victim admin's session cookie.
// skills/certification/router.js
router.get(
'/',
cors({ origin: true, credentials: true }), // VULNERABLE: reflects any Origin with credentials
requireSession,
async (req, res) => {
const skillId = req.params.id;
const requestingUser = req.session.userId;
// Determine access level — affects response shape
const user = await db.users.findById(requestingUser);
const isAdminOrReviewer = user.isAdmin || user.isCertificationReviewer;
const certRecord = await db.certificationRecords.findBySkill(skillId);
if (!certRecord) return res.status(404).json({ error: 'No certification record found' });
const response = {
skillId,
currentBadgeTier: certRecord.currentBadgeTier, // 'bronze' | 'silver' | 'gold' | 'platinum'
certificationHistory: certRecord.history,
automatedScanScores: certRecord.scanScores,
approvedAt: certRecord.approvedAt,
expiresAt: certRecord.expiresAt,
};
if (isAdminOrReviewer) {
// Admin/reviewer-only fields — but CORS allows any origin to trigger this code path
response.reviewerNotes = certRecord.reviewerNotes; // ← pre-disclosure vulnerability findings
response.unreleasedBadgeTierAssessments = certRecord.unreleasedTierAssessments; // ← roadmap leak
response.overrideFlags = certRecord.adminOverrideFlags; // ← admin-only override audit trail
response.reviewerId = certRecord.assignedReviewerId;
response.internalScoringBreakdown = certRecord.internalScoringBreakdown;
}
res.json(response);
}
);
// Attacker page (any origin, victim admin session present):
// const r = await fetch(
// 'https://registry.example.com/api/skills/TARGET_SKILL_ID/certification',
// { credentials: 'include' } // victim admin session — CORS83-001 reflects any origin
// );
// const data = await r.json();
// const findings = data.reviewerNotes;
// // findings now contains the full pre-disclosure vulnerability report
// // — a targeted exploit guide for a production vulnerability the publisher doesn't know about yet
// const unreleasedTiers = data.unreleasedBadgeTierAssessments;
// // — registry's forward roadmap for certification tiers, leaked before announcement
// const overrides = data.overrideFlags;
// // — admin override audit trail, potentially revealing preferential treatment
Pre-disclosure vulnerability findings require a separate, air-gapped data path: Internal reviewer notes that contain pre-disclosure security findings should never be served from the same endpoint as the public-facing certification record, regardless of the authentication check. Even with a correct CORS configuration, serving these fields from a general-purpose certification GET endpoint means that any CORS regression, any authentication bypass, or any server-side log leak exposes the most sensitive data in the registry. Create a dedicated endpoint at GET /api/admin/skills/:id/certification/reviewer-notes with its own access control review, its own audit logging, and its own CORS configuration that explicitly permits zero cross-origin access. The separation means that a misconfiguration on the public certification record endpoint can never reach reviewer notes even if everything else goes wrong.
// CORS83-001 — FIXED
// 1. Auth check runs before CORS middleware.
// 2. Explicit origin allowlist replaces origin:true reflection.
// 3. Reviewer notes and override flags never returned from the public certification endpoint.
// 4. Admin-only sensitive fields served from a dedicated endpoint with separate ACL.
// 5. requireSkillRole enforces ownership or admin before the response is built.
// skills/certification/router.js
const { certificationCorsOptions } = require('../../config/cors'); // allowlist-based
router.get('/',
requireSession, // 1. auth FIRST
cors(certificationCorsOptions), // 2. allowlist CORS after auth
requireSkillRole(['owner', 'editor', 'admin']), // any collaborator can read public cert data
async (req, res) => {
const skillId = req.params.id;
const certRecord = await db.certificationRecords.findBySkill(skillId);
if (!certRecord) return res.status(404).json({ error: 'No certification record found' });
// Public-facing fields only — no reviewer notes, no unreleased tiers, no override flags
const response = {
skillId,
currentBadgeTier: certRecord.currentBadgeTier,
certificationHistory: certRecord.history.map(h => ({
badgeTier: h.badgeTier,
awardedAt: h.awardedAt,
expiresAt: h.expiresAt,
// reviewer: OMITTED — reviewer identity is internal
})),
automatedScanScores: certRecord.scanScores,
approvedAt: certRecord.approvedAt,
expiresAt: certRecord.expiresAt,
// reviewerNotes: OMITTED — served from dedicated admin-only endpoint
// unreleasedBadgeTierAssessments: OMITTED — internal roadmap data
// overrideFlags: OMITTED — admin override audit trail
};
res.json(response);
}
);
// SEPARATE admin-only reviewer notes endpoint — explicitly gated, separately logged
// Never accessible from cross-origin contexts; no CORS headers at all.
router.get('/reviewer-notes',
requireSession,
requireAdminOrReviewer, // only admins and assigned reviewers
requireInternalOrigin, // blocks all cross-origin requests at the network layer
auditLogAccess('reviewer-notes-read'), // every access logged with user, IP, timestamp
async (req, res) => {
const certRecord = await db.certificationRecords.findBySkill(req.params.id);
if (!certRecord) return res.status(404).json({ error: 'No certification record found' });
// No CORS headers on this response — intentionally inaccessible cross-origin
res.json({
reviewerNotes: certRecord.reviewerNotes,
unreleasedTierAssessments: certRecord.unreleasedTierAssessments,
overrideFlags: certRecord.adminOverrideFlags,
internalScoringBreakdown: certRecord.internalScoringBreakdown,
reviewerId: certRecord.assignedReviewerId,
});
}
);
CVSS 3.1 approximate score for CORS83-001: 9.3 (CRITICAL) — AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N. Confidentiality is High because the leaked reviewer notes constitute pre-disclosure vulnerability findings for production skills, unreleased certification roadmap data, and admin override audit records. Integrity is High because an attacker with access to pre-disclosure vulnerability findings can exploit those vulnerabilities before the publisher is notified, undermining the security of every workflow that relies on the affected skill.
CORS83-002 — Wildcard ACAO on certification request floods review queue
The certification request endpoint POST /api/skills/:id/certification/request initiates a certification review for a skill: it creates a certification record, assigns the request to the reviewer queue, and notifies the reviewing team. The endpoint was designed to be accessible from multiple publisher surfaces simultaneously — the registry’s own publisher dashboard, an embedded certification widget for skill landing pages, and a public API that skill authors can call from their own CI/CD pipelines. To accommodate these diverse callers without maintaining an explicit origin list during the initial launch, the endpoint was configured with Access-Control-Allow-Origin: *.
The wildcard ACAO pattern is distinct from the cors({origin:true,credentials:true}) configuration in CORS83-001 and CORS83-004 in one important way: it cannot be combined with Access-Control-Allow-Credentials: true under the browser specification’s same-origin policy rules, which prohibit credentials with wildcard ACAO responses. This means an attacker cannot directly read the response body from a cross-origin context. However, the endpoint’s damaging side effects do not require the attacker to read the response — a certification request is created in the queue regardless of whether the attacker can read the HTTP 201 confirmation. The queue entry is created before the response is written; the attacker’s inability to read the response body is irrelevant to the queue exhaustion outcome.
The certification review queue operates on a fixed-capacity model: each reviewer can process a limited number of skill submissions per week, and the queue depth determines how long each applicant waits before their review begins. This capacity ceiling is not an engineering choice that can be remedied by adding more servers — it is bounded by the number of qualified human reviewers who can evaluate skill security against the registry’s certification criteria. When the queue is flooded with synthetic certification requests, the legitimate applicants who submitted their skills before the attack are pushed further back in the queue while the flood entries consume reviewer capacity. The result is an indefinite delay for every pending certification applicant during the flood period, not just for the specific skill targeted by the attacker.
The queue-flooding attack is specifically valuable as the third stage of the CORS83 compound chain because it closes off the emergency recertification path. After the attacker uses CORS83-004 to revoke all trust badges from a certified skill, the publisher’s natural response is to immediately request recertification to restore their badge status. If the certification request queue has already been flooded by CORS83-002 before the badge revocation occurs, the publisher’s emergency recertification request joins a queue that may be backed up by weeks or months of synthetic flood entries. The publisher has no mechanism to bypass the queue; their emergency recertification is processed in the order it was received, behind all the flood entries that preceded it. This design is deliberate: the queue flood preemptively neutralizes the publisher’s recovery path before the final destructive stage fires.
// CORS83-002 — VULNERABLE
// ACAO: * on the certification request endpoint — no origin restriction.
// Any page can forge certification requests using victim admin's session cookie,
// or even without credentials (wildcard ACAO accepts non-credentialed requests too).
// Attacker floods the review queue, causing indefinite delay for all pending applicants.
// skills/certification/router.js
router.post(
'/request',
// VULNERABLE: wildcard ACAO — allows any origin to trigger this endpoint
(req, res, next) => {
res.setHeader('Access-Control-Allow-Origin', '*');
// Note: cannot set Access-Control-Allow-Credentials: true with wildcard ACAO
// — but the state-changing side effects occur regardless of response readability
next();
},
requireSession,
async (req, res) => {
const skillId = req.params.id;
const requestingUser = req.session.userId;
const { requestedTier, justification } = req.body;
// Basic ownership check — does not prevent cross-origin forged requests
const skill = await db.skills.findById(skillId);
if (skill.ownerId !== requestingUser) {
return res.status(403).json({ error: 'Only the skill owner can request certification' });
}
// No per-user or per-skill rate limit — attacker can submit indefinitely
// No CSRF protection — cross-origin POST with victim session succeeds
const certRequest = await db.certificationRecords.create({
skillId,
requestedBy: requestingUser,
requestedTier: requestedTier || 'bronze',
justification: justification || '',
status: 'submitted',
submittedAt: new Date(),
});
// Adds to the shared reviewer queue — no capacity reservation, no priority queue
await reviewerQueue.enqueue({
certificationId: certRequest.id,
skillId,
priority: 'standard', // attacker flood entries take standard priority slots
});
// Notify reviewer team — flood generates notification spam for reviewers
await mailer.sendReviewerNewSubmissionAlert({ certificationId: certRequest.id, skillId });
res.status(201).json({ certificationId: certRequest.id, status: 'submitted' });
}
);
// Attacker page — floods queue with synthetic certification requests in one visit:
// const floodSkillIds = [...Array(500).keys()].map(i => `attacker-skill-${i}`);
// await Promise.all(floodSkillIds.map(skillId =>
// fetch(`https://registry.example.com/api/skills/${skillId}/certification/request`, {
// method: 'POST',
// headers: { 'Content-Type': 'application/json' },
// credentials: 'include', // victim admin session — creates real queue entries
// body: JSON.stringify({ requestedTier: 'gold', justification: 'flood-entry' }),
// })
// ));
// — review queue capacity exhausted; all pending certification applicants face indefinite delay
Queue capacity exhaustion has platform-wide impact, not just per-skill impact: Unlike a quota exhaustion on a per-skill endpoint (which affects only the targeted skill’s operations), reviewer queue flooding affects every skill publisher who has a pending certification request at the time of the attack. A registry with a 4-week review SLA can have its entire queue backed up by months if a large enough flood is submitted before the attack is detected. The registry cannot easily distinguish flood entries from genuine submissions at the queue-inspection level without reviewing each entry’s metadata, and the flood entries may be constructed to appear indistinguishable from legitimate submissions. Mitigation requires both fixing the CORS misconfiguration and implementing a per-publisher rate limit (1 active certification request per skill at any time, with a cooling-off period after each review completes) to bound the worst-case queue depth impact from any single origin.
// CORS83-002 — FIXED
// 1. Replace wildcard ACAO with explicit origin allowlist.
// 2. Add CSRF token verification to block cross-site request forgery.
// 3. Per-skill rate limit: 1 active certification request per skill at any time.
// 4. Cooling-off period: 30-day minimum between certification request submissions.
// 5. requireSkillRole(['owner']) — only the skill owner can request certification.
// skills/certification/router.js
const { certificationCorsOptions } = require('../../config/cors'); // allowlist-based
router.post('/request',
requireSession, // 1. auth FIRST
cors(certificationCorsOptions), // 2. allowlist CORS
verifyCsrfToken, // 3. CSRF: validates X-CSRF-Token header
requireSkillRole(['owner']), // 4. only the skill owner can request certification
async (req, res) => {
const skillId = req.params.id;
const requestingUser = req.session.userId;
const { requestedTier, justification } = req.body;
// 5. Per-skill rate limit: reject if an active certification request already exists
const existingActive = await db.certificationRecords.findActive(skillId);
if (existingActive) {
return res.status(409).json({
error: 'An active certification request already exists for this skill',
existingCertificationId: existingActive.id,
});
}
// 6. Cooling-off period: reject if a certification was completed within the last 30 days
const lastCompleted = await db.certificationRecords.findLastCompleted(skillId);
const thirtyDaysMs = 30 * 24 * 60 * 60 * 1000;
if (lastCompleted && (Date.now() - new Date(lastCompleted.completedAt).getTime()) < thirtyDaysMs) {
const nextEligible = new Date(new Date(lastCompleted.completedAt).getTime() + thirtyDaysMs);
return res.status(429).json({
error: 'Cooling-off period active — next certification request eligible after ' + nextEligible.toISOString(),
});
}
// 7. Allowlist valid certification tiers — reject unexpected values
const allowedTiers = ['bronze', 'silver', 'gold', 'platinum'];
const tier = allowedTiers.includes(requestedTier) ? requestedTier : 'bronze';
const certRequest = await db.certificationRecords.create({
skillId,
requestedBy: requestingUser,
requestedTier: tier,
justification: justification ? justification.slice(0, 2000) : '', // cap justification length
status: 'submitted',
submittedAt: new Date(),
});
await reviewerQueue.enqueue({
certificationId: certRequest.id,
skillId,
priority: 'standard',
});
// Notify reviewer team — rate-limited to 1 per skill, so no notification flood possible
await mailer.sendReviewerNewSubmissionAlert({ certificationId: certRequest.id, skillId });
res.status(201).json({ certificationId: certRequest.id, status: 'submitted' });
}
);
CVSS 3.1 approximate score for CORS83-002: 7.1 (HIGH) — AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:H. Availability is High because the queue exhaustion can sustain an indefinite denial of service on the certification pathway for all publishers — not just the targeted skill — and clearing the flood from the queue requires manual review of each entry. Integrity is Low because flood entries are submitted under the victim admin’s identity, which may create false impressions of their involvement in fraudulent certification requests.
CORS83-004 — Credential-bearing CORS destroys trust badges permanently
The trust badge deletion endpoint DELETE /api/skills/:id/certification/:badgeId revokes a specific trust badge that a skill has earned through the certification process. The endpoint was intended to be called by registry administrators to revoke a badge when a certified skill is found to have regressed below the certification standard — for example, when a security scan finds that a previously certified skill has been updated to introduce a vulnerability that violates the certification criteria. Because the same endpoint needed to be accessible from the registry’s administrative dashboard (at app.skillaudit.dev) and from a third-party compliance automation tool at a separate origin, the developer applied cors({origin:true,credentials:true}) to the certification management router.
The practical impact of this misconfiguration is both severe and effectively permanent. An attacker who can reach a victim registry admin’s browser can issue authenticated DELETE requests for every badge on every certified skill simultaneously. Because the endpoint accepts the victim’s session cookie and the CORS configuration reflects any origin, the browser sends each DELETE request with full credentials, and each badge revocation is processed normally by the server as a legitimate administrative action. The certified skills immediately lose the trust signals that users and enterprise integrators have come to rely on when deciding whether to deploy a skill in production AI agent workflows. The badges are gone; there is no undo, no soft-revocation, no recovery path without re-initiating the full certification process from scratch.
The asymmetric damage of trust badge destruction is not primarily a technical consequence — it is a reputational and commercial one. A skill that carries a platinum-tier certification badge has demonstrated to the market that it has passed rigorous security, quality, and reliability audits. Enterprise integrators, AI agent orchestration platforms, and individual users make deployment decisions based on this signal. When the badge disappears, the signal disappears with it. The affected publishers lose the competitive advantage they spent months or years building through the certification process. Enterprise customers who had approved the skill for production deployment based on its certification status may need to re-evaluate that approval, triggering procurement review cycles that delay or block the publisher’s revenue. This damage persists for weeks or months even after the badges are eventually restored through emergency recertification — assuming the review queue has not already been flooded by CORS83-002 to prevent that recovery.
Within the CORS83 compound chain, CORS83-004 is the final destructive stage and is designed to run after CORS83-002 has already flooded the certification review queue. The timing is deliberate: if the badge revocation fires before the queue flood, the publisher might be able to submit an emergency recertification request before the queue capacity is exhausted. By flooding the queue first (CORS83-002) and revoking all badges second (CORS83-004), the attacker ensures that the publisher’s emergency recertification request joins a queue that is already backlogged by months of synthetic flood entries. The publisher is left with revoked badges, an overloaded review queue, and no expedited recertification path. This sequencing turns what might be a temporary embarrassment into an extended commercial and reputational crisis.
// CORS83-004 — VULNERABLE
// cors({origin:true,credentials:true}) on the trust badge deletion endpoint.
// Any origin permanently revokes all trust badges from every certified skill
// using the victim admin's session cookie — irreversible destruction of certification reputation.
// skills/certification/router.js
router.delete(
'/:badgeId',
cors({ origin: true, credentials: true }), // VULNERABLE: reflects any Origin with credentials
requireSession,
async (req, res) => {
const { id: skillId, badgeId } = req.params;
// Server checks that the requesting user is a registry admin
const user = await db.users.findById(req.session.userId);
if (!user.isAdmin) {
return res.status(403).json({ error: 'Forbidden — admin required for badge revocation' });
}
// Hard-delete — no soft revocation, no grace period, no recovery path
// Badge is gone immediately from the trust badge display
const badge = await db.trustBadges.findById(badgeId);
if (!badge || badge.skillId !== skillId) {
return res.status(404).json({ error: 'Badge not found' });
}
await db.trustBadges.delete({ id: badgeId, skillId });
// No notification to the skill publisher
// No audit log of who performed the revocation
// No retention of the revoked badge record for appeal purposes
res.json({ revoked: badgeId, skillId });
// Badge permanently destroyed — years of earned certification reputation gone instantly
}
);
// Attacker page — iterates over all badges on all target skills
// (certification records obtained via CORS83-001 earlier in the chain):
// for (const { skillId, certRecord } of stolenCertificationData) {
// await Promise.all(
// certRecord.certificationHistory
// .filter(h => h.badgeId && h.expiresAt > Date.now()) // only active badges
// .map(h =>
// fetch(
// `https://registry.example.com/api/skills/${skillId}/certification/${h.badgeId}`,
// { method: 'DELETE', credentials: 'include' } // victim admin session
// )
// )
// );
// }
// — all trust badges permanently revoked across all targeted certified skills
Irreversible operations require re-authentication even after all other CORS controls are correct: Trust badge revocation is an irreversible operation whose consequences persist indefinitely until the full certification process is repeated. Even with a correctly configured CORS allowlist, an attacker who steals a session cookie through any other channel can forge a badge revocation request using that session. The correct defense in depth for irreversible operations is to require step-up re-authentication — a freshly entered password or MFA challenge within the last five minutes — before the deletion is processed. A stolen long-idle session cookie cannot satisfy the step-up requirement without direct attacker interaction with the MFA channel, raising the attack complexity from opportunistic to targeted. Additionally, implement soft-revocation with a 90-day retention period: mark the badge as revoked in the trust signal display but retain the full badge record for 90 days to support appeals and to allow emergency restoration without re-running the full review process.
// CORS83-004 — FIXED
// 1. Auth check runs before CORS middleware.
// 2. Explicit allowlist CORS replaces origin:true reflection.
// 3. Re-authentication (step-up) required for trust badge revocation.
// 4. Soft-revocation with 90-day retention — badge record preserved for appeal and restoration.
// 5. Mandatory reason field — every revocation must include a documented justification.
// 6. Audit log entry on every revocation with full attribution.
// 7. Publisher notification with appeal window.
// skills/certification/router.js
const { certificationCorsOptions } = require('../../config/cors'); // allowlist-based
router.delete('/:badgeId',
requireSession, // 1. auth FIRST
cors(certificationCorsOptions), // 2. allowlist CORS
verifyCsrfToken, // 3. CSRF protection for state-changing DELETE
requireAdmin, // 4. admin-only — not just skill owner
requireStepUpAuth({ maxAgeSeconds: 300 }), // 5. re-auth within last 5 minutes required
async (req, res) => {
const { id: skillId, badgeId } = req.params;
const { reason } = req.body; // 6. mandatory reason field
const performingAdmin = req.session.userId;
// Require a documented revocation reason — no reason, no revocation
if (!reason || reason.trim().length < 20) {
return res.status(400).json({
error: 'Revocation reason required (minimum 20 characters)',
});
}
// Verify badge exists and belongs to this skill
const badge = await db.trustBadges.findById(badgeId);
if (!badge || badge.skillId !== skillId) {
return res.status(404).json({ error: 'Badge not found' });
}
// Reject double-revocation
if (badge.status === 'revoked') {
return res.status(409).json({ error: 'Badge already revoked', revokedAt: badge.revokedAt });
}
const revokedAt = new Date();
const retentionExpiresAt = new Date(revokedAt.getTime() + 90 * 24 * 60 * 60 * 1000); // 90 days
// 7. Soft-revocation: mark as revoked but retain record for 90 days
await db.trustBadges.update(
{ id: badgeId },
{
status: 'revoked',
revokedAt,
revokedBy: performingAdmin,
revocationReason: reason.trim(),
retentionExpiresAt, // record purged after 90 days if no appeal
}
);
// 8. Audit log entry with full attribution
await db.certificationAuditLog.create({
skillId,
action: 'trust_badge_revoked',
badgeId,
badgeTier: badge.badgeTier,
performedBy: performingAdmin,
reason: reason.trim(),
revokedAt,
retentionExpiresAt,
});
// 9. Notify the skill publisher with appeal window and restoration path
const skill = await db.skills.findById(skillId);
const publisher = await db.users.findById(skill.ownerId);
await mailer.sendBadgeRevocationNotice({
to: publisher.email,
skillId,
badgeTier: badge.badgeTier,
reason: reason.trim(),
revokedAt,
appealWindowDays: 30,
restoreInstructions: `https://registry.example.com/skills/${skillId}/certification/appeal`,
});
res.json({
revoked: badgeId,
skillId,
softRevocationUntil: retentionExpiresAt,
appealWindowDays: 30,
});
}
);
CVSS 3.1 approximate score for CORS83-004: 9.1 (CRITICAL) — AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:H/A:H. Integrity is High because the forced permanent revocation of all trust badges destroys the certification signal that users and enterprise integrators rely on for deployment decisions. Availability is High because the publisher loses access to the certification benefits — visibility boosts, trusted partner integrations, enterprise deployment approvals — for the full duration until recertification completes. Scope is Changed because the attack extends beyond the web application into the skill’s commercial and reputational standing in the broader AI agent ecosystem.
Compound four-stage certification trust destruction chain
The four findings in SA-SKL-CORS83 form a compound attack chain whose combined impact significantly exceeds the sum of the individual findings. An attacker who controls a single web page that a victim registry admin visits can execute all four stages in sequence during that single page visit. The chain takes fewer than three seconds to complete end-to-end because every stage involves CORS-enabled HTTP requests that complete in the background while the page renders normally. The victim admin sees nothing unusual; there are no error dialogs, no console warnings visible to the user, and no visible side effects on the page they are browsing.
performance.now() to measure response latency against the certification status endpoint. Warm-cache responses (~4 ms) identify skills where a reviewer has the certification record open right now — meaning the reviewer is actively writing findings. These are the highest-value targets: their reviewer notes are being written at this exact moment and are therefore almost certainly pre-disclosure.
The asymmetric damage of this chain is its defining characteristic. The attacker invests one page visit and a few seconds of network activity. The affected publishers lose the competitive advantages they spent months or years building through the certification process, face immediate commercial consequences as enterprise customers re-evaluate deployment approvals, and have no expedited recovery path because the review queue has been flooded in advance. The registry faces a platform-level credibility crisis: if the trust signal that the certification system provides can be destroyed in a single page visit, the entire value proposition of the certification system is undermined. Even after all four findings are patched and the badges are eventually restored, the market’s confidence in the registry’s certification system is damaged by the event itself.
| Stage | Finding | Technique | Observable / Payload | Enables |
|---|---|---|---|---|
| 1 | CORS83-003 | Timing oracle via Origin reflection before auth check on certification status | performance.now() measures <20 ms (review-active warm cache) vs >100 ms (cold DB) |
Identifies skills with reviewer actively writing findings right now — highest-value pre-disclosure targets |
| 2 | CORS83-001 | Credential-bearing CORS reads certification record including reviewer notes and unreleased tier assessments | GET /api/skills/:id/certification with victim session; response includes reviewerNotes with pre-disclosure vulnerability findings |
Attacker obtains targeted exploit guide for production vulnerabilities the publisher hasn’t been notified about yet |
| 3 | CORS83-002 | Wildcard ACAO floods certification review queue with synthetic requests | POST /api/skills/:id/certification/request at scale with synthetic entries |
Review queue capacity exhausted; publisher’s emergency recertification request joins a months-long backlog; recovery path blocked before stage 4 fires |
| 4 | CORS83-004 | Credential-bearing CORS permanently revokes all trust badges simultaneously | DELETE /api/skills/:id/certification/:badgeId for all active badges on all certified target skills |
All trust badges permanently destroyed across all targeted certified skills; years of earned certification reputation revoked in a single page visit with no recovery path available |
Detection with AST queries
Static analysis of Express.js route handler source code can identify all four CORS83 patterns before deployment. The following three query classes cover the full finding set and are designed to run against compiled or source TypeScript as well as plain JavaScript using tree-sitter or an equivalent AST analysis framework. Each query class targets a distinct structural signature that is a necessary precondition for one or more of the CORS83 findings.
Query class A — Credential-bearing CORS on certification record read or badge deletion endpoints
This query identifies cors({origin:true,credentials:true}) usage on route handlers whose path pattern matches skill certification record reads (GET /certification) or badge deletion endpoints (DELETE /certification/:badgeId). The pattern targets the specific combination of reflected-origin CORS (origin: true) and credentials (credentials: true), which is the prerequisite for both CORS83-001 and CORS83-004. The credential-bearing combination is what allows the response to include session-authenticated admin-only fields; without credentials: true, the browser would not send the session cookie cross-origin even if origin: true were present.
// tree-sitter query — class A
// Matches: cors({ origin: true, credentials: true }) on GET or DELETE handlers
// for paths matching /certification or /certification/:badgeId
(call_expression
function: (identifier) @fn (#eq? @fn "cors")
arguments: (arguments
(object
(pair key: (property_identifier) @ok (#eq? @ok "origin")
value: (true) @oval)
(pair key: (property_identifier) @ck (#eq? @ck "credentials")
value: (true) @cval)
)
)
) @cors_credentialed_reflected
;; Flag any route handler that (a) uses the above cors() call and (b) is registered
;; on a path containing "certification" with method GET or DELETE.
;; Supplementary check: flag router.get() or router.delete() where the path string
;; literal matches /certification(\/:badgeId)?/ and the middleware list includes
;; a cors({origin:true}) call expression.
(call_expression
function: (member_expression
object: (identifier) @router
property: (property_identifier) @method
(#match? @method "^(get|delete)$")
)
arguments: (arguments
(string) @path (#match? @path "certification")
(call_expression function: (identifier) @cors_fn (#eq? @cors_fn "cors")) @cors_call
)
) @route_with_cors_on_certification
;; Severity: CRITICAL when both origin:true and credentials:true are present together.
Query class B — Wildcard ACAO on certification request POST endpoints
This query identifies explicit res.setHeader('Access-Control-Allow-Origin', '*') calls or cors() invocations that resolve to a wildcard ACAO within a route handler whose path matches the certification request endpoint pattern. The wildcard ACAO is the prerequisite for CORS83-002: without it, the browser would enforce the same-origin policy on the POST request and the synthetic certification request would not be accepted. The query covers both explicit setHeader calls and default cors() invocations with no arguments, which also default to wildcard ACAO.
// tree-sitter query — class B
;; Pattern 1: explicit res.setHeader with wildcard ACAO on a certification route
(call_expression
function: (member_expression
object: (identifier) @res (#eq? @res "res")
property: (property_identifier) @method (#eq? @method "setHeader")
)
arguments: (arguments
(string) @header_name (#eq? @header_name "'Access-Control-Allow-Origin'")
(string) @header_value (#eq? @header_value "'*'")
)
) @wildcard_acao_set
;; Pattern 2: cors() with no arguments (defaults to ACAO:*) on a POST route
;; that includes "certification" and "request" in the path
(call_expression
function: (member_expression
object: (identifier) @router
property: (property_identifier) @method (#eq? @method "post")
)
arguments: (arguments
(string) @path (#match? @path "certification.*request")
(call_expression
function: (identifier) @cors_fn (#eq? @cors_fn "cors")
arguments: (arguments) @no_args (#eq? @no_args "()")
)
)
) @default_cors_on_cert_request_post
;; Pattern 3: res.header() variant with wildcard ACAO (some frameworks use this form)
(call_expression
function: (member_expression
object: (identifier) @res (#eq? @res "res")
property: (property_identifier) @method (#eq? @method "header")
)
arguments: (arguments
(string) @header_name (#eq? @header_name "'Access-Control-Allow-Origin'")
(string) @header_value (#eq? @header_value "'*'")
)
) @wildcard_acao_header_method
;; Combine: flag any POST route with "certification/request" in path where any pattern fires.
Query class C — CORS reflection before authentication check on certification status GET endpoints
This query identifies route handlers where the cors() middleware call appears as a positional argument before the authentication middleware call in the route handler’s middleware list. The “auth-after-CORS” ordering is the structural cause of the CORS83-003 timing oracle, and also applies to CORS83-001 and CORS83-004 when the auth check is not the first middleware in the chain. Any route where cors() is registered before requireSession, requireAuth, or any equivalent authentication middleware is a potential timing oracle candidate, regardless of which specific endpoint it protects.
// tree-sitter query — class C
;; Detect routes where cors() middleware appears at an earlier argument position
;; than requireSession / requireAuth / authenticate in the same call_expression.
;;
;; Heuristic: in a router.get(...) call, capture the index position of the first
;; cors(...) argument and the first identifier matching /require(Session|Auth|Login)/
;; — flag any route where cors_index < auth_index.
(call_expression
function: (member_expression
property: (property_identifier) @method (#match? @method "^(get|post|put|patch|delete)$")
)
arguments: (arguments
.
(string) @route_path
.
(call_expression
function: (identifier) @cors_fn (#eq? @cors_fn "cors")
) @cors_arg
.
(identifier) @auth_fn
(#match? @auth_fn "(requireSession|requireAuth|authenticate|verifyToken|isAuthenticated)")
@auth_arg
)
) @cors_before_auth_on_certification
;; This query fires when cors() appears as an argument BEFORE the auth middleware
;; in the same router.method() call — indicating auth-after-CORS ordering.
;; Apply path filter: (#match? @route_path "certification") to scope to certification routes,
;; or run without the filter to catch auth-after-CORS across the entire router surface.
;; Supplementary: also flag handlers where cors() is applied as an app-level or
;; router-level use() before the auth middleware in the same router.use() chain.
(call_expression
function: (member_expression
property: (property_identifier) @use_fn (#eq? @use_fn "use")
)
arguments: (arguments
(call_expression
function: (identifier) @cors_fn (#eq? @cors_fn "cors")
) @cors_use
)
) @router_level_cors_before_auth
;; Requires dataflow analysis to confirm this router.use(cors()) precedes router.use(auth())
;; in the same router scope — combine with control-flow order analysis for precision.
SkillAudit scans for all CORS83 patterns automatically: The SkillAudit static analysis engine runs all three query classes above, plus 200+ additional vulnerability patterns, against your MCP skill server on every commit. CORS83-class findings are classified as CRITICAL or HIGH and are surfaced immediately in pull request annotations before they reach production. If your skill registry handles certification workflows, trust badge management, or any other reputation and trust signal endpoints, schedule a CORS83 audit now to verify your current configuration before the compound chain is used against your users.
Summary and 12-point remediation checklist
SA-SKL-CORS83 demonstrates that certification and trust badge endpoints in MCP skill registries constitute the highest-value CORS attack surface in the entire registry — not because they are the most common target, but because the data they hold (pre-disclosure vulnerability findings), the operations they perform (trust badge revocation), and the shared resource they manage (the certification review queue) make successful exploitation disproportionately damaging. The compound four-stage chain (timing oracle → pre-disclosure exfiltration → queue flood → badge mass-revocation) can be executed entirely from a single page visit by a victim who clicks any link that navigates them to an attacker-controlled page while authenticated to the registry admin panel — a threat vector that requires no special access, no account credentials, and no prior knowledge of the registry’s internal structure beyond the publicly available API documentation.
The root cause across all four findings is the same: CORS was configured for operational convenience (supporting multiple origins without maintaining an explicit allowlist, placing CORS before authentication for ease of implementation) rather than for security (limiting cross-origin access to only the specific origins that need it, enforcing authentication before any headers that reflect credentials are written). The fix is structural: enforce authentication before CORS reflection on every certification endpoint, replace all origin:true and wildcard ACAO configurations with an explicitly maintained Set-based allowlist, never serve reviewer notes from the same endpoint as public certification data, and treat badge revocation as an irreversible operation requiring step-up re-authentication and a soft-revocation grace period.
- Enforce authentication before CORS middleware on every certification endpoint — the authentication check must be the first middleware in the handler chain, not a step that runs after CORS headers reflecting the Origin have already been written to the response; this eliminates the CORS83-003 timing oracle at the structural level
- Replace all
cors({origin:true})and wildcardACAO: *configurations on certification endpoints with an explicitly maintained Set-based allowlist of approved origins; treat any request from an origin not in the Set as a 403 response before authentication or any credential-bearing operation is considered - Serve internal reviewer notes and pre-disclosure vulnerability findings from a dedicated endpoint at
GET /api/admin/skills/:id/certification/reviewer-noteswith its own access control review, its own audit logging, and no CORS headers at all — never include reviewer notes in the public-facing certification record response regardless of the caller’s authentication status - Apply a minimum 50 ms response time floor on all certification status and certification record endpoints after authentication resolves — the floor collapses warm-cache vs cold-DB timing signals to noise, neutralizing timing oracle attacks even if a future code change reintroduces a cache hot path that creates a latency differential
- Require step-up re-authentication (freshly verified password or MFA within the last 5 minutes) for all trust badge revocation requests — the re-auth requirement means a CORS-forged badge revocation using a victim admin’s long-idle session will fail even if all other CORS controls are bypassed or regressed
- Add CSRF token verification to all state-changing certification endpoints (certification request POST, badge revocation DELETE) — the CSRF token should be session-bound, cryptographically random, and verified server-side regardless of the request’s CORS posture; this provides defense in depth against CORS83-002 and CORS83-004 even when the CORS allowlist is correctly configured
- Implement a per-skill rate limit of one active certification request per skill at any time, combined with a 30-day cooling-off period between completed certification reviews — this prevents queue flooding by bounding the maximum number of synthetic entries any single skill or session can contribute to the queue
- Implement soft-revocation with a 90-day retention period for trust badge deletions — mark the badge as revoked in the trust signal display but retain the full badge record for 90 days to support publisher appeals, emergency restoration by registry administrators, and forensic investigation of potential CORS83-004 exploitation
- Require a mandatory revocation reason field (minimum 20 characters) for every trust badge deletion and write an append-only audit log entry for every revocation including the performing admin’s user ID, IP address, session fingerprint, and the full revocation reason — this creates a durable forensic record that distinguishes legitimate administrative revocations from CORS-forged ones
- Send a publisher notification with a documented appeal window and restoration instructions on every trust badge revocation — the notification creates an observable signal that the publisher can act on to investigate an unexpected revocation before the 90-day soft-revocation window expires and the deletion becomes permanent
- Integrate AST scanning for CORS83 query classes A, B, and C into your CI pipeline — require all three query classes to pass with zero findings before any pull request touching the certification router or trust badge management endpoints can be merged; run the queries against compiled TypeScript as well as source JavaScript to catch CORS configuration patterns that may be introduced through transpilation or configuration injection
- If CORS83 exploitation is suspected or confirmed, immediately audit the certification audit log for unexpected badge revocation events in the past 30 days, restore all soft-revoked badges for affected publishers pending investigation, purge synthetic flood entries from the certification review queue using submission metadata analysis, and rotate admin session tokens for all registry administrators who may have visited attacker-controlled pages during the suspected exploitation window
Scan your MCP skill for CORS83 and 200+ other vulnerability classes — including all SA-SKL-CORS finding sets, deserialization chains, SSRF, injection, and privilege escalation patterns — with a full automated audit from SkillAudit. Results delivered as a machine-readable report with finding severity, affected endpoint paths, and line-level code citations.
Request an audit