Security fixes on the hosted/paid surface (all no-op in self-host / BYOK): - upload path traversal: basename() client filenames in /api/process, /api/thumbnail/upload, /api/thumbnail/analyze fallback, /api/thumbnail/generate (face/bg + session_id) so "../" can't escape UPLOAD_DIR - SSRF: saasshorts subpage scraper now follow_redirects=False + assert_public_url per hop (was open to 302 -> 169.254.169.254 metadata) - metering: reserve+commit/release on /api/render, /api/subtitle, /api/hook and a fixed guard cost on /api/thumbnail/upload transcription (were entitlement-gated but unmetered -> unlimited off-quota compute) - entitlement: SaaSShorts generate/actor-options/actor-upload now require a plan in cloud; /api/edit ignores body api_key in cloud (no gate/meter bypass) - multi-tenant IDOR: stamp user_id on thumbnail_sessions/saas_jobs and reject non-owners (404) across status/mutation/publish/post endpoints - DoS: bounded/streamed reads on actor-upload and thumbnail uploads - retry_job_id routed through _safe_under Frontend: raw fetch -> apiFetch on the now-gated/owner-checked endpoints so the bearer token attaches. License: cloud/ is now source-available under the OpenShorts Commercial License (self-host/personal use allowed; no competing hosted service). Core stays MIT. |
||
|---|---|---|
| .. | ||
| public | ||
| src | ||
| .gitignore | ||
| Dockerfile | ||
| eslint.config.js | ||
| index.html | ||
| nginx.conf | ||
| package-lock.json | ||
| package.json | ||
| postcss.config.js | ||
| README.md | ||
| tailwind.config.js | ||
| vite.config.js | ||
React + Vite
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel (or oxc when used in rolldown-vite) for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
React Compiler
The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.
Expanding the ESLint configuration
If you are developing a production application, we recommend using TypeScript with type-aware lint rules enabled. Check out the TS template for information on how to integrate TypeScript and typescript-eslint in your project.