Steadefi

Steadefi
DeFiHardhatFoundryOracle
35,000 USDC
View results
Submission Details
Severity: low
Valid

Inaccurate check for `answer` in `_badChainlinkResponse`

Summary

The validation for answer in _badChainlinkResponse is not accurate.

Vulnerability Details

Since the answer is a int type, if the answer is negative should also be consider as the part of the non-positive price and return true.

Impact

Mis-handling when return value is negative.

Tools Used

Manual

Recommendations

// Check for non-positive price
if (response.answer <= 0) { return true; }
Updates

Lead Judging Commences

hans Lead Judge almost 2 years ago
Submission Judgement Published
Validated
Assigned finding tags:

Chainlink oracle answer can be negative

Very low likelihood -> evaluate the severity to LOW

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.