OpenSTAManager is an open source management software for technical assistance and invoicing. In 2.9.8 and earlier, an SQL Injection vulnerability exists in the ajax_select.php endpoint when handling the componenti operation. An authenticated attacker can inject malicious SQL code through the options[matricola] parameter.
OpenSTAManager versions 2.9.8 and earlier contain a critical SQL Injection vulnerability in the ajax_select.php endpoint that allows authenticated attackers to execute arbitrary SQL commands through the options[matricola] parameter. This vulnerability poses significant risk to organizations using OpenSTAManager for technical assistance and invoicing operations. Immediate patching is required as exploits are publicly available.
IMMEDIATE ACTIONS:
1. Identify all instances of OpenSTAManager running version 2.9.8 or earlier across your organization
2. Restrict access to ajax_select.php endpoint to trusted IP addresses only using WAF or network controls
3. Review access logs for suspicious SQL patterns in the options[matricola] parameter
4. Implement input validation and parameterized queries at the application level
PATCHING:
1. Upgrade OpenSTAManager to version 2.9.9 or later immediately
2. Test patches in a staging environment before production deployment
3. Verify patch application by checking version numbers and reviewing changelog
COMPENSATING CONTROLS (if immediate patching not possible):
1. Implement Web Application Firewall (WAF) rules to block SQL injection patterns in ajax_select.php
2. Apply database-level restrictions: use least-privilege database accounts, disable dangerous functions (LOAD_FILE, INTO OUTFILE)
3. Enable SQL query logging and monitoring for anomalous patterns
4. Implement rate limiting on ajax_select.php endpoint
DETECTION:
1. Monitor for SQL keywords in options[matricola] parameter: UNION, SELECT, DROP, INSERT, UPDATE, DELETE, EXEC, SCRIPT
2. Alert on multiple failed database queries from single user session
3. Track unusual database activity patterns during business hours
4. Log all authentication events to ajax_select.php endpoint
الإجراءات الفورية:
1. تحديد جميع نسخ OpenSTAManager التي تعمل بالإصدار 2.9.8 أو أقدم عبر المنظمة
2. تقييد الوصول إلى نقطة نهاية ajax_select.php للعناوين الموثوقة فقط باستخدام جدار الحماية أو عناصر التحكم في الشبكة
3. مراجعة سجلات الوصول للأنماط المريبة في معامل options[matricola]
4. تطبيق التحقق من صحة المدخلات والاستعلامات المعاملة على مستوى التطبيق
تطبيق التصحيحات:
1. ترقية OpenSTAManager إلى الإصدار 2.9.9 أو أحدث فوراً
2. اختبار التصحيحات في بيئة التجريب قبل نشرها في الإنتاج
3. التحقق من تطبيق التصحيح بفحص أرقام الإصدارات ومراجعة السجل
عناصر التحكم البديلة (إذا لم يكن الترقية الفورية ممكنة):
1. تطبيق قواعد جدار حماية تطبيقات الويب لحجب أنماط حقن SQL في ajax_select.php
2. تطبيق القيود على مستوى قاعدة البيانات: استخدام حسابات قاعدة البيانات ذات الامتيازات الأقل، تعطيل الوظائف الخطرة
3. تفعيل تسجيل الاستعلامات والمراقبة لأنماط غير عادية
4. تطبيق تحديد معدل على نقطة نهاية ajax_select.php
الكشف:
1. مراقبة كلمات SQL في معامل options[matricola]: UNION, SELECT, DROP, INSERT, UPDATE, DELETE
2. التنبيه على استعلامات قاعدة البيانات الفاشلة المتعددة من جلسة مستخدم واحدة
3. تتبع أنماط نشاط قاعدة البيانات غير العادية
4. تسجيل جميع أحداث المصادقة إلى نقطة نهاية ajax_select.php