Hunt prep
Before you test Phi
What 15 disclosed reports say about Phi: what was found and paid, what was fixed, and where it may be worth looking next.
- with a public bounty
- 0
- median public bounty
- –
- highest public bounty
- –
Gaps worth testing
Not written yet for this program. The numbers below are up to date.
What was found and what it paid
Public bounties only; many reports disclose without the amount.
| Class | Reports | Paid | Median | Highest | In all |
|---|---|---|---|---|---|
| Business logic lesson | 9 | 0 | – | – | $0 |
| Access control lesson | 2 | 0 | – | – | $0 |
| Smart contracts lesson | 2 | 0 | – | – | $0 |
| Crypto lesson | 1 | 0 | – | – | $0 |
| DoS lesson | 1 | 0 | – | – | $0 |
What was fixed
All reportsThe newest fixes, in our words. A fixed bug is not worth re-reporting, but a sibling feature, an older API version or a regression may be.
-
Signature replay in createArt allows to impersonate artist and steal royalties
The signature should include the CreateConfig parameters and be limited to a specific submitter, and createERC1155Internal should fail if the contract already exists.
Disclosed
-
Reentrancy in creating Creds allows an attacker to steal all Ether from the Cred contract
The createCred function should be protected with a reentrancy guard, and all functions dealing with assets or important state should also be guarded; following the Checks-Effects-Interactions pattern is recommended.
Disclosed
-
Contract PhiNFT1155 can’t be paused
The contract should inherit from ERC1155PausableUpgradeable and override the update function to enforce the paused check on transfers.
Disclosed
-
Cred creator could cause stuck funds
The update functionality should be removed or placed behind a timelock so users can withdraw before a fee increase takes effect.
Disclosed
-
Refunds sent to incorrect addresses in certain cases
The affected functions should be modified to pass the original user address as a parameter so refunds go to the correct user, or alternatively revert when the sent value does not match the required amount.
Disclosed
-
Incorrect fee handling prevents protocol from updating fees
The setter functions should use the correct maximum fee values (0.00005 ether) instead of 10,000 wei.
Disclosed
-
shareBalance bloating eventually blocks curator rewards distribution
Remove the zero-balance entry from the map when a curator sells all shares.
Disclosed
-
Unrestricted changes to token settings allow artists to alter critical features
The project said it will remove the soulbound and URI update features and cap royalties at around 20%.
Disclosed
-
Signature replay in signatureClaim results in unauthorized claiming of rewards
The signatureClaim function should repack the signature data substituting the chainId with block.chainid, as done in Claimable::signatureClaim.
Disclosed
-
Forced endTime extension in updateArtSettings() allows attacker to mint more tokens
The updateArtSettings function should be split so that uri, soulBounded, and royalty settings can be updated without extending endTime, and the minting check should use >= instead of >.
Disclosed
-
PhiFactory:claim potentially causing loss of funds if mintFee changed beforehand
Validate msg.value against the mint fee, or forward msg.value directly to the subsequent claim process so refunds are handled.
Disclosed
-
PhiNFT1155 contracts continue sending fees/royalties to old protocol destination address
The default royalty recipient and protocol fee destination should be retrieved dynamically from the factory contract instead of being stored in each NFT contract.
Disclosed
-
Attacker can DOS user from selling shares of a credId
The reporter suggested removing the buy-for-another-user function, though the text does not say it was fixed.
Disclosed
-
Lack of data validation when users are claiming their art allows malicious user to bypass signature/merkle hash to provide unapproved ref_ , artId_ and imageURI
Include ref_, artId_, and imageURI in the merkle proof verification and validate them in signatureClaim.
Disclosed