The OVRI Payment plugin for WordPress contains malicious .htaccess files in version 1.7.0. The files contain directives to prevent the execution of certain scripts while allowing execution of known malicious PHP files. If moved outside of the plugin's directory, they may interfere with the proper function of a site.
CVE-2024-10938 involves malicious .htaccess directives embedded in the OVRI Payment WordPress plugin v1.7.0 that selectively block legitimate script execution while permitting known malicious PHP files. This supply chain attack vector poses significant risk to Saudi e-commerce and payment processing platforms. Without available patches, immediate plugin removal and site remediation are critical.
IMMEDIATE ACTIONS:
1. Identify all WordPress installations using OVRI Payment plugin v1.7.0 across your infrastructure
2. Immediately deactivate and remove the plugin from all affected sites
3. Restore .htaccess files from clean backups or regenerate using WordPress default settings
4. Conduct forensic analysis of web server logs (Apache access/error logs) for suspicious PHP execution patterns
5. Scan all WordPress directories for unauthorized PHP files, particularly in wp-content/plugins/ovri-payment/ and parent directories
6. Review database for injected malicious code in wp_options and custom tables
PATCHING GUIDANCE:
- No official patch available; vendor communication required
- Do not upgrade to newer versions without vendor confirmation of malicious code removal
- Contact OVRI plugin developers for security advisory
COMPENSATING CONTROLS:
1. Implement Web Application Firewall (WAF) rules to block suspicious PHP execution patterns
2. Restrict .htaccess file permissions (644) and disable AllowOverride in Apache configuration
3. Enable PHP execution restrictions in wp-content/plugins/ directory via php.ini or .htaccess
4. Deploy file integrity monitoring (FIM) on all .htaccess files
5. Implement strict input validation on payment processing endpoints
DETECTION RULES:
- Monitor for .htaccess modifications in plugin directories
- Alert on PHP file execution from wp-content/plugins/ovri-payment/
- Track failed script executions followed by successful PHP execution
- Monitor Apache error logs for 'Syntax error in .htaccess'
- Search logs for POST requests to payment processing endpoints with suspicious parameters
الإجراءات الفورية:
1. تحديد جميع تثبيتات WordPress التي تستخدم مكون OVRI Payment الإصدار 1.7.0 عبر البنية التحتية الخاصة بك
2. إلغاء تفعيل وإزالة المكون فوراً من جميع المواقع المتأثرة
3. استعادة ملفات .htaccess من نسخ احتياطية نظيفة أو إعادة إنشاء باستخدام إعدادات WordPress الافتراضية
4. إجراء تحليل جنائي لسجلات خادم الويب (سجلات Apache) للبحث عن أنماط تنفيذ PHP مريبة
5. مسح جميع دلائل WordPress بحثاً عن ملفات PHP غير مصرح بها
6. مراجعة قاعدة البيانات للبحث عن أكواد ضارة مُدرجة
إرشادات التصحيح:
- لا توجد تصحيحات رسمية متاحة؛ يلزم التواصل مع البائع
- عدم الترقية إلى إصدارات أحدث بدون تأكيد البائع من إزالة الأكواد الضارة
- التواصل مع مطوري مكون OVRI للحصول على استشارة أمنية
الضوابط التعويضية:
1. تنفيذ قواعد جدار حماية تطبيقات الويب (WAF) لحجب أنماط تنفيذ PHP المريبة
2. تقييد أذونات ملفات .htaccess وتعطيل AllowOverride في إعدادات Apache
3. تفعيل قيود تنفيذ PHP في دليل wp-content/plugins/ عبر php.ini أو .htaccess
4. نشر مراقبة سلامة الملفات (FIM) على جميع ملفات .htaccess
5. تنفيذ التحقق الصارم من المدخلات على نقاط نهاية معالجة الدفع
قواعد الكشف:
- مراقبة تعديلات .htaccess في دلائل المكونات
- تنبيهات عند تنفيذ ملفات PHP من دليل المكون
- تتبع فشل تنفيذ البرامج النصية متبوعاً بتنفيذ PHP ناجح
- مراقبة سجلات خطأ Apache
- البحث في السجلات عن طلبات POST مريبة