Open hats-bug-reporter[bot] opened 3 months ago
packages/contracts/contracts/illuminex/xengine/chains/btc/wallet/BitcoinAbstractWallet.sol
who import:
packages/contracts/contracts/illuminex/xengine/chains/btc/interfaces/IBitcoinDepositProcessingCallback.sol
who import:
packages/contracts/contracts/illuminex/xengine/chains/btc/BitcoinUtils.sol
who import:
packages/contracts/contracts/illuminex/Endian.sol
Github username: -- Twitter username: -- Submission hash (on-chain): 0x25630ba66ecc3b11405a1b8c885f6a9b9aec70436918b6f65ad32e7aad69176a Severity: low
Description: Description\ The BitcoinAbstractWallet.sol contract uses the Endian library within the _generateAddress function. However, the Endian library is neither imported nor inherited in the contract, which will result in a compilation error.
Attack Scenario\ File packages/contracts/contracts/illuminex/xengine/chains/btc/wallet/BitcoinAbstractWallet.sol
Attachments
Proof of Concept (PoC) File
https://github.com/illumineXswap/xengine-btc/blob/db34511e17fdf281aacef4267c300431d3ac12d7/packages/contracts/contracts/illuminex/xengine/chains/btc/wallet/BitcoinAbstractWallet.sol
Revised Code File (Optional)