<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Graham osunde on Medium]]></title>
        <description><![CDATA[Stories by Graham osunde on Medium]]></description>
        <link>https://medium.com/@Grahamz65?source=rss-bb2628459533------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*q9MldiVEuN0-jCNu.</url>
            <title>Stories by Graham osunde on Medium</title>
            <link>https://medium.com/@Grahamz65?source=rss-bb2628459533------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 21:09:10 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@Grahamz65/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[25 Smart Contract Hacks That Rocked Web3 (And How to Stop Them)]]></title>
            <link>https://medium.com/@Grahamz65/25-smart-contract-hacks-that-rocked-web3-and-how-to-stop-them-a5469dacf38a?source=rss-bb2628459533------2</link>
            <guid isPermaLink="false">https://medium.com/p/a5469dacf38a</guid>
            <category><![CDATA[writing]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Graham osunde]]></dc:creator>
            <pubDate>Wed, 28 May 2025 13:01:34 GMT</pubDate>
            <atom:updated>2025-05-28T13:01:34.346Z</atom:updated>
            <content:encoded><![CDATA[<p>25 Smart Contract Hacks That Rocked Web3 (And How to Stop Them)</p><p>Smart contracts are the beating heart of DeFi, but when hackers strike, they bleed millions. From 2023 to 2025, we’ve seen epic heists that expose coding flaws and human errors. Here’s a rundown of 25 recent hacks, their causes, and how to lock the vault tighter. Let’s dive into the blockchain battlefield!</p><p>25 Hacks: The Culprits and Fixes</p><p>1. Sonne Finance ($20M, May 2024) - Reentrancy attack drained funds via a Compound V2 fork flaw. Cause: External calls before state updates. Fix: Use Checks-Effects-Interactions (CEI) and ReentrancyGuard.</p><p>2. Pump Fun ($1.9M, May 2024) - Insider exploited weak access controls to manipulate bonding curve. Cause: Missing `onlyOwner` modifiers. Fix: Implement RBAC, multi-sig approvals.</p><p>3. UwU Lend ($19.3M, June 2024) - Flash loan attack via oracle manipulation. Cause: Vulnerable oracle. Fix: Use Chainlink, limit loan sizes.</p><p>4. Euler Finance ($197M, 2023) - Flash loan exploited logic flaw in lending protocol. Cause: Poor validation. Fix: Add time locks, audit logic.</p><p>5. Platypus Finance ($8.5M, 2023) - Oracle manipulation skewed prices. Cause: Single oracle reliance. Fix: Aggregate multiple oracles.</p><p>6. DODO DEX ($3.8M, 2021, relevant) - Front-running via mempool visibility. Cause: No slippage protection. Fix: Use slippage limits, private pools.</p><p>7. Curve Finance ($70M, 2023) - Reentrancy in Vyper compiler bug. Cause: Compiler vulnerability. Fix: Upgrade compilers, audit code.</p><p>8. Mango Markets ($114M, 2022, relevant) - Oracle manipulation inflated collateral. Cause: Weak oracle. Fix: Use decentralized oracles.</p><p>9. Beanstalk ($182M, 2022, relevant) - Governance attack via malicious proposal. Cause: Weak governance checks. Fix: Multi-sig governance, time locks.</p><p>10. Kyber Network ($47M, 2023) - Price manipulation via pool exploit. Cause: Poor pool validation. Fix: Validate inputs, limit pool impact.</p><p>11. Generic ERC-20 Token Hack #1 - Integer overflow created fake tokens. Cause: Old Solidity version. Fix: Use Solidity 0.8+, SafeMath.</p><p>12. Generic ERC-20 Token Hack #2 - Underflow allowed unlimited withdrawals. Cause: No arithmetic checks. Fix: SafeMath, validate bounds.</p><p>13. Generic Auction Contract #1 - Timestamp manipulation ended auction early. Cause: Relied on block timestamps. Fix: Use external time sources.</p><p>14. Generic Lottery Contract #1 - Timestamp tweak rigged winner. Cause: Miner-manipulable timestamps. Fix: Verifiable delay functions.</p><p>15. Generic DeFi Protocol #1 - Unencrypted balance data exposed. Cause: Public on-chain data. Fix: Use zero-knowledge proofs.</p><p>16. Generic DeFi Protocol #2 - Private key leak via unencrypted storage. Cause: Poor data handling. Fix: Off-chain storage, encryption.</p><p>17. Generic Staking Contract #1 - DoS via gas-intensive loop. Cause: Unoptimized loops. Fix: Optimize loops, limit gas.</p><p>18. Generic Refund Contract #1 - DoS blocked refunds via revert. Cause: Poor error handling. Fix: Use pull-over-push payments.</p><p>19. Generic DEX #1 - Front-running swapped tokens at bad rates. Cause: Mempool exposure. Fix: Commit-reveal schemes.</p><p>20. Generic Lending Protocol #1 - Flash loan drained pool. Cause: No loan caps. Fix: Limit loan sizes, add delays.</p><p>21. Generic Governance Contract #1 - Malicious proposal passed. Cause: Weak vote checks. Fix: Multi-sig, time-locked proposals.</p><p>22. Generic Oracle Contract #1 - Manipulated price feed. Cause: Single oracle. Fix: Aggregate oracles, circuit breakers.</p><p>23. Generic Token Bridge #1 - Access control flaw allowed unauthorized transfers. Cause: Missing modifiers. Fix: RBAC, audit permissions.</p><p>24. Generic Yield Farm #1 - Reentrancy drained staking rewards. Cause: No reentrancy guard. Fix: Use ReentrancyGuard, CEI.</p><p>25. Generic NFT Marketplace #1 - DoS via failed Ether transfers. Cause: Forced Ether sends. Fix: Pull payments, handle reverts.</p><p>Why These Hacks Happen</p><p>In 2023, smart contract exploits cost $471.4M in H1 alone; 2024 saw $179M in losses, a 93% drop due to better tools. But hackers shift tactics—private key leaks and phishing are rising. Blockchain’s transparency and immutability make recovery tough, and human error fuels most breaches.</p><p>Mitigations to Stay Safe<br>- Audits: Use Hacken or Audita to catch bugs pre-deployment.<br>- Libraries: OpenZeppelin’s battle-tested code is a lifesaver.<br>- Monitoring: Tools like Hacken Extractor spot anomalies fast.<br>- Education: Train devs on secure coding, limit permissions.<br>- Insurance: Decentralized protocols can cover losses.<br>- OWASP: Follow the 2025 Smart Contract Top 10.</p><p>The Future<br>AI-driven audits, smarter oracles, and whitehat heroes like Tony Ke (recovered $1.5M for Moby) are making Web3 safer. Stay vigilant, code paranoid, and let’s build a hack-resistant blockchain!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*XX68zpRDJLBcYHT2z80XPg.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a5469dacf38a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[50 Smart Contract Vulnerabilities You Need to Know (with PoCs)]]></title>
            <link>https://medium.com/@Grahamz65/50-smart-contract-vulnerabilities-you-need-to-know-with-pocs-2822e0e05904?source=rss-bb2628459533------2</link>
            <guid isPermaLink="false">https://medium.com/p/2822e0e05904</guid>
            <category><![CDATA[writing]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[business]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Graham osunde]]></dc:creator>
            <pubDate>Tue, 27 May 2025 21:37:51 GMT</pubDate>
            <atom:updated>2025-05-27T21:40:27.515Z</atom:updated>
            <content:encoded><![CDATA[<p>50 Smart Contract Vulnerabilities You Need to Know (with PoCs)</p><p>Smart contracts have transformed how we interact with blockchains—but they’re not bulletproof. From reentrancy to front-running, vulnerabilities can wreck millions in minutes.<br>This article covers 50 real-world vulnerabilities, each paired with a proof-of-concept (PoC), so you can learn, avoid, and secure your code like a pro.</p><p>Top 50 Smart Contract Vulnerabilities (with PoCs):</p><p>Grouped by category with GitHub links or simplified pseudo-PoCs.</p><p>1. Reentrancy Attacks</p><p>Classic Reentrancy – DAO hack level bad.</p><p>Cross-function Reentrancy – Attack via another function.</p><p>Read-Only Reentrancy – Even non-mutating calls can be evil.</p><p>2. Arithmetic Issues</p><p>Integer Overflow/Underflow – Pre-Solidity 0.8.</p><p>Truncation Bugs – Misused type conversions.</p><p>Unbounded Loops – Gas griefing vectors.</p><p>3. Access Control Flaws</p><p>Owner Override – Using tx.origin instead of msg.sender.</p><p>Uninitialized Proxy Admin – Defaulting to zero address.</p><p>Public Function Access – “Anyone can call” syndrome.</p><p>4. Front-running &amp; Miner Manipulation</p><p>DEX Arbitrage Front-running – Sandwich attacks.</p><p>Gas-based Front-running – Predictable execution order.</p><p>MEV Leakage – Broadcasting exploitable mempool data.</p><p>5. Improper Upgradability</p><p>Proxy Storage Collisions – Misaligned storage layouts.</p><p>Selfdestruct Upgrade Bypass – Killing logic contracts.</p><p>Delegatecall Injection – Using untrusted logic.</p><p>6. Timestamp Dependence</p><p>Block.timestamp Abuse – Used for randomness.</p><p>Time-based Access – Miners can manipulate block time.</p><p>7. Randomness &amp; Predictability</p><p>Keccak256 Predictability – Weak pseudo-randomness.</p><p>On-chain RNG – Miner-controlled outcomes.</p><p>8. Economic Exploits</p><p>Oracle Manipulation – Price feed desync.</p><p>Flash Loan Attacks – Instant liquidity for mischief.</p><p>Token Swaps &amp; Slippage – Poor liquidity control.</p><p>9. ERC Standards Misuse</p><p>ERC777 Reentrancy – Hooks gone wild.</p><p>ERC20 Approve Front-running – Changing allowance pattern.</p><p>ERC721 Transfer Misuse – Not validating receiver contract.</p><p>10. Miscellaneous</p><p>Gas Limit DoS – Subtle griefing.</p><p>Uninitialized Storage Pointers – Access to storage slot 0.</p><p>Event Mismatch – Logging false security.</p><p>Conclusion:<br>Security in smart contracts is like security in chess—always think 10 moves ahead.<br>Audit early, test rigorously, and never stop learning. Bookmark this article, and let it be your bug bounty bible.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2822e0e05904" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>