BSV Ruby SDK is the Ruby SDK for the BSV blockchain. From 0.3.1 to before 0.8.2, BSV::Wallet::WalletClient#acquire_certificate persists certificate records to storage without verifying the certifier's signature over the certificate contents. In acquisition_protocol: 'direct', the caller supplies all certificate fields (including signature:) and the record is written to storage verbatim. In acquisition_protocol: 'issuance', the client POSTs to a certifier URL and writes whatever signature the response body contains, also without verification. An attacker who can reach either API (or who controls a certifier endpoint targeted by the issuance path) can forge identity certificates that subsequently appear authentic to list_certificates and prove_certificate.
Summary
AIBSV::Wallet::WalletClient#acquire_certificate stores certificates without verifying the certifier’s signature. An attacker who can reach the API, or who controls a certifier endpoint used by the issuance path, can supply a forged certificate that later appears authentic to list_certificates and prove_certificate.
Who should check
Check installations of RubyGems bsv-sdk versions >=0.3.1 and <0.8.2, and bsv-wallet versions >=0.1.2 and <0.3.4.
What to do
- 1Upgrade bsv-sdk to 0.8.2 and bsv-wallet to 0.3.4.