A flaw has been found in elecV2 elecV2P up to 3.8.3. This issue affects the function pm2run of the file /rpc. Executing a manipulation can lead to os command injection. The attack can be executed remotely. The exploit has been published and may be used. The project was informed of the problem early through an issue report but has not responded yet.
A critical OS command injection vulnerability exists in elecV2P versions up to 3.8.3 affecting the pm2run function in the /rpc endpoint. This remotely exploitable flaw (CVSS 7.3) allows unauthenticated attackers to execute arbitrary system commands with the privileges of the application process. With published exploit details and no available patch, this poses an immediate threat to organizations using this automation platform.
IMMEDIATE ACTIONS:
1. Identify all instances of elecV2P running in your environment, particularly versions ≤3.8.3
2. Isolate affected systems from production networks or restrict access to /rpc endpoint
3. Implement network-level access controls: block external access to elecV2P instances, restrict to trusted IPs only
4. Monitor for exploitation attempts using IDS/IPS signatures for /rpc endpoint access patterns
COMPENSATING CONTROLS (until patch available):
5. Deploy WAF rules to block requests to /rpc endpoint containing shell metacharacters (|, ;, &, $, `, etc.)
6. Implement reverse proxy authentication in front of elecV2P
7. Run elecV2P with minimal privileges (non-root user, restricted system permissions)
8. Enable comprehensive logging of all /rpc requests and system command execution
DETECTION:
9. Search logs for POST/GET requests to /rpc endpoint with parameters containing: pm2run, command injection patterns
10. Monitor process execution logs for unexpected child processes spawned by elecV2P
11. Alert on any outbound connections from elecV2P process to external IPs
LONG-TERM:
12. Plan migration to alternative automation platforms or await vendor security response
13. Establish vendor communication protocol for security updates
الإجراءات الفورية:
1. تحديد جميع نسخ elecV2P قيد التشغيل في بيئتك، خاصة الإصدارات ≤3.8.3
2. عزل الأنظمة المتأثرة عن شبكات الإنتاج أو تقييد الوصول إلى نقطة النهاية /rpc
3. تطبيق عناصر التحكم في الوصول على مستوى الشبكة: حظر الوصول الخارجي إلى نسخ elecV2P، تقييد الوصول إلى عناوين IP موثوقة فقط
4. مراقبة محاولات الاستغلال باستخدام توقيعات IDS/IPS لأنماط وصول نقطة النهاية /rpc
عناصر التحكم التعويضية (حتى توفر التصحيح):
5. نشر قواعد WAF لحظر الطلبات إلى نقطة النهاية /rpc التي تحتوي على أحرف shell (|، ;، &، $، `، إلخ)
6. تطبيق المصادقة بواسطة reverse proxy أمام elecV2P
7. تشغيل elecV2P بامتيازات دنيا (مستخدم غير جذر، أذونات نظام مقيدة)
8. تفعيل تسجيل شامل لجميع طلبات /rpc وتنفيذ أوامر النظام
الكشف:
9. البحث في السجلات عن طلبات POST/GET إلى نقطة النهاية /rpc تحتوي على معاملات: pm2run، أنماط حقن الأوامر
10. مراقبة سجلات تنفيذ العملية للعمليات الفرعية غير المتوقعة التي يتم إطلاقها بواسطة elecV2P
11. تنبيه على أي اتصالات خارجة من عملية elecV2P إلى عناوين IP خارجية
المدى الطويل:
12. التخطيط للهجرة إلى منصات أتمتة بديلة أو انتظار استجابة الأمان من المورد
13. إنشاء بروتوكول اتصال المورد لتحديثات الأمان