ERPGo SaaS 3.9 contains a CSV injection vulnerability that allows authenticated attackers to execute arbitrary code by injecting formula payloads into vendor name fields. Attackers can add malicious formulas like =10+20+cmd|' /C calc'!A0 in the vendor creation form, which execute when the exported CSV file is opened in spreadsheet applications.
ERPGo SaaS 3.9 contains a critical CSV injection vulnerability (CVE-2023-54348) allowing authenticated attackers to execute arbitrary code through malicious formula injection in vendor name fields. When exported CSV files are opened in spreadsheet applications, embedded formulas execute with user privileges, potentially leading to system compromise. This vulnerability poses significant risk to Saudi organizations using ERPGo for enterprise resource planning, particularly in financial and supply chain operations.
IMMEDIATE ACTIONS:
1. Disable CSV export functionality in ERPGo until patch is available
2. Restrict vendor creation/modification to trusted administrators only
3. Implement input validation: block formula characters (=, +, -, @, tab, carriage return) in vendor name fields
4. Educate users: warn against opening CSV files from untrusted sources and disable formula execution in spreadsheet applications
COMPENSATING CONTROLS:
5. Configure spreadsheet applications (Excel, LibreOffice) to disable automatic formula execution: Set 'Disable all macros except digitally signed macros' and enable 'Show Formula Bar'
6. Implement CSV sanitization: prefix vendor names with single quote (') before export to prevent formula interpretation
7. Export to alternative formats (PDF, XLSX with macro restrictions) instead of CSV
8. Monitor vendor creation logs for suspicious characters and formula patterns
9. Implement network segmentation to limit spreadsheet application access to trusted networks
DETECTION:
10. Create SIEM rules to detect vendor records containing formula characters: =, +, -, @, |, !
11. Monitor CSV file access and modifications in audit logs
12. Alert on vendor names containing command execution patterns (cmd, powershell, bash)
الإجراءات الفورية:
1. تعطيل وظيفة تصدير CSV في ERPGo حتى توفر التصحيح
2. تقييد إنشاء/تعديل الموردين للمسؤولين الموثوقين فقط
3. تطبيق التحقق من المدخلات: حظر أحرف الصيغ (=، +، -، @، علامة تبويب، إرجاع سطر) في حقول أسماء الموردين
4. تثقيف المستخدمين: تحذيرهم من فتح ملفات CSV من مصادر غير موثوقة وتعطيل تنفيذ الصيغ في تطبيقات جداول البيانات
الضوابط البديلة:
5. تكوين تطبيقات جداول البيانات (Excel، LibreOffice) لتعطيل تنفيذ الصيغ التلقائي
6. تطبيق تعقيم CSV: إضافة علامة اقتباس مفردة (') قبل أسماء الموردين قبل التصدير
7. التصدير إلى تنسيقات بديلة (PDF، XLSX مع قيود الماكروهات)
8. مراقبة سجلات إنشاء الموردين للأحرف والأنماط المريبة
9. تطبيق تقسيم الشبكة لتحديد وصول تطبيقات جداول البيانات
الكشف:
10. إنشاء قواعد SIEM للكشف عن سجلات الموردين التي تحتوي على أحرف الصيغ
11. مراقبة وصول ملفات CSV والتعديلات في سجلات التدقيق
12. التنبيه على أسماء الموردين التي تحتوي على أنماط تنفيذ الأوامر