WordPress Form Maker Plugin 1.12.24 and below contains SQL injection vulnerabilities that allow authenticated attackers to manipulate database queries by injecting SQL code through the FormMakerSQLMapping and generete_csv actions. Attackers can submit POST requests with malicious SQL payloads in the name and search_labels parameters to extract, modify, or escalate privileges within the WordPress database.
CVE-2018-25346 is a SQL injection vulnerability in WordPress Form Maker Plugin versions 1.12.24 and below that allows authenticated attackers to manipulate database queries through the FormMakerSQLMapping and generate_csv actions. Attackers can inject malicious SQL code via POST parameters to extract sensitive data, modify database contents, or escalate privileges. With a CVSS score of 7.1 and no patch available, this poses a significant risk to WordPress installations using vulnerable versions of this plugin.
Immediate Actions:
1. Audit all WordPress installations to identify Form Maker Plugin usage and version numbers
2. Disable the Form Maker Plugin immediately if version 1.12.24 or below is detected
3. Review database access logs and audit trails for suspicious SQL queries or unauthorized data access
4. Check for indicators of compromise: unusual database modifications, privilege escalations, or data exports
Patching Guidance:
1. Since no official patch is available, consider these alternatives:
- Upgrade to a newer version if available (check plugin repository for updates beyond 1.12.24)
- Replace Form Maker Plugin with alternative form plugins that have active security maintenance
- If upgrade is not possible, implement compensating controls (see below)
Compensating Controls:
1. Implement database-level access controls: restrict database user permissions to minimum required privileges
2. Apply Web Application Firewall (WAF) rules to detect and block SQL injection patterns in POST requests targeting FormMakerSQLMapping and generate_csv actions
3. Implement input validation and sanitization at the application level for name and search_labels parameters
4. Enable WordPress security plugins with SQL injection detection capabilities
5. Restrict plugin access to authenticated users only; implement role-based access controls
6. Monitor database query logs for suspicious patterns using SIEM solutions
Detection Rules:
1. Monitor POST requests to wp-admin/admin-ajax.php with action=FormMakerSQLMapping or action=generate_csv
2. Alert on SQL keywords (UNION, SELECT, DROP, INSERT, UPDATE, DELETE) in name and search_labels parameters
3. Track database user privilege changes and unauthorized data access attempts
4. Monitor for unusual database query patterns or performance anomalies
5. Implement IDS/IPS signatures for SQL injection attempts targeting WordPress form plugins
الإجراءات الفورية:
1. تدقيق جميع تثبيتات WordPress لتحديد استخدام مكون Form Maker والإصدارات المستخدمة
2. تعطيل مكون Form Maker فوراً إذا تم اكتشاف الإصدار 1.12.24 أو أقدم
3. مراجعة سجلات الوصول إلى قاعدة البيانات والسجلات التدقيقية للاستعلامات المريبة
4. التحقق من مؤشرات الاختراق: تعديلات قاعدة البيانات غير العادية أو تصعيد الامتيازات
إرشادات التصحيح:
1. نظراً لعدم توفر تصحيح رسمي، يجب النظر في البدائل:
- الترقية إلى إصدار أحدث إن أمكن
- استبدال مكون Form Maker بمكونات بديلة موثوقة
- تطبيق الضوابط التعويضية إذا لم تكن الترقية ممكنة
الضوابط التعويضية:
1. تطبيق ضوابط الوصول على مستوى قاعدة البيانات: تقييد صلاحيات مستخدم قاعدة البيانات
2. تطبيق قواعد جدار الحماية (WAF) للكشف عن محاولات حقن SQL
3. تطبيق التحقق من صحة المدخلات على مستوى التطبيق
4. تفعيل مكونات أمان WordPress المتخصصة
5. تقييد الوصول إلى المكون للمستخدمين المصرح لهم فقط
6. مراقبة سجلات استعلامات قاعدة البيانات باستخدام حلول SIEM
قواعد الكشف:
1. مراقبة طلبات POST إلى wp-admin/admin-ajax.php مع الإجراءات المحددة
2. تنبيهات على كلمات SQL المريبة في المعاملات
3. تتبع تغييرات صلاحيات مستخدم قاعدة البيانات
4. مراقبة أنماط الاستعلامات غير العادية
5. تطبيق توقيعات IDS/IPS لكشف محاولات حقن SQL