<?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 zero un on Medium]]></title>
        <description><![CDATA[Stories by zero un on Medium]]></description>
        <link>https://medium.com/@anasachouri123321?source=rss-417589bc1d93------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*O1r4PDtIj_yxyL4A</url>
            <title>Stories by zero un on Medium</title>
            <link>https://medium.com/@anasachouri123321?source=rss-417589bc1d93------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 00:24:10 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@anasachouri123321/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[ VulnApp: The Flutter App You Should Never Build (But Absolutely Should Try)]]></title>
            <link>https://medium.com/@anasachouri123321/vulnapp-the-flutter-app-you-should-never-build-but-absolutely-should-try-2078a386a2f1?source=rss-417589bc1d93------2</link>
            <guid isPermaLink="false">https://medium.com/p/2078a386a2f1</guid>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[flutter-app-development]]></category>
            <dc:creator><![CDATA[zero un]]></dc:creator>
            <pubDate>Mon, 21 Jul 2025 22:37:45 GMT</pubDate>
            <atom:updated>2025-07-21T22:37:45.913Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>🔓 VulnApp: The Flutter App You Should <em>Never</em> Build (But Absolutely Should Try)</strong></p><p>As mobile developers, we often focus on building fast, beautiful apps — but sometimes, we forget that <strong>security is just as important</strong> as performance or design. That’s what inspired me to build <strong>VulnApp</strong> — a deliberately insecure Flutter app made to teach and demonstrate common mobile security vulnerabilities.</p><h3>🎯 Why I Built VulnApp</h3><p>VulnApp was born from a simple idea: what if we created a real mobile app that intentionally did things <em>wrong</em>, just to show how easy it is to make mistakes in mobile security?</p><p>I wanted to build something useful not only for developers like me but also for <strong>ethical hackers, students, and security learners</strong>. Think of it like OWASP Juice Shop, but for mobile — a safe playground for breaking and learning.</p><h3>🔍 What the App Does</h3><p>VulnApp looks like a basic login/profile app, but under the surface, it’s full of real-world security flaws that many apps still suffer from today.</p><p>It’s built entirely with <strong>Flutter</strong>, using <strong>SharedPreferences</strong> for local storage and simulated insecure API calls. I also took care to make the UI clean and modern, using light/dark themes, rounded corners, icons, and responsive design — just because it’s insecure doesn’t mean it can’t look good 😉</p><h3>🔍 Tools You’ll Need to Hack VulnApp</h3><p>Here are some tools you’ll want in your hacking toolkit:</p><ul><li><strong>Burp Suite</strong> — Intercept and manipulate HTTP traffic.</li><li><a href="https://github.com/MobSF/Mobile-Security-Framework-MobSF"><strong>MobSF (Mobile Security Framework)</strong></a> — Static and dynamic analysis.</li><li><strong>Frida</strong> — Dynamic instrumentation toolkit to hook into runtime behavior.</li><li><strong>APKTool</strong> — Decompile the app (for Android).</li><li><strong>Android Emulator or Physical Device</strong> — For running and inspecting the app.</li></ul><h3>🚨 Vulnerabilities Demonstrated</h3><p>Here are some of the security flaws you can explore in VulnApp:</p><ul><li><strong>Hardcoded credentials:</strong> The login uses a fixed username and password directly in the code. This is a classic mistake that makes it easy for attackers to bypass auth by reverse engineering the APK.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/618/1*1Ek28GXkAbG1dlVZS_iX8Q.png" /></figure><ul><li><strong>Insecure local storage:</strong> Auth tokens are stored using SharedPreferences without any encryption or secure keystore. Anyone with root access or debugging tools could extract them easily.</li></ul><pre>import &#39;package:shared_preferences/shared_preferences.dart&#39;;<br><br>class InsecureStorage {<br>  static Future&lt;void&gt; saveToken(String token) async {<br>    final prefs = await SharedPreferences.getInstance();<br>    await prefs.setString(&quot;auth_token&quot;, token); // ⚠️ plaintext!<br>  }<br><br>  static Future&lt;String?&gt; getToken() async {<br>    final prefs = await SharedPreferences.getInstance();<br>    return prefs.getString(&quot;auth_token&quot;);<br>  }<br><br>  static Future&lt;void&gt; clearToken() async {<br>    final prefs = await SharedPreferences.getInstance();<br>    await prefs.remove(&quot;auth_token&quot;);<br>  }<br>}</pre><ul><li><strong>No HTTPS:</strong> All network requests use plain HTTP. This opens the app to man-in-the-middle (MITM) attacks and exposes sensitive data over the wire.</li><li><strong>No session handling:</strong> Once you’re logged in, your session never expires. There’s no logout on token expiry, making it easy to reuse tokens indefinitely.</li></ul><pre>import &#39;dart:convert&#39;;<br>import &#39;package:http/http.dart&#39; as http;<br><br>class InsecureNetwork {<br>  // This is a dummy public insecure API for demonstration.<br>  static const String endpoint = &quot;http://httpbin.org/get&quot;; // 👈 HTTP, not HTTPS<br><br>  static Future&lt;String&gt; fetchData() async {<br>    try {<br>      final response = await http.get(Uri.parse(endpoint));<br><br>      if (response.statusCode == 200) {<br>        final data = jsonDecode(response.body);<br>        print(&quot;🔓 Insecure response: $data&quot;); // Not safe to log in real apps<br>        return &quot;Data received: ${data[&#39;origin&#39;]}&quot;;<br>      } else {<br>        return &quot;Error: ${response.statusCode}&quot;;<br>      }<br>    } catch (e) {<br>      return &quot;Exception: $e&quot;;<br>    }<br>  }<br>}</pre><ul><li><strong>Lack of input validation:</strong> There are no password strength rules, no rate limiting, and no protection against brute-force attacks.</li></ul><h3>🔐 What You Can Learn From VulnApp</h3><p>This app is not just for fun — it’s a <strong>hands-on learning tool</strong>. Whether you’re a developer trying to understand common security flaws, or a cybersecurity student learning how to exploit and fix these flaws, VulnApp gives you a real-world playground to practice safely.</p><p>You’ll get to:</p><ul><li>Understand how bad coding practices lead to vulnerabilities</li><li>Learn to identify issues like insecure storage and API exposure</li><li>Explore modern Flutter UI techniques at the same time</li></ul><h3>🛠 What’s Next</h3><p>I’m planning to add more vulnerabilities in future updates. Some features on the roadmap include:</p><ul><li>Biometric login that can be spoofed</li><li>Malicious third-party SDK simulation</li><li>A “secure” version of the app to compare against</li><li>More UI examples showing poor vs. secure design</li></ul><h3>🙌 Try It or Contribute</h3><p>This app is open-source and available on GitHub. I welcome contributions — whether you want to add new vulnerabilities, improve the UI, or help build a secure version.</p><p>🔗 GitHub: <a href="https://github.com/chaseman447/VulnApp">https://github.com/chaseman447/VulnApp</a></p><p>OWASP: <a href="https://owasp.org/www-project-mobile-top-10/">https://owasp.org/www-project-mobile-top-10/</a></p><h3>📣 Final Thoughts</h3><p>We often talk about how to <strong>build secure apps</strong>, but we don’t spend enough time understanding how things break. VulnApp flips the script and gives you a sandbox where breaking things is encouraged — because learning how to break is the first step toward learning how to secure.</p><p>Thanks for reading — and happy coding and hacking (ethically, of course)!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2078a386a2f1" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>