DEV Community

Nexus Intelligence Research
Nexus Intelligence Research

Posted on

DeFi Smart Contract Vulnerabilities Audit Guide

Here are three specific DeFi smart contract vulnerabilities suitable for inclusion in a professional security audit report. Each entry includes the technical description, potential impact, and recommended mitigation.


1. Price Manipulation via Low-Liquidity Oracles (TWAP Slippage)

Vulnerability Class: Oracle Manipulation / Front-Running

Severity: High

CWE: CWE-20 (Improper Input Validation), CWE-345 (Insufficient Verification of Data Authenticity)

Description

The smart contract relies on a single-point price oracle (e.g., an on-chain AMM pool like Uniswap V2/V3) to determine asset prices for critical operations such as lending, borrowing, or flash-loan arbitrage. Attackers can manipulate the spot price by executing large trades just before and after the contract’s price read, creating a false price point that benefits the attacker.

Even if the contract uses a Time-Weighted

Top comments (0)