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.
66 lines
2.8 KiB
Text
66 lines
2.8 KiB
Text
The OpenShorts Commercial License (the "Commercial License")
|
|
Copyright (c) 2024-present OpenShorts (openshorts.app)
|
|
|
|
All source code and associated documentation files contained in this
|
|
directory ("cloud/") and its subdirectories (the "Commercial Software")
|
|
are NOT covered by the MIT License that applies to the rest of this
|
|
repository. The Commercial Software is licensed under the following
|
|
terms instead.
|
|
|
|
Permitted use
|
|
-------------
|
|
|
|
Subject to the conditions below, you are granted a limited, non-exclusive,
|
|
non-transferable, royalty-free license to:
|
|
|
|
1. View, study, and modify the Commercial Software.
|
|
2. Copy and self-host the Commercial Software for your own PERSONAL or
|
|
INTERNAL business use (i.e., use by you or within your own
|
|
organization).
|
|
3. Contribute changes to the Commercial Software back to this
|
|
repository.
|
|
|
|
Prohibited use
|
|
--------------
|
|
|
|
You may NOT, without a separate written commercial agreement with the
|
|
copyright holder:
|
|
|
|
1. Offer the Commercial Software, or any modified version or derivative
|
|
of it, to third parties as a hosted, managed, or paid service
|
|
(including but not limited to Software-as-a-Service, resale,
|
|
white-labeling, or any offering that competes with the hosted
|
|
service at openshorts.app).
|
|
2. Sell, sublicense, or redistribute the Commercial Software, on its
|
|
own or as part of another product or service, for a fee or other
|
|
consideration.
|
|
3. Remove, alter, or circumvent any license, billing, metering,
|
|
entitlement, or usage-limit functionality contained in the
|
|
Commercial Software when providing access to third parties.
|
|
|
|
Clarifications
|
|
--------------
|
|
|
|
- Everything OUTSIDE the cloud/ directory remains licensed under the
|
|
MIT License (see the LICENSE file at the repository root). You can
|
|
self-host, modify, and use the core OpenShorts application freely
|
|
under that license, with or without this directory present. The
|
|
application runs fully without the Commercial Software when the
|
|
BILLING_ENABLED flag is not set.
|
|
- Contributions submitted to this directory are accepted under these
|
|
same terms, and the contributor grants the copyright holder the
|
|
right to license the contribution commercially.
|
|
|
|
For commercial licensing inquiries, contact: jc.caverogracia@gmail.com
|
|
|
|
Disclaimer
|
|
----------
|
|
|
|
THE COMMERCIAL 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
|
|
COMMERCIAL SOFTWARE OR THE USE OR OTHER DEALINGS IN THE COMMERCIAL
|
|
SOFTWARE.
|