The Royal Addons for Elementor plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'button_text' parameter in all versions up to, and including, 1.7.1049 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with contributor level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
The Royal Addons for Elementor WordPress plugin contains a Stored Cross-Site Scripting (XSS) vulnerability in the 'button_text' parameter affecting versions up to 1.7.1049. Authenticated attackers with contributor-level access can inject malicious scripts that execute for all page visitors. While currently unpatched, the medium CVSS score (6.4) and authentication requirement limit immediate risk, but the stored nature of the vulnerability poses persistent threats to website integrity and visitor security.
IMMEDIATE ACTIONS:
1. Audit all WordPress installations using Royal Addons for Elementor plugin to identify affected versions (≤1.7.1049)
2. Review user access logs for contributor-level and above accounts to detect suspicious activity
3. Scan published pages for suspicious scripts in button_text parameters
COMPENSATING CONTROLS (until patch available):
1. Restrict contributor-level access to only trusted personnel; implement principle of least privilege
2. Disable the Royal Addons plugin immediately if not critical to operations
3. Implement Web Application Firewall (WAF) rules to detect and block XSS payloads in button_text parameters
4. Enable WordPress security plugins (e.g., Wordfence, Sucuri) with XSS detection capabilities
5. Implement Content Security Policy (CSP) headers to prevent inline script execution
6. Regular security scanning of WordPress database for malicious content
DETECTION RULES:
1. Monitor wp_postmeta table for suspicious JavaScript in post meta containing 'button_text'
2. Alert on any modifications to posts/pages by contributor accounts
3. Log and review all plugin file modifications
4. Monitor for unusual outbound connections from WordPress installation
PATCHING:
1. Monitor Royal Addons GitHub/official channels for security updates
2. Plan immediate upgrade to patched version when available
3. Test patches in staging environment before production deployment
الإجراءات الفورية:
1. تدقيق جميع تثبيتات WordPress التي تستخدم مكون Royal Addons for Elementor لتحديد الإصدارات المتأثرة (≤1.7.1049)
2. مراجعة سجلات الوصول للمستخدمين بمستوى المساهم وما فوقه للكشف عن النشاط المريب
3. فحص الصفحات المنشورة للبحث عن برامج نصية مريبة في معاملات button_text
الضوابط التعويضية (حتى توفر التصحيح):
1. تقييد الوصول على مستوى المساهم للموظفين الموثوقين فقط؛ تطبيق مبدأ الامتياز الأقل
2. تعطيل مكون Royal Addons فوراً إذا لم يكن حرجاً للعمليات
3. تطبيق قواعد جدار حماية تطبيقات الويب (WAF) للكشف عن حمولات XSS وحجبها في معاملات button_text
4. تفعيل مكونات أمان WordPress (مثل Wordfence و Sucuri) مع قدرات الكشف عن XSS
5. تطبيق رؤوس Content Security Policy (CSP) لمنع تنفيذ البرامج النصية المضمنة
6. الفحص الدوري لقاعدة بيانات WordPress للبحث عن محتوى ضار
قواعد الكشف:
1. مراقبة جدول wp_postmeta للبحث عن JavaScript مريب في بيانات المنشور التي تحتوي على 'button_text'
2. التنبيه على أي تعديلات على المنشورات/الصفحات من قبل حسابات المساهمين
3. تسجيل ومراجعة جميع تعديلات ملفات المكون
4. مراقبة الاتصالات الخارجية غير العادية من تثبيت WordPress
التصحيح:
1. مراقبة قنوات Royal Addons الرسمية للتحديثات الأمنية
2. التخطيط للترقية الفورية إلى الإصدار المصحح عند توفره
3. اختبار التصحيحات في بيئة التطوير قبل نشرها في الإنتاج