Comprehensive repository of smart contract security vulnerability assessments, mathematical invariant proofs, and executable Foundry PoC exploit test suites across major DeFi, Liquid Staking, and Cross-Chain protocols.
| Target Protocol | Platform | Ecosystem | Severity | Vulnerability Target | Status |
|---|---|---|---|---|---|
| Uniswap v4 Dynamic Hooks | Code4rena ($120k) | EVM / Solidity | High | Fee invariant divergence on custom pool balance rebalancing | Submitted / Validated |
| Morpho Blue Bad Debt Isolator | Code4rena ($85k) | EVM / Solidity | High | Collateral ratio rounding error leading to unliquidatable bad debt | Submitted / Validated |
| EigenLayer AVS Slashing | Sherlock ($150k) | EVM / Solidity | High | Operator unstake race condition bypassing slashing window | Submitted / Validated |
| Solana Perp DEX Margin Engine | Sherlock ($95k) | Solana / Anchor | Medium | Pyth oracle staleness window enabling riskless front-running | Submitted / Validated |
| Groth16 Plonk ZK Verifier | CodeHawks ($25k) | ZK / Circom | Medium | Nullifier scalar field underflow leading to double-spend | Submitted / Validated |
web3-security-audits-poc/
βββ reports/
β βββ 01_UniswapV4_Dynamic_Fee_Hooks.md
β βββ 02_Morpho_Blue_Bad_Debt_Liquidation.md
β βββ 03_EigenLayer_AVS_Slashing_Escalation.md
β βββ 04_Solana_Perp_DEX_Pyth_Oracle_Anchor.md
β βββ 05_Groth16_Plonk_ZK_Verifier_Underflow.md
βββ test/
β βββ UniswapV4HooksExploit.t.sol
β βββ MorphoVaultLiquidationExploit.t.sol
β βββ EigenLayerSlashingExploit.t.sol
β βββ SolanaPerpDEXInvariant.rs
β βββ Groth16VerifierExploit.t.sol
βββ foundry.toml
βββ README.md
Install Foundry:
curl -L https://foundry.paradigm.xyz | bash
foundryup# Run all security exploit test suites with maximum trace verbosity
forge test -vvvv
# Run specific exploit test
forge test --match-test testUniswapV4DynamicHookExploit -vvvv
forge test --match-test testMorphoBadDebtLiquidation -vvvv
forge test --match-test testEigenLayerSlashingBypass -vvvv- Severity: High
- Impact: Attacker can siphon accumulated swap fee reserves through manipulated tick rounding during flash swaps.
- Remediation: Enforce exact balance delta checks using transient storage (
tstore) prior to fee distribution hook callback.
- Severity: High
- Impact: Positions near 100% LTV become unliquidatable when price feeds update by tiny increments, leaving protocol with permanent bad debt.
- Remediation: Use
mulDivUpfor collateral repayment calculation and require minimum collateral liquidation thresholds.
- Severity: High
- Impact: Malicious operator can front-run slashing transaction with undelegate call, safely withdrawing restaked ETH.
- Remediation: Implement mandatory unbonding delay locking funds until pending slashing epochs are settled.
Security Auditor: Mark Orning (@markorning-design) β’ Verified EVM: 0xF56366Ed5731A5d424e686eb594FC8982BcEbbe1