Skip to content
Smart contracts Audit finding Intermediate

Reentrancy in distributePromoterPayments() allows total theft of promoter and venue funds

The distributePromoterPayments function in BelongCheckIn.sol performs external token and escrow transfers before burning the promoter's credits, violating the checks-effects-interactions pattern. An attacker controlling a malicious escrow contract could re-enter the function and drain all funds held by the contract.

daxun Follow

Originally disclosed on Immunefi

  • Disclosed after under an hour

57596 sc low reentrancy in distributepromoterpayments allows total theft of promoter and venue funds

Submitted on Oct 27th 2025 at 12:04:48 UTC by @daxun for Audit Comp | Belong

Description

Brief/Intro

The distributePromoterPayments() function in BelongCheckIn.sol is vulnerable to a reentrancy attack.

The function performs multiple external token and escrow transfers before updating internal state by burning promoter credits. This ordering violates the Checks-Effects-Interactions pattern, allowing an attacker to re-enter the function and drain funds multiple times using the same promoter credits.

Exploitation results in direct theft of all user funds held by the contract, fully meeting the “Direct theft of funds” critical impact category.

Vulnerability Details

The vulnerable function: https://github.com/immunefi-team/audit-comp-belong/blob/a17f775dcc4c125704ce85d4e18b744daece65af/contracts/v2/platform/BelongCheckIn.sol#L538-L552

Solidity
function distributePromoterPayments(PromoterInfo memory promoterInfo) external {
    if (promoterInfo.paymentInUSDC) {
        _storage.contracts.escrow.distributeVenueDeposit(promoterInfo.venue, address(this), platformFees);
        _handleRevenue(_storage.paymentsInfo.usdc, platformFees);
        _storage.contracts.escrow.distributeVenueDeposit(promoterInfo.venue, promoterInfo.promoter, toPromoter);
    } else {
        _storage.contracts.escrow
            .distributeVenueDeposit(promoterInfo.venue, address(this), promoterInfo.amountInUSD);
        uint256 longFees = _swapUSDCtoLONG(address(this), platformFees);
        _handleRevenue(_storage.paymentsInfo.long, longFees);
        _swapUSDCtoLONG(promoterInfo.promoter, toPromoter);
    }

    // ❌ State change (burn) after external calls – vulnerable to reentrancy
    _storage.contracts.promoterToken.burn(promoterInfo.promoter, venueId, promoterInfo.amountInUSD);
}

Problem:

  • Multiple external calls (Escrow.distributeVenueDeposit, _swapUSDCtoLONG, _handleRevenue) occur before the final state update (burn).
  • These calls may trigger fallback functions or token hooks from malicious contracts, enabling reentrancy before the burn executes.
  • During reentry, the same promoter can re-call distributePromoterPayments(), claiming multiple payouts with the same credits.

Because the burn happens last, the promoter’s “balance” remains valid for the entire reentrancy window.

Root Cause:

  • CEI pattern violation — internal state is updated after external calls.
  • No reentrancy guard (nonReentrant) present.
  • No temporary locking or reentrancy flag in storage.

Impact Details

Severity: Critical
Impact Type: Direct theft of user funds

Effect: A malicious contract can repeatedly call distributePromoterPayments() through a reentrancy loop and drain all available funds from the Escrow and CheckIn contracts.

Who can exploit: Any registered promoter or attacker controlling a malicious Escrow/token contract.

Reproducibility: 100% reproducible. Requires no privileged roles or external dependencies.

Loss potential: Unlimited — attacker can drain all balances meant for venue and promoter payments.

In-scope verification: The vulnerable file (BelongCheckIn.sol) is explicitly listed as in-scope in the program’s assets under ./contracts/v2/BelongCheckIn.sol.

References

Proof of Concept

Setup (how to reproduce)

{% stepper %} {% step %}

Deploy mocks and initialize

  • Deploy mock versions of USDC and LONG.
  • Deploy a malicious Escrow contract (see below) with a fallback that re-enters distributePromoterPayments().
  • Deploy BelongCheckIn and initialize it with the malicious Escrow address.
  • Mint promoter credits to the attacker-controlled address. {% endstep %} {% endstepper %}

Malicious Escrow Contract

Solidity
contract MaliciousEscrow {
    BelongCheckIn target;
    BelongCheckIn.PromoterInfo promoterInfo;

    constructor(BelongCheckIn _target, BelongCheckIn.PromoterInfo memory _info) {
        target = _target;
        promoterInfo = _info;
    }

    // Called by BelongCheckIn during payout
    function distributeVenueDeposit(address venue, address to, uint256 amount) external {
        // Re-enter before state update (burn)
        target.distributePromoterPayments(promoterInfo);
    }
}

