CertiK reviewed Brewlabs (Brewlabs Treasury) on 29 Aug 2022: 8 findings, 1 critical; 6 marked fixed, 2 open.
Report hosted on skynet.certik.com.
Trustblock does not review code.
Statuses are the security firm’s own, from its report.
| Severity | Open | Acknowledged | Fixed |
|---|---|---|---|
| Critical | 1 | 0 | 0 |
| High | 0 | 0 | 0 |
| Medium | 0 | 0 | 0 |
| Low | 1 | 0 | 6 |
In the contract `BrewlabsTreasury` the role `_owner` has authority over the functions shown in the diagram below. In fact, every external function can only be called by the `_owner` account. Any compromise to the `_owner` account may allow the hacker to take advantage of this authority and gain complete control over the contract. In particular, they can withdraw all the ETH and pool tokens from the script and keep it for themselves. 
The contract is serving as the underlying entity to interact with one or more third party protocols. The scope of the audit treats third party entities as black boxes and assume their functional correctness. However, in the real world, third parties can be compromised and this may lead to lost or stolen assets. In addition, upgrades of third parties can possibly create severe impacts, such as increasing fees of third parties, migrating to new LP pools, etc. ```solidity=376 uint256[] memory amounts = IUniRouter02(uniRouterAddress).getAmountsOut(_amountIn, _path); ``` ```solidity=381 IUniRouter02(uniRouterAddress).swapExactETHForTokensSupportingFeeOnTransferTokens{value: _amountIn}( ... ``` ```solidity=403 uint256[] memory amounts = IUniRouter02(uniRouterAddress).getAmountsOut(_amountIn, _path); ``` ```solidity=410 IUniRouter02(uniRouterAddress).swapExactTokensForTokensSupportingFeeOnTransferTokens( ... ``` ```solidity=437 (amountToken, amountETH, liquidity) = IUniRouter02(uniRouterAddress).addLiquidityETH{value: _ethAmt}( ... ``` - The contract `ZAH` interacts with third party contracts with `IUniRouter02` interface via `uniRouterAddress`. ```solidity=95 pair = IUniV2Factory(IUniRouter02(_uniRouter).factory()).getPair(_bnbToTokenPath[0], address(token)); ``` - The contract `BrewlabsTreasury` interacts with third party contracts with `IUniV2Factory` interface via `IUniRouter02(_uniRouter).factory()`.
The report names a repository or files. Open the report to see its scope.
Repository and files the report names (1)
1,045 projects reviewed · 1,376 reports · latest May 2025
See CertiK’s auditsSomething 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