Description
lamp-boot 4.16.0-java17 through 4.21.2-java17 contains an insecure direct object reference vulnerability in the oauth module's /anyone/findDeptByCompany endpoint that skips URI permission checks. Authenticated low-privilege users can iterate sequential employeeId values to read every employee's department membership within the tenant.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| zuihou | lamp-boot | 4.16.0-java17 – ≤ 4.21.2-java17 | — |
References
- https://hackmd.io/@hieuPenguinnn/lamp-boot-finddeptbycompany-employee-idor technical-description exploit
- https://github.com/zuihou/lamp-boot/blob/ddef8c71de970b915ba1b15e0e9c2dd7414074de/lamp-oauth/lamp-oauth-controller/src/main/java/top/tangyh/lamp/oauth/controller/UserInfoController.java#L167 technical-description
- https://github.com/zuihou/lamp-boot product
- VulnCheck Advisory: lamp-boot 4.16.0-java17 through 4.21.2-java17 IDOR via /anyone/findDeptByCompany third-party-advisory