A vulnerability was determined in indrasishbanerjee aem-mcp-server up to b5f833aef9b5dfd17a5991b3b18a8a11edbdc583. This impacts the function getAssetMetadata of the file src/mcp-server.ts of the component Axios Request Flow. Executing a manipulation of the argument assetPath can lead to server-side request forgery. The attack can be launched remotely. The exploit has been publicly disclosed and may be utilized. This product does not use versioning. This is why information about affected and unaffected releases are unavailable. The project was informed of the problem early through an issue report but has not responded yet.
A server-side request forgery (SSRF) vulnerability exists in the aem-mcp-server component's getAssetMetadata function, allowing remote attackers to manipulate the assetPath parameter to forge arbitrary server requests. With a CVSS score of 6.3 and publicly disclosed exploit details, this poses a moderate risk to organizations using this component. No patch is currently available, requiring immediate compensating controls and architectural review.
IMMEDIATE ACTIONS:
1. Inventory all systems using aem-mcp-server component and identify instances with exposed getAssetMetadata endpoints
2. Implement network-level controls: restrict outbound connections from AEM servers to only necessary internal/external services
3. Deploy Web Application Firewall (WAF) rules to detect and block suspicious assetPath parameters containing internal IP ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, 127.0.0.1) or metadata service endpoints (169.254.169.254)
COMPENSATING CONTROLS:
4. Implement strict input validation: whitelist allowed assetPath values and reject any containing protocol schemes (http://, https://, file://, gopher://, etc.)
5. Disable or restrict access to getAssetMetadata endpoint if not actively used; implement authentication/authorization checks
6. Configure firewall rules to prevent AEM servers from accessing internal services (databases, admin panels, cloud metadata services)
7. Monitor outbound connections from AEM instances for anomalous destinations
DETECTION:
8. Log all requests to getAssetMetadata with full parameter values
9. Alert on assetPath parameters containing: IP addresses, localhost references, internal domain names, or protocol schemes
10. Monitor for HTTP 200 responses with unusual content types or sizes from getAssetMetadata
LONG-TERM:
11. Evaluate alternative components or request security patch from indrasishbanerjee project
12. Consider code review of aem-mcp-server implementation for additional SSRF vectors
الإجراءات الفورية:
1. حصر جميع الأنظمة التي تستخدم مكون aem-mcp-server وتحديد الحالات ذات نقاط نهاية getAssetMetadata المكشوفة
2. تطبيق ضوابط على مستوى الشبكة: تقييد الاتصالات الصادرة من خوادم AEM إلى الخدمات الداخلية/الخارجية الضرورية فقط
3. نشر قواعد جدار حماية تطبيقات الويب (WAF) للكشف عن حجب معاملات assetPath المريبة التي تحتوي على نطاقات IP الداخلية أو نقاط نهاية خدمات البيانات الوصفية
الضوابط التعويضية:
4. تطبيق التحقق الصارم من المدخلات: إدراج قيم assetPath المسموحة في قائمة بيضاء ورفض أي منها يحتوي على مخططات بروتوكول
5. تعطيل أو تقييد الوصول إلى نقطة نهاية getAssetMetadata إذا لم تكن قيد الاستخدام النشط
6. تكوين قواعد جدار الحماية لمنع خوادم AEM من الوصول إلى الخدمات الداخلية
7. مراقبة الاتصالات الصادرة من حالات AEM للكشف عن الوجهات الشاذة
الكشف:
8. تسجيل جميع الطلبات إلى getAssetMetadata مع قيم المعاملات الكاملة
9. التنبيه على معاملات assetPath التي تحتوي على عناوين IP أو مراجع localhost أو أسماء نطاقات داخلية
10. مراقبة استجابات HTTP 200 ذات أنواع محتوى أو أحجام غير عادية
المدى الطويل:
11. تقييم المكونات البديلة أو طلب تصحيح أمني من مشروع indrasishbanerjee
12. النظر في مراجعة الكود لتطبيق aem-mcp-server للبحث عن متجهات SSRF إضافية