Coinsult

Request your audit at coinsult.net

Advanced Manual
Smart Contract Audit

May 19, 2022

Audit requested by

Bloggercube

0x43B121Af0fE2085D72c544e4B6f163C5A8a15D9F

Bloggercube / Security Audit

Table of Contents

1. Audit Summary

1.1 Audit scope

1.2 Tokenomics

1.3 Source Code

2. Disclaimer

3. Global Overview

3.1 Informational issues

3.2 Low-risk issues

3.3 Medium-risk issues

3.4 High-risk issues

4. Vulnerabilities Findings

5. Contract Privileges

5.1 Maximum Fee Limit Check

5.2 Contract Pausability Check

5.3 Max Transaction Amount Check

5.4 Exclude From Fees Check

5.5 Ability to Mint Check

5.6 Ability to Blacklist Check

5.7 Owner Privileges Check

6. Notes

6.1 Notes by Coinsult

6.2 Notes by Bloggercube

7. Contract Snapshot

8. Website Review

9. Certificate of Proof

Bloggercube / Security Audit

Audit Summary

Audit Scope

Project Name

Bloggercube

Blockchain

Binance Smart Chain

Smart Contract Language

Solidity

Contract Address

0x43B121Af0fE2085D72c544e4B6f163C5A8a15D9F

Audit Method

Static Analysis, Manual Review

Date of Audit

19 May 2022

This audit report has been prepared by Coinsult’s experts at the request of the client. In this audit, the results of the static analysis and the manual code review will be presented. The purpose of the audit is to see if the functions work as intended, and to identify potential security issues within the smart contract.

The information in this report should be used to understand the risks associated with the smart contract. This report can be used as a guide for the development team on how the contract could possibly be improved by remediating the issues that were identified.

Bloggercube / Security Audit

Tokenomics

Rank Address Quantity (Token) Percentage
1  0x8dbef490ed14e0e54747a53f64f0def6a8384bb6 6,136,200,000 61.3620%
2 0xd8c979a29ac543a598dc6b94b901bb0b18d66a1b 3,263,800,000 32.6380%
3 0xbacabac66a434645be09f8ff15c3f05555279c88 200,000,000 2.0000%
4 0x60f5ae54a9c1fe3d310cf01351c4dff96e92fe02 200,000,000 2.0000%
5 0x57a178d61caf61bec3364286c196b8dc54f7e43e 200,000,000 2.0000%

Source Code

Coinsult was comissioned by Bloggercube to perform an audit based on the following code:
https://bscscan.com/address/0x43B121Af0fE2085D72c544e4B6f163C5A8a15D9F#code

Bloggercube / Security Audit

Disclaimer

This audit report has been prepared by Coinsult’s experts at the request of the client. In this audit, the results of the static analysis and the manual code review will be presented. The purpose of the audit is to see if the functions work as intended, and to identify potential security issues within the smart contract.

The information in this report should be used to understand the risks associated with the smart contract. This report can be used as a guide for the development team on how the contract could possibly be improved by remediating the issues that were identified.

Coinsult is not responsible if a project turns out to be a scam, rug-pull or honeypot. We only provide a detailed analysis for your own research.

Coinsult is not responsible for any financial losses. Nothing in this contract audit is financial advice, please do your own research.

The information provided in this audit is for informational purposes only and should not be considered investment advice. Coinsult does not endorse, recommend, support or suggest to invest in any project. 

Coinsult can not be held responsible for when a project turns out to be a rug-pull, honeypot or scam.

Bloggercube / Security Audit

Global Overview

Manual Code Review

In this audit report we will highlight the following issues:

Vulnerability Level

Total

Pending

Acknowledged

Resolved

0

0

0

0

5

0

0

0

0

0

0

0

0

0

0

0

Bloggercube / Security Audit

Too many digits

Literals with many digits are difficult to read and review.

				
					 _mint(msg.sender, 10000000000 * 10**decimals());
				
			

Recommendation

Exploit scenario

				
					contract MyContract{
    uint 1_ether = 10000000000000000000; 
}
				
			

While 1_ether looks like 1 ether, it is 10 ether. As a result, it’s likely to be used incorrectly.

Bloggercube / Security Audit

No zero address validation for some functions

