<?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 Jinesh Majithia on Medium]]></title>
        <description><![CDATA[Stories by Jinesh Majithia on Medium]]></description>
        <link>https://medium.com/@jineshcanada23?source=rss-dcf1bb1eebd4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*4H5sjWGeiQFINOjk</url>
            <title>Stories by Jinesh Majithia on Medium</title>
            <link>https://medium.com/@jineshcanada23?source=rss-dcf1bb1eebd4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 11:15:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jineshcanada23/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[SQL Injection: Listing Database Contents on Oracle | PortSwigger Web Security Academy Walkthrough]]></title>
            <link>https://medium.com/@jineshcanada23/sql-injection-listing-database-contents-on-oracle-portswigger-web-security-academy-walkthrough-a11164bd3d2c?source=rss-dcf1bb1eebd4------2</link>
            <guid isPermaLink="false">https://medium.com/p/a11164bd3d2c</guid>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[portswigger-lab]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[sql-injection]]></category>
            <category><![CDATA[burpsuite]]></category>
            <dc:creator><![CDATA[Jinesh Majithia]]></dc:creator>
            <pubDate>Sat, 11 Jul 2026 02:48:20 GMT</pubDate>
            <atom:updated>2026-07-11T02:48:20.424Z</atom:updated>
            <content:encoded><![CDATA[<p>As I continue my hands-on journey through the <strong>PortSwigger Web Security Academy</strong>, I completed another SQL Injection lab that focused on <strong>enumerating database contents in an Oracle database</strong>.</p><p>In previous labs, I learned how to identify the database type and retrieve its version. This lab took things a step further by demonstrating how an attacker can enumerate database tables and columns to locate sensitive information such as usernames and passwords.</p><p>Understanding how database enumeration works is an essential skill for penetration testers because it highlights the potential impact of SQL Injection vulnerabilities and reinforces the importance of secure coding practices.</p><h3>Lab Overview</h3><p><strong>Lab Name</strong></p><p>SQL Injection attack, listing the database contents on Oracle</p><h3>Objective</h3><p>Exploit a SQL Injection vulnerability to:</p><ul><li>Identify the available tables in the Oracle database</li><li>Discover the relevant column names</li><li>Retrieve the usernames and passwords stored in the users table</li><li>Log in as the administrator to solve the lab</li></ul><h3>Understanding Oracle Database Enumeration</h3><p>After identifying a SQL Injection vulnerability, the next step is often to map the structure of the database.</p><p>Unlike MySQL or Microsoft SQL Server, Oracle stores metadata in different system views.</p><p>To discover available tables, Oracle provides:</p><pre>all_tables</pre><p>To identify the columns within a table, Oracle provides:</p><pre>all_tab_columns</pre><p>These data dictionary views allow security professionals to understand the database schema without prior knowledge of the application’s internal design.</p><p>Database enumeration is a critical reconnaissance step that often precedes the extraction of sensitive information.</p><h3>Exploitation Process</h3><h3>1. Confirm the Number of Columns</h3><p>Before performing a UNION-based SQL Injection attack, I first confirmed the number of columns returned by the application’s query.</p><p>Matching the correct number of columns is required for a successful UNION SELECT operation.</p><h3>2. Enumerate Database Tables</h3><p>Once the column count was confirmed, I queried Oracle’s all_tables view to list the available tables.</p><p>Among the results, I identified the table containing user account information.</p><p>This demonstrates how Oracle’s data dictionary can reveal valuable information about the application’s database structure.</p><h3>3. Identify the Relevant Columns</h3><p>After locating the users table, I queried Oracle’s all_tab_columns view to retrieve the associated column names.</p><p>This revealed the columns storing usernames and passwords.</p><p>Knowing the schema is essential before attempting to retrieve sensitive data from the database.</p><h3>4. Retrieve User Credentials</h3><p>With both the table name and column names identified, I constructed another UNION SELECT query to extract the stored usernames and passwords.</p><p>The application displayed the credential data, allowing me to obtain the administrator account details and successfully complete the lab.</p><p>This exercise clearly demonstrates how a vulnerable application can expose highly sensitive information through SQL Injection.</p><h3>Key Takeaways</h3><p>This lab reinforced several important concepts:</p><ul><li>Oracle uses different metadata views than other relational databases.</li><li>Database enumeration is an essential step after identifying SQL Injection.</li><li>Understanding database-specific system views helps security professionals adapt their testing methodology.</li><li>SQL Injection can expose sensitive business data when applications fail to validate user input.</li><li>Database fingerprinting and enumeration are critical reconnaissance techniques during penetration testing.</li></ul><h3>Defensive Recommendations</h3><p>Developers can reduce the risk of SQL Injection by implementing secure coding practices:</p><ul><li>Use parameterized queries (prepared statements)</li><li>Avoid constructing SQL queries through string concatenation</li><li>Validate and sanitize user input</li><li>Apply the principle of least privilege for database accounts</li><li>Suppress detailed database error messages</li><li>Conduct regular security testing and code reviews</li></ul><p>Following these best practices significantly reduces the likelihood of successful SQL Injection attacks.</p><h3>Why This Lab Matters</h3><p>While retrieving database version information helps identify the backend technology, understanding how to enumerate tables and columns demonstrates the next phase of a real-world attack.</p><p>This lab illustrates how attackers move from identifying a vulnerability to exploring the database structure and ultimately accessing sensitive information.</p><p>Practicing these techniques in a safe environment provides valuable insight into both offensive security and effective defensive controls.</p><h3>Conclusion</h3><p>Every lab I complete through the PortSwigger Web Security Academy strengthens my understanding of web application security and practical penetration testing techniques.</p><p>This exercise expanded my knowledge of Oracle database enumeration and reinforced how attackers leverage SQL Injection vulnerabilities to map database structures and retrieve sensitive information.</p><p>I’m continuing to document my learning journey as I build practical cybersecurity skills and work toward a career in Application Security and Penetration Testing.</p><p>Thank you for reading!</p><h3>Resources</h3><ul><li>PortSwigger Web Security Academy</li><li>Burp Suite Community Edition</li><li>OWASP Top 10 — Injection</li><li>OWASP Web Security Testing Guide</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a11164bd3d2c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SQL Injection: Listing Database Contents on Non-Oracle Databases | PortSwigger Web Security Academy…]]></title>
            <link>https://medium.com/@jineshcanada23/sql-injection-listing-database-contents-on-non-oracle-databases-portswigger-web-security-academy-83a3e6a23f4e?source=rss-dcf1bb1eebd4------2</link>
            <guid isPermaLink="false">https://medium.com/p/83a3e6a23f4e</guid>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[burpsuite]]></category>
            <category><![CDATA[sql-injection]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Jinesh Majithia]]></dc:creator>
            <pubDate>Tue, 07 Jul 2026 02:43:27 GMT</pubDate>
            <atom:updated>2026-07-07T02:43:27.860Z</atom:updated>
            <content:encoded><![CDATA[<h3>SQL Injection: Listing Database Contents on Non-Oracle Databases | PortSwigger Web Security Academy Walkthrough</h3><p>As I continue building my hands-on cybersecurity skills, I recently completed another lab from the <strong>PortSwigger Web Security Academy</strong>. This exercise focused on using <strong>UNION-based SQL Injection</strong> to enumerate database contents on <strong>non-Oracle databases</strong> such as MySQL, PostgreSQL, Microsoft SQL Server, and SQLite.</p><p>In real-world penetration testing, identifying a SQL Injection vulnerability is only the beginning. Once an application is confirmed to be vulnerable, the next step is often to understand the structure of the backend database. This includes discovering available tables, identifying columns, and locating sensitive information such as user credentials.</p><p>The objective of this lab was to enumerate the database and retrieve usernames and passwords stored in a users table.</p><h3>Lab Overview</h3><p><strong>Lab Name</strong></p><p>SQL Injection attack, listing the database contents on non-Oracle databases</p><h3>Objective</h3><p>Exploit a SQL Injection vulnerability to:</p><ul><li>Identify the available database tables</li><li>Discover the relevant columns</li><li>Retrieve the usernames and passwords stored in the users table</li><li>Use the administrator credentials to solve the lab</li></ul><h3>Understanding Database Enumeration</h3><p>After confirming that SQL Injection exists, attackers typically begin gathering information about the database.</p><p>Rather than guessing table or column names, many relational database systems expose metadata through system tables.</p><p>For non-Oracle databases, this information is commonly available in:</p><pre>information_schema.tables</pre><p>and</p><pre>information_schema.columns</pre><p>These metadata tables allow security testers to discover the structure of the database without prior knowledge of its schema.</p><p>This process is known as <strong>database enumeration</strong> and is a fundamental step during penetration testing.</p><h3>Exploitation Process</h3><h3>1. Confirm the Number of Columns</h3><p>Before performing a UNION attack, I first confirmed the number of columns returned by the original query.</p><p>Matching the column count is essential because the UNION statement requires both queries to return the same number of columns.</p><h3>2. Enumerate Database Tables</h3><p>After confirming the column structure, I queried the database metadata to list all available tables.</p><p>Using the information_schema.tables view, I identified the application&#39;s tables and located the users table containing authentication data.</p><p>This demonstrates how attackers can leverage exposed metadata to map an application’s database structure.</p><h3>3. Discover Column Names</h3><p>Once the target table was identified, I queried information_schema.columns to list all columns associated with the users table.</p><p>This allowed me to identify the columns storing usernames and passwords.</p><p>Understanding the database schema is a critical step before attempting to retrieve sensitive information.</p><h3>4. Retrieve User Credentials</h3><p>With the table and column names identified, I used another UNION SELECT query to extract the stored usernames and passwords.</p><p>The application displayed the credential data directly in the response, successfully completing the objective of the lab.</p><p>This highlights how a single SQL Injection vulnerability can expose highly sensitive information when proper protections are not in place.</p><h3>Key Takeaways</h3><p>Completing this lab reinforced several important concepts:</p><ul><li>SQL Injection extends beyond bypassing login forms.</li><li>Database enumeration is a key phase of exploitation.</li><li>System metadata tables provide valuable information about database structure.</li><li>Attackers often enumerate tables and columns before extracting sensitive data.</li><li>Improper input validation can lead to complete database compromise.</li></ul><h3>Defensive Recommendations</h3><p>Developers can significantly reduce the risk of SQL Injection by implementing secure coding practices:</p><ul><li>Use parameterized queries (prepared statements)</li><li>Never concatenate user input directly into SQL statements</li><li>Apply server-side input validation</li><li>Restrict database permissions using the principle of least privilege</li><li>Prevent detailed database errors from being exposed to users</li><li>Perform regular security testing and code reviews</li></ul><p>These defensive measures help protect applications from one of the most dangerous web application vulnerabilities.</p><h3>Why This Lab Matters</h3><p>This exercise demonstrates how attackers can progress from identifying a SQL Injection vulnerability to understanding the application’s database structure and ultimately accessing sensitive information.</p><p>Learning these techniques in a controlled environment helps security professionals understand both offensive methodologies and the defensive controls needed to prevent them.</p><p>Hands-on practice like this is essential for developing practical skills in web application security and penetration testing.</p><h3>Conclusion</h3><p>Each PortSwigger lab helps strengthen my understanding of real-world web application vulnerabilities and secure development practices.</p><p>This lab expanded my knowledge of database enumeration, metadata exploration, and information disclosure through SQL Injection. More importantly, it reinforced why secure coding practices such as parameterized queries and least-privilege database access are essential for protecting modern applications.</p><p>I’m continuing to document my cybersecurity learning journey as I work toward a career in Application Security, Penetration Testing, and Cybersecurity Engineering.</p><p>Thank you for reading!</p><h3>Resources</h3><ul><li>PortSwigger Web Security Academy</li><li>Burp Suite Community Edition</li><li>OWASP Top 10 — Injection</li><li>OWASP Web Security Testing Guide</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=83a3e6a23f4e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MySQL & Microsoft SQL Injection: How I Retrieved the Database Version | PortSwigger Web Security…]]></title>
            <link>https://medium.com/@jineshcanada23/mysql-microsoft-sql-injection-how-i-retrieved-the-database-version-portswigger-web-security-ff62ee456ba2?source=rss-dcf1bb1eebd4------2</link>
            <guid isPermaLink="false">https://medium.com/p/ff62ee456ba2</guid>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[burpsuite]]></category>
            <category><![CDATA[sql-injection-attack]]></category>
            <category><![CDATA[portswigger]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Jinesh Majithia]]></dc:creator>
            <pubDate>Mon, 06 Jul 2026 01:24:07 GMT</pubDate>
            <atom:updated>2026-07-06T01:24:07.690Z</atom:updated>
            <content:encoded><![CDATA[<h3>MySQL &amp; Microsoft SQL Injection: How I Retrieved the Database Version | PortSwigger Web Security Academy Walkthrough</h3><p>Continuing my hands-on journey through the PortSwigger Web Security Academy, I completed another SQL Injection lab focused on identifying the version of a <strong>MySQL or Microsoft SQL Server</strong> database using <strong>UNION-based SQL Injection</strong>.</p><p>SQL Injection remains one of the most critical vulnerabilities affecting web applications. Even though modern development frameworks encourage secure coding practices, applications that fail to properly validate or parameterize user input can still expose sensitive database information.</p><p>One of the first objectives during a penetration test is identifying the underlying <strong>Database Management System (DBMS)</strong>. Knowing whether the application uses <strong>MySQL</strong>, <strong>Microsoft SQL Server</strong>, <strong>Oracle</strong>, or <strong>PostgreSQL</strong> helps security professionals craft database-specific payloads for further assessment.</p><p>In this lab, the objective was straightforward:</p><blockquote><strong><em>Retrieve the database version using a UNION SQL Injection attack.</em></strong></blockquote><h3>Lab Overview</h3><p><strong>Lab Name</strong></p><p>SQL Injection attack, querying the database type and version on MySQL and Microsoft</p><h3>Objective</h3><p>Exploit a SQL Injection vulnerability in the product category filter and display the version of the backend database.</p><h3>Skills Practiced</h3><ul><li>Identifying injectable parameters</li><li>UNION-based SQL Injection</li><li>Database fingerprinting</li><li>MySQL/Microsoft SQL Server-specific syntax</li><li>Using Burp Suite during web application testing</li></ul><h3>Understanding the Vulnerability</h3><p>The application failed to properly sanitize user-controlled input before incorporating it into an SQL query.</p><p>Because the supplied input became part of the SQL statement, it was possible to manipulate the original query and execute additional SQL commands.</p><p>Instead of simply retrieving product information, SQL Injection allowed me to request metadata directly from the database.</p><p>Unlike Oracle, both <strong>MySQL</strong> and <strong>Microsoft SQL Server</strong> expose version information using the following system variable:</p><pre>@@version</pre><p>Successfully retrieving this information confirms both the database type and its version, providing valuable intelligence during reconnaissance.</p><h3>Exploitation Process</h3><p>The overall approach consisted of several stages.</p><h3>1. Identify the Injection Point</h3><p>The vulnerable parameter was the <strong>product category</strong> filter.</p><p>By intercepting the request in Burp Suite and modifying the parameter, I confirmed that user input was reaching the SQL query.</p><h3>2. Determine the Number of Columns</h3><p>Before using a UNION attack, it’s important to determine how many columns the original query returns.</p><p>I used a UNION SELECT payload with placeholder text values until the application accepted the query.</p><p>Example payload:</p><pre>&#39; UNION SELECT &#39;abc&#39;,&#39;def&#39;#</pre><p>This confirmed that the original query returned <strong>two columns</strong>, both capable of displaying text.</p><h3>3. Retrieve the Database Version</h3><p>After identifying the correct column structure, I queried the database version using the built-in <strong>@@version</strong> variable.</p><p>Example payload:</p><pre>&#39; UNION SELECT @@version,NULL#</pre><p>The application successfully displayed the backend database version, completing the objective of the lab.</p><h3>Key Takeaways</h3><p>This lab reinforced several important concepts:</p><ul><li>SQL Injection techniques vary depending on the underlying database.</li><li>MySQL and Microsoft SQL Server use the <strong>@@version</strong> system variable to expose version information.</li><li>UNION attacks require matching both the number of columns and compatible data types.</li><li>Database fingerprinting is an important reconnaissance step during penetration testing.</li><li>Even seemingly harmless information disclosure can help attackers plan further exploitation.</li></ul><h3>Defensive Recommendations</h3><p>Developers can significantly reduce the risk of SQL Injection by following secure coding practices:</p><ul><li>Use parameterized queries (prepared statements)</li><li>Avoid dynamically constructing SQL queries</li><li>Validate and sanitize user input on the server side</li><li>Apply the principle of least privilege for database accounts</li><li>Use ORM frameworks securely</li><li>Conduct regular security assessments and penetration testing</li></ul><p>These practices help eliminate one of the most common and dangerous web application vulnerabilities.</p><h3>Conclusion</h3><p>Although this lab focuses on retrieving version information, it demonstrates a crucial phase of real-world penetration testing.</p><p>Identifying the underlying database allows security professionals to select the appropriate payloads and techniques for further assessment while also helping developers understand how seemingly small vulnerabilities can expose valuable system information.</p><p>Every lab I complete through the PortSwigger Web Security Academy strengthens my practical understanding of offensive security, secure application development, and vulnerability assessment.</p><p>I’m documenting my journey as I continue building hands-on cybersecurity skills and preparing for opportunities in penetration testing, application security, and cybersecurity engineering.</p><p>Thank you for reading!</p><h3>Resources</h3><ul><li>PortSwigger Web Security Academy</li><li>Burp Suite Community Edition</li><li>OWASP Top 10 — Injection</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ff62ee456ba2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Oracle SQL Injection: How I Retrieved the Database Version | PortSwigger Web Security Academy…]]></title>
            <link>https://medium.com/@jineshcanada23/oracle-sql-injection-how-i-retrieved-the-database-version-portswigger-web-security-academy-4c1dc3a27ffb?source=rss-dcf1bb1eebd4------2</link>
            <guid isPermaLink="false">https://medium.com/p/4c1dc3a27ffb</guid>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[sql-injection]]></category>
            <category><![CDATA[burpsuite]]></category>
            <dc:creator><![CDATA[Jinesh Majithia]]></dc:creator>
            <pubDate>Fri, 26 Jun 2026 01:57:20 GMT</pubDate>
            <atom:updated>2026-06-26T01:57:20.136Z</atom:updated>
            <content:encoded><![CDATA[<h3>Oracle SQL Injection: How I Retrieved the Database Version | PortSwigger Web Security Academy Walkthrough</h3><p>YouTube Link:</p><p><em>Continuing my hands-on journey through the PortSwigger Web Security Academy, I completed another SQL Injection lab focused on identifying the version of an Oracle database using UNION-based SQL Injection.</em></p><p>SQL Injection remains one of the most critical vulnerabilities in web applications. Although modern frameworks have improved security, improperly validated user input can still expose sensitive database information.</p><p>One common objective during penetration testing is determining the underlying database management system (DBMS). Knowing whether the application uses Oracle, MySQL, PostgreSQL, or Microsoft SQL Server helps security professionals craft database-specific payloads for further assessment.</p><p>In this lab, the goal was straightforward:</p><blockquote><em>Retrieve the Oracle database version using a UNION SQL Injection attack.</em></blockquote><h3>Lab Overview</h3><p><strong>Lab Name</strong></p><p><strong>SQL Injection attack, querying the database type and version on Oracle</strong></p><h3>Objective</h3><p>Use SQL Injection to determine the version of the Oracle database powering the vulnerable application.</p><h3>Skills Practiced</h3><ul><li>Identifying injectable parameters</li><li>UNION-based SQL Injection</li><li>Oracle-specific SQL syntax</li><li>Enumerating database information</li><li>Using Burp Suite during testing</li></ul><h3>Understanding the Vulnerability</h3><p>The application failed to properly sanitize user input before incorporating it into an SQL query.</p><p>Because the input was directly interpreted by the database, it became possible to manipulate the original query.</p><p>Rather than simply returning application data, SQL Injection allows an attacker to request additional information from the database itself.</p><p>In Oracle databases, version information is stored in a system view called:</p><pre>v$version</pre><p>Unlike other databases, Oracle requires selecting data from a table. Therefore, attackers commonly query:</p><pre>FROM v$version</pre><h3>Exploitation Process</h3><p>The overall approach consisted of several stages:</p><h3>1. Locate the Injection Point</h3><p>I first identified a parameter vulnerable to SQL Injection.</p><h3>2. Determine the Number of Columns</h3><p>Using UNION SELECT payloads with NULL values, I determined the correct number of columns required by the original query.</p><p>Example:</p><pre>&#39; UNION SELECT NULL,NULL FROM dual--</pre><p>Oracle requires selecting from the special table:</p><pre>dual</pre><h3>3. Identify a Text-Compatible Column</h3><p>Next, I identified which column could display text returned from the database.</p><p>This allows arbitrary database information to appear in the application’s response.</p><h3>4. Retrieve the Database Version</h3><p>Once the injectable text column was identified, I queried Oracle’s version table.</p><p>Example payload:</p><pre>&#39; UNION SELECT banner,NULL FROM v$version--</pre><p>The application successfully returned the Oracle database version, completing the lab objective.</p><h3>Key Takeaways</h3><p>This lab reinforces several important concepts:</p><ul><li>SQL Injection is not database-independent.</li><li>Oracle uses unique syntax compared to MySQL and PostgreSQL.</li><li>Understanding database-specific system tables is essential during penetration testing.</li><li>UNION attacks require identifying both the correct number of columns and compatible data types.</li><li>Even simple information disclosure can significantly aid attackers during reconnaissance.</li></ul><h3>Defensive Recommendations</h3><p>Developers can mitigate SQL Injection by:</p><ul><li>Using parameterized queries (prepared statements)</li><li>Avoiding dynamic SQL construction</li><li>Performing server-side input validation</li><li>Applying least-privilege database permissions</li><li>Using ORM frameworks securely</li><li>Conducting regular security testing</li></ul><h3>Conclusion</h3><p>Although this lab focuses on retrieving version information, it demonstrates a critical phase of real-world penetration testing.</p><p>Understanding how different databases behave allows security professionals to recognize vulnerabilities more efficiently while helping developers implement stronger defenses.</p><p>Every SQL Injection lab deepens practical knowledge that extends beyond theory into real application security testing.</p><h3>Resources</h3><ul><li>PortSwigger Web Security Academy</li><li>Burp Suite Community Edition</li><li>OWASP Top 10 — Injection</li></ul><p><em>I’m documenting my journey through the PortSwigger Web Security Academy as I continue building practical offensive security skills and preparing for cybersecurity roles.</em></p><p>If you’re also working through these labs, I’d be happy to connect and discuss different approaches.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4c1dc3a27ffb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learning SQL Injection Through a Login Bypass Lab (PortSwigger Walkthrough)]]></title>
            <link>https://medium.com/@jineshcanada23/learning-sql-injection-through-a-login-bypass-lab-portswigger-walkthrough-af05059e5b42?source=rss-dcf1bb1eebd4------2</link>
            <guid isPermaLink="false">https://medium.com/p/af05059e5b42</guid>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[burpsuite]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[sql-injection]]></category>
            <category><![CDATA[portswigger]]></category>
            <dc:creator><![CDATA[Jinesh Majithia]]></dc:creator>
            <pubDate>Thu, 25 Jun 2026 01:03:16 GMT</pubDate>
            <atom:updated>2026-06-25T01:03:16.049Z</atom:updated>
            <content:encoded><![CDATA[<p>Youtube link: <a href="https://youtu.be/sDU4JxlWrnY">https://youtu.be/sDU4JxlWrnY</a></p><p>One of the best ways I’ve found to learn web application security is by working through hands-on labs. Recently, I completed the PortSwigger Web Security Academy lab called <strong>“SQL Injection Vulnerability Allowing Login Bypass.”</strong></p><p>Even though this is an introductory lab, it demonstrates a vulnerability that has historically led to some serious real-world security incidents.</p><h3>The Goal</h3><p>The objective was simple: log in as the administrator user without knowing the password.</p><p>The application contained a SQL Injection vulnerability in its login functionality, making it possible to manipulate the backend SQL query.</p><h3>Understanding the Vulnerability</h3><p>When a user logs in, the application typically checks the provided username and password against records stored in a database.</p><p>A vulnerable query might look something like this:</p><pre>SELECT * FROM users<br>WHERE username = &#39;administrator&#39;<br>AND password = &#39;password123&#39;;</pre><p>If user input is inserted directly into the query without proper protection, an attacker can change the logic of the SQL statement.</p><p>That’s exactly what happened in this lab.</p><h3>Finding the Injection Point</h3><p>I navigated to the login page and tested the username field.</p><p>For the username, I entered:</p><pre>administrator&#39;--</pre><p>The password field could contain any value.</p><p>The apostrophe closes the username string, and the double dash (--) comments out the rest of the SQL query, including the password check.</p><p>As a result, the application effectively processes a query that only checks whether the username is “administrator.”</p><h3>The Result</h3><p>After submitting the request, I was successfully logged in as the administrator user.</p><p>No valid password was required.</p><p>This demonstrates how a small coding mistake can completely break an application’s authentication system.</p><h3>What I Learned</h3><p>This lab reinforced a few important lessons:</p><ul><li>Never trust user input.</li><li>Authentication mechanisms are high-value targets for attackers.</li><li>SQL Injection remains relevant despite being a well-known vulnerability.</li><li>Parameterized queries are one of the most effective ways to prevent this issue.</li></ul><h3>Final Thoughts</h3><p>Although this was a beginner-level lab, it highlights why secure coding practices matter. A single vulnerable input field can lead to unauthorized access and potentially much larger security issues.</p><p>I’m continuing my journey through PortSwigger’s labs to strengthen my understanding of web application security and common attack techniques.</p><p>If you’re learning application security, I highly recommend getting hands-on experience with labs like these. Reading about vulnerabilities is helpful, but exploiting them in a safe environment helps the concepts stick.</p><p>Thanks for reading, and feel free to connect if you’re also exploring web security and penetration testing.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=af05059e5b42" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Breaking the Filter: How I Unlocked Hidden Application Data via SQL Injection]]></title>
            <link>https://medium.com/@jineshcanada23/breaking-the-filter-how-i-unlocked-hidden-application-data-via-sql-injection-2ea072a5fe96?source=rss-dcf1bb1eebd4------2</link>
            <guid isPermaLink="false">https://medium.com/p/2ea072a5fe96</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[portswigger-academy-labs]]></category>
            <category><![CDATA[sql-injection]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <dc:creator><![CDATA[Jinesh Majithia]]></dc:creator>
            <pubDate>Tue, 23 Jun 2026 16:50:24 GMT</pubDate>
            <atom:updated>2026-06-23T16:51:39.232Z</atom:updated>
            <content:encoded><![CDATA[<p>Youtube link: <a href="https://youtu.be/ic0IIMJwGNs">https://youtu.be/ic0IIMJwGNs</a></p><p>When building or working with enterprise applications, we often rely on database logic to enforce business rules. For example, ensuring that customers only see products that are fully approved and live in production.</p><p>But what happens when the logic dictating what data gets displayed can be entirely manipulated by the user?</p><p>As part of my ongoing training through the <strong>PortSwigger Web Security Academy</strong>, I recently tackled a fundamental but highly critical flaw: <strong>SQL injection vulnerabilities in the </strong><strong>WHERE clause allowing retrieval of hidden data</strong>. Here is a breakdown of how the flaw works, how I exploited it, and my key takeaways from the lab.</p><h3>The Logic Behind the Flaw</h3><p>In this scenario, the web application features a product category filter. When a user selects a category (like ‘Gifts’), the application executes a backend database query to pull the relevant items. The code behind the scenes looks like this:</p><p>SQL</p><pre>SELECT * FROM products WHERE category = &#39;Gifts&#39; AND released = 1</pre><p>The logic expects two conditions to be true: the item must match the selected category, <strong>and</strong> the item must be released (released = 1). Under normal operation, unreleased items remain invisible to the public.</p><p>The vulnerability exists because the user input (‘Gifts’) is concatenated directly into the SQL query without proper sanitization or parameterization.</p><h3>Breaking the Query: My Approach</h3><p>To solve the lab, the goal was to force the application to display unreleased products. To achieve this, I needed to inject a payload that fundamentally changed the query’s conditional logic.</p><p>I intercepted the request and injected the following payload into the category parameter:</p><p>&#39;+OR+1=1--</p><p>When passed to the database, the modified query transformed into this:</p><p>SQL</p><pre>SELECT * FROM products WHERE category = &#39;Gifts&#39; OR 1=1--&#39; AND released = 1</pre><p>Here is exactly why this injection breaks the application’s intended logic:</p><ul><li><strong>The Conditional Override (</strong><strong>OR 1=1):</strong> The database evaluates the WHERE clause. Because 1=1 is always true, the entire conditional statement evaluates to true, regardless of the category or whether the product is released.</li><li><strong>The Comment Operator (</strong><strong>--):</strong> In SQL, -- instructs the database engine to treat everything following it as a comment. By injecting this, I effectively wiped out the trailing AND released = 1 condition.</li></ul><p>The database was left with a modified instruction: <em>Select every single item from the products table, period.</em> As a result, the application dumped the entire database contents directly onto the UI, revealing the unreleased products and successfully solving the lab.</p><h3>The Operations Perspective</h3><p>Coming from a background in data operations, this lab hits close to home. In operations, we constantly look at data flows, error tracking, and system outputs. Seeing how easily a minor syntax injection can completely subvert expected application behavior highlights why visibility is only half the battle.</p><p>This lab reinforces that robust security isn’t just about ensuring data is formatted correctly when it leaves the system; it is about ensuring user input is strictly controlled before it ever touches a database engine.</p><p>I’m moving right along to the next lab in the academy, continuing to build out my hands-on tactical skills. If you’re studying AppSec or managing database security, I’d love to connect and talk mitigation strategies!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2ea072a5fe96" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Beyond the Clock: What Web Security Academy Taught Me About the Hidden Chaos of Race Conditions]]></title>
            <link>https://medium.com/@jineshcanada23/beyond-the-clock-what-web-security-academy-taught-me-about-the-hidden-chaos-of-race-conditions-607b55e96170?source=rss-dcf1bb1eebd4------2</link>
            <guid isPermaLink="false">https://medium.com/p/607b55e96170</guid>
            <category><![CDATA[appsec]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[race-condition]]></category>
            <dc:creator><![CDATA[Jinesh Majithia]]></dc:creator>
            <pubDate>Tue, 23 Jun 2026 15:06:01 GMT</pubDate>
            <atom:updated>2026-06-23T15:25:46.120Z</atom:updated>
            <content:encoded><![CDATA[<p>YouTube link: <a href="https://youtu.be/KzBjZbQsIZY">https://youtu.be/KzBjZbQsIZY</a></p><p>We like to think of code as a predictable, orderly line. Step A happens, then Step B, then Step C. In a perfect world, or on a quiet staging server, that is exactly how it works.</p><p>But when you spend your days in data operations, monitoring live systems and catching failures in real time, you quickly learn that production is anything but quiet. High traffic introduces chaos. Lately, as I have been diving deep into the PortSwigger Web Security Academy to transition my career toward cybersecurity, I have realized just how easily that chaos can be weaponized.</p><p>My latest deep dive was into Race Conditions, and honestly, it completely shifted how I look at application logic.</p><h3>The Flaw in “Perfect” Logic</h3><p>Before digging into the PortSwigger labs, I understood the textbook definition of a race condition: two threads trying to modify the same data at the same time. But seeing it play out in a web application context was a massive eye-opener.</p><p>Take a standard e-commerce checkout or a password reset flow. The developers write perfectly logical code:</p><ol><li>Check if a coupon is valid.</li><li>Apply the discount.</li><li>Mark the coupon as used.</li></ol><p>It looks flawless. But a race condition exploits the tiny fraction of a second between step 1 and step 3, which is the sub-millisecond collision window. If an attacker hammers the server with multiple identical requests at the exact same instant, the server might approve the coupon for all of them before it ever gets a chance to mark it as used.</p><h3>My “Aha!” Moment: The Single-Packet Attack</h3><p>The real breakthrough for me was learning about PortSwigger’s research into multi-endpoint race conditions and the single-packet attack technique.</p><p>Traditionally, engineers thought that network jitter (the natural variations in how long data takes to travel across the internet) made executing these attacks outside of a local network incredibly difficult. If Request A arrives even a millisecond before Request B, the window closes.</p><p>The single-packet attack blows past that limitation. Instead of sending separate TCP packets and hoping they arrive together, you sync them over HTTP/2 or HTTP/1.1 pipelining. You TCP-ping the server to prep the requests, and then release the final bytes of all requests inside a single network packet.</p><p>Seeing how a researcher can force a server to process entirely different actions, like completing an order and adding a gift card, at the exact same microsecond was a masterclass in how fragile standard assumptions can be.</p><h3>From Operations to Security: Connecting the Dots</h3><p>Working in operations, my mindset has always been about visibility, handling edge cases, and keeping systems stable. Studying these vulnerabilities has made me realize that security and operations are two sides of the same coin. The exact same unexpected spikes or weird data anomalies we look for in system logs are often the digital footprints of someone trying to find a collision window.</p><p>Moving forward, I am not just looking at logs to see if a system is running. I am looking at them to understand how it could be pushed to its absolute limits.</p><h3>What’s Next?</h3><p>This is just one stop on my journey through the Web Security Academy. I have officially committed to clearing the rest of these advanced tracks, breaking down complex flaws, and building a mindset that does not just monitor systems, but actively defends them.</p><p>If you are working in AppSec, engineering, or security operations, I would love to connect, share notes, or hear how your team hunts for these hidden logic flaws in production.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=607b55e96170" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>