The WP Shortcodes Plugin — Shortcodes Ultimate plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'max_width' attribute of the `su_box` shortcode in all versions up to, and including, 7.4.10 due to insufficient input sanitization and output escaping on user supplied attributes. 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 WP Shortcodes Plugin (Shortcodes Ultimate) versions up to 7.4.10 contain a Stored Cross-Site Scripting (XSS) vulnerability in the su_box shortcode's max_width attribute. Authenticated attackers with contributor-level access can inject malicious scripts that execute for all users viewing affected pages. This vulnerability poses a significant risk to WordPress-based government portals, corporate websites, and e-commerce platforms commonly used across Saudi Arabia.
IMMEDIATE ACTIONS:
1. Audit all WordPress installations using Shortcodes Ultimate plugin versions ≤7.4.10
2. Review user access logs for contributor-level accounts created or modified in past 90 days
3. Scan all pages/posts containing [su_box] shortcodes for suspicious max_width attribute values
4. Disable the plugin immediately if not actively maintained
PATCHING GUIDANCE:
1. Contact plugin developer for security update timeline
2. If update unavailable, deactivate and remove Shortcodes Ultimate plugin
3. Replace functionality with alternative, actively maintained shortcode plugins
4. Test all page rendering after plugin removal
COMPENSATING CONTROLS:
1. Restrict contributor role to trusted users only; audit existing contributors
2. Implement Web Application Firewall (WAF) rules to detect/block XSS patterns in shortcode attributes
3. Enable WordPress security plugins (Wordfence, Sucuri) with XSS detection
4. Implement Content Security Policy (CSP) headers to restrict inline script execution
5. Regular security scanning of WordPress database for malicious shortcode content
DETECTION RULES:
1. Monitor wp_posts table for [su_box] shortcodes with max_width containing script tags or event handlers
2. Alert on any modifications to posts/pages by contributor-level users
3. Log all plugin activation/deactivation events
4. Monitor for unusual JavaScript execution in page contexts
الإجراءات الفورية:
1. تدقيق جميع تثبيتات WordPress التي تستخدم مكون Shortcodes Ultimate الإصدارات ≤7.4.10
2. مراجعة سجلات الوصول للمستخدمين على مستوى المساهم المُنشأة أو المعدلة في آخر 90 يوماً
3. فحص جميع الصفحات/المنشورات التي تحتوي على اختصارات [su_box] للقيم المريبة في سمة max_width
4. تعطيل المكون فوراً إذا لم يكن قيد الصيانة النشطة
إرشادات التصحيح:
1. التواصل مع مطور المكون لمعرفة جدول تحديث الأمان
2. إذا لم يكن التحديث متاحاً، قم بإلغاء تنشيط وإزالة مكون Shortcodes Ultimate
3. استبدال الوظائف بمكونات اختصار بديلة يتم صيانتها بنشاط
4. اختبار جميع عمليات عرض الصفحات بعد إزالة المكون
الضوابط التعويضية:
1. تقييد دور المساهم للمستخدمين الموثوقين فقط؛ تدقيق المساهمين الحاليين
2. تنفيذ قواعد جدار حماية تطبيقات الويب (WAF) للكشف عن أنماط XSS وحجبها
3. تفعيل مكونات أمان WordPress (Wordfence, Sucuri) مع كشف XSS
4. تنفيذ رؤوس سياسة أمان المحتوى (CSP) لتقييد تنفيذ البرامج النصية المضمنة
5. الفحص الدوري لقاعدة بيانات WordPress للكشف عن محتوى الاختصار الضار
قواعد الكشف:
1. مراقبة جدول wp_posts للاختصارات [su_box] التي تحتوي على max_width يتضمن علامات البرامج النصية أو معالجات الأحداث
2. التنبيه على أي تعديلات على المنشورات/الصفحات من قبل مستخدمي مستوى المساهم
3. تسجيل جميع أحداث تنشيط/إلغاء تنشيط المكون
4. مراقبة تنفيذ JavaScript غير العادي في سياقات الصفحة