ADVISORIES

GitHub Advisory Database

GHSA-qwvm-wqq8-8j69

github.com/MANTRA-Chain/mantrachain/x/tokenfactory tx gas limit is not enforced in send hooks

Details

Impact

send hooks can spend more gas than what's remained in tx, combined with recursive calls in the wasm contract, can amplify the gas consumption exponentially.

Patches

It's patched in v4.0.2 and v5.0.0

Workarounds

_Is there a way for users to fix or remediate the vulnerability without upgrading?_

Affected packages

EcosystemPackageAffected versions
Gogithub.com/MANTRA-Chain/mantrachain/v4
All versions before 4.0.2 (fixed in 4.0.2)
Gogithub.com/MANTRA-Chain/mantrachain/v3
All versions, no fix listed
Gogithub.com/MANTRA-Chain/mantrachain/v2
All versions, no fix listed
Gogithub.com/MANTRA-Chain/mantrachain
All versions, no fix listed

References