Skip to content
Smart contracts Audit finding Intermediate

Missing signature duplication check in the submitCheckpoint function

The checkpoint submission function does not check for duplicate signatories, so a single validator can submit multiple signatures and accumulate enough weight to meet the quorum threshold alone. This allows a malicious validator or small colluding group to pass checkpoint validation without broad consensus.

shaflow2 Follow with 0xastronatey, 0xzell044 and 11 others

Originally disclosed on Code4rena

Submitted by shaflow2, also found by 0xastronatey, 0xzell044, aldarion, Daniel526, Giorgio, kodyvim, MSK, muellerberndt, Mylifechangefast_eth, NexusAudits, Rorschach, SBSecurity, and Sparrow

The checkpoint submission process relies on a weighted multi-signature verification scheme, but due to the lack of signature duplication checks, a single malicious validator can pass the checkpoint validation on their own.

Proof of Concept

The checkpoint submission process relies on a weighted multi-signature verification scheme to ensure that a quorum of active validators has signed the checkpoint. However, the implementation does not enforce the uniqueness of signatories. This allows a single validator to repeatedly provide multiple signatures, thereby accumulating their weight and potentially satisfying the threshold on their own.

This situation could allow a malicious validator (or a colluding minority) to pass the checkpoint validation with minimal participation from other validators.

In the SubnetActorCheckpointingFacet contract:

    function submitCheckpoint(
        BottomUpCheckpoint calldata checkpoint,
        address[] calldata signatories,
        bytes[] calldata signatures
    ) external whenNotPaused {
        ensureValidCheckpoint(checkpoint);

        bytes32 checkpointHash = keccak256(abi.encode(checkpoint));

        // validate signatures and quorum threshold, revert if validation fails
        validateActiveQuorumSignatures({signatories: signatories, hash: checkpointHash, signatures: signatures});

The critical issue is that the validateActiveQuorumSignatures function does not enforce that each validator appears only once in the signatories array. For example, consider a scenario where:

  • The validator set comprises 10 validators with a combined total weight of 100.
  • The quorum threshold is calculated as 51 (i.e. 51% of 100).
  • If a single validator (with weight 6) signs the checkpoint multiple times (e.g., 10 times), the accumulated weight would be 6 × 10 = 60, which exceeds the threshold of 51.

This means that only one validator, by duplicating its signature, could potentially satisfy the quorum requirement. This undermines the intended security of requiring a broad consensus among multiple independent validators.

A malicious validator (or a small colluding group) could repeatedly sign the same checkpoint, artificially inflating their weight and meeting the quorum threshold even if the majority of validators did not participate.

Recommended mitigation steps

Modify the multi-signature verification logic to ensure that each validator address appears only once in the signatories array.

Recall confirmed


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

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

The signature verification logic does not enforce that each validator address appears only once in the signatories array, allowing weight to be accumulated through duplicate entries.

Impact

A malicious validator or colluding minority could pass checkpoint validation without participation from the majority of validators, undermining the intended consensus security.

What the attacker needed

A validator account with some weight; ability to submit a checkpoint

The fix

The multi-signature verification logic should be modified to ensure that each validator address appears only once in the signatories array.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

A checkpoint is a record that validators approve. The system requires a minimum total voting weight (a quorum) from different validators. Because the code does not check that each validator appears only once, one validator can sign many times and reach the required weight by themselves.

What is Smart contracts?

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

More by shaflow2

View all

12 more disclosed reports, best first.

More from Recall

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.