Open zlsecure3 opened 1 year ago
submission_id:1465148838
review_type:GRADING
result: TBD-yes,no
rating: TBD-123
comment: TBD-Rejected,Accepted by Secure3.
severity: TBD-Critical,Medium,Low,Informational
category:
description:
submission_id:1465148838
review_type:CLIENT_FEEDBACK
result: TBD-yes,no
severity: TBD-Critical,Medium,Low,Informational
comment:
submission_id:1465148838
review_type:CLIENT_FEEDBACK_DECISION
result: TBD-yes,no,yes-honored,no-honored
severity: TBD-Critical,Medium,Low,Informational
comment:
subject
There is no guarantee that domain shortest length is less than or equal to the longest length.
description
Domain shortest and longest length are set by
StarNameService::set_domain_shortest_length
andStarNameService::set_domain_longest_length
seperately. There is no guarantee thatshortest_length <= longest_length
however.The impact is that If admin set the
shortest_length > longest_length
accidently,StarNameService::create_name_script
andStarNameService::airdrop_mint
will abort due to:recommendation
combine
set_domain_shortest_length
andset_domain_longest_length
into one function, and makes sureshortest_length
is less than or equal tolongest_length
.locations
severity
Medium
damage
exploitability
category
Logical
system_generated: auditor:jayphbee submission_id:1465148838