# Six smart contract vulnerabilities, with code and real exploits

URL: https://shield.quillaudits.com/learn/vulnerabilities/

Six vulnerability classes that Solidity teams meet in review, each explained with vulnerable and fixed code, a real exploit linked to its post-mortem, and a checklist you can run on your own contracts.

## [ERC-4626 inflation attack: how it works and how to prevent it](https://shield.quillaudits.com/learn/vulnerabilities/erc4626-inflation-attack/)

24 November 2026 · 6 minute read

How a donation to an empty vault rounds later deposits down to 0 shares, how virtual shares stop it, and how it cost Resupply $10M.

## [Reentrancy attacks in Solidity: how they work and how to prevent them](https://shield.quillaudits.com/learn/vulnerabilities/reentrancy/)

24 November 2026 · 5 minute read

How a callback re-enters a contract before its state is final, why a declared guard is not always a working one, and what to check on every external call.

## [Oracle price manipulation: how attackers move the price your contract reads](https://shield.quillaudits.com/learn/vulnerabilities/oracle-price-manipulation/)

24 November 2026 · 5 minute read

How attackers move the price a contract reads and borrow against it, why a short TWAP over a thin pool is not enough, and what to check in every price feed.

## [Smart contract access control vulnerabilities: who can call what](https://shield.quillaudits.com/learn/vulnerabilities/access-control/)

24 November 2026 · 5 minute read

How a missing check, an open initializer or a privileged contract that runs chosen calls hands control to the wrong caller, with Parity's 513,774 ETH freeze.

## [Uniswap v4 hook vulnerabilities: what to check before you deploy a hook](https://shield.quillaudits.com/learn/vulnerabilities/uniswap-v4-hook-vulnerabilities/)

24 November 2026 · 5 minute read

Why a hook callback anyone can call is the first thing to check, what the sender argument really is, and how an access control flaw in a hook played a part in Cork's $12M loss.

## [Rounding and precision errors in Solidity: why one wei matters](https://shield.quillaudits.com/learn/vulnerabilities/rounding-precision-errors/)

24 November 2026 · 5 minute read

How a remainder that falls the user's way becomes an exploit through repetition, tiny balances or a rate that rounds to 0, with Balancer V2's loss of November 2025.
