Tagger
TAGSmart contract security assessment · BSC
Technical findings, proposed fixes and review context in one report. Submitted declarations are preserved; execution evidence and founder approval are tracked separately.
This is not a completed security audit or deployment recommendation. No verified security score is issued. Missing evidence does not establish safety or vulnerability.
Executive overview
Reported scope and review priorities, not a safety rating.
Assessment scope
DeFi Protocol Contract
A Decentralized Full-Stack AI Data Solution powered by a Comprehensive Data Authentication and Authorization System Tagger is a full-stack AI data solutions platform, establishing a cross-border data authentication protocol, creating a permissionless hub for data collection, labeling, management, and trading. The logic starts from utilizing Web 3's crowdsourcing advantages for data labeling and collection.
What needs attention
- 1 high / critical severity submissions require exploitability review.
- 4 consistency issues in the saved declarations.
- Source-bound CI evidence is not established.
- Only the founder may validate findings and sign off.
Inspect record consistency checks (4)
Conflicting supply claims
One section declares constructor-only minting, while another declares a callable or unrestricted mint. Verify the implementation and reachable mint functions before drawing a conclusion.
Conflicting upgradeability claims
The architecture declares a proxy, but a saved simulation describes an immutable contract. Resolve the proxy and implementation addresses and verify upgrade authority.
Conflicting test execution claims
The methodology claims fuzzing, but the execution record says NOT_RUN. Historical narrative logs cannot establish which tests actually ran.
Contract address used as a commit
An on-chain address identifies a deployment, not a source revision. Attach the actual repository commit or an immutable source snapshot.
Scope & architecture
Declared context. Counts and architecture have not been independently confirmed.
- Report ID
- tagger-1793148483876
- Network
- BSC
- Contract address
- 0x208bF3E7dA9639f1Eaefa2DE78c23396B0682025
- Declared report date
- 2026-10-28
- Declared compiler target
- solc 0.8.0 (pragma)
- Source SHA-256 (declared)
- Not supplied
| File / contract | Language | Declared LOC | Source revision |
|---|---|---|---|
| Tagger.sol | Solidity | 961 | Not established |
Submitted architecture
Tagger is implemented as a defi-protocol on BSC. The contract is compiled with Solidity 0.8.0. It inherits from OpenZeppelin's audited library contracts for standardized functionality. The contract uses a proxy pattern, making the implementation upgradeable. An owner role exists with privileged access to administrative functions. A mint function is present, requiring careful access control review. The contract scope comprises 961 lines of code.
Declared trust boundaries
Can execute privileged functions (pause, mint, upgrade)
Proposed control: Transfer to multisig + timelock recommended
Historical execution results
Captured 2026-11-07. Tests ran on local source fixtures, not on the current production deployment.
Execution scope and provenance
- Historical target
- Chain 56 · 0x208bf3e7da9639f1eaefa2de78c23396b0682025
- Historical source manifest SHA-256
- ad682a0cd868a676c2be00d1e1e1b30ef9a19b40fee47721da8386005e262bf2
- Execution output SHA-256
- 6e25217e423aaf41f81e98dd19863afabb90fa9feafa32975f93e5ac124598d9
These digests identify historical artifacts, not a verified match to the current declared source or deployed bytecode. A digest alone is not independent validation.
Inspect executed properties (12)
| Executed property | Category | Observed result |
|---|---|---|
| testFuzz_WrongSignerCannotClaim(uint128) | fuzz | Passed · 256 runs |
| test_ClaimBeforeLaunchReverts() | unit | Passed |
| test_ExpiredClaimReverts() | unit | Passed |
| test_MockedLaunchMintsDeclaredAllocations() | unit | Passed |
| test_Observation_AuthorizedClaimCanExceedMaxSupplyConstant() | unit | Passed |
| test_Observation_ConstructorDoesNotMint() | unit | Passed |
| test_Observation_RenouncingOwnerDoesNotRevokeDeployerRole() | unit | Passed |
| test_Observation_SignatureReusableAcrossTwoLocalDeployments() | unit | Passed |
| test_Observation_ZeroSignerBlocksFormerSignedClaims() | unit | Passed |
| test_SignedClaimMintsAndCannotRepeat() | unit | Passed |
| test_UnauthorizedLaunchReverts() | unit | Passed |
| test_UnauthorizedSetSignerReverts() | unit | Passed |
Still required before approval
- Historical source fixtures were deployed locally with synthetic constructor arguments and test doubles where required. These are not production-fork tests.
- Only the listed properties were exercised. Full entrypoint, line and economic invariant coverage are not established.
- Current deployed bytecode, live permissions, upgrades and external integrations require separate verification.
- Passing tests do not validate submitted findings or establish safety. Formal verification was not run; founder approval remains pending.
- TAG uses mocked DEX dependencies on local chain 31337. BSC locker behavior and live signer integration were not tested.
Technical findings
SUBMITTED, NOT VALIDATED. Severity and disposition are declarations, not founder approval.
Showing 4 of 4 submitted findings.
Delegatecall Usage
delegatecall instruction
The contract uses delegatecall, which executes code in the context of the calling contract. This is extremely dangerous if the target address is user-controlled.
A malicious target could overwrite storage variables, steal funds, or destroy the contract.
Ensure delegatecall targets are trusted, verified contracts. Use a whitelist of approved implementation addresses.
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
Which reachable call path lets an unprivileged actor choose the target or implementation? Check target control, upgrade authorization and storage layout before confirming exploitability.
Review remediation example
Submitted example. Not compiled or validated here; adapt it to the actual source and storage layout.
// Fix: Restrict delegatecall to whitelisted implementations only
// BEFORE (vulnerable — unvalidated delegatecall target):
// function _delegate(address implementation) internal {
// assembly { delegatecall(gas(), implementation, ...) }
// }
// AFTER (secure — validated implementation registry):
contract SecureProxy {
mapping(address => bool) public approvedImplementations;
address public admin;
uint256 public constant TIMELOCK = 48 hours;
mapping(address => uint256) public pendingUpgrades;
modifier onlyAdmin() {
require(msg.sender == admin, "Not admin");
_;
}
function proposeUpgrade(address newImpl) external onlyAdmin {
require(newImpl != address(0), "Zero address");
pendingUpgrades[newImpl] = block.timestamp + TIMELOCK;
emit UpgradeProposed(newImpl, block.timestamp + TIMELOCK);
}
function executeUpgrade(address newImpl) external onlyAdmin {
require(pendingUpgrades[newImpl] != 0, "Not proposed");
require(block.timestamp >= pendingUpgrades[newImpl], "Timelock active");
approvedImplementations[newImpl] = true;
emit UpgradeExecuted(newImpl);
}
function _delegate(address implementation) internal {
require(approvedImplementations[implementation], "Impl not approved");
assembly {
calldatacopy(0, 0, calldatasize())
let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0)
returndatacopy(0, 0, returndatasize())
switch result
case 0 { revert(0, returndatasize()) }
default { return(0, returndatasize()) }
}
}
}Inspect submitted PoC code
Code submission only. No successful reproduction is established; a privileged caller in a test is not evidence of an unprivileged exploit.
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
import "forge-std/Test.sol";
// Solay39 PoC — Delegatecall Proxy Exploitation
// Finding: Delegatecall Usage
// Target: DeFi Protocol Contract @ 0x208bF3E7dA9639f1Eaefa2DE78c23396B0682025
interface IProxy {
function upgradeTo(address newImplementation) external;
function implementation() external view returns (address);
}
contract MaliciousImplementation {
address public owner;
mapping(address => uint256) public balances;
function drainAll(address victim, address attacker) external {
// In delegatecall context, this writes to proxy storage
balances[victim] = 0;
balances[attacker] = type(uint256).max;
}
}
contract DelegatecallExploitTest is Test {
address constant TARGET = 0x208bF3E7dA9639f1Eaefa2DE78c23396B0682025;
function testProxyAdminCompromise() public {
vm.createSelectFork(vm.envString("ETH_RPC_URL"));
IProxy proxy = IProxy(TARGET);
address currentImpl = proxy.implementation();
console.log("Current implementation:", currentImpl);
// Step 1: Deploy malicious implementation
MaliciousImplementation malicious = new MaliciousImplementation();
// Step 2: If proxy admin is compromised, attacker can upgrade
// Extract proxy admin from EIP-1967 storage slot
bytes32 adminSlot = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;
address proxyAdmin = address(uint160(uint256(vm.load(TARGET, adminSlot))));
console.log("Proxy admin:", proxyAdmin);
vm.prank(proxyAdmin);
try proxy.upgradeTo(address(malicious)) {
// Step 3: All subsequent delegatecalls execute malicious code
assertEq(proxy.implementation(), address(malicious),
"EXPLOIT: Proxy upgraded to malicious implementation");
} catch {
// Access control working — admin protected
console.log("Proxy admin protected - upgrade reverted");
}
}
}Floating Pragma Version
pragma solidity directive
The contract uses a floating pragma (^). This allows compilation with multiple compiler versions, which may introduce inconsistencies between deployments.
Different compiler versions may produce different bytecode or include different known bugs.
Lock the pragma to a specific version, e.g., pragma solidity 0.8.20;
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
Record the exact deployed compiler, optimizer settings and reproducible build. Determine whether the declared version range creates a concrete deployment risk.
Review remediation example
Submitted example. Not compiled or validated here; adapt it to the actual source and storage layout.
// Fix: Pin exact compiler version
// BEFORE (floating — allows any 0.8.x):
// pragma solidity ^0.8.20;
// AFTER (pinned — deterministic compilation):
pragma solidity 0.8.20;
// Also update your build config:
// foundry.toml → solc = "0.8.20"
// hardhat.config.ts → solidity: { version: "0.8.20" }Fixed Supply (Constructor-Only Mint)
Constructor
Token minting occurs only in the constructor. The supply is fixed at deployment with no public or external mint function available.
No inflation risk. The token supply cannot be increased after deployment.
No action needed. This is a secure pattern for fixed-supply tokens.
CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:N/I:N/A:N
Inspect the implemented mint function, not an interface or modifier name. Check entry guards such as if (msg.sender != minter) revert NotMinter(), inherited authorization and every overload. Distinguish authorized uncapped minting from a public bypass; reproduce unauthorized and authorized calls separately.
Initial Supply Concentration
Constructor — full supply to single address
The entire token supply is minted to a single address (custodian/deployer) in the constructor. This is standard for ERC-20 launches but creates concentration risk.
The initial holder controls 100% of supply. If tokens are not distributed, this creates market dump risk and governance centralization.
This is an economic/governance consideration, not a smart contract vulnerability. Recommend transparent vesting schedules and distribution plans.
CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:N/I:N/A:N
Verify the allocation with a dated on-chain snapshot. Keep distribution and governance observations separate from code vulnerabilities.
Execution & evidence
Stored narrative, submitted code and captured execution are different evidence classes.
Attach exact source files, compiler settings and an immutable source digest.
A workflow link or a successful job alone cannot establish source-bound analysis.
1 PoC code submissions are available above. Compilation, execution and exploit preconditions are not established by their presence.
Manual validation, remediation decisions and final approval are reserved exclusively to the founder.
Evidence policy
Historical tool narratives, coverage percentages, generated attack simulations and legacy signatures are not promoted to execution proof. Attach source-bound runner artifacts for any claimed fuzzing, symbolic execution, formal verification or exploit reproduction.
Founder review plan
Concrete next steps toward a defensible final report.
- Lock the exact source, dependency versions, compiler settings and deployment identity.
- Resolve the saved record inconsistencies before relying on architecture or supply claims.
- Validate each finding against the code, with reachable preconditions and a reproducible impact.
- Capture real tool outputs, reproduce applicable exploits and retest proposed fixes.
- Record the founder's decisions and issue a signed report only when the evidence gate permits it.