SOLAY39 / PRELIMINARY REPORT

Tagger

TAG

Smart 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.

Awaiting founder review

This is not a completed security audit or deployment recommendation. No verified security score is issued. Missing evidence does not establish safety or vulnerability.

4Submitted findings
1High / critical claims
1PoC code submissions

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
Submitted source inventory
File / contractLanguageDeclared LOCSource revision
Tagger.solSolidity961Not 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

Owner · High trust declared

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.

12/12Listed properties passed
256Fuzz cases executed
0Stateful handler calls

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 propertyCategoryObserved result
testFuzz_WrongSignerCannotClaim(uint128)fuzzPassed · 256 runs
test_ClaimBeforeLaunchReverts()unitPassed
test_ExpiredClaimReverts()unitPassed
test_MockedLaunchMintsDeclaredAllocations()unitPassed
test_Observation_AuthorizedClaimCanExceedMaxSupplyConstant()unitPassed
test_Observation_ConstructorDoesNotMint()unitPassed
test_Observation_RenouncingOwnerDoesNotRevokeDeployerRole()unitPassed
test_Observation_SignatureReusableAcrossTwoLocalDeployments()unitPassed
test_Observation_ZeroSignerBlocksFormerSignedClaims()unitPassed
test_SignedClaimMintsAndCannotRepeat()unitPassed
test_UnauthorizedLaunchReverts()unitPassed
test_UnauthorizedSetSignerReverts()unitPassed

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.

F-01 · Code finding submission

Delegatecall Usage

HIGH / SUBMITTED

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.

Declared impact

A malicious target could overwrite storage variables, steal funds, or destroy the contract.

Proposed remediation

Ensure delegatecall targets are trusted, verified contracts. Use a whitelist of approved implementation addresses.

Disposition: OPENDeclared CVSS: 8.5 (not validated)CWE-829SWC-112

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H

Founder review question

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");
        }
    }
}
F-02 · Code finding submission

Floating Pragma Version

LOW / SUBMITTED

pragma solidity directive

The contract uses a floating pragma (^). This allows compilation with multiple compiler versions, which may introduce inconsistencies between deployments.

Declared impact

Different compiler versions may produce different bytecode or include different known bugs.

Proposed remediation

Lock the pragma to a specific version, e.g., pragma solidity 0.8.20;

Disposition: OPENDeclared CVSS: 3.7 (not validated)CWE-693SWC-103

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N

Founder review question

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" }
F-03 · Informational observation

Fixed Supply (Constructor-Only Mint)

INFO / SUBMITTED

Constructor

Token minting occurs only in the constructor. The supply is fixed at deployment with no public or external mint function available.

Declared impact

No inflation risk. The token supply cannot be increased after deployment.

Proposed remediation

No action needed. This is a secure pattern for fixed-supply tokens.

Disposition: OPENDeclared CVSS: 0 (not validated)CWE-284

CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:N/I:N/A:N

Founder review question

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.

F-04 · Informational observation

Initial Supply Concentration

INFO / SUBMITTED

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.

Declared impact

The initial holder controls 100% of supply. If tokens are not distributed, this creates market dump risk and governance centralization.

Proposed remediation

This is an economic/governance consideration, not a smart contract vulnerability. Recommend transparent vesting schedules and distribution plans.

Disposition: OPENDeclared CVSS: 0 (not validated)CWE-703

CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:N/I:N/A:N

Founder review question

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.

Source snapshot
Missing

Attach exact source files, compiler settings and an immutable source digest.

CI source binding
Not established

A workflow link or a successful job alone cannot establish source-bound analysis.

Exploit reproduction
Not established

1 PoC code submissions are available above. Compilation, execution and exploit preconditions are not established by their presence.

Founder sign-off
Pending

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.

  1. Lock the exact source, dependency versions, compiler settings and deployment identity.
  2. Resolve the saved record inconsistencies before relying on architecture or supply claims.
  3. Validate each finding against the code, with reachable preconditions and a reproducible impact.
  4. Capture real tool outputs, reproduce applicable exploits and retest proposed fixes.
  5. Record the founder's decisions and issue a signed report only when the evidence gate permits it.