Pluxra
Zero audit findingsMarrow Labs · Developer webhook & event API (~18 people)· Delivered in 2 weeks

Hardening Marrow Labs' developer console ahead of enterprise security review

Closed browser header, cookie, CORS, and API input validation gaps across the customer dashboard before their first enterprise procurement audit.

Nonce CSPSSRF IP GuardZod ValidationCI Lockfile Gate
External web audit findings
0 issues
Baseline: 11 issues
Strict CSP coverage
100% routes
Baseline: None
Outdated dependencies with advisories
0
Baseline: 14

Context

Marrow Labs handles webhook routing for engineering teams. During their first mid-market enterprise deal, the buyer’s security questionnaire flagged missing browser protections and overly permissive API settings across the web dashboard and documentation subdomain.

Risks identified

  • Missing Content-Security-Policy allowed arbitrary inline scripts and unvetted third-party embeds.
  • Webhook destination test endpoints accepted loopback and link-local IP ranges (127.0.0.1, 169.254.169.254) without SSRF validation.
  • CORS returned wildcard origins on authenticated metadata endpoints, and session cookies lacked explicit SameSite defaults.

Engineering changes

We deployed a strict nonce-based CSP starting in report-only mode before locking down enforcement. We added server-side SSRF host and IP filtering to the webhook tester, locked CORS to explicit dashboard origins, enforced HttpOnly and SameSite=Lax cookie defaults, and added automated dependency checks in CI.

Outcome

Marrow Labs passed the customer’s follow-up external assessment with zero open web-surface findings and turned the remediation checklist into reusable procurement documentation.

Server-side SSRF host and private IP range validation on webhook testerts
const PRIVATE_CIDR = /^(127\.|10\.|192\.168\.|169\.254\.|172\.(1[6-9]|2\d|3[01])\.)/;

export function assertSafeWebhookTarget(raw: string): URL {
  const parsed = new URL(raw);
  if (parsed.protocol !== 'https:') throw new Error('HTTPS required');
  const host = parsed.hostname.toLowerCase();
  if (host === 'localhost' || host.endsWith('.internal') || PRIVATE_CIDR.test(host)) {
    throw new Error('Blocked internal or loopback host');
  }
  return parsed;
}

Facing a similar performance, SEO, or security bottleneck?

Run a diagnostic scan on your public domain or send your architecture details directly to our engineers.