Skip to content

Immunefi

DeGate

Every publicly disclosed report for DeGate and what kind of bugs they were.

disclosed reports
45
most reported class
Business logic
bug classes found
5
first disclosure
2023
Find DeGate on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what DeGate chose to make public.

Business logic

Inefficiency in upgradeToAndCall

The upgradeToAndCall function calls the proxy itself after upgrading, which is inefficient because the proxy only has privileged functions and the proxy owner is unlikely to be the proxy. This could cause the call to fail or waste gas, but no direct security impact is claimed.

DeGate

Informational
DoS

Mitigate Griefing Attacks Theft of Gas by Impl

The Timelock contract's executeTransaction function makes an external call without limiting the gas forwarded or protecting against large return data. A malicious target contract could return a huge payload, forcing the admin to pay excessive gas for memory allocation, or consume most of the forwarded gas for its own purposes.

DeGate

Informational
Business logic

Possible emission of wrong data in cancelTransa

The timelock contract's cancelTransaction function sets the queued flag for a transaction hash to false without checking that the hash was actually queued. If the admin supplies incorrect inputs, the call emits a cancellation event for a transaction that was never queued while leaving the real queued transaction untouched.

DeGate

Informational
Crypto

ChainId is missing

The EIP-712 domain separator in the FastWithdrawalLiquidityProvider contract omits the chainId, so signatures are not bound to a specific Ethereum network. An attacker could potentially replay a valid signature from one network on another, leading to unintended withdrawals.

DeGate

Informational
Business logic

Multisig Contract onChain can be bricked

The Multisig contract allows an owner to be replaced with the zero address, which reduces the number of valid owners below the required signature threshold. An attacker with owner privileges could brick the contract, preventing any further transactions or owner changes.

DeGate

Informational
Business logic

Consider introducing the ability to change requ

The multisig wallet contract lets owners be added but never adjusts the number of required confirmations upward, so the ratio of required signers to total owners can become very low. The reporter frames this as a design weakness rather than an exploitable vulnerability.

DeGate

Informational
Business logic

Gnosis Multisig Contract can become unusable

The Gnosis multisig contract allows an owner to be replaced with the zero address, which reduces the number of valid owners while keeping the required signature count unchanged. This can make the contract unusable because it becomes impossible to gather enough valid signatures to execute any transaction.

DeGate

Informational
Access control

Exodus Mode Force

The report claims that anyone can call notifyForcedRequestTooOld for any account, and by creating many accounts and forcing withdrawals, an attacker can push DeGate into Exodus Mode. This would shut down the project and cause griefing for users.

DeGate

Informational
Audit finding

DeGate Exodus mode forcing study

The report is a security study of DeGate's Exodus mode and forceWithdraw mechanism, finding no exploitable vulnerability. It notes a theoretical but impractical attack on a memory mapping and discusses potential issues with uint248 overflow and ZK circuit robustness, all of which are mitigated or infeasible.

DeGate

Informational
Access control

Timelock should handle queuing transactions and

The report notes that the timelock contract does not restrict which functions can be queued, so a compromised multisig could queue transactions other than upgrades, such as proxy ownership changes. It also notes that implementation contracts are left uninitialised, which could become dangerous if a future implementation uses delegatecall.

DeGate

Informational
Business logic

ExchangeV cannot be reinitialized after an upgrade

The ExchangeV3 contract's initialize function uses a modifier that checks two storage slots to determine if the contract is already initialized. After a proxy upgrade, these slots are non-empty, so the new implementation cannot be re-initialized, leaving the Loopring address and DOMAIN_SEPARATOR unchangeable.

DeGate

Informational
Business logic

Fee-on-transfer tokens can be used to steal oth

The DefaultDepositContract's fee-on-transfer token handling relies on an admin-set flag that must be configured before each deposit, which is impractical. An attacker can deposit a fee-on-transfer token without the flag set, then withdraw more than deposited, stealing other users' tokens from the pool.

DeGate

Informational
Business logic

Consider implementing a two step process in tra

The proxy ownership transfer function writes the new owner address directly into storage in a single step, with no confirmation from the recipient. If the owner passes a wrong or uncontrolled address, the proxy owner role is lost and no one can upgrade the proxy.

DeGate

Informational
Access control

High Risk in transfer of proxyOwnership

The proxy ownership transfer function lets the current owner set a new owner in a single step, with no check that the new address differs from the current one and no two-step confirmation. A malicious or careless operator could hand control to a compromised or invalid address, which the report says could lead to theft or permanent freezing of funds.

DeGate

Informational
Business logic

Timelock executeTransaction function will succe

The Timelock contract's executeTransaction function treats a call to an address with no code as successful, so a queued transaction aimed at a non-existent or not-yet-deployed contract is marked as executed. An admin could therefore believe an upgrade or token interaction happened when it did not, forcing a repeat and adding delay.

