Hunt prep
Before you test DeGate
What 45 disclosed reports say about DeGate: 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 | 21 | 0 | – | – | $0 |
| Access control lesson | 14 | 0 | – | – | $0 |
| DoS lesson | 7 | 0 | – | – | $0 |
| Crypto lesson | 1 | 0 | – | – | $0 |
| Smart contracts 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.
-
Inefficiency in upgradeToAndCall
The function should call the implementation directly instead of making a self-call.
Disclosed
-
Mitigate Griefing Attacks Theft of Gas by Impl
The contract should use a safe call library that limits return data size and should cap the gas passed to the external call.
Disclosed
-
Possible emission of wrong data in cancelTransa
The function should require that the computed hash is already marked as queued before clearing it and emitting the event.
Disclosed
-
ChainId is missing
The domain separator should be updated to include the chainId.
Disclosed
-
Consider introducing the ability to change requ
The contract should allow the required confirmation count to be changed when owners are added, so the ratio stays sensible.
Disclosed
-
Exodus Mode Force
The function should be restricted so that only the owner can call it for any account.
Disclosed
-
Timelock should handle queuing transactions and
The timelock should be refactored to queue implementation deploys and call initialize, and to allow only upgrade calls on proxies by checking the signature.
Disclosed
-
ExchangeV cannot be reinitialized after an upgrade
The modifier should check a dedicated initialized variable that the proxy owner can reset before calling initialize, or permissioned functions should be added to update the DOMAIN_SEPARATOR and Loopring address.
Disclosed
-
Fee-on-transfer tokens can be used to steal oth
The contract should measure the actual token balance before and after a deposit to determine if the token applies a transfer fee.
Disclosed
-
Consider implementing a two step process in tra
The transfer should be two-step: the owner nominates an address and that address must call an accept function before ownership changes.
Disclosed
-
High Risk in transfer of proxyOwnership
The report recommends a two-step transfer where the new owner is recorded as pending and must claim ownership, plus a check that the new address differs from the current owner.
Disclosed
-
Timelock executeTransaction function will succe
The timelock should check that the target address has contract code before executing the call, as OpenZeppelin is discussing.
Disclosed
-
There is no explicit gas limit in external call
Add a gas limit or maximum gas limit as part of the action variables included in the hash, and consider not bubbling up unbounded bytes from the external call.
Disclosed
-
Potential Signature Validation Bypass
The function should be fixed by adding a check that the signers array is not empty.
Disclosed
-
Bad implementation of executeTransaction functi
The executeTransaction function should restrict callers to owners, admins, or executors, and a failed execution should revert the confirmation rather than leaving the transaction executable by anyone.
Disclosed