Skip to content

Latest commit

 

History

History
24 lines (14 loc) · 609 Bytes

ecrecover.md

File metadata and controls

24 lines (14 loc) · 609 Bytes

Ecrecover

Configuration

  • Check: pess-ecrecover
  • Severity: High
  • Confidence: Medium

Description

ecrecover functions returns 0 on error. It is important to check the result for 0.

Potential Improvement

  • As for now, the detector might not work on asm level.
  • ecrecover_negative5 in test scenarios should be found since the result of the check is unused. However, currently such scenarious are not covered.

Vulnerable Scenario

test scenarios

Recommendation

Check the result of ecrecover or use OZ ECDSA library.