<?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 Navin Devassy on Medium]]></title>
        <description><![CDATA[Stories by Navin Devassy on Medium]]></description>
        <link>https://medium.com/@dnavin497?source=rss-ac77fee7b123------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*IV17ckUGUuP9yXOC_8zcPQ.png</url>
            <title>Stories by Navin Devassy on Medium</title>
            <link>https://medium.com/@dnavin497?source=rss-ac77fee7b123------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 01:43:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dnavin497/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[I Paid ₹1 for a ₹1000 Event – How “Vibe Coding” Can Lead to Real-World Failures]]></title>
            <link>https://medium.com/@dnavin497/i-paid-1-for-a-1000-event-how-vibe-coding-can-lead-to-real-world-failures-cac19ac62c66?source=rss-ac77fee7b123------2</link>
            <guid isPermaLink="false">https://medium.com/p/cac19ac62c66</guid>
            <category><![CDATA[vibe-coding]]></category>
            <category><![CDATA[payments]]></category>
            <category><![CDATA[ai-coding]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Navin Devassy]]></dc:creator>
            <pubDate>Tue, 05 Aug 2025 20:51:53 GMT</pubDate>
            <atom:updated>2026-03-18T19:00:44.108Z</atom:updated>
            <content:encoded><![CDATA[<p>During a casual weekend pentest on a platform used for marathon registrations across India, I stumbled upon something wild:</p><p>👉 I was able to register for a ₹1000 event by paying just ₹1.</p><p>👉 I also bypassed the event deadline by just changing my system clock.</p><p>Sounds like a dev horror story? It kind of is.</p><p>Was this app built using AI-generated code? Probably not.</p><p>But these bugs are becoming alarmingly common in projects where developers trust AI tools blindly – a pattern often called vibe coding.</p><p>Let’s break it down.</p><p>⸻</p><h4><strong>💸 Critical Issue #1: Frontend-Controlled Payment Amount</strong></h4><p>This one hit hard.</p><p>When initiating the payment for a marathon event, I noticed the payment amount was being passed from the frontend to the payment gateway – no verification, no sanity checks.</p><p>So, I manipulated the amount to ₹1.</p><p>And the registration? Went through flawlessly.</p><p>🧠 <strong>Why This Happens:</strong></p><p>•	Payment logic entirely on the frontend</p><p>•	No server-side validation of event cost</p><p>•	Over-reliance on client inputs</p><p>🛡️ <strong>How to Avoid It:</strong></p><p>•	Always calculate prices on the backend</p><p>•	Store event pricing securely in the database – not in the UI</p><p>•	Use backend-signed tokens or gateway-native session objects</p><p>•	Validate payments through webhooks, not just “payment success” status from the frontend</p><p>💥 Never trust the user to tell you how much to charge them.</p><p>⸻</p><h4><strong>🕒 Critical Issue #2: System Time-Based Deadline Bypass</strong></h4><p>After the event’s registration deadline had passed, I simply rolled back my system clock. Guess what? I could register again.</p><p>🧠 <strong>What Went Wrong:</strong></p><p>•	Deadline logic lived on the frontend</p><p>•	Server didn’t care when the user submitted the form</p><p>🛡️ <strong>Fix It Like This:</strong></p><p>•	Enforce all deadlines server-side</p><p>•	Keep system time in UTC for consistency</p><p>•	Let frontend display time, not enforce it</p><p>⸻</p><p>🚨 <strong>The Real Cost of These Bugs</strong></p><p>This isn’t just about a marathon registration. These kinds of oversights can lead to:</p><p>•	💸 Massive financial losses</p><p>•	🚨 Legal and compliance nightmares</p><p>•	🔒 Security red flags for users</p><p>⸻</p><h3>🤖 The “Vibe Coding” Effect (Even If This App Wasn’t)</h3><p>While this appmight not have been built with AI tools, the issues it had – like insecure payment flows and poor data handling – are exactly the kind of mistakes we’re seeing more often in the “vibe coding” era.</p><p>Vibe coding is when developers rely heavily on AI agents like Copilot or ChatGPT to write code and skip the hard parts – validation, testing, and thinking through edge cases. It feels fast and productive… until things break.</p><p>Remember the Tea app incident? Over a million private chats and government IDs were exposed – all because of misconfigured Firebase rules, hardcoded secrets, and zero access controls. It wasn’t confirmed to be AI-generated, but the pattern matched what happens when devs trust AI too much and validate too little.</p><p>AI can be a great assistant – but it’s not your tech lead.</p><p>Blind trust in generated code is a shortcut to serious problems.</p><p>⸻</p><p>AI can help you build. But it’s your job to secure it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cac19ac62c66" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>