Open hats-bug-reporter[bot] opened 1 year ago
Couldn´t reproduce, hence invalid.
There is no logic in unstake() that takes 10% of anything. Also there is no minting of HLP because we don´t control that token. Looks like a fake report until proven otherwise.
The testnet Portal has different logic because of the lack of a functioning HMX system to produce yield on Sepolia. However, the testnet code is out of scope.
Please make sure that your analysis and bug reports are related to the in-scope code in future competitions, thank you.
Github username: -- Twitter username: -- Submission hash (on-chain): 0x157ad3349496dd1de4798258ad36cbc124ebec5fd47b3993dea6da30cc834365 Severity: high
Description: Description\
Portal::unstake()
can inflate the Portal with PRINCIPAL_TOKENAttack Scenario\ User stakes some amount of HLP tokens via
Portal::stake()
and then unstakes withPortal::unstake()
passing 0 as amount arg.This leads to minting 10% of staked HLP amount to be minted on portal address in PRINCIPAL_TOKEN.
Attacker could call this multiple times leading to massive circurlation increase in PRINCIPAL_TOKEN.
Attachments
Proof of Concept (PoC) File
Files: