Description
RuoYi-Cloud-Plus through 6.0.0 contains an insecure direct object reference vulnerability that allows authenticated users to delete other users' social login bindings by supplying their socialId. Attackers can send DELETE /auth/unlock/{socialId}, which deletes sys_social rows by primary key without ownership checks, removing victims' OAuth tokens and blocking social login.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| dromara | RuoYi-Cloud-Plus | ≤ 6.0.0 | — |
References
- https://hackmd.io/@1ExmmukzRMWN7B4gQ4W-4Q/ruoyi-cloud-plus-social-unbind-idor third-party-advisory
- https://github.com/dromara/RuoYi-Cloud-Plus/blob/27a79a10e25b120aa33799d0dd4c720d1c8cf631/ruoyi-auth/src/main/java/org/dromara/auth/controller/TokenController.java#L149-L153 technical-description
- https://github.com/dromara/RuoYi-Cloud-Plus/blob/27a79a10e25b120aa33799d0dd4c720d1c8cf631/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/service/impl/SysSocialServiceImpl.java#L111-L113 technical-description
- https://github.com/dromara/RuoYi-Cloud-Plus product
- VulnCheck Advisory: RuoYi-Cloud-Plus through 6.0.0 IDOR via DELETE /auth/unlock/{socialId} third-party-advisory