IDOR make users can bind any cluster in apache/inlong
Reported on
Apr 17th 2023
Proof of Concept
1 admin create cluster1, cluster2, clusterTag1 and clusterTag2
2 admin add user1 as owner of cluster1,clusterTag1
3 user1 bind clusterTag1 to cluster1
4 user1 use burpsuite hiajck the request
5 the request content can be
{"clusterTag":"biaoqia4","bindClusters":[1]}
6 change the request content:
{"clusterTag":"biaoqia4","bindClusters":[1,2]}
2 is the id of cluster2. user1 is not the owner of cluster2.
7 result:
{"success":true,"errMsg":null,"data":true}
Impact
attack can bind any cluster, even the he is not the owner of the cluster.
The team accepts 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 CVE-2023-31454: https://www.cve.org/CVERecord?id=CVE-2023-31454