DeGate

Informational
DoS

There is no explicit gas limit in external call

The timelock contract's executeTransaction function makes an external call without a gas limit and returns unbounded bytes, so a malicious target can consume the remaining gas and cause the timelock to run out of gas. This makes execution results non-deterministic and could be used for a grieving attack.

DeGate

Informational
Smart contracts

Potential Signature Validation Bypass

The signature verification function returns true when given empty arrays of signers and signatures because it does not check that the arrays are non-empty. An attacker could bypass signature validation if this function were used, but the report notes it is not currently used in the protocol.

DeGate

Informational
Access control

Bad implementation of executeTransaction functi

The multisig wallet's executeTransaction function can be called by anyone after a failed execution attempt, because the low-level call does not revert the whole transaction and the executed flag is set to false. An attacker could then trigger the timelock upgrade at an unintended time, potentially changing the proxy's implementation logic within the same block.

DeGate

Informational
Business logic

TxHash collision is possible

The timelock contract computes a transaction hash from the target, value, signature, data and eta, so queueing two identical calls with the same eta produces the same hash and the second overwrites the first. An admin could be deceived into thinking two transactions are queued when only one is, and the second cannot be executed.

DeGate

Informational
Access control

Malicious DeGate Operator EOA can irreversibly

The DeGate Exchange contract is controlled by a single externally owned account (EOA) through an owner contract, allowing that key holder to unilaterally call privileged functions such as shutdown() and setDepositParams(). An attacker with the private key could irreversibly stop the exchange or change critical parameters.

DeGate

Informational
Access control

DeGate Operator has capability to disable balan

The DepositContractProxy is owned by an externally owned account (EOA) controlled by the DeGate Operator, who can disable ERC-20 balance checks. This could allow the operator to manipulate deposit amounts for special tokens, potentially leading to theft or freezing of funds.

DeGate

Informational
Business logic

Malicious Exchange Owner can sandwich-attack Et

The ExchangeV3 contract allows the owner to set deposit fees without any value limit or rate limit. A malicious owner can front-run a user's Ether deposit where msg.value exceeds the amount parameter, temporarily set the deposit fee to the difference, and then withdraw that difference as fees.

DeGate

Informational
Business logic

Some owners of the MultiSigWallet can bring the

The MultiSigWallet contract allows an owner to be replaced with the zero address via replaceOwner, and owners can remove themselves, which can make the required number of confirmations equal to the number of owners. A group of malicious owners can then lock the wallet by ensuring that no future transaction can ever gather enough confirmations, preventing upgrades or any other operation.

DeGate

Informational
Business logic

The MultiSigWalletgetTransactionIds function co

The getTransactionIds function in a multisig wallet contract has an off-by-one error in its array length calculation and loop bounds, causing it to omit the last transaction ID in the requested range. An attacker could not exploit this directly, but callers relying on the function would receive incomplete data.

DeGate

Informational
Access control

All the funds from the DepositProxy contracts c

The DepositProxy contract's implementation can be initialised by anyone because the upgrade and initialise steps are separate transactions. An attacker can front-run the initialise call to set the exchange address to their own, then call withdraw to steal all funds held by the proxy.

DeGate

Informational
Access control

Governance mechanism could be exploited to free

The Timelock contract allows an admin to queue and execute arbitrary transactions, including sending funds to a contract that cannot return them. If the admin account is compromised, an attacker could permanently freeze funds by sending them to a contract with no withdrawal function.

DeGate

Informational
Business logic

ID Uniqueness Violations

The report claims that the smart contract assigns proposal IDs by simply incrementing an integer without checking for uniqueness, so two proposals submitted in quick succession could receive the same ID. This could lead to duplicate approvals and loss of funds if the proposal involves refunds.

DeGate

Informational
Access control

The implementation upgrade must be done by call

The implementation upgrade and initialisation of the ExchangeV3 proxy were performed in separate transactions, leaving a window where anyone could call the permissionless initialize function. An attacker could front-run the legitimate initialisation to set a malicious Loopring address, potentially unnoticed by the owners.

DeGate

Informational
Business logic

Timelock eta variable can be set further than i

The TimeLock contract's queueTransaction function does not enforce an upper bound on the eta parameter, allowing the admin to queue a transaction with an execution time far beyond the intended maximum delay of 365 days. This could cause an unforeseen delay in upgrades if the eta is set too far in the future.

DeGate

Informational
Access control

Proxy contract deployments can be front-run to

The deployment script initialises proxy contracts in separate transactions, leaving a window where anyone can call the unprotected initialize function first and become the owner. An attacker could front-run the deployment to take ownership of the proxies and set arbitrary deposit and exchange contract addresses.

DeGate

Informational