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.
CVE-2026-33735 is a critical authorization bypass vulnerability in MyTube versions prior to 1.8.69 that allows low-privilege users to upload and replace the application's SQLite database via the `/api/settings/import-database` endpoint, resulting in complete application compromise. With an available exploit and CVSS score of 8.8, this vulnerability poses an immediate threat to organizations using self-hosted MyTube instances. The bypass affects multiple POST routes, expanding the attack surface significantly. Immediate patching to version 1.8.69 or later is strongly recommended.
IMMEDIATE ACTIONS:
1. Identify all MyTube instances in your environment running versions prior to 1.8.69
2. Restrict network access to MyTube instances to authorized users only using firewall rules
3. Disable or restrict access to the `/api/settings/import-database` endpoint immediately
4. Review access logs for suspicious database import activities and unauthorized API calls
5. Audit user accounts with API access and revoke unnecessary credentials
PATCHING GUIDANCE:
1. Upgrade MyTube to version 1.8.69 or later immediately
2. Test patches in a non-production environment first
3. Implement a phased rollout for production instances
4. Verify patch application by checking version numbers post-deployment
COMPENSATING CONTROLS (if immediate patching not possible):
1. Implement Web Application Firewall (WAF) rules to block POST requests to `/api/settings/import-database`
2. Enforce multi-factor authentication for all API access
3. Implement IP whitelisting for API endpoints
4. Enable comprehensive audit logging for all database operations
5. Implement database backup and integrity verification mechanisms
6. Use read-only database replicas where possible
DETECTION RULES:
1. Monitor for POST requests to `/api/settings/import-database` endpoint
2. Alert on database file modifications outside scheduled maintenance windows
3. Track failed and successful authentication attempts to API endpoints
4. Monitor for unusual database size changes or corruption indicators
5. Log all API calls from low-privilege accounts to sensitive endpoints
6. Implement file integrity monitoring (FIM) on SQLite database files
الإجراءات الفورية:
1. تحديد جميع نسخ MyTube في بيئتك التي تعمل بإصدارات سابقة للإصدار 1.8.69
2. تقييد الوصول إلى شبكة نسخ MyTube للمستخدمين المصرح لهم فقط باستخدام قواعد جدار الحماية
3. تعطيل أو تقييد الوصول إلى نقطة النهاية `/api/settings/import-database` فوراً
4. مراجعة سجلات الوصول للأنشطة المريبة لاستيراد قاعدة البيانات والاتصالات API غير المصرح بها
5. تدقيق حسابات المستخدمين التي لها وصول API وإلغاء بيانات الاعتماد غير الضرورية
إرشادات التصحيح:
1. ترقية MyTube إلى الإصدار 1.8.69 أو أحدث فوراً
2. اختبار التصحيحات في بيئة غير إنتاجية أولاً
3. تنفيذ طرح متدرج لنسخ الإنتاج
4. التحقق من تطبيق التصحيح بفحص أرقام الإصدار بعد النشر
الضوابط البديلة (إذا لم يكن التصحيح الفوري ممكناً):
1. تنفيذ قواعد جدار تطبيقات الويب (WAF) لحظر طلبات POST إلى `/api/settings/import-database`
2. فرض المصادقة متعددة العوامل لجميع وصول API
3. تنفيذ قائمة بيضاء IP لنقاط نهاية API
4. تفعيل تسجيل التدقيق الشامل لجميع عمليات قاعدة البيانات
5. تنفيذ آليات النسخ الاحتياطي والتحقق من سلامة قاعدة البيانات
6. استخدام نسخ قاعدة البيانات للقراءة فقط حيث أمكن
قواعد الكشف:
1. مراقبة طلبات POST إلى نقطة النهاية `/api/settings/import-database`
2. التنبيه على تعديلات ملفات قاعدة البيانات خارج نوافذ الصيانة المجدولة
3. تتبع محاولات المصادقة الفاشلة والناجحة لنقاط نهاية API
4. مراقبة تغييرات حجم قاعدة البيانات غير العادية أو مؤشرات الفساد
5. تسجيل جميع استدعاءات API من حسابات ذات امتيازات منخفضة إلى نقاط نهاية حساسة
6. تنفيذ مراقبة سلامة الملفات (FIM) على ملفات قاعدة بيانات SQLite