Press, a Frappe custom app that runs Frappe Cloud, manages infrastructure, subscription, marketplace, and software-as-a-service (SaaS).`press.api.account.create_api_secret` is prone to CSRF-like exploits. This endpoint writes to database and it is also accessible via GET method. The patch in commit 52ea2f2d1b587be0807557e96f025f47897d00fd restricts method to POST.
CVE-2026-41317 is a CSRF vulnerability in Frappe Press affecting the API secret creation endpoint, which accepts GET requests despite performing database writes. This allows attackers to trigger unintended API secret creation through crafted requests, potentially compromising authentication mechanisms in SaaS environments. The vulnerability affects all Frappe Press versions until patched, with high severity due to direct impact on API security and account compromise risks.
1. IMMEDIATE: Identify all Frappe Press instances in your environment and verify current version
2. Apply the security patch from commit 52ea2f2d1b587be0807557e96f025f47897d00fd immediately
3. Upgrade to the latest patched version of Frappe Press
4. COMPENSATING CONTROLS (if immediate patching not possible):
- Implement WAF rules to block GET requests to /api/account/create_api_secret endpoint
- Enforce CSRF tokens on all state-changing operations
- Implement SameSite cookie attributes (Strict)
5. DETECTION: Monitor access logs for GET requests to create_api_secret endpoint; alert on any successful responses
6. REMEDIATION: Audit all API secrets created in the past 90 days; revoke suspicious credentials
7. Review and rotate all API keys and secrets post-patch
8. Implement request method validation at application and WAF levels
1. فوري: حدد جميع مثيلات Frappe Press في بيئتك والتحقق من الإصدار الحالي
2. طبق رقعة الأمان من commit 52ea2f2d1b587be0807557e96f025f47897d00fd فوراً
3. قم بالترقية إلى أحدث إصدار مصحح من Frappe Press
4. الضوابط التعويضية (إذا لم يكن الإصلاح الفوري ممكناً):
- طبق قواعد WAF لحظر طلبات GET إلى نقطة نهاية /api/account/create_api_secret
- فرض رموز CSRF على جميع العمليات التي تغير الحالة
- طبق سمات ملفات تعريف الارتباط SameSite (صارم)
5. الكشف: راقب سجلات الوصول لطلبات GET إلى نقطة نهاية create_api_secret؛ تنبيه على أي استجابات ناجحة
6. الإصلاح: تدقيق جميع أسرار API التي تم إنشاؤها في آخر 90 يوماً؛ إلغاء بيانات الاعتماد المريبة
7. مراجعة وتدوير جميع مفاتيح API والأسرار بعد الإصلاح
8. طبق التحقق من طريقة الطلب على مستويات التطبيق و WAF