A potential overflow vulnerability exists in the MarketUtils library when converting large uint256 values to int256 during collateral checks. While this requires misconfiguration, it could impact critical system operations.
The issue occurs in the willPositionCollateralBeSufficient function when converting position values:
The applyFactor() function currently performs multiplication without checking if the result will fit within int256 bounds:
Severity: Low
Likelihood: Low
Potential Impact: Transaction reverts during legitimate collateral checks
The severity is rated low because:
Requires specific misconfiguration of system parameters
Protected by existing bounds checks in most scenarios
No direct loss of funds possible
Add validation before the int256 conversion:
Manual code review
Solidity compiler analysis
Please read the CodeHawks documentation to know which submissions are valid. If you disagree, provide a coded PoC and explain the real likelihood and the detailed impact on the mainnet without any supposition (if, it could, etc) to prove your point.
There is no real proof, concrete root cause, specific impact, or enough details in those submissions. Examples include: "It could happen" without specifying when, "If this impossible case happens," "Unexpected behavior," etc. Make a Proof of Concept (PoC) using external functions and realistic parameters. Do not test only the internal function where you think you found something.
Please read the CodeHawks documentation to know which submissions are valid. If you disagree, provide a coded PoC and explain the real likelihood and the detailed impact on the mainnet without any supposition (if, it could, etc) to prove your point.
There is no real proof, concrete root cause, specific impact, or enough details in those submissions. Examples include: "It could happen" without specifying when, "If this impossible case happens," "Unexpected behavior," etc. Make a Proof of Concept (PoC) using external functions and realistic parameters. Do not test only the internal function where you think you found something.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.