Skip to content

Insecure usage of field_t::ranged_less_than in stdlib::keccak #1415

@iakovenkos

Description

@iakovenkos

The method ranged_less_than constrains $a<b$ under the assumption that $a, b < 2^{n} - 1$, where $n$ is a template parameter num_bits. However, in format_input_lanes $a$ is uint32_ct and $n = 14$. There's a chance it's constrained implicitly, however, this and other occurrences of this method must be reviewed and failure tests must be added.

Metadata

Metadata

Assignees

No one assigned

    Labels

    auditThings to do during the next auditbugSomething isn't workingsecurity

    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