Description
Exrick XBoot through 3.3.4 contains an authorization bypass vulnerability that allows authenticated users to read user records of any department by ignoring role data scope. Attackers can request GET /xboot/user/getByDepartmentId/{departmentId} with arbitrary department ids to retrieve usernames, real names, mobile numbers, emails and status.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Exrick | xboot | ≤ 3.3.4 | — |
References
- https://hackmd.io/@hieuPenguinnn/xboot-data-scope-filter-bypass-cross-dept-user-disclosure third-party-advisory
- https://github.com/Exrick/xboot/blob/3.3.4/xboot-fast/src/main/java/cn/exrick/xboot/modules/base/serviceimpl/UserServiceImpl.java#L178-L181 technical-description
- https://github.com/Exrick/xboot/blob/3.3.4/xboot-fast/src/main/java/cn/exrick/xboot/modules/base/controller/manage/UserController.java#L223-L233 technical-description
- VulnCheck Advisory: XBoot through 3.3.4 Authorization Bypass via getByDepartmentId Endpoint third-party-advisory