IDOR make users can delete others' subscription in apache/inlong
Reported on
Apr 17th 2023
Proof of Concept
1 user1 create subscription1
2 user2 create subscription2
3 user2 delete subscription2
4 user2 use burpsuite hiajck the request
5 the request URL can be DELETE /inlong/manager/api/consume/delete/2
6 change the request :DELETE /inlong/manager/api/consume/delete/1
1 is the id of subscription1. user2 is not the owner of subscription2.
7 result:
{"success":true,"errMsg":null,"data":true}
Impact
attacker can delete others' subscription, even they are not the owner of the deleted subscription
So it was not a seucrity issuse? And thus can we mark it as informative?
The team does accept this report as a security vulnerability, and is planning to issue a CVE for it. There is a tentative fix at https://github.com/apache/inlong/pull/7949 , if you have a chance we would much appreciate your review. We'd appreciate it if you'd keep this issue private until we have released a version with the fix and disclosed the CVE.
This issue was disclosed as https://www.cve.org/CVERecord?id=CVE-2023-31453