Vulnerabilities in Endorsement Mechanism of Private Data Related Transactions in Hyperledger Fabric 2.0
A non-member endorser of a private data collection can collude with other endorsers to forge endorsements for read-only transactions, returning fabricated values to the user. The validation process does not check whether endorsers actually hold the private data, so the fake transaction is accepted as valid.
- Disclosed after 8 months
To whom it may concern,
We report design flaws that can be exploited by private data collection non-member organizations to forge endorsements of read-related transactions and return fake values to a user.
When a user issues a read-only transaction proposal to a endorser in the private data collection, if the user has the privilege to read private data, the endorser returns a read set storing <key, version> and a null write set. The value of the key is returned in the "payload" field of the transaction.
When the user issues a read-only transaction proposal to an endorser which is not a member of private data collection, the <key, version> and the value can not be found in the endorser's world state. Therefore, a private data collection non-member endorser cannot endorse such read-related transactions.
However, we find a malicious private data non-member endorser can endorse a read-only transaction proposal for private data and pass the validation by all peers if this non-member endorser colludes with other endorsers, which can be either a private data collection member or non-member endorsers. These malicious endorsers can just return the same read set and payload, which can collaboratively fabricated by these malicious endorsers. Since the validation process does not check if the endorsers have the private data, the transaction will be written into the ledger as valid.
The damage of this attack is the malicious endorsers can return fake values to the user.
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 (Email: [email protected]) Yue Zhang, Jinan University Xinwen Fu, University of Massachusetts, Lowell
Impact
The damage of this attack is the malicious endorsers can return fake values to the user.
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 validation process does not verify that endorsers actually hold the private data.
Impact
Malicious endorsers could return fake values to the user, and the forged transaction is written to the ledger as valid.
What the attacker needed
Attacker controls a non-member endorser; collusion with other endorsers; user issues a read-only private data proposal
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.
In Hyperledger Fabric, a blockchain system, private data is shared only among approved organisations called members. When someone reads private data, a member endorser signs off on the result. This report shows that a non-member endorser, working with other endorsers, can sign off on a fake result and have it accepted, so the user gets made-up data.
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.