In the PreMarkets::listOffer
function, the id field of the OfferInfo
struct is incorrectly assigned the stockInfo.id
value instead of the offerInfo.id
. Since the OfferInfo
structure contains information directly related to the offer, including the unique identifier (id), it is crucial that the correct identifier is assigned to ensure accurate tracking and management of offers.
Assigning the stockInfo.id
instead of offerInfo.id
can lead to several issues:
Incorrect Data Association: The offer may be incorrectly associated with the wrong identifier, leading to inconsistencies in the system and potential mismanagement of offers.
Tracking and Auditing Issues: It may become difficult to track, audit, and verify the details of specific offers if they are not correctly identified.
Potential Security Risks: If the system relies on the correct identification of offers for security checks or authorization, this bug could be exploited to perform unauthorized actions or manipulate offer data.
Manual Review
Replace the assignment of stockInfo.id
with offerInfo.id in the offerInfoMap
update section to ensure the correct identifier is used for the offer. This will ensure that each offer is accurately tracked and associated with the correct data.
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.