You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
offer.maxDeadline is used instead of extendedTime when calculating the fee
Summary
The feeOfMaxDeadline formula incorrectly uses offer.maxDeadline, which leads to incorrect fee calculations for loan extensions.
Root Cause
Incorrect use of offer.maxDeadline in the fee calculation formula instead of using extendedTime. offer.maxDeadline represents the loan max deadline, while extendedTime represents the loan duration after the loan extension.
Internal pre-conditions
No response
External pre-conditions
No response
Attack Path
No response
Impact
Example scenario:
offer.maxDeadline = 10 days extendedTime = 5 days feePerDay = 100 units
Using the incorrect formula with offer.maxDeadline:
The user would be overcharged by 500 units if the system uses the wrong formula with offer.maxDeadline.
PoC
No response
Mitigation
Use extendedTime instead of offer.maxDeadline when calculating feeOfMaxDeadline.
The text was updated successfully, but these errors were encountered:
sherlock-admin3
changed the title
Attractive Currant Kitten - offer.maxDeadline is used instead of extendedTime when calculating the fee
Falendar - offer.maxDeadline is used instead of extendedTime when calculating the fee
Dec 12, 2024
Falendar
High
offer.maxDeadline
is used instead ofextendedTime
when calculating the feeSummary
The feeOfMaxDeadline formula incorrectly uses
offer.maxDeadline
, which leads to incorrect fee calculations for loan extensions.Root Cause
Incorrect use of
offer.maxDeadline
in the fee calculation formula instead of usingextendedTime
.offer.maxDeadline
represents the loan max deadline, whileextendedTime
represents the loan duration after the loan extension.Internal pre-conditions
No response
External pre-conditions
No response
Attack Path
No response
Impact
Example scenario:
offer.maxDeadline = 10 days
extendedTime = 5 days
feePerDay = 100 units
Using the incorrect formula with
offer.maxDeadline
:offer.maxDeadline = 864000 seconds
(10 days)feeOfMaxDeadline = ((864000 * 100) / 86400);
feeOfMaxDeadline = 1000 units
Using the correct formula with
extendedTime
:extendedTime = 432000 seconds
(5 days)feeOfMaxDeadline = ((432000 * 100) / 86400);
feeOfMaxDeadline = 500 units
The user would be overcharged by 500 units if the system uses the wrong formula with
offer.maxDeadline
.PoC
No response
Mitigation
Use
extendedTime
instead ofoffer.maxDeadline
when calculatingfeeOfMaxDeadline
.The text was updated successfully, but these errors were encountered: