A vulnerability was determined in AstrBotDevs AstrBot up to 4.22.1. Impacted is the function add_mcp_server of the file astrbot/dashboard/routes/tools.py of the component MCP Endpoint. This manipulation of the argument command causes command injection. The attack is possible to be carried out remotely. The exploit has been publicly disclosed and may be utilized. The project was informed of the problem early through an issue report but has not responded yet.
AstrBot versions up to 4.22.1 contain a command injection vulnerability in the MCP Endpoint add_mcp_server function that allows remote attackers to execute arbitrary commands. The vulnerability exists in the tools.py file where the command argument is not properly sanitized.
تؤثر هذه الثغرة على وظيفة add_mcp_server في ملف astrbot/dashboard/routes/tools.py حيث يتم معالجة معامل الأمر بدون تنظيف كافٍ. يمكن للمهاجمين البعيدين استغلال هذه الثغرة لتنفيذ أوامر نظام تعسفية على الخادم المتأثر. تم الإفصاح العلني عن الثغرة ولم يستجب المشروع للإخطار المبكر.
إصدارات AstrBot حتى 4.22.1 تحتوي على ثغرة حقن أوامر في وظيفة add_mcp_server في نقطة نهاية MCP تسمح للمهاجمين البعيدين بتنفيذ أوامر عشوائية. تتواجد الثغرة في ملف tools.py حيث لا يتم تنظيف معامل الأمر بشكل صحيح.
Immediately upgrade AstrBot to version 4.22.2 or later. Implement input validation and sanitization for all command parameters in the MCP Endpoint. Apply principle of least privilege to service accounts running AstrBot. Monitor and restrict network access to the dashboard routes, particularly the tools.py endpoints. Disable MCP server functionality if not required.
قم بالترقية الفورية إلى إصدار AstrBot 4.22.2 أو أحدث. طبق التحقق من صحة المدخلات وتنظيف جميع معاملات الأوامر في نقطة نهاية MCP. طبق مبدأ أقل صلاحية على حسابات الخدمة التي تشغل AstrBot. راقب وقيد الوصول إلى مسارات لوحة التحكم خاصة نقاط نهاية tools.py. عطل وظيفة خادم MCP إذا لم تكن مطلوبة.