MGB OpenSource Guestbook 0.7.0.2 contains an SQL injection vulnerability that allows unauthenticated attackers to execute arbitrary SQL queries by injecting malicious code through the 'id' parameter. Attackers can send GET requests to email.php with crafted SQL payloads in the 'id' parameter to extract sensitive database information including table and column names.
CVE-2018-25411 is a critical SQL injection vulnerability in MGB OpenSource Guestbook 0.7.0.2 that allows unauthenticated attackers to execute arbitrary SQL queries through the 'id' parameter in email.php. With a CVSS score of 8.2, this vulnerability enables complete database compromise including extraction of sensitive data, user credentials, and system information. The lack of available patches and no authentication requirement make this a high-risk vulnerability for any organization still running this legacy software.
Immediate Actions:
1. Identify all systems running MGB OpenSource Guestbook 0.7.0.2 or earlier versions through network scanning and asset inventory
2. Isolate affected systems from production networks if still in use
3. Disable or restrict access to email.php and guestbook functionality immediately
4. Review database access logs for suspicious SQL queries or data extraction attempts
Patching Guidance:
1. Since no official patch is available, discontinue use of MGB OpenSource Guestbook immediately
2. Migrate to actively maintained guestbook solutions or modern feedback systems
3. If migration is not immediately possible, implement Web Application Firewall (WAF) rules to block SQL injection patterns
Compensating Controls:
1. Implement input validation and parameterized queries at application level
2. Apply WAF rules blocking SQL keywords in 'id' parameter (UNION, SELECT, DROP, INSERT, etc.)
3. Restrict database user permissions to read-only access where possible
4. Enable database query logging and monitoring for suspicious activity
5. Implement rate limiting on email.php endpoint
6. Use database activity monitoring (DAM) solutions to detect anomalous queries
Detection Rules:
1. Monitor for GET requests to email.php with SQL keywords in 'id' parameter
2. Alert on database queries containing UNION, SELECT, OR 1=1, SLEEP(), BENCHMARK() patterns
3. Track failed authentication attempts and unusual database access patterns
4. Monitor for extraction of system tables (information_schema, mysql.user, etc.)
الإجراءات الفورية:
1. تحديد جميع الأنظمة التي تقوم بتشغيل MGB OpenSource Guestbook 0.7.0.2 أو الإصدارات الأقدم من خلال المسح الشبكي وجرد الأصول
2. عزل الأنظمة المتأثرة عن شبكات الإنتاج إن أمكن
3. تعطيل أو تقييد الوصول إلى email.php ووظائف دفتر الزوار فوراً
4. مراجعة سجلات الوصول إلى قاعدة البيانات للبحث عن استعلامات SQL المريبة أو محاولات استخراج البيانات
إرشادات التصحيح:
1. بما أنه لا يوجد تصحيح رسمي، توقف عن استخدام MGB OpenSource Guestbook فوراً
2. الهجرة إلى حلول دفتر الزوار التي يتم صيانتها بنشاط أو أنظمة تعليقات حديثة
3. إذا لم تكن الهجرة ممكنة على الفور، قم بتطبيق قواعد جدار حماية تطبيقات الويب (WAF) لحجب أنماط حقن SQL
الضوابط البديلة:
1. تطبيق التحقق من صحة المدخلات والاستعلامات المعاملة على مستوى التطبيق
2. تطبيق قواعد WAF لحجب كلمات SQL في معامل 'id' (UNION, SELECT, DROP, INSERT, إلخ)
3. تقييد أذونات مستخدم قاعدة البيانات للوصول للقراءة فقط حيث أمكن
4. تفعيل تسجيل استعلامات قاعدة البيانات والمراقبة للنشاط المريب
5. تطبيق تحديد معدل على نقطة نهاية email.php
6. استخدام حلول مراقبة نشاط قاعدة البيانات (DAM) للكشف عن الاستعلامات الشاذة
قواعد الكشف:
1. مراقبة طلبات GET إلى email.php التي تحتوي على كلمات SQL في معامل 'id'
2. تنبيهات على استعلامات قاعدة البيانات التي تحتوي على أنماط UNION, SELECT, OR 1=1, SLEEP(), BENCHMARK()
3. تتبع محاولات المصادقة الفاشلة والأنماط غير العادية للوصول إلى قاعدة البيانات
4. مراقبة استخراج جداول النظام (information_schema, mysql.user, إلخ)