Skip to content

Code4rena

Holograph contest

Every publicly disclosed report for Holograph contest and what kind of bugs they were.

disclosed reports
27
most reported class
Business logic
bug classes found
6
first disclosure
2022
Find Holograph contest on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Holograph contest chose to make public.

Business logic

LayerZeroModule miscalculates gas, risking loss of assets

The LayerZeroModule contract used global baseGas and gasPerByte values from the source chain to calculate the gas limit for destination-chain messages, instead of using destination-specific values. When these values differ between chains, the delivery could be underpriced, causing lzReceive to revert and the NFT to become stuck permanently.

Holograph contest

High
Crypto

Bad source of randomness

The contract used block.number and block.timestamp as a source of randomness to select a primary operator. A compromised layer-zero endpoint could retry the selection until the result favoured the attacker.

Holograph contest

Medium
Smart contracts

Incorrect implementation of ERC721 may have bad consequences for receiver

The ERC721 enforcer contract passed its own address as the operator argument when calling onERC721Received on a receiving contract, instead of the actual caller of safeTransferFrom. A receiving contract that relies on that argument for bookkeeping or to decide whether to accept the transfer would act on false information, so transfers could be wrongly rejected or credited incorrectly.

Holograph contest

Medium
Business logic

HolographERC721.safeTransferFrom not compliant with EIP-721

The safeTransferFrom implementation in HolographERC721 required the receiving contract to advertise ERC-165 support before calling onERC721Received, which the EIP-721 specification does not require. As a result, transfers to receivers that implement only onERC721Received, which is most receivers in practice, would revert and the tokens could not be delivered.

Holograph contest

Medium
Business logic

HolographERC20 breaks composability by forcing usage of draft proposal EIP-4524

The HolographERC20 enforcer required any contract recipient of a safeTransferFrom to implement the draft EIP-4524 receiver interface, reverting otherwise. This made tokens issued through the enforcer unusable with most DeFi contracts that do not support that draft standard.

Holograph contest

Medium
Business logic

Wrong slashing calculation rewards for operator that did not do his job

The slashing logic in the Holograph operator contract deducts the entire base bond amount from an operator who fails to execute a job, instead of the percentage specified in the documentation. An attacker could exploit this to cause unfair punishment or manipulate rewards, as the full bond is transferred to the next operator rather than a portion.

Holograph contest

Medium
Access control

HolographERC721.approve not EIP-721 compliant

The approve function in HolographERC721 allows an approved address to approve another address, which violates EIP-721. An attacker who is approved for a token could approve a malicious address and steal the token.

Holograph contest

Medium
Business logic

Attacker can force chaotic operator behavior

Any user can create many empty operator pods by bonding and immediately unbonding a large amount of tokens to a high pod tier, causing the scheduler to frequently select an empty pod. This leads to 'open season' where any operator can execute jobs, wasting gas for others.

Holograph contest

Medium
Business logic

PA1D#bidSharesForToken returns incorrect bidShares.creator.value

The bidSharesForToken function returns creator bid share values in raw basis points instead of the 18-decimal percentage format expected by the Zora market. This causes incorrect royalty calculations when the market validates or uses the bid shares.

Holograph contest

Medium
DoS

_payoutToken[s]() is not compatible with tokens with missing return value

The payout functions call ERC20 transfer inside a require statement that expects a boolean return value. For tokens that do not return a boolean, the transfer reverts even when successful, so payouts are blocked and tokens remain stuck in the contract.

Holograph contest

Medium
Smart contracts

Bond tokens (HLG) can get permanently stuck in operator

When a job is executed by someone who is not an operator, the slashed bond amount is credited to that caller's bonded balance, but the bonding function requires a zero bonded balance, so the tokens cannot be retrieved. An attacker could cause bond tokens to become permanently stuck in the contract.

Holograph contest

Medium
Race condition

Holographable tokens can be reinitialized

The initializer of holographable tokens is vulnerable to reentrancy, allowing an attacker to set the holograph contract address to an untrusted contract. This lets the attacker control the bridge and operator addresses, enabling unauthorised transfers of the token.

Holograph contest

Medium
Business logic

ApprovalAll event is missing parameters

The beforeApprovalAll and afterApprovalAll event hooks in HolographERC721.sol only pass the 'to' and 'approved' parameters, omitting the 'owner' (the address granting approval). As a result, contracts listening to these events cannot determine who initiated the approval, making the event effectively unusable for reacting to approvals.

Holograph contest

Medium
Smart contracts

Leak of value when interacting with an ERC721 enforcer contract

The enforcer contract's receive() function does not forward calls to the underlying implementation, so any value sent with empty calldata is trapped and treated as royalties rather than reaching custom logic. An attacker could send value expecting a custom payable action, but the funds are instead diverted to payout addresses.

Holograph contest

Medium
Access control

Source contract can steal NFTs from users

The Holographed ERC721 contract gives the user-created source contract the power to burn and transfer any user's NFT without their approval. An attacker who controls or compromises the source contract owner's key could therefore steal or destroy users' NFTs.

Holograph contest

Medium
Business logic

Implementation code does not align with the business requirement: Users are not charged with withdrawn fee when user unbound token in HolographOperator.sol

The unbonding function in HolographOperator.sol returns the full bonded amount to the operator without deducting the 0.1% withdrawal fee described in the protocol documentation. An operator could therefore unbond and re-bond freely without paying the intended penalty, weakening the incentive to stay bonded.

Holograph contest

Medium
Business logic

Failed job can’t be recovered. NFT may be lost.

The executeJob function deletes the job record before attempting the bridge call, so if the call fails the job cannot be retried and the NFT is permanently lost. An attacker could cause the bridge call to fail, for example by providing insufficient gas, resulting in the loss of the NFT.

Holograph contest

High
Business logic

Gas limit check is inaccurate, leading to an operator being able to fail a job intentionally

The gas limit check in HolographOperator.sol is inaccurate because the actual gas available for the bridge call is less than the checked amount due to the 1/64 rule. An attacker can exploit this gap to make the bridge call fail while the job execution continues, causing the token owner to lose access to the bridged token.

Holograph contest

High
Access control

isOwner / onlyOwner checks can be bypassed by attacker in ERC721/ERC20 implementations

The isOwner and onlyOwner access-control utilities in the ERC721H/ERC20H base contracts could be tricked into returning true for an attacker because the enforcer sometimes calls implementation functions directly without appending the caller's address to the calldata. An attacker could therefore trigger owner-only logic in derived contracts by supplying a crafted data parameter.

Holograph contest

Medium
Business logic

If user sets a low gasPrice the operator would have to choose between being locked out of the pod or executing the job anyway

A user can set an extremely low gas price when requesting a cross-chain job, so the selected operator is compensated far less than the actual gas cost. Because the operator is locked out of the pod until the job is executed, they must either pay the difference or remain unable to take other jobs or withdraw their bond.

Holograph contest

High