Description:
updateMarket function Updates the market when settlement time is passed, now a user can provide marketPlace info to the protocol to the protocol with premature _settlementPeriod
time, and the function will execute when the protocol runs it, this updateMarket
function is expected to only run when _settlementPeriod
has passed, so without a validation on if the provided params, if the _settlementPeriod
is greater than 72 hours then the function will pass even when _settlementPeriod
provided is less than 72 hours
Impact:
this function is only designed to be called only when settlement time has passed, but due to the missing validation protocol can called this function with users provided params and it will pass even when the settlement period have not yet started
Proof of Code:
Recommended Mitigation:
include a validation in the updateMarket function so that it can only be updated only when settlement time is passed
The following issues and its duplicates are invalid as admin errors/input validation/malicious intents are1 generally considered invalid based on [codehawks guidelines](https://docs.codehawks.com/hawks-auditors/how-to-determine-a-finding-validity#findings-that-may-be-invalid). If they deploy/set inputs of the contracts appropriately, there will be no issue. Additionally admins are trusted as noted in READ.ME they can break certain assumption of the code based on their actions, and
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.