Menu

1 / 2

How I Found a High-Severity Rounding Vulnerability in Morpho Midnight (Tenor Labs)

DEV Community: security·vault vult·2 days ago
#0A1pAYiv
#devtosecurity#devto#dev#collateral#market
Reading 0:00
15s threshold

Introduction

Smart contract security is often about finding the invisible edge cases. While participating in a recent bug bounty for Tenor Labs (a protocol built on top of Morpho Midnight), I discovered a high-severity rounding vulnerability in their migration callbacks.

If exploited, this flaw allows an attacker to artificially inflate a user's Loan-to-Value (LTV) ratio to infinity, triggering an immediate liquidation of the user's pre-existing collateral.

In this article, I’ll break down the vulnerability, explain the math behind the exploit, and provide the Foundry Proof of Concept (PoC) that proves it works.

The Architecture: Tenor Labs & Morpho Midnight

Tenor Labs is a suite of non-custodial smart contracts that extends the Morpho Midnight protocol.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.