NocoDB is software for building databases as spreadsheets. Prior to version 0.301.3, rich text cell content rendered via v-html without sanitization enables stored XSS. This issue has been patched in version 0.301.3.
NocoDB versions prior to 0.301.3 contain a stored cross-site scripting (XSS) vulnerability in rich text cell rendering due to unsanitized v-html usage. This allows authenticated attackers to inject malicious scripts that execute in other users' browsers when viewing affected cells. While CVSS is moderate (5.4), the stored nature and potential for lateral movement in collaborative environments elevates risk for Saudi organizations using NocoDB for data management.
Immediate Actions:
1. Identify all NocoDB instances in your environment and document their versions
2. Restrict access to NocoDB to trusted internal networks only; disable external access if possible
3. Implement Web Application Firewall (WAF) rules to detect and block XSS payloads in cell content
4. Review audit logs for suspicious cell modifications or script-like content entries
Patching Guidance:
1. Upgrade NocoDB to version 0.301.3 or later immediately when available
2. If immediate patching is not possible, disable rich text cell functionality or restrict it to trusted administrators only
3. Test patches in non-production environments before deployment
Compensating Controls:
1. Implement Content Security Policy (CSP) headers to restrict script execution
2. Use browser-based security extensions to block inline scripts
3. Enforce principle of least privilege for NocoDB user accounts
4. Implement input validation at the application level to sanitize cell content
5. Monitor for suspicious JavaScript patterns in database entries
Detection Rules:
1. Alert on cell modifications containing script tags, event handlers (onclick, onload), or JavaScript protocol handlers
2. Monitor for unusual access patterns to NocoDB administrative functions
3. Log and review all rich text cell content modifications
الإجراءات الفورية:
1. حدد جميع مثيلات NocoDB في بيئتك وقم بتوثيق إصداراتها
2. قيد الوصول إلى NocoDB على الشبكات الداخلية الموثوقة فقط؛ عطّل الوصول الخارجي إن أمكن
3. طبّق قواعد جدار حماية تطبيقات الويب (WAF) للكشف عن حقن XSS وحجبها في محتوى الخلايا
4. راجع سجلات التدقيق للتعديلات المريبة على الخلايا أو إدخالات تشبه النصوص البرمجية
إرشادات التصحيح:
1. قم بترقية NocoDB إلى الإصدار 0.301.3 أو أحدث فوراً عند توفره
2. إذا لم يكن التصحيح الفوري ممكناً، عطّل وظيفة خلايا النصوص الغنية أو قيدها على المسؤولين الموثوقين فقط
3. اختبر التصحيحات في بيئات غير الإنتاج قبل النشر
الضوابط البديلة:
1. طبّق رؤوس سياسة أمان المحتوى (CSP) لتقييد تنفيذ النصوص البرمجية
2. استخدم امتدادات الأمان المستندة إلى المتصفح لحجب النصوص البرمجية المضمنة
3. فرض مبدأ الامتياز الأقل لحسابات مستخدمي NocoDB
4. طبّق التحقق من صحة الإدخال على مستوى التطبيق لتنظيف محتوى الخلايا
5. راقب الأنماط المريبة للجافا سكريبت في إدخالات قاعدة البيانات
قواعد الكشف:
1. تنبيهات على تعديلات الخلايا التي تحتوي على علامات النصوص البرمجية أو معالجات الأحداث (onclick, onload) أو معالجات بروتوكول JavaScript
2. راقب أنماط الوصول غير العادية إلى وظائف إدارة NocoDB
3. سجّل وراجع جميع تعديلات محتوى خلايا النصوص الغنية