| عنوان | Casdoor v2.356.0 Improper Access Controls |
|---|
| الوصف | Casbin Policy Allows Anonymous Access to Sensitive Endpoints
**Evidence:** The Casbin authorization policy contains overly broad wildcard rules:
```
p, *, *, POST, /api/upload-resource, *, * // Anyone can upload files
p, *, *, POST, /api/set-password, *, * // Anyone can attempt password changes
p, *, *, *, /scim, *, * // SCIM open to all at policy level
p, *, *, GET, /api/get-user, *, * // Anyone can query users
```
While some endpoints have secondary auth checks in controllers, the defense-in-depth principle is violated. The `/api/upload-resource` being open to anonymous users at the policy level is especially concerning given the path traversal history.
**Fix:** Tighten Casbin policies to require authentication for sensitive endpoints. Use `p, *, *, POST, /api/upload-resource, *, *` should become `p, authenticated, *, POST, /api/upload-resource, *, *` at minimum.
--- |
|---|
| المستخدم | Ghufran Khan (UID 95493) |
|---|
| ارسال | 17/03/2026 02:26 PM (6 أشهر منذ) |
|---|
| الاعتدال | 03/04/2026 09:26 AM (17 days later) |
|---|
| الحالة | مكرر |
|---|
| إدخال VulDB | 208210 [Casdoor 1.97.3 /api/upload-resource fullFilePath تجاوز الصلاحيات] |
|---|
| النقاط | 0 |
|---|