Skip to content
Business logic Audit finding Intermediate

Strike Price Not Validated Against Strike Percent, Leading to Exploitation Risk

The deposit function accepted a strike price and strike percent that were not checked against each other, so a user could pick a high strike percent to pay lower option fees while also picking a low strike price to keep the larger payout. This mismatch could reduce fees collected and cause financial loss to the protocol.

0x23r0 Follow with 0x37, 0x73696d616f and 17 others

Originally disclosed on Sherlock

Source: https://github.com/sherlock-audit/2024-11-autonomint-judging/issues/1039

Found by

0x23r0, 0x37, 0x73696d616f, DDYYWW, LordAlive, Pablo, ParthMandale, PeterSR, durov, futureHack, gss1, influenz, newspacexyz, nuthan2x, pashap9990, santiellena, t.aksoy, tedox, volodya, wellbyt3

Summary

The strikePrice and strikePercent are important parameters in the Borrowing::depositTokens function, which are passed to the BorrowLib::deposit function for option fee calculations. As the strikePercent increases, from 5% to 25%, the option fees decrease, while the potential for greater gains on strikePrice increases. A lower strikePercent, such as 5%, has a higher probability of generating returns due to the higher likelihood of ETH moving by 5%.

However, there is no validation to ensure that the strikePrice is logically consistent with the strikePercent. Malicious actors could exploit this by selecting a high strikePercent (e.g., 25%), thus paying lower option fees, and simultaneously selecting a low strikePrice (e.g., 5%), allowing them to benefit from the lower strike price associated with a smaller strikePercent. This mismatch can result in financial losses for the protocol.

Root Cause

The issue arises from the lack of a validation check to ensure that the strikePrice aligns with the chosen strikePercent.

Internal pre-conditions

No response

External pre-conditions

The value of the collateral asset must increase by at least given 5% from its deposit value by the time of withdrawal.

Attack Path

  1. Exploiting the missing validation, an attacker selects arbitrary values for strikePercent and strikePrice, even if they are not logically consistent.
  2. The attacker deposits tokens with a high strikePercent (e.g., 25%) and selects a low strikePrice (e.g., 5% higher than the deposited amount), resulting in low option fees but benefiting from the higher gains that should correspond to a lower strikePercent.
  3. This combination of a high strikePercent and low strikePrice allows the attacker to benefit from the returns typically associated with a lower strikePercent, causing an unfair advantage and financial losses for the protocol.

The strike price gains are calculated during withdrawal.

Impact

The absence of proper checks allows users to input inconsistent strikePercent and strikePrice values. This leads to reduced option fees while securing gains that should be restricted to lower strikePercent values, causing financial losses to the protocol. It also negatively impacts the calculation of upsideToDeduct, leading to a lower deduction than intended.

PoC

No response

Mitigation

To prevent exploitation, ensure that the strikePercent and strikePrice are validated against each other at the time of deposit. The following check can be applied:

The original report as published on Sherlock, by 0x23r0. Images and videos are our own copies; raw HTML is shown as text. View it on Sherlock.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the deposit path never validated that the chosen strike price corresponds to the chosen strike percent, letting the two independent inputs be combined freely.

Impact

Users could pay reduced option fees while securing gains meant for lower strike percents, causing financial losses to the protocol and a lower upsideToDeduct than intended; the text notes the collateral must rise by at least the given 5% for this to pay off.

What the attacker needed

Collateral rises at least 5% before withdrawal

The fix

The deposit should validate that the strike percent and strike price are consistent with each other before accepting them.

How it was found

  1. Choose a strike percent and strike price that are not logically consistent.
  2. Deposit with a high strike percent to pay low option fees while setting a low strike price.
  3. At withdrawal, collect the larger gains that should only apply to a lower strike percent.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

When someone deposits, they choose two numbers: a strike percent that sets how much they pay as a fee, and a strike price that sets when they gain. Normally a bigger strike percent means a smaller fee but a harder target to reach. Here nothing checked that the two numbers matched, so a user could take the cheap fee of a big percent and the easy target of a small one.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

More by 0x23r0

View all

23 more disclosed reports, best first.

More from Autonomint Colored Dollar V1

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.