Exploit steps

{% stepper %} {% step %} Attacker deploys the malicious Escrow contract and registers it as the protocol’s escrow. {% endstep %}

{% step %} Attacker calls distributePromoterPayments() as a valid promoter. {% endstep %}

{% step %} During the call, Escrow.distributeVenueDeposit() triggers the malicious fallback. {% endstep %}

{% step %} The fallback re-enters distributePromoterPayments() before _burn() executes. {% endstep %}

{% step %} The function executes again, paying out funds a second time. {% endstep %}

{% step %} The cycle repeats until all contract funds are drained. {% endstep %} {% endstepper %}

Expected Output (Simu)

Initial promoter balance: 0 USDC
After 1st call: 1000 USDC
After reentrancy: 2000 USDC
After 5 iterations: 5000 USDC
Final CheckIn contract balance: 0 USDC

Result: All funds are stolen from the CheckIn/Escrow contracts.

Fix Recommendation

{% hint style="success" %} Move internal state updates before external calls and apply a reentrancy guard. {% endhint %}

Suggested concrete changes (do not add new behavior beyond original recommendation):

  • Burn promoter credits (or otherwise mark them spent) before performing any external transfers.
  • Add a reentrancy guard (nonReentrant) on distributePromoterPayments() (or implement an explicit reentrancy lock in storage).
  • Prefer Checks-Effects-Interactions ordering for all functions performing external transfers.

The original report as published on Immunefi, by daxun. Images and videos are our own copies; raw HTML is shown as text. View it on Immunefi.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 5 min read.

Context

Belong is a platform whose on-chain component, BelongCheckIn.sol, handles check-ins and the payment flows around promoters and venues. The contract keeps promoter credits in a promoter token and moves money through an escrow contract. When a promoter's share of a venue's deposit is due, the platform calls distributePromoterPayments() to push the venue deposit out of escrow, split off the platform fee, and pay the promoter, then burn the promoter's credits so they cannot be claimed again.

The report targets the file contracts/v2/platform/BelongCheckIn.sol in the audit competition repository. The researcher classifies the issue as a reentrancy in distributePromoterPayments() that would allow total theft of promoter and venue funds. The platform recorded the report as Low severity, with the impact category "Direct theft of any user funds, whether at-rest or in-motion, other than unclaimed yield".

Setup

The report does not describe any accounts, roles, tooling or versions beyond the contract itself. The reproduction is a local deployment of mocks:

  1. Deploy mock versions of USDC and LONG.
  2. Deploy a malicious Escrow contract with a fallback that re-enters distributePromoterPayments().
  3. Deploy BelongCheckIn and initialise it with the malicious Escrow address.
  4. Mint promoter credits to the attacker-controlled address.

The stated preconditions are that the attacker is a registered promoter, or controls a malicious Escrow or token contract. The report claims the issue is 100% reproducible and requires no privileged roles or external dependencies.

Finding it

In distributePromoterPayments(), every external interaction happens before the internal state change. The function, as quoted in the report:

Solidity
function distributePromoterPayments(PromoterInfo memory promoterInfo) external {
    if (promoterInfo.paymentInUSDC) {
        _storage.contracts.escrow.distributeVenueDeposit(promoterInfo.venue, address(this), platformFees);
        _handleRevenue(_storage.paymentsInfo.usdc, platformFees);
        _storage.contracts.escrow.distributeVenueDeposit(promoterInfo.venue, promoterInfo.promoter, toPromoter);
    } else {
        _storage.contracts.escrow
            .distributeVenueDeposit(promoterInfo.venue, address(this), promoterInfo.amountInUSD);
        uint256 longFees = _swapUSDCtoLONG(address(this), platformFees);
        _handleRevenue(_storage.paymentsInfo.long, longFees);
        _swapUSDCtoLONG(promoterInfo.promoter, toPromoter);
    }

    // ❌ State change (burn) after external calls – vulnerable to reentrancy
    _storage.contracts.promoterToken.burn(promoterInfo.promoter, venueId, promoterInfo.amountInUSD);
}

The burn of the promoter's credits is the last statement. Before it, the function calls Escrow.distributeVenueDeposit, _swapUSDCtoLONG and _handleRevenue. Those are external calls, and the report notes they may trigger fallback functions or token hooks from malicious contracts. Because the burn has not happened yet, the promoter's balance is still valid for the whole window in which those calls run, so a re-entering call can claim the same credits again.