Detect missing zero address validation.

				
					function setMarketingWalletAddress(address _addr)
    public
    onlyOwner
    returns (bool)
  {
    marketingWalletAddress = _addr;
    return true;
  }
				
			

Recommendation

Check that the new address is not zero.

Exploit scenario

				
					contract C {

  modifier onlyAdmin {
    if (msg.sender != owner) throw;
    _;
  }

  function updateOwner(address newOwner) onlyAdmin external {
    owner = newOwner;
  }
}
				
			

Bob calls updateOwner without specifying the newOwner, soBob loses ownership of the contract.

Bloggercube / Security Audit

Divide before multiply

Solidity integer division might truncate. As a result, performing multiplication before division can sometimes avoid loss of precision.

				
					if (marketingWalletAddress != address(0) && marketingFeePercent > 0) {
        marketingFee = (amount / 100) * marketingFeePercent;
      }
      if (developmentWalletAddress != address(0) && developmentFeePercent > 0) {
        developmentFee = (amount / 100) * developmentFeePercent;
      }
      if (donationWalletAddress != address(0) && donationFeePercent > 0) {
        donationFee = (amount / 100) * donationFeePercent;
      }
				
			

Recommendation

Consider ordering multiplication before division.

Exploit scenario

				
					contract A {
	function f(uint n) public {
        coins = (oldSupply / n) * interest;
    }
}
				
			

If n is greater than oldSupplycoins will be zero. For example, with oldSupply = 5; n = 10, interest = 2, coins will be zero. If (oldSupply * interest / n) was used, coins would have been 1. In general, it’s usually a good idea to re-arrange arithmetic to perform multiplication before division, unless the limit of a smaller type makes this dangerous.

Bloggercube / Security Audit

Missing events arithmetic

Detect missing events for critical arithmetic parameters.

				
					function setMarketingFee(uint8 _fee)
    public
    onlyOwner
    onlyValidFee(_fee)
    returns (bool)
  {
    marketingFeePercent = _fee;
    return true;
  }
				
			

Recommendation

Emit an event for critical parameter changes.

Exploit scenario

				
					contract C {

  modifier onlyAdmin {
    if (msg.sender != owner) throw;
    _;
  }

  function updateOwner(address newOwner) onlyAdmin external {
    owner = newOwner;
  }
}
				
			

updateOwner() has no event, so it is difficult to track off-chain changes in the buy price.

Bloggercube / Security Audit

Conformance to Solidity naming conventions

Allow _ at the beginning of the mixed_case match for private variables and unused parameters.

				
					 donationWalletAddress = _addr
				
			

Recommendation

Follow the Solidity naming convention.

Rule exceptions

  • Allow constant variable name/symbol/decimals to be lowercase (ERC20).
  • Allow _ at the beginning of the mixed_case match for private variables and unused parameters.

Bloggercube / Security Audit

Other Owner Privileges Check

Coinsult lists all important contract methods which the owner can interact with.

🟢 Owner cannot pause trading

🟢 Owner cannot change max transaction amount

🟢 Owner cannot set fees higher than 30%

 

Bloggercube / Security Audit

Notes

Notes by Bloggercube

No notes provided by the team.

Notes by Coinsult

✅ No notes provided by Coinsult

Bloggercube / Security Audit

Contract Snapshot

This is how the constructor of the contract looked at the time of auditing the smart contract.

				
					contract BloggercubeToken is ERC20, ERC20Snapshot, Ownable {
  // State Variables
  uint8 public marketingFeePercent = 0;
  uint8 public developmentFeePercent = 0;
  uint8 public donationFeePercent = 0;
  address public marketingWalletAddress;
  address public developmentWalletAddress;
  address public donationWalletAddress;
  address public _owner;
				
			

Bloggercube / Security Audit

Website Review

Coinsult checks the website completely manually and looks for visual, technical and textual errors. We also look at the security, speed and accessibility of the website. In short, a complete check to see if the website meets the current standard of the web development industry. 

Type of check

Description

Mobile friendly?

Contains jQuery errors?

Is SSL secured?

Contains spelling errors?

Bloggercube / Security Audit

Certificate of Proof

Bloggercube

Audited by Coinsult.net

Date: 19 May 2022

Coinsult

coinsult.net

End of report
Smart Contract Audit

Request your smart contract audit / KYC

t.me/coinsult_tg