<?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 Paudelarpan on Medium]]></title>
        <description><![CDATA[Stories by Paudelarpan on Medium]]></description>
        <link>https://medium.com/@paudelarpan91?source=rss-8ed69abb572d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*EPWMV7hoSDAg8HK9</url>
            <title>Stories by Paudelarpan on Medium</title>
            <link>https://medium.com/@paudelarpan91?source=rss-8ed69abb572d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 02:19:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@paudelarpan91/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[Lab 4: SQL Injection Attack, Querying the Database Type and Version on MySQL and Microsoft]]></title>
            <link>https://medium.com/@paudelarpan91/lab-4-sql-injection-attack-querying-the-database-type-and-version-on-mysql-and-microsoft-d6f349c9b6f4?source=rss-8ed69abb572d------2</link>
            <guid isPermaLink="false">https://medium.com/p/d6f349c9b6f4</guid>
            <dc:creator><![CDATA[Paudelarpan]]></dc:creator>
            <pubDate>Sat, 13 Jul 2024 16:44:31 GMT</pubDate>
            <atom:updated>2024-07-13T16:46:02.880Z</atom:updated>
            <content:encoded><![CDATA[<h4>Portswigger Lab Simple Solution — SQL Injection | Arpan Paudel</h4><h3>Overview</h3><p>This lab walkthrough demonstrates an SQL injection attack aimed at querying the database type and version on MySQL and Microsoft databases. It highlights the steps an attacker would take to exploit such vulnerabilities.</p><h3>Steps to Exploit</h3><h4>1. Identify the Vulnerable Parameter</h4><p>Start by identifying the vulnerable parameter by intercepting the request. Typically, you’ll find a GET request sent to /filter?category=Pets.</p><h4>2. Test for SQL Injection</h4><p>Verify the vulnerability by injecting SQL code into the category parameter. Modify the query to:</p><pre>category=&#39;+UNION+SELECT+1,2--+-</pre><p>A successful injection will return “1” and “2” in the response, confirming two columns are present.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fp8ITJEh7tund1eqWP2oKg.png" /></figure><h4>3. Retrieve Database Version</h4><p>Exploit the SQL injection to retrieve the database version. Adjust the query to:</p><pre>category=&#39;+UNION+SELECT+@@version,2--+-</pre><p>This query fetches the database version using @@version for both MySQL and Microsoft databases.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8vqBbuNuYO6OCTmDr2xEew.png" /></figure><h4>4. Confirm the Exploit</h4><p>Verify the successful exploitation when the database version is displayed in the response.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Po_8_uKtKOXSR8GKHxMZ2A.png" /></figure><h3>Conclusion</h3><p>This lab provides a practical demonstration of exploiting SQL injection vulnerabilities to extract critical information like database type and version from MySQL and Microsoft databases. It underscores the importance of adopting robust security measures such as input validation and parameterized queries to mitigate such vulnerabilities effectively.</p><p>Thank you for reading :)</p><p>portswigger , sql injection , sqli , arpan paudel</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d6f349c9b6f4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Lab 3: SQL Injection Attack, Querying the Database Type and Version on Oracle]]></title>
            <link>https://medium.com/@paudelarpan91/lab-3-sql-injection-attack-querying-the-database-type-and-version-on-oracle-2e1522d36535?source=rss-8ed69abb572d------2</link>
            <guid isPermaLink="false">https://medium.com/p/2e1522d36535</guid>
            <dc:creator><![CDATA[Paudelarpan]]></dc:creator>
            <pubDate>Sat, 13 Jul 2024 16:38:22 GMT</pubDate>
            <atom:updated>2024-07-13T16:45:35.509Z</atom:updated>
            <content:encoded><![CDATA[<h4>Portswigger Lab Simple Solution — SQL Injection | Arpan Paudel</h4><h3>Overview</h3><p>In this lab, we explore an SQL injection vulnerability on an Oracle database, demonstrating how an attacker can exploit it to retrieve sensitive information such as the database type and version.</p><h3>Steps to Exploit</h3><h4>1. Identify the Vulnerable Parameter</h4><p>Begin by identifying the vulnerable parameter through intercepting the request. Typically, you will observe a GET request sent to /filter?category=Pets.</p><h4>2. Test for SQL Injection</h4><p>Inject SQL code to verify the vulnerability. Modify the query in the category parameter to:</p><pre>category=&#39;+UNION+SELECT+&#39;1&#39;,&#39;2&#39;+FROM+dual-- -</pre><p>Successful injection will return “1” and “2” in the response, indicating two columns are present.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wb6jQ7xUh6HfWCc36ZsXPQ.png" /></figure><h4>3. Retrieve Database Version</h4><p>Utilize SQL injection to retrieve the database version. Modify the query to:</p><pre> category=&#39;+UNION+SELECT+banner,&#39;2&#39;+FROM+v$version--+-</pre><p>This query extracts the database version from v$version.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8gytV4YJM8Dxxvsjjavdmw.png" /></figure><h4>4. Confirm the Exploit</h4><p>Confirm the successful exploitation when the database version is displayed in the response.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nHFgBHtPvJdUXTA7IWO0zw.png" /></figure><h3>Conclusion</h3><p>This lab illustrates how SQL injection vulnerabilities can be leveraged to access critical database information like type and version. It underscores the imortance of implementing secure coding practices such as parameterized queries and input validation to mitigate such vulnerabilities.</p><p>Thank you for reading :)</p><p>portswigger , sql injection , sqli , arpan paudel</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2e1522d36535" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Lab 2: SQL Injection Vulnerability Allowing Login Bypass]]></title>
            <link>https://medium.com/@paudelarpan91/lab-2-sql-injection-vulnerability-allowing-login-bypass-216a28dbe8d5?source=rss-8ed69abb572d------2</link>
            <guid isPermaLink="false">https://medium.com/p/216a28dbe8d5</guid>
            <dc:creator><![CDATA[Paudelarpan]]></dc:creator>
            <pubDate>Sat, 13 Jul 2024 15:55:49 GMT</pubDate>
            <atom:updated>2024-07-16T12:52:31.283Z</atom:updated>
            <content:encoded><![CDATA[<h4>Portswigger Lab Simple Solution — SQL Injection | Arpan Paudel</h4><h3>Overview</h3><p>This lab demonstrates an SQL injection vulnerability that allows an attacker to bypass the login page.</p><h3>Steps to Exploit</h3><h4>1. Identify the Login Page</h4><ul><li>Navigate to the login page of the application.</li></ul><h4>2. Test for SQL Injection</h4><ul><li>Attempt to log in with the following credentials Username: &#39;admin&#39;or&#39;1&#39;=&#39;1&#39; and Password: just_a_random_password</li></ul><h4>4. Confirm the Exploit</h4><ul><li>The login is bypassed, and access is granted, confirming the SQL injection vulnerability.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xtr4BNZOcHG2ZrgWzD9JwA.png" /></figure><h3>Conclusion</h3><p>This lab provides a practical example of how SQL injection vulnerabilities can be exploited to bypass authentication mechanisms. It underscores the importance of using parameterized queries and validating user inputs to prevent such attacks.</p><p>Thank you for reading :)</p><p>portswigger , sql injection , sqli , arpan paudel</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=216a28dbe8d5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Lab 1: SQL Injection Vulnerability in WHERE Clause Allowing Retrieval of Hidden Data of hidden…]]></title>
            <link>https://medium.com/@paudelarpan91/lab-1-sql-injection-vulnerability-in-where-clause-allowing-retrieval-of-hidden-data-of-hidden-d6fa0fd0d5d7?source=rss-8ed69abb572d------2</link>
            <guid isPermaLink="false">https://medium.com/p/d6fa0fd0d5d7</guid>
            <dc:creator><![CDATA[Paudelarpan]]></dc:creator>
            <pubDate>Sat, 13 Jul 2024 13:28:18 GMT</pubDate>
            <atom:updated>2024-07-13T16:39:49.300Z</atom:updated>
            <content:encoded><![CDATA[<h3>Lab 1: SQL Injection Vulnerability in WHERE Clause Allowing Retrieval of Hidden Data</h3><h4>Portswigger Lab Simple Solution — SQL Injection | Arpan Paudel</h4><h3>Overview</h3><p>This lab demonstrates an SQL injection vulnerability in the WHERE clause, allowing an attacker to retrieve hidden data. The lab involves modifying URL parameters to exploit the vulnerability.</p><h3>Steps to Exploit</h3><h4><strong>1. Identify the Vulnerable Parameter</strong></h4><ul><li>Navigate to different categories on the website. Observe that the URL changes to include a category parameter (e.g., category=Accessories).</li></ul><h4>2. <strong>Test for SQL Injection</strong></h4><ul><li>Modify the URL parameter to category=&#39;. An error message indicates a potential SQL injection vulnerability.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dizWrh_nNNDFNA33xo5QGA.png" /></figure><h4>3. <strong>Exploit the Vulnerability :</strong></h4><ul><li>To exploit the SQL injection, modify the URL parameter to:</li></ul><pre>category=&#39; OR &#39;1&#39;=&#39;1&#39; -- -</pre><ul><li>This payload alters the SQL query to always return true, thereby retrieving hidden data.</li></ul><h4>4. Confirm the Exploit</h4><ul><li>Upon entering the payload, the lab is solved, confirming the SQL injection vulnerability.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JBUq0VFB2BrwW4ZwYCOLMQ.png" /></figure><h3>Conclusion</h3><p>This lab provides a practical example of how SQL injection vulnerabilities in the WHERE clause can be exploited to retrieve hidden data. It highlights the importance of validating and sanitizing user inputs to prevent such attacks.</p><p>Thank you for reading :)</p><p>portswigger , sql injection , sqli , arpan paudel</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d6fa0fd0d5d7" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>