Skip to content

Immunefi

Anvil: Letters of Credit

Every publicly disclosed report for Anvil: Letters of Credit and what kind of bugs they were.

disclosed reports
5
most reported class
Business logic
bug classes found
4
first disclosure
2024
Find Anvil: Letters of Credit on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Anvil: Letters of Credit chose to make public.

DoS

Incomplete Adjustment of globalAmountInDynamicUse During LOC Liquidation Causes Accumulated Dust and DoS Risk

When an insolvent dynamic Letter of Credit is liquidated, the globalAmountInDynamicUse counter is reduced by the smaller liquidation amount rather than the original credited amount, leaving a residual dust value. Over many liquidations this dust accumulates and can cause new dynamic LOC creations to revert with GlobalCreditedTokenMaxInUseExceeded, effectively a denial of service.

Anvil: Letters of Credit

Informational
Access control

Missing _disableInitializer() implementation

The upgradeable implementation contract does not call _disableInitializers() in its constructor, so it can be initialized by anyone. An attacker could take ownership of the implementation, which might indirectly affect proxy contracts that rely on it.

Anvil: Letters of Credit

Informational
Business logic

Creators can modifyLOCCollateral of dynamic LOC to release almost all the collateral of LOC

The modifyLOCCollateral function fails to check whether the computed collateral factor is zero, allowing a creator to withdraw almost all collateral while keeping the credited amount unchanged. An attacker can thus leave a dynamic LOC severely undercollateralised, risking protocol insolvency and loss of funds for beneficiaries.

Anvil: Letters of Credit

Critical
Business logic

LoC: The creator can withdraw the entire collateral of a Dynamic LoC making it insolvent

The collateral modification function allowed the creator to withdraw almost all collateral because a rounding check returned zero for tiny remaining amounts, making the letter of credit insolvent. An attacker could create a letter of credit, withdraw the collateral, and leave the beneficiary unable to redeem the credited amount.

Anvil: Letters of Credit

Critical