The report lists three contributing problems:

  • Multiple external calls occur before the final state update (burn).
  • There is no reentrancy guard (nonReentrant) on the function.
  • There is no temporary locking or reentrancy flag in storage.

Exploitation

The proof of concept uses a malicious Escrow contract whose distributeVenueDeposit() re-enters the target:

Solidity
contract MaliciousEscrow {
    BelongCheckIn target;
    BelongCheckIn.PromoterInfo promoterInfo;

    constructor(BelongCheckIn _target, BelongCheckIn.PromoterInfo memory _info) {
        target = _target;
        promoterInfo = _info;
    }

    // Called by BelongCheckIn during payout
    function distributeVenueDeposit(address venue, address to, uint256 amount) external {
        // Re-enter before state update (burn)
        target.distributePromoterPayments(promoterInfo);
    }
}

The contract stores the target and the PromoterInfo it was constructed with. When BelongCheckIn calls distributeVenueDeposit() during a payout, the malicious implementation immediately calls distributePromoterPayments(promoterInfo) on the target again, before the original call reaches its burn.

Step 1: deploy and register the malicious escrow

The attacker deploys the malicious Escrow contract and registers it as the protocol's escrow.

Step 2: call the payout function

The attacker calls distributePromoterPayments() as a valid promoter.

Step 3: the escrow re-enters

During the call, Escrow.distributeVenueDeposit() triggers the malicious implementation, which re-enters distributePromoterPayments() before _burn() executes.

Step 4: the payout runs again

The function executes again, paying out funds a second time.

Step 5: repeat until drained

The cycle repeats until all contract funds are drained.

The report gives the expected output of the simulation:

Text
Initial promoter balance: 0 USDC
After 1st call: 1000 USDC
After reentrancy: 2000 USDC
After 5 iterations: 5000 USDC
Final CheckIn contract balance: 0 USDC

Root cause

The root cause is a Checks-Effects-Interactions violation: the internal state update, burning the promoter's credits, happens after the external transfers. The report also points to the absence of a reentrancy guard and of any storage-based lock or flag. With no guard, the malicious escrow can call back into the function while the first invocation is still in flight, and because the credits have not been burned, the second invocation can pay out again.

Impact

The report describes the impact as direct theft of user funds. A malicious contract can repeatedly call distributePromoterPayments() through a reentrancy loop and drain all available funds from the Escrow and CheckIn contracts. The report states the loss potential is unlimited, since the attacker can drain all balances meant for venue and promoter payments, and that any registered promoter or an attacker controlling a malicious Escrow or token contract can exploit it. The platform recorded the report as Low severity.

Fix

The recommendation is to move internal state updates before external calls and to apply a reentrancy guard. The concrete changes suggested are:

  • Burn promoter credits, or otherwise mark them spent, before performing any external transfers.
  • Add a reentrancy guard (nonReentrant) on distributePromoterPayments(), or implement an explicit reentrancy lock in storage.
  • Prefer Checks-Effects-Interactions ordering for all functions that perform external transfers.

The report does not say whether any of these changes were made.

Variants to test

  • Other payout or settlement functions in the same contract that call escrow or token contracts before updating balances. A positive result is a second payout for the same credits when the external call re-enters.
  • Functions that call _swapUSDCtoLONG or _handleRevenue before marking state. A positive result is a re-entrant call that observes the pre-update balance and pays out again.
  • Any function that trusts an externally supplied escrow or token address. A positive result is a malicious implementation whose callback re-enters the caller.
  • Token hooks and fallback functions on the payout path. A positive result is a callback into the payout function before the burn, with the credits still spendable.

Hunting notes

This kind of bug hides in payout and settlement functions that mix external transfers with a final bookkeeping step, especially where the contract can be pointed at an escrow or token address supplied by a party with an interest in the outcome. During recon, look for functions that end with a burn, a balance decrement or a status flag after one or more external calls, and for the absence of nonReentrant on those functions. The report illustrates impact with a malicious escrow, a re-entrant call before the burn, and an expected output where the contract balance reaches zero.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 11 min read.

What happened, in plain words

Belong is a platform that handles check-ins and payments between venues and promoters. Part of it runs as a smart contract on a blockchain: a program that lives at an address and runs automatically when someone sends it a transaction. The contract in question is called BelongCheckIn.sol, and one of its jobs is to pay promoters their share of a venue's deposit.

