supermemory/apps/web/app
MaheshtheDev 3b0fc9c959 fix(web): authenticate and bound metered /api routes (#1589)
Cherry-picks #1579 and #1580 from @Sravanjangam (security audit #1578), plus improvements on top.

- `/api/og`, `/api/onboarding/extract-content` and `/api/onboarding/research` now verify the session against the auth backend; the middleware only checked that a cookie was present, so a forged cookie reached handlers that spend metered Exa/xAI quota.
- Bounds those routes: 2MB cap on fetched HTML, max 10 http(s) URLs per request, name/email length limits and a 60s timeout on the LLM call.
- De-duplicates URLs before calling Exa, and collapses whitespace in `name`/`email` so a newline can't forge extra prompt lines. Both adapted from @SEPURI-SAI-KRISHNA's #1528 and #1530.
- Deletes the unused, unauthenticated `account-status` route.

Verified locally: pre-fix `/api/og` returned 200 for a forged cookie, post-fix it returns 401. Five duplicate URLs collapse to two before reaching Exa, and a newline-laden `name` arrives as a single prompt line.

Supersedes #1528 and #1530.
2026-08-23 21:48:46 +00:00
..
(app) feat(web): add MCP connector directory (#1461) 2026-08-20 22:58:39 +00:00
(auth)/login feat(auth): AgentID sign-in button on the web login page (#1467) 2026-08-16 23:20:38 +00:00
api fix(web): authenticate and bound metered /api routes (#1589) 2026-08-23 21:48:46 +00:00
auth Remove paid plugin UI (#1403) 2026-08-15 18:41:46 +05:30
oauth/consent Add console logs for debugging consent page (#1129) 2026-06-16 14:46:07 -07:00
org/invite/[invitationId] feat(web): company brain — invite-accept page, space UX/visibility, org-scoped daily brief (#1112) 2026-06-22 18:12:18 +00:00
ref chore: improve the codebase with react doctor (#917) 2026-05-09 19:12:01 +00:00
slack/link feat(web): add Slack account linking confirmation (#1359) 2026-07-24 22:00:58 +00:00
upgrade-mcp chore: improve the codebase with react doctor (#917) 2026-05-09 19:12:01 +00:00
global-error.tsx fix: resolve UI accessibility, hydration, and semantic HTML issues (#520) 2025-12-07 21:31:30 -08:00
icon.png Update app favicon assets (#953) 2026-05-16 21:24:27 -07:00
layout.tsx feat(web): support discount code checkout (#1523) 2026-08-16 13:43:53 -07:00
manifest.ts Update app favicon assets (#953) 2026-05-16 21:24:27 -07:00
not-found.tsx feat: mobile responsive, lint formats, toast, render issue fix (#688) 2026-01-21 03:11:53 +00:00
opengraph-image.png New Version of Supermemory Consumer App 2025-08-16 18:50:10 -07:00