prompts.chat prior to commit 0f8d4c3 contains a path traversal vulnerability in skill file handling that allows attackers to write arbitrary files to the client system by crafting malicious ZIP archives with unsanitized filenames containing path traversal sequences. Attackers can exploit missing server-side filename validation to inject path traversal sequences ../ into skill file archives, which when extracted by vulnerable tools write files outside the intended directory and overwrite shell initialization files to achieve code execution.
CVE-2026-22661 is a critical path traversal vulnerability in prompts.chat that allows attackers to write arbitrary files to client systems through malicious ZIP archives with unsanitized filenames. By exploiting missing server-side validation, attackers can inject path traversal sequences to overwrite shell initialization files and achieve remote code execution. With a CVSS score of 8.1 and no patch currently available, this poses an immediate threat to organizations using prompts.chat for skill file management.
IMMEDIATE ACTIONS:
1. Audit all systems running prompts.chat to identify deployment scope and criticality
2. Implement network-level controls to restrict prompts.chat from downloading or processing ZIP files from untrusted sources
3. Disable prompts.chat skill file upload/import functionality until patch is available
4. Monitor for suspicious file creation in shell initialization directories (~/.bashrc, ~/.bash_profile, ~/.zshrc, /etc/profile.d/)
COMPENSATING CONTROLS:
1. Implement strict file integrity monitoring on shell initialization files using AIDE or Tripwire
2. Apply principle of least privilege - run prompts.chat processes with minimal required permissions
3. Use AppArmor or SELinux profiles to restrict file write access outside designated directories
4. Enable audit logging for all file operations in /home and /root directories
5. Implement ZIP file validation: extract to temporary directory, validate all extracted paths against whitelist before moving to production
DETECTION RULES:
1. Monitor for ZIP extraction attempts with filenames containing "../" sequences
2. Alert on file modifications to ~/.bashrc, ~/.bash_profile, ~/.zshrc, /etc/profile.d/ from prompts.chat processes
3. Track unusual process spawning from shell initialization files
4. Log all prompts.chat API calls related to skill file handling
PATCHING:
1. Contact prompts.chat vendor for patch timeline and interim security updates
2. Prepare rollback procedures for prompts.chat deployment
3. Plan migration to alternative platforms if vendor cannot provide timely patch
الإجراءات الفورية:
1. تدقيق جميع الأنظمة التي تقوم بتشغيل prompts.chat لتحديد نطاق النشر والحرجية
2. تنفيذ عناصر تحكم على مستوى الشبكة لتقييد prompts.chat من تنزيل أو معالجة ملفات ZIP من مصادر غير موثوقة
3. تعطيل وظيفة تحميل/استيراد ملفات مهارات prompts.chat حتى يتوفر التصحيح
4. مراقبة إنشاء الملفات المريبة في دلائل تهيئة الأصداف
عناصر التحكم التعويضية:
1. تنفيذ مراقبة سلامة الملفات الصارمة على ملفات تهيئة الأصداف باستخدام AIDE أو Tripwire
2. تطبيق مبدأ أقل امتياز - تشغيل عمليات prompts.chat بأقل صلاحيات مطلوبة
3. استخدام ملفات تعريف AppArmor أو SELinux لتقييد الوصول للكتابة خارج الدلائل المخصصة
4. تفعيل تسجيل التدقيق لجميع عمليات الملفات في دلائل /home و /root
5. تنفيذ التحقق من صحة ملفات ZIP: الاستخراج إلى دليل مؤقت، التحقق من جميع المسارات المستخرجة مقابل قائمة بيضاء
قواعد الكشف:
1. مراقبة محاولات استخراج ZIP بأسماء ملفات تحتوي على تسلسلات "../"
2. تنبيهات على تعديلات الملفات في ملفات تهيئة الأصداف من عمليات prompts.chat
3. تتبع توليد العمليات غير المعتادة من ملفات تهيئة الأصداف
4. تسجيل جميع استدعاءات API الخاصة بـ prompts.chat المتعلقة بمعالجة ملفات المهارات