To understand the bug, imagine a cashier who pays out a refund before crossing the receipt off the list. If the customer can ask for the refund again while the cashier is still holding the receipt, they get paid twice. In this contract, the "crossing off" step is burning the promoter's credits, and it happens last. A malicious contract can call back into the payout function during the payment, before the credits are burned, and get paid again. Repeat that in a loop and the contract's money runs out.

The researcher reported this as a reentrancy issue that allows total theft of promoter and venue funds. The platform recorded it as Low severity, under the impact category "Direct theft of any user funds, whether at-rest or in-motion, other than unclaimed yield".

Context

Belong's on-chain component, BelongCheckIn.sol, handles check-ins and the payment flows around promoters and venues. The contract keeps promoter credits in a promoter token and moves money through an escrow contract. Escrow here means a separate contract that holds funds and releases them when the main contract asks. When a promoter's share of a venue's deposit is due, the platform calls distributePromoterPayments() to push the venue deposit out of escrow, split off the platform fee, pay the promoter, and then burn the promoter's credits so they cannot be claimed again.

A few terms from that paragraph, from zero:

  • A smart contract is a program deployed on a blockchain. It has an address, holds funds, and runs code when someone sends it a transaction. Nobody can change its code after deployment.
  • A token is a contract that keeps a ledger of who owns how many units. USDC is a token meant to track a US dollar, and LONG is another token used by this platform.
  • Burning a token means destroying units so they can no longer be used. Here, burning promoter credits marks them as spent.
  • An external call is one contract asking another contract to run a function. The other contract runs its own code, which the first contract does not control.

The report targets the file contracts/v2/platform/BelongCheckIn.sol in the audit competition repository. The researcher classifies the issue as a reentrancy in distributePromoterPayments() that would allow total theft of promoter and venue funds. The platform recorded the report as Low severity, with the impact category "Direct theft of any user funds, whether at-rest or in-motion, other than unclaimed yield".

Setup

The report does not describe any accounts, roles, tooling or versions beyond the contract itself. The reproduction is a local deployment of mocks. A mock is a stand-in version of a contract, written for testing, that behaves the way the real one is expected to behave.

  1. Deploy mock versions of USDC and LONG.
  2. Deploy a malicious Escrow contract with a fallback that re-enters distributePromoterPayments().
  3. Deploy BelongCheckIn and initialise it with the malicious Escrow address.
  4. Mint promoter credits to the attacker-controlled address.

A fallback is a special function a contract runs when it receives a call that does not match any of its named functions. It is a hook that lets a contract react to being called. Minting means creating new token units and assigning them to an address.

The stated preconditions are that the attacker is a registered promoter, or controls a malicious Escrow or token contract. The report claims the issue is 100% reproducible and requires no privileged roles or external dependencies.

Finding it

In distributePromoterPayments(), every external interaction happens before the internal state change. The function, as quoted in the report:

Solidity
function distributePromoterPayments(PromoterInfo memory promoterInfo) external {
    if (promoterInfo.paymentInUSDC) {
        _storage.contracts.escrow.distributeVenueDeposit(promoterInfo.venue, address(this), platformFees);
        _handleRevenue(_storage.paymentsInfo.usdc, platformFees);
        _storage.contracts.escrow.distributeVenueDeposit(promoterInfo.venue, promoterInfo.promoter, toPromoter);
    } else {
        _storage.contracts.escrow
            .distributeVenueDeposit(promoterInfo.venue, address(this), promoterInfo.amountInUSD);
        uint256 longFees = _swapUSDCtoLONG(address(this), platformFees);
        _handleRevenue(_storage.paymentsInfo.long, longFees);
        _swapUSDCtoLONG(promoterInfo.promoter, toPromoter);
    }

    // ❌ State change (burn) after external calls – vulnerable to reentrancy
    _storage.contracts.promoterToken.burn(promoterInfo.promoter, venueId, promoterInfo.amountInUSD);
}

