phpMyChat Plus 1.98 contains a SQL injection vulnerability in the deluser.php page through the pmc_username parameter that allows attackers to manipulate database queries. Attackers can exploit boolean-based, error-based, and time-based blind SQL injection techniques to extract sensitive database information by crafting malicious payloads in the username field.
CVE-2020-37151 is a critical SQL injection vulnerability in phpMyChat Plus 1.98 affecting the deluser.php page through the pmc_username parameter. Attackers can exploit boolean-based, error-based, and time-based blind SQL injection techniques to extract sensitive database information and potentially manipulate database queries. With an available exploit and CVSS score of 8.2, this poses an immediate threat to organizations using this outdated chat application for internal communications.
Immediate Actions:
1. Identify all instances of phpMyChat Plus 1.98 in your environment using network scanning tools
2. Isolate affected systems from production networks if immediate patching is not possible
3. Implement Web Application Firewall (WAF) rules to block SQL injection patterns in the deluser.php endpoint
Patching Guidance:
1. Upgrade phpMyChat Plus to version 1.99 or later immediately
2. If upgrade is not immediately feasible, apply vendor security patches
3. Verify patch installation by checking application version and testing deluser.php functionality
Compensating Controls:
1. Implement input validation and parameterized queries at the application level
2. Apply principle of least privilege to database user accounts
3. Enable database query logging and monitoring for suspicious SQL patterns
4. Restrict access to deluser.php to authorized administrators only via IP whitelisting
Detection Rules:
1. Monitor for SQL keywords (UNION, SELECT, OR, AND) in pmc_username parameter
2. Alert on time-based delays in deluser.php requests (SLEEP, BENCHMARK functions)
3. Track failed database queries and authentication attempts
4. Monitor for unusual database user activity and data extraction patterns
الإجراءات الفورية:
1. تحديد جميع نسخ phpMyChat Plus 1.98 في بيئتك باستخدام أدوات المسح الشبكي
2. عزل الأنظمة المتأثرة عن شبكات الإنتاج إذا لم يكن التصحيح الفوري ممكناً
3. تطبيق قواعد جدار حماية تطبيقات الويب (WAF) لحجب أنماط حقن SQL في نقطة نهاية deluser.php
إرشادات التصحيح:
1. ترقية phpMyChat Plus إلى الإصدار 1.99 أو أحدث فوراً
2. إذا لم يكن الترقية ممكنة فوراً، طبق تصحيحات الأمان من المورد
3. تحقق من تثبيت التصحيح بفحص إصدار التطبيق واختبار وظيفة deluser.php
الضوابط البديلة:
1. تطبيق التحقق من صحة المدخلات والاستعلامات المعاملة على مستوى التطبيق
2. تطبيق مبدأ أقل امتياز على حسابات مستخدمي قاعدة البيانات
3. تفعيل تسجيل الاستعلامات وراقبة قاعدة البيانات للأنماط المريبة
4. تقييد الوصول إلى deluser.php للمسؤولين المصرح لهم فقط عبر القائمة البيضاء للعناوين
قواعد الكشف:
1. مراقبة كلمات SQL الرئيسية (UNION, SELECT, OR, AND) في معامل pmc_username
2. التنبيه على التأخيرات الزمنية في طلبات deluser.php (وظائف SLEEP, BENCHMARK)
3. تتبع استعلامات قاعدة البيانات الفاشلة ومحاولات المصادقة
4. مراقبة نشاط مستخدم قاعدة البيانات غير العادي وأنماط استخراج البيانات