Cyberconnect - staking pool

CertiKFiles named in the report

CertiK reviewed Cyber (Cyberconnect - staking pool) on 9 Apr 2024: 11 findings, 0 critical; 5 marked fixed, 1 acknowledged, 5 open.

No open critical findings
Open the reportOpen Cyber’s security record

Report hosted on skynet.certik.com.

Trustblock does not review code.

Findings11

Statuses are the security firm’s own, from its report.

SeverityOpenAcknowledgedFixed
Critical000
High010
Medium002
Low503
MediumPotential Reentrancy AttackFixed

A reentrancy attack can occur when the contract creates a function that makes an external call to another untrusted contract before resolving any effects. If the attacker can control the untrusted contract, they can make a recursive call back to the original function, repeating interactions that would have otherwise not run after the external call resolved the effects. ### External call(s) ```solidity=265 IERC20(asset).approve(bridgeAddress, amount); ``` ### State variables written after the call(s) ```solidity=262 balance[asset][assetOwner] -= amount; ``` ```solidity=263 totalBalance[asset] -= amount; ```

MediumPotential Reentrancy Attack (Sending Tokens)Fixed

A reentrancy attack can occur when the contract creates a function that makes an external call to another untrusted contract before resolving any effects. If the attacker can control the untrusted contract, they can make a recursive call back to the original function, repeating interactions that would have otherwise not run after the external call resolved the effects. ### External call(s) ```solidity=119 IERC20(asset).safeTransfer(msg.sender, amount); ``` * This function call executes the following external call(s). * In `SafeERC20._callOptionalReturn`, * `returndata = address(token).functionCall(data,"SafeERC20: low-level call failed")` * In `Address.functionCallWithValue`, * `(success,returndata) = target.call{value: value}(data)` ### State variables written after the call(s) ```solidity=115 balance[asset][msg.sender] -= amount; ``` ```solidity=116 totalBalance[asset] -= amount; ```

LowMissing Zero Address ValidationFixed

Addresses are not validated before assignment or external calls, potentially allowing the use of zero addresses and leading to unexpected behavior or vulnerabilities. For example, transferring tokens to a zero address can result in a permanent loss of those tokens. ```solidity=61 weth = _weth; ``` - `_weth` is not zero-checked before being used.

LowPotential Reentrancy Attack (Out-of-Order Events)Fixed

A reentrancy attack can occur when the contract creates a function that makes an external call to another untrusted contract before resolving any effects. If the attacker can control the untrusted contract, they can make a recursive call back to the original function, repeating interactions that would have otherwise not run after the external call resolved the effects. *This finding is considered minor because the reentrancy only causes out-of-order events. * ### External call(s) ```solidity=75 IERC20(asset).safeTransferFrom(msg.sender, address(this), amount); ``` * This function call executes the following external call(s). * In `SafeERC20._callOptionalReturn`, * `returndata = address(token).functionCall(data,"SafeERC20: low-level call failed")` * In `Address.functionCallWithValue`, * `(success,returndata) = target.call{value: value}(data)` ### Events emitted after the call(s) ```solidity=82 emit Deposit(_logId++, msg.sender, asset, actualAmount); ``` --- ### External call(s) ```solidity=95 IWETH(weth).deposit{ value: msg.value }(); ``` ### Events emitted after the call(s) ```solidity=97 emit Deposit(_logId++, msg.sender, weth, msg.value); ``` --- ### External call(s) ```solidity=119 IERC20(asset).safeTransfer(msg.sender, amount); ``` * This function call executes the following external call(s). * In `SafeERC20._callOptionalReturn`, * `returndata = address(token).functionCall(data,"SafeERC20: low-level call failed")` * In `Address.functionCallWithValue`, * `(success,returndata) = target.call{value: value}(data)` ### Events emitted after the call(s) ```solidity=127 emit Withdraw(_logId++, msg.sender, assets, amounts); ``` --- ### External call(s) ```solidity=265 IERC20(asset).approve(bridgeAddress, amount); ``` ```solidity=269 IBridge(bridgeAddress).bridge(assetOwner, recipient, assets, amounts); ``` ### Events emitted after the call(s) ```solidity=279 emit Bridge( _logId++, bridgeAddress, assetOwner, recipient, assets, amounts ); ```

LowUnused Return ValueFixed

The smart contract does not check or store the return value of an external call in a local or state variable, which may introduce vulnerabilities due to the unhandled outcome. ```solidity=265 IERC20(asset).approve(bridgeAddress, amount); ```

Contracts in scope

No deployed address is recorded for this audit.

The report names a repository or files. Open the report to see its scope.

Repository and files the report names (1)

  • src/periphery/CyberStakingPool.sol

Part of Cyber’s security record

Cyber
Audits7 audits by 2 firmsLast audit Aug 2024, by HashEx.
Critical findingsNo open critical findingsAcross 7 reports.
Open Cyber’s security record

Security firm

CertiK

1,044 projects reviewed · 1,375 reports · latest May 2025

See CertiK’s audits

Something wrong on this page? A missing report, a wrong date, a finding that was fixed since. Tell us and we check it against its source.

Tell us