Line by line, in plain words:

  • function distributePromoterPayments(PromoterInfo memory promoterInfo) external { declares a function anyone outside the contract can call. It takes a bundle of information about the promoter, called promoterInfo, and external means it is callable from outside.
  • if (promoterInfo.paymentInUSDC) { checks whether the promoter wants to be paid in USDC. If so, the first branch runs.
  • _storage.contracts.escrow.distributeVenueDeposit(promoterInfo.venue, address(this), platformFees); asks the escrow contract to release the platform fee portion of the venue deposit to this contract. This is an external call: the escrow runs its own code.
  • _handleRevenue(_storage.paymentsInfo.usdc, platformFees); records or routes the platform fee in USDC.
  • _storage.contracts.escrow.distributeVenueDeposit(promoterInfo.venue, promoterInfo.promoter, toPromoter); asks the escrow to release the promoter's share to the promoter. Another external call.
  • } else { covers the case where payment is not in USDC.
  • _storage.contracts.escrow.distributeVenueDeposit(promoterInfo.venue, address(this), promoterInfo.amountInUSD); releases the full amount in USD terms to this contract.
  • uint256 longFees = _swapUSDCtoLONG(address(this), platformFees); swaps the platform fee into LONG and stores the result in longFees.
  • _handleRevenue(_storage.paymentsInfo.long, longFees); records or routes the fee in LONG.
  • _swapUSDCtoLONG(promoterInfo.promoter, toPromoter); swaps the promoter's share into LONG and sends it to the promoter.
  • // ❌ State change (burn) after external calls – vulnerable to reentrancy is the researcher's comment marking the problem.
  • _storage.contracts.promoterToken.burn(promoterInfo.promoter, venueId, promoterInfo.amountInUSD); destroys the promoter's credits. This is the bookkeeping step that stops the same credits being claimed again.
  • } closes the function.

The burn of the promoter's credits is the last statement. Before it, the function calls Escrow.distributeVenueDeposit, _swapUSDCtoLONG and _handleRevenue. Those are external calls, and the report notes they may trigger fallback functions or token hooks from malicious contracts. A token hook is code inside a token contract that runs automatically when the token is transferred, giving the token a chance to execute logic. Because the burn has not happened yet, the promoter's balance is still valid for the whole window in which those calls run, so a re-entering call can claim the same credits again.

The report lists three contributing problems:

  • Multiple external calls occur before the final state update (burn).
  • There is no reentrancy guard (nonReentrant) on the function. A reentrancy guard is a lock that stops a function being entered again while it is still running.
  • There is no temporary locking or reentrancy flag in storage.

Exploitation

The proof of concept uses a malicious Escrow contract whose distributeVenueDeposit() re-enters the target:

Solidity
contract MaliciousEscrow {
    BelongCheckIn target;
    BelongCheckIn.PromoterInfo promoterInfo;

    constructor(BelongCheckIn _target, BelongCheckIn.PromoterInfo memory _info) {
        target = _target;
        promoterInfo = _info;
    }

    // Called by BelongCheckIn during payout
    function distributeVenueDeposit(address venue, address to, uint256 amount) external {
        // Re-enter before state update (burn)
        target.distributePromoterPayments(promoterInfo);
    }
}

Line by line:

  • contract MaliciousEscrow { starts a contract that pretends to be an escrow but is written to attack.
  • BelongCheckIn target; stores the address of the real contract it will call.
  • BelongCheckIn.PromoterInfo promoterInfo; stores the promoter details it will pass back in.
  • constructor(BelongCheckIn _target, BelongCheckIn.PromoterInfo memory _info) { is the setup function that runs once when the contract is deployed, taking the target and the promoter details.
  • target = _target; saves the target address.
  • promoterInfo = _info; saves the promoter details.
  • } closes the constructor.
  • // Called by BelongCheckIn during payout is a comment explaining when the next function runs.
  • function distributeVenueDeposit(address venue, address to, uint256 amount) external { defines a function with the same name and shape as the real escrow's function, so BelongCheckIn will call it without noticing the difference.
  • // Re-enter before state update (burn) is a comment marking the attack.
  • target.distributePromoterPayments(promoterInfo); calls the payout function on BelongCheckIn again, from inside the payout. This is the reentrancy.
  • } closes the function.
  • } closes the contract.

The contract stores the target and the PromoterInfo it was constructed with. When BelongCheckIn calls distributeVenueDeposit() during a payout, the malicious implementation immediately calls distributePromoterPayments(promoterInfo) on the target again, before the original call reaches its burn.

Step 1: deploy and register the malicious escrow

The attacker deploys the malicious Escrow contract and registers it as the protocol's escrow. This step matters because the attack only works if the contract that BelongCheckIn calls for escrow operations is the attacker's contract.

Step 2: call the payout function

The attacker calls distributePromoterPayments() as a valid promoter. This starts a normal-looking payout, with the attacker's credits still unburned.

Step 3: the escrow re-enters

During the call, Escrow.distributeVenueDeposit() triggers the malicious implementation, which re-enters distributePromoterPayments() before _burn() executes. The second call runs before the burn, so it can pay out again.

Step 4: the payout runs again

The function executes again, paying out funds a second time.

Step 5: repeat until drained

The cycle repeats until all contract funds are drained.

The report gives the expected output of the simulation:

Text
Initial promoter balance: 0 USDC
After 1st call: 1000 USDC
After reentrancy: 2000 USDC
After 5 iterations: 5000 USDC
Final CheckIn contract balance: 0 USDC

This output shows the promoter's balance starting at zero, reaching 2000 USDC after reentrancy and 5000 USDC after five iterations, with the contract ending with nothing left.

Root cause

The root cause is a Checks-Effects-Interactions violation: the internal state update, burning the promoter's credits, happens after the external transfers. The Checks-Effects-Interactions pattern is a simple ordering rule: check the conditions first, update your own records second, and only then talk to other contracts. Doing the bookkeeping last leaves a window where the records still say the credits are unspent.

The report also points to the absence of a reentrancy guard and of any storage-based lock or flag. With no guard, the malicious escrow can call back into the function while the first invocation is still in flight, and because the credits have not been burned, the second invocation can pay out again.

Impact

The report describes the impact as direct theft of user funds. A malicious contract can repeatedly call distributePromoterPayments() through a reentrancy loop and drain all available funds from the Escrow and CheckIn contracts. The report states the loss potential is unlimited, since the attacker can drain all balances meant for venue and promoter payments, and that any registered promoter or an attacker controlling a malicious Escrow or token contract can exploit it. The platform recorded the report as Low severity.

Fix

The recommendation is to move internal state updates before external calls and to apply a reentrancy guard. The concrete changes suggested are:

  • Burn promoter credits, or otherwise mark them spent, before performing any external transfers.
  • Add a reentrancy guard (nonReentrant) on distributePromoterPayments(), or implement an explicit reentrancy lock in storage.
  • Prefer Checks-Effects-Interactions ordering for all functions that perform external transfers.

The report does not say whether any of these changes were made.

Variants to test

  • Other payout or settlement functions in the same contract that call escrow or token contracts before updating balances. A positive result is a second payout for the same credits when the external call re-enters.
  • Functions that call _swapUSDCtoLONG or _handleRevenue before marking state. A positive result is a re-entrant call that observes the pre-update balance and pays out again.
  • Any function that trusts an externally supplied escrow or token address. A positive result is a malicious implementation whose callback re-enters the caller.
  • Token hooks and fallback functions on the payout path. A positive result is a callback into the payout function before the burn, with the credits still spendable.

Hunting notes

This kind of bug hides in payout and settlement functions that mix external transfers with a final bookkeeping step, especially where the contract can be pointed at an escrow or token address supplied by a party with an interest in the outcome. During recon, look for functions that end with a burn, a balance decrement or a status flag after one or more external calls, and for the absence of nonReentrant on those functions. The report illustrates impact with a malicious escrow, a re-entrant call before the burn, and an expected output where the contract balance reaches zero.

Glossary

  • Smart contract: a program deployed on a blockchain that runs automatically when called and cannot be changed afterwards.
  • Blockchain: a shared ledger maintained by many computers, where transactions are recorded and cannot easily be altered.
  • Token: a contract that keeps a ledger of who owns how many units of something.
  • USDC: a token meant to track the value of a US dollar.
  • LONG: a token used by this platform.
  • Escrow: a separate contract that holds funds and releases them when the main contract asks.
  • Burn: destroying token units so they can no longer be used.
  • Mint: creating new token units and assigning them to an address.
  • External call: one contract asking another contract to run a function.
  • Fallback function: a special function a contract runs when it receives a call that matches none of its named functions.
  • Token hook: code inside a token contract that runs automatically during a transfer.
  • Reentrancy: a situation where a contract is called again from inside one of its own calls, before the first call has finished.
  • Reentrancy guard: a lock that stops a function being entered again while it is still running.
  • Checks-Effects-Interactions: an ordering rule where a function checks conditions, updates its own records, and only then calls other contracts.
  • State: the data a contract stores, such as balances and credits.
  • Mock: a stand-in version of a contract written for testing.
  • Proof of concept: a working demonstration that the bug can be exploited.
  • Severity: the rating a platform gives a report, such as Low or Critical.
  • Recon: the early research phase where you look for weak spots before attempting an exploit.

More by daxun

View all

2 more disclosed reports, best first.

More from Belong

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Smart contract vulnerabilities

The lesson behind this report.

Flaws in on-chain code that let an attacker drain funds, freeze them or break the protocol's accounting.