Venus - Swap Router

CertiKFiles named in the report

Audit

Part of CertiK’s series

CertiK reviewed Venus Protocol (Venus - Swap Router) on 22 May 2023: 14 findings, 1 critical; 13 marked fixed, 1 open.

1 critical finding, fixed
Open the reportOpen Venus Protocol’s security record

Report hosted on skynet.certik.com.

Trustblock does not review code.

Findings14

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

SeverityOpenAcknowledgedFixed
Critical001
High100
Medium000
Low0012
HighCentralization Risks in SwapRouter.solOpen

In the contract `SwapRouter` the role `WBNB` has authority to send `BNB` to the contract. If it is set to a malicious contract, then it can allow an attacker to send `BNB` to the contract. This is an immutable variable and `WBNB` is not an upgradeable contract, so this only needs to be checked once after deployment to be the correct address. In the contract `SwapRouter` the role `_owner` has authority over the functions shown in the diagram below. Any compromise to the `_owner` account may allow the hacker to take advantage of this authority and do the following: - transfer any tokens held by the contract to any other address; - set the `vBNBAddress` to any other listed `vToken`, which would revert or if the comptroller is compromised could be set to a malicious contract. ![](https://accelerator-tasks-prod.acc.corp.certik.com/fd5ad38b5da54f6d837e7c86385d331a/diagrams/centralization_SwapRouter-SwapRouter-_owner.svg)

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 (13)

  • contracts/Swap/interfaces/IPancakeSwapV2Factory.sol
  • contracts/Swap/RouterHelper.sol
  • contracts/Swap/interfaces/IVBNB.sol
  • contracts/Swap/interfaces/IPancakeSwapV2Router.sol
  • contracts/Swap/interfaces/IPancakePair.sol
  • contracts/Swap/interfaces/IWBNB.sol
  • contracts/Swap/SwapRouter.sol
  • contracts/Swap/interfaces/InterfaceComptroller.sol
  • contracts/Swap/interfaces/CustomErrors.sol
  • contracts/Swap/lib/PancakeLibrary.sol
  • contracts/Swap/interfaces/IVtoken.sol
  • contracts/Swap/lib/TransferHelper.sol
  • contracts/Swap/IRouterHelper.sol

Part of Venus Protocol’s security record

Venus Protocol
Audits67 audits by 7 firmsLast audit Sep 2025, by Quantstamp.
Critical findingsNo open critical findingsAcross the 67 reports, 4 critical findings were reported. Each is marked fixed by the firm that reported it.
IncidentIncident 12 May 2022Source: De.Fi incident database.
Open Venus Protocol’s security record

Security firm

CertiK

1,045 projects reviewed · 1,376 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