WeKan before 8.35 contains a server-side request forgery vulnerability in webhook integration URL handling where the url schema field accepts any string without protocol restriction or destination validation. Attackers who can create or modify integrations can set webhook URLs to internal network addresses, causing the server to issue HTTP POST requests to attacker-controlled internal targets with full board event payloads, and can additionally exploit response handling to overwrite arbitrary comment text without authorization checks.
WeKan before version 8.35 contains a critical server-side request forgery (SSRF) vulnerability in webhook URL handling that allows attackers with integration privileges to redirect internal HTTP requests to arbitrary network targets and manipulate board data without authorization. The vulnerability lacks protocol validation and destination filtering, enabling attackers to access internal services, exfiltrate sensitive board event data, and modify comments across the platform. This poses significant risk to organizations using WeKan for project management and collaboration, particularly in sensitive sectors handling confidential information.
IMMEDIATE ACTIONS:
1. Disable webhook functionality in WeKan until patch is available
2. Audit all existing webhook integrations and remove any pointing to internal network addresses (10.x.x.x, 172.16-31.x.x, 192.168.x.x, localhost, 127.0.0.1)
3. Review access logs for suspicious webhook creation/modification activities
4. Restrict integration creation permissions to trusted administrators only
COMPENSATING CONTROLS (until patch available):
5. Implement network-level controls: block outbound HTTP/HTTPS from WeKan server to internal network ranges using firewall rules
6. Deploy WAF rules to detect and block webhook URL patterns containing internal IP addresses or localhost references
7. Implement egress filtering on WeKan server to prevent connections to RFC1918 addresses
8. Enable detailed logging of all webhook creation, modification, and execution events
9. Implement webhook URL validation at application level using regex to reject internal addresses
DETECTION RULES:
10. Monitor for webhook URLs containing: 127.0.0.1, localhost, 10., 172.16-31., 192.168., file://, gopher://, dict://, ldap://, tftp://
11. Alert on any comment modifications without corresponding user action in audit logs
12. Track outbound connections from WeKan process to internal network ranges
13. Monitor for unusual HTTP POST requests from WeKan server to internal services
PATCHING:
14. Subscribe to WeKan security advisories and upgrade to version 8.35 or later immediately upon release
15. Test patch in isolated environment before production deployment
الإجراءات الفورية:
1. تعطيل وظيفة webhook في WeKan حتى يتوفر التصحيح
2. تدقيق جميع تكاملات webhook الموجودة وإزالة أي منها يشير إلى عناوين الشبكة الداخلية (10.x.x.x, 172.16-31.x.x, 192.168.x.x, localhost, 127.0.0.1)
3. مراجعة سجلات الوصول للأنشطة المريبة في إنشاء/تعديل webhook
4. تقييد أذونات إنشاء التكامل للمسؤولين الموثوقين فقط
الضوابط البديلة (حتى يتوفر التصحيح):
5. تنفيذ ضوابط على مستوى الشبكة: حظر الاتصالات الصادرة HTTP/HTTPS من خادم WeKan إلى نطاقات الشبكة الداخلية باستخدام قواعد جدار الحماية
6. نشر قواعد WAF للكشف عن أنماط عناوين URL للويب هوك التي تحتوي على عناوين IP داخلية أو مراجع localhost
7. تنفيذ تصفية الخروج على خادم WeKan لمنع الاتصالات بعناوين RFC1918
8. تفعيل تسجيل مفصل لجميع أحداث إنشاء وتعديل وتنفيذ webhook
9. تنفيذ التحقق من صحة عنوان URL للويب هوك على مستوى التطبيق باستخدام regex لرفض العناوين الداخلية
قواعد الكشف:
10. مراقبة عناوين URL للويب هوك التي تحتوي على: 127.0.0.1, localhost, 10., 172.16-31., 192.168., file://, gopher://, dict://, ldap://, tftp://
11. تنبيه عند أي تعديلات على التعليقات بدون إجراء مستخدم مقابل في سجلات التدقيق
12. تتبع الاتصالات الصادرة من عملية WeKan إلى نطاقات الشبكة الداخلية
13. مراقبة طلبات HTTP POST غير العادية من خادم WeKan إلى الخدمات الداخلية
التصحيح:
14. الاشتراك في تنبيهات أمان WeKan والترقية إلى الإصدار 8.35 أو أحدث فوراً عند توفره
15. اختبار التصحيح في بيئة معزولة قبل نشره في الإنتاج