Skip to content

Curated website design inspiration gallery, open zero-auth MCP server for AI agents, and shareable moodboard lists.

1.8 KB
Raw Blame

Security Policy

For security vulnerabilities or accidentally exposed private information, email [email protected]. Please include reproduction steps and affected URLs, and do not publish exploits or secrets in a public issue.

Architecture & Guardrails

  • Static gallery + minimal serverless endpoints: All gallery pages, fonts, and screenshots are built statically into apps/gallery/out with strict CSP (script-src 'self', frame-ancestors 'none', object-src 'none').
  • Open MCP (/api/mcp/): Read tools only expose public catalog metadata and public shared list IDs (dt_...). Optional image previews are fetched strictly from https://designtaste.wtf/images/<validated-catalog-id>-thumb.jpg (no user-controlled URLs).
  • Shared lists (/api/lists/): Accepts only validated catalog site.ids (1–50 sites), strips HTML/control characters from optional titles, uses random unguessable dt_... IDs, and enforces per-IP Redis rate limiting.
  • Favorites ranking (/api/favorites/): Uses salted hashed per-visitor sets (SADD/SREM/SCARD) to prevent vote stuffing, enforces per-IP rate limiting, and returns only ordered site IDs (never raw counts).
  • Submissions (/api/submit/): Validates public HTTPS URLs only, checks Origin/Referer, enforces persistent per-IP and global Redis quotas, deduplicates strictly by structured URL field, and caps the open curation queue at 50 issues.
  • Local capture CLI (scripts/capture-lib.mjs): Blocks private, loopback, link-local, and direct-IP targets both before navigation and on every intercepted subresource/redirect via DNS resolution.
  • CI safety: GitHub Actions runs untrusted PRs with permissions: contents: read, persist-credentials: false, npm ci --ignore-scripts, and zero deployment secrets.