<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/solving-damn-vulnerable-defi-v4-level-9--puppetv2-prluwyee1" -->

---
title: Solving Damn Vulnerable DeFi V4: Level 9- puppetV2
description: A walkthrough of Damn Vulnerable DeFi V4 Level 9 (PuppetV2), explaining how the challenge differs from PuppetV1 by using UniswapV2 as a price oracle. The...
canonical: https://daily.dev/posts/solving-damn-vulnerable-defi-v4-level-9--puppetv2-prluwyee1
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Solving Damn Vulnerable DeFi V4: Level 9- puppetV2 | daily.dev
og:description: A walkthrough of Damn Vulnerable DeFi V4 Level 9 (PuppetV2), explaining how the challenge differs from PuppetV1 by using UniswapV2 as a price oracle. The...
og:url: https://daily.dev/posts/solving-damn-vulnerable-defi-v4-level-9--puppetv2-prluwyee1
og:image: https://api.daily.dev/og/posts/prLuWYEE1.png
og:image:alt: Solving Damn Vulnerable DeFi V4: Level 9- puppetV2
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Solving Damn Vulnerable DeFi V4: Level 9- puppetV2

**[Coins Bench](https://daily.dev/sources/coinsbench)** · 1 min read · 0 upvotes · 0 comments

## Summary

A walkthrough of Damn Vulnerable DeFi V4 Level 9 (PuppetV2), explaining how the challenge differs from PuppetV1 by using UniswapV2 as a price oracle. The exploit involves swapping tokens for ETH via the UniswapV2 router to manipulate the oracle price, then depositing ETH as WETH and borrowing the full lending pool balance at the deflated price. A concise Solidity proof-of-concept test function is provided.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://coinsbench.com/solving-damn-vulnerable-defi-v4-level-9-puppetv2-7e83fd33b570>

## Similar posts on daily.dev

- [Solving Damn Vulnerable DeFi V4: Level 8- puppet](https://daily.dev/posts/solving-damn-vulnerable-defi-v4-level-8--puppet-ynzh0n5nf) · Coins Bench · 0 upvotes · 0 comments
- [Solving Damn Vulnerable DeFi V4: Level 7- Compromised](https://daily.dev/posts/solving-damn-vulnerable-defi-v4-level-7--compromised-lgnp95eei) · Coins Bench · 0 upvotes · 0 comments
- [Damn Vulnerable DeFi V4 Walkthrough: Challenges 1–18 Breakdown](https://daily.dev/posts/damn-vulnerable-defi-v4-walkthrough-challenges-1-18-breakdown-9z2j2aewv) · Coins Bench · 1 upvotes · 0 comments

---

Tags: [#smart-contracts](https://daily.dev/tags/smart-contracts), [#solidity](https://daily.dev/tags/solidity), [#defi](https://daily.dev/tags/defi)

[View this post on daily.dev](https://daily.dev/posts/solving-damn-vulnerable-defi-v4-level-9--puppetv2-prluwyee1)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Solving Damn Vulnerable DeFi V4: Level 9- puppetV2","url":"https://daily.dev/posts/solving-damn-vulnerable-defi-v4-level-9--puppetv2-prluwyee1","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/solving-damn-vulnerable-defi-v4-level-9--puppetv2-prluwyee1"},"datePublished":"2026-07-16T12:39:38.369Z","dateModified":"2026-07-16T12:39:57.193Z","description":"A walkthrough of Damn Vulnerable DeFi V4 Level 9 (PuppetV2), explaining how the challenge differs from PuppetV1 by using UniswapV2 as a price oracle. The...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/7303e348e6e0882c6f0bfdb574105b53?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/7303e348e6e0882c6f0bfdb574105b53?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Coins Bench","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Coins Bench","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/ba340d3c8caa4c2586911332928e24d9","url":"https://daily.dev/sources/coinsbench"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/solving-damn-vulnerable-defi-v4-level-9--puppetv2-prluwyee1","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"smart-contracts,solidity,defi","timeRequired":"PT1M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Coins Bench","item":"https://daily.dev/sources/coinsbench"},{"@type":"ListItem","position":3,"name":"Solving Damn Vulnerable DeFi V4: Level 9- puppetV2"}]}
```

