Skip to content

[L-06] Direct usage of ecrecover allows signature malleability #35

@madMax92221

Description

@madMax92221

The getSender function of SalesPolicy.sol calls the Solidity ecrecover function directly to verify the given signatures. However, the ecrecover EVM opcode allows malleable (non-unique) signatures and thus is susceptible to replay attacks.

SWC-117: Signature Malleability

Use the recover function from OpenZeppelin's ECDSA library for signature verification.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions