Brewlabs Treasury

CertiKFiles named in the report

CertiK reviewed Brewlabs (Brewlabs Treasury) on 29 Aug 2022: 8 findings, 1 critical; 6 marked fixed, 2 open.

1 open critical finding
Open the reportOpen Brewlabs’s security record

Report hosted on skynet.certik.com.

Trustblock does not review code.

Findings8

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

SeverityOpenAcknowledgedFixed
Critical100
High000
Medium000
Low106
CriticalCentralization Risks in BrewlabsTreasury.solOpen

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. ![](https://accelerator-tasks-prod.acc.corp.certik.com/070a42234812411498f92605114375f7/diagrams/centralization_BrewlabsTreasury-BrewlabsTreasury-_owner.svg)

LowThird Party DependencyOpen

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()`.

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)

  • BrewlabsTreasury.sol

Part of Brewlabs’s security record

Brewlabs
Audits3 audits by 2 firmsLast audit Apr 2024, by CertiK.
Critical findings1 open critical findingReported in “Brewlabs Treasury” by CertiK, Aug 2022. Not marked fixed in that report.
Open Brewlabs’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