Problem in the Small HTTP Server v3.06.36 service. An authenticated path traversal vulnerability in '/' allows remote users to bypass the intended restrictions of SecurityManager and display any file if they have the appropriate permissions outside the document root configured on the server.
CVE-2025-41368 is a high-severity authenticated path traversal vulnerability in Small HTTP Server v3.06.36 that allows authorized users to bypass SecurityManager restrictions and access files outside the configured document root. With a CVSS score of 8.1 and no available patch, this poses significant risk to organizations using this server for sensitive file hosting. The vulnerability requires authentication but enables complete file system disclosure to authenticated attackers.
IMMEDIATE ACTIONS:
1. Inventory all instances of Small HTTP Server v3.06.36 across your organization and document their purpose and hosted content sensitivity
2. Implement strict access controls limiting authentication to trusted users only; review and revoke unnecessary user accounts
3. Deploy network segmentation to restrict access to affected servers from untrusted networks
4. Enable comprehensive logging and monitoring of all file access attempts on affected servers
COMPENSATING CONTROLS (no patch available):
5. Implement Web Application Firewall (WAF) rules to detect and block path traversal patterns (../, ..\, encoded variants) in HTTP requests
6. Configure SecurityManager with maximum restrictive permissions; disable directory listing
7. Use reverse proxy (nginx/Apache) in front of Small HTTP Server to enforce strict path validation and block traversal attempts
8. Implement file integrity monitoring (FIM) on sensitive files to detect unauthorized access
9. Restrict file system permissions at OS level to prevent access to sensitive directories
10. Consider migrating to actively maintained HTTP server alternatives (Apache, nginx, IIS)
DETECTION RULES:
- Monitor for HTTP requests containing: %2e%2e, %252e, ../, ..\ patterns in URI
- Alert on authentication followed by file access outside configured document root
- Track failed SecurityManager validation events in application logs
- Monitor for unusual file access patterns from authenticated sessions
الإجراءات الفورية:
1. قم بحصر جميع نسخ خادم HTTP الصغير v3.06.36 في مؤسستك وتوثيق غرضها وحساسية المحتوى المستضاف
2. تطبيق ضوابط وصول صارمة تقصر المصادقة على المستخدمين الموثوقين فقط؛ مراجعة وإلغاء حسابات المستخدمين غير الضرورية
3. نشر تقسيم الشبكة لتقييد الوصول إلى الخوادم المتأثرة من الشبكات غير الموثوقة
4. تفعيل السجلات الشاملة ومراقبة جميع محاولات الوصول إلى الملفات على الخوادم المتأثرة
الضوابط البديلة (لا يوجد تصحيح متاح):
5. تطبيق قواعد جدار حماية تطبيقات الويب (WAF) للكشف عن أنماط اجتياز المسار وحجبها (../, ..\, المتغيرات المشفرة)
6. تكوين مدير الأمان بأقصى أذونات مقيدة؛ تعطيل قائمة الدليل
7. استخدام وكيل عكسي (nginx/Apache) أمام خادم HTTP الصغير لفرض التحقق الصارم من المسار وحجب محاولات الاجتياز
8. تطبيق مراقبة سلامة الملفات (FIM) على الملفات الحساسة للكشف عن الوصول غير المصرح به
9. تقييد أذونات نظام الملفات على مستوى نظام التشغيل لمنع الوصول إلى الدلائل الحساسة
10. النظر في الترحيل إلى بدائل خادم HTTP التي يتم صيانتها بنشاط (Apache, nginx, IIS)
قواعد الكشف:
- مراقبة طلبات HTTP التي تحتوي على: %2e%2e, %252e, ../, ..\ في URI
- تنبيه عند المصادقة متبوعة بالوصول إلى الملفات خارج جذر المستند المكون
- تتبع أحداث فشل التحقق من مدير الأمان في سجلات التطبيق
- مراقبة أنماط الوصول إلى الملفات غير العادية من جلسات المصادقة