<?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 Babatunde Fawole on Medium]]></title>
        <description><![CDATA[Stories by Babatunde Fawole on Medium]]></description>
        <link>https://medium.com/@fawolebabatunde739?source=rss-b534155a45db------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*DcsiYEKDhW0aJF_L</url>
            <title>Stories by Babatunde Fawole on Medium</title>
            <link>https://medium.com/@fawolebabatunde739?source=rss-b534155a45db------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 09:48:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@fawolebabatunde739/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 Built a SQL Injection Demo App Here’s What I Learned]]></title>
            <link>https://medium.com/@fawolebabatunde739/i-built-a-sql-injection-demo-app-heres-what-i-learned-f6e10324a4e9?source=rss-b534155a45db------2</link>
            <guid isPermaLink="false">https://medium.com/p/f6e10324a4e9</guid>
            <category><![CDATA[web-security-testing]]></category>
            <category><![CDATA[flask]]></category>
            <category><![CDATA[sql-injection]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Babatunde Fawole]]></dc:creator>
            <pubDate>Wed, 22 Apr 2026 03:20:00 GMT</pubDate>
            <atom:updated>2026-04-22T03:20:00.697Z</atom:updated>
            <content:encoded><![CDATA[<h3>From PortSwigger Labs to Actually Understanding the Backend</h3><p>I have been learning cybersecurity since 2023. As a CS student and self-taught developer, I spend a lot of time bouncing between two worlds writing code and learning how to break it. Earlier this year I started working through multiple labs on PortSwigger Web Security Academy from Authentication labs to SQL injection. The labs are great, but at some point I started asking myself a question I couldn’t shake: what does this actually look like on the backend?</p><p>That curiosity pushed me to build something. Not just read about it. Not just do the labs. Actually build a vulnerable app from scratch, understand why it breaks, and then fix it.</p><h3>What I Built</h3><p>A simple Flask web app with four endpoints:</p><ul><li>Insecure Login</li><li>Secure Login</li><li>Insecure Product Search</li><li>Secure Product Search</li></ul><p>Each pair demonstrates the same functionality one done the wrong way, one done the right way. The database is SQLite, passwords are hashed with bcrypt, and the frontend is Bootstrap 5. Nothing fancy. Just enough to make the vulnerability clear.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/801/1*1oSlOijepSgS5yZKkk40JQ.png" /></figure><h3>The Vulnerability One Line of Code</h3><p>Here is the most surprising thing I discovered while building this project: a single line of code is all it takes to make an application vulnerable to SQL injection.</p><p>This is the insecure login query:</p><pre>stmt = (f&quot;SELECT id FROM users WHERE &quot;<br>        f&quot;username = &#39;{username}&#39; AND &quot;<br>        f&quot;password = &#39;{password}&#39;&quot;)</pre><p>That f-string is the problem. When a user types their username, it gets dropped directly into the SQL query with no sanitization. So if someone types this as their username:</p><pre>admin&#39; OR &#39;1&#39;=&#39;1&#39;--</pre><p>The query becomes:</p><pre>SELECT id FROM users WHERE username = &#39;admin&#39; OR &#39;1&#39;=&#39;1&#39;--&#39; AND password = &#39;&#39;</pre><p>&#39;1&#39;=&#39;1&#39; is always true. The -- comments out the rest of the query including the password check. The database returns a row. The app thinks login was successful. The attacker is in without knowing the password.</p><p>One line. That is all it takes.</p><h3>The Product Search Was Even More Eye Opening</h3><p>For the product search I used a LIKE query to allow partial matches:</p><pre>stmt = f&quot;SELECT * FROM products WHERE name LIKE &#39;%{product_name}%&#39;&quot;</pre><p>Looks harmless right? Now try typing this in the search field:</p><pre>%&#39; OR &#39;1&#39;=&#39;1&#39;--</pre><p>The query becomes:</p><pre>SELECT * FROM products WHERE name LIKE &#39;%%&#39; OR &#39;1&#39;=&#39;1&#39;--%&#39;</pre><p>Every single row in the products table gets returned. The attacker just dumped the entire database with a search box. This is how sensitive data gets disclosed in real world applications.</p><h3>The Fix Parameterized Queries</h3><p>The fix is simpler than you might expect. Instead of building the query with an f-string, you use a ? placeholder and pass the value separately:</p><pre>stmt = &quot;SELECT password FROM users WHERE username = ?&quot;<br>result = cursor.execute(stmt, (username,)).fetchone()</pre><p>SQLite handles the value safely. No matter what the user types, it is treated as data and never as part of the SQL command. The injection payload becomes a literal string that matches nothing in the database.</p><p>For the login, there is an extra layer bcrypt. Instead of comparing passwords in SQL, we fetch the hashed password from the database and verify it in Python:</p><pre>if bcrypt.checkpw(password.encode(&#39;utf-8&#39;), hashed_password.encode(&#39;utf-8&#39;)):<br>    return render_template(&quot;success.html&quot;)</pre><p>This means even if someone tries to manipulate the query, the password verification never happens inside SQL where it can be bypassed.</p><h3>What I Took Away From This</h3><p>After learning a lot from the labs and the rigour of building this app made it click in a way that reading never did. Seeing the injection work in something I built myself, understanding exactly why it works, and then writing the fix gave me a hindsight in how SQL queries would be.</p><p>The most humbling part? The vulnerable version and the secure version look almost identical. The difference is a single character, an f-string vs a ? placeholder. That is how thin the line is between a secure application and a broken one.</p><p>If you are learning web security or backend development, this is definitely for you.</p><h3>Try It Yourself</h3><p>The full project is on GitHub. Clone it, run it, and throw any SQL payload at it.</p><p><strong>GitHub:</strong> <a href="https://claude.ai/chat/your-repo-url">sql-injection-showcase</a></p><p><strong>Tech stack:</strong> Flask, SQLite, Bootstrap 5, bcrypt, python-dotenv</p><p><strong>Payloads to try:</strong></p><p>Login bypass:</p><pre>admin&#39; OR &#39;1&#39;=&#39;1&#39;--</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/801/1*g1FpxTIBJbpmWSnFVgJTgg.png" /></figure><p>Database dump via product search:</p><pre>%&#39; OR &#39;1&#39;=&#39;1&#39;--</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/799/1*SYRFMdLmS7qgYyA1P_FLig.png" /></figure><p>I am a CS student with a strong interest in cybersecurity, specialising in Web Application Penetration Testing, currently working on understanding how backends work behind the scenes to have a proper glimpse into how applications can be exploited. If you found this useful or have feedback, drop a comment, I would love to hear from you.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f6e10324a4e9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Internship Journey at Digitanotion Limited: A Transformative Experience in Cybersecurity]]></title>
            <link>https://medium.com/@fawolebabatunde739/my-internship-journey-at-digitanotion-limited-a-transformative-experience-in-cybersecurity-ea0f61658fe0?source=rss-b534155a45db------2</link>
            <guid isPermaLink="false">https://medium.com/p/ea0f61658fe0</guid>
            <category><![CDATA[internship-experience]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[career-development]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <dc:creator><![CDATA[Babatunde Fawole]]></dc:creator>
            <pubDate>Fri, 20 Dec 2024 21:29:18 GMT</pubDate>
            <atom:updated>2024-12-20T21:29:18.543Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Introduction:</strong><br>As a Computer Science student with a deep passion for cybersecurity, I was thrilled to embark on an internship at Digitanotion Limited after completing my Google Cybersecurity Professional Certificate course. This internship provided the perfect opportunity to translate theoretical knowledge into hands-on experience with real-world cybersecurity operations. In this post, I’ll share my journey, lessons, and key experiences during my time at Digitanotion Limited.</p><h3>Week 1: Onboarding and Introduction to Cybersecurity</h3><p>My first week at Digitanotion was an eye-opener. We started with foundational cybersecurity concepts, focusing on the <strong>CIA Triad</strong>:</p><ul><li><strong>Confidentiality</strong>: Ensuring only authorized users can access specific assets or data.</li><li><strong>Integrity</strong>: Maintaining the authenticity and reliability of data, often verified using cryptographic techniques.</li><li><strong>Availability</strong>: Ensuring data is readily accessible to authorized users.</li></ul><p>We also explored encryption — the process of converting data (text, images, etc.) into ciphertext using chosen algorithms to secure it from unauthorized access.</p><p>One key highlight was learning about the infamous <strong>Equifax data breach (2017)</strong>. This incident exposed sensitive personal information, including dates of birth, physical addresses, and social security numbers, due to inadequate security measures. The case study emphasized the consequences of negligence, such as hefty fines and reputational damage, and highlighted the importance of implementing remediation measures.</p><p>To deepen my understanding of web application security, I was introduced to the <strong>OWASP Top 10</strong>, a comprehensive framework aimed at improving the security of web applications. This session set the tone for the weeks ahead.</p><h3>Week 2: Open-Source Intelligence (OSINT) and Penetration Testing</h3><p>During the second week, I delved into <strong>OSINT</strong> (Open-Source Intelligence), a must-have skill for security professionals, journalists, and organizations alike. OSINT involves gathering information from publicly available sources to generate meaningful intelligence.</p><p>I got hands-on experience through a <strong>black-box penetration testing project</strong>. This task simulated real-world scenarios where the tester has no prior knowledge of the system being tested. Armed with only a photo of a client’s restaurant, I used investigative skills and tools like <strong>TinEye</strong>, <strong>Yandex</strong>, and <strong>Google Reverse Image Search</strong> to uncover the restaurant’s location and related details. This experience was both educational and exhilarating, showcasing the power of open-source tools.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l6Nj5DBFC9jAJ75lCMKx_g.png" /></figure><h3>Week 3: Vulnerability Assessment</h3><p>Building on the momentum from OSINT, I ventured into <strong>Vulnerability Assessment</strong>, a critical phase of penetration testing. This involves systematically reviewing an organization’s security processes to identify and address weaknesses.</p><p>To practice safely, I set up my own hacking lab using the <strong>PentestLab repository</strong> on GitHub. Here, I explored security scanning tools like:</p><ul><li><strong>Nikto</strong>: A web server scanner for detecting vulnerabilities.</li><li><strong>Nmap</strong>: A powerful network scanning tool.</li><li><strong>WPScan</strong>: A WordPress vulnerability scanner. For wordPress powered websites</li></ul><p>These tools helped me understand the practical aspects of identifying security flaws and assessing potential risks.</p><h3>Week 4: Penetration Testing</h3><p>The final week was intense and exhilarating as I delved into full-fledged <strong>penetration testing</strong>, simulating real-world attacks in a controlled environment. I learned about several key web vulnerabilities:</p><ul><li><strong>Cross-Site Scripting (XSS)</strong>: Exploiting user input to execute malicious scripts.</li><li><strong>SQL Injection</strong>: Manipulating SQL queries to access unauthorized data.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/380/1*z6KqrAwisNepH-wLDQ-bIQ.png" /></figure><ul><li><strong>Cross-Site Request Forgery (CSRF)</strong>: Forcing users to execute unwanted actions on a web application.</li><li><strong>Brute Force Attacks</strong>: Systematically guessing passwords to gain access.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8GauzPAZW3XSNSTZ5fqwMg.png" /></figure><p>In addition to learning how these vulnerabilities are exploited, I studied the <strong>security controls</strong> necessary to mitigate them. The hands-on experience gave me a deeper appreciation for the complexity of penetration testing and the importance of safeguarding systems.</p><h3>Conclusion</h3><p>My internship at Digitanotion Limited has been a transformative experience, equipping me with practical skills, industry insights, and a deeper passion for cybersecurity. From foundational concepts to advanced penetration testing techniques, each week presented unique challenges and learning opportunities. I’m grateful for the guidance and mentorship I received, which has prepared me for the next phase of my cybersecurity journey.</p><p>To anyone considering an internship in cybersecurity, I highly recommend diving in wholeheartedly. The field is as rewarding as it is challenging, and opportunities like this are invaluable for personal and professional growth.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ea0f61658fe0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>