Vulnerability in Private Data Endorsement Policy Management in Hyperledger Fabric 2.0
A design flaw in Hyperledger Fabric 2.0's private data endorsement policy allows a malicious private data owner to change private data without agreement from other owners, by obtaining endorsements from unauthorised organisations. This could let a single owner transfer digital assets held as private data without the consent of other owners.
- Triaged in 3 months
- Disclosed after 8 months
To whom it may concern,
We are a research group conducting research on the Hyperledger Fabric. We find a design flaw about the endorsement policy of Private Data related transactions in Hyperledger Fabric 2.0. When private data adopts a default chaincode-level MAJORITY endorsement policy, the design flaw allows arbitrary change of private data by a malicious private data owner with endorsements from unauthorized organizations that do not own the private data.
Please refer to the attached for the attack details.
Please let me know if you have any questions or concerns. If you think it is necessary, we can give you a briefing on the issues. Look forward to your reply!
Best Regards,
Shan Wang, Southeast University Yue Zhang, Jinan University Xinwen Fu, University of Massachusetts, Lowell
Impact
The lack of proper management of endorsement policy is the root cause of our attack. Our attacks may bring security concerns to the private data collection. For example, in a scenario where the private data is a kind of digital asset (i.e., in the case of technology transfer, patents can be configured as private data and maintained by all inventors together), requiring majority endorsements to be transferred. A malicious data owner may perform the assets transferring on its own without other data owners’ agreement.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the chaincode-level MAJORITY endorsement policy for private data does not restrict which organisations may endorse, so endorsements from organisations outside the private data collection are counted.
Impact
A malicious private data owner could change private data, such as transferring a digital asset, without the agreement of the other data owners.
What the attacker needed
Private data uses default MAJORITY policy; attacker is a private data owner; endorsements from non-owner orgs
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
Hyperledger Fabric is a system for keeping shared records (a blockchain) where several organisations cooperate. 'Private data' is a part of that record that only certain organisations are allowed to see and change. The report says the rules for approving changes to private data are too loose, so one owner can make changes using approvals from organisations that are not supposed to have a say.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.