Skip to content

Possible Miss Range Check Bug #145

Description

@autoDetector

AddCard lacks bounds on index

Vulnerable File: packages/circuits/src/lib/Card.circom
commit: d32b6982536ca217d4255b14e449e3859764c600

If index >= size, nothing is updated (all IsEqual comparisons are 0), yet the circuit still satisfies constraints. If the calling logic assumes the update must occur, this can be abused.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions