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.
25 lines
1.2 KiB
Text
25 lines
1.2 KiB
Text
MIT License
|
|
|
|
Copyright (c) 2024 OpenShorts
|
|
|
|
EXCEPTION: All content that resides under the "cloud/" directory of this
|
|
repository is licensed under the license defined in "cloud/LICENSE"
|
|
(the OpenShorts Commercial License), not under the MIT License below.
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
of this software and associated documentation files (the "Software"), to deal
|
|
in the Software without restriction, including without limitation the rights
|
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
copies of the Software, and to permit persons to whom the Software is
|
|
furnished to do so, subject to the following conditions:
|
|
|
|
The above copyright notice and this permission notice shall be included in all
|
|
copies or substantial portions of the Software.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
SOFTWARE.
|