| 标题 | 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) |
|---|
| 提交 | 2026-03-17 14時26分 (7 月前) |
|---|
| 管理 | 2026-04-03 09時26分 (17 days later) |
|---|
| 状态 | 重复 |
|---|
| VulDB条目 | 208210 [Casdoor 1.97.3 /api/upload-resource fullFilePath 权限提升] |
|---|
| 积分 | 0 |
|---|