Description
MyTube is a self-hosted downloader and player for several video websites Prior to version 1.8.69, an authorization bypass in the `/api/settings/import-database` endpoint allows attackers with low-privilege credentials to upload and replace the application's SQLite database entirely, leading to a full compromise of the application. The bypass is relevant for other POST routes as well. Version 1.8.69 fixes the issue.
Problem types
CWE-285: Improper Authorization
CWE-639: Authorization Bypass Through User-Controlled Key
Product status
References
github.com/...MyTube/security/advisories/GHSA-63cf-662x-crp2
github.com/...MyTube/security/advisories/GHSA-63cf-662x-crp2
github.com/...ommit/b7bf9b7960958c6c51f85fe50a2fc041a086c466
github.com/.../src/middleware/roleBasedSettingsMiddleware.ts