<?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 dasi on Medium]]></title>
        <description><![CDATA[Stories by dasi on Medium]]></description>
        <link>https://medium.com/@daswaniankit999?source=rss-4e2463e6e4b6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*qTcGVUCuCOaMqiFP</url>
            <title>Stories by dasi on Medium</title>
            <link>https://medium.com/@daswaniankit999?source=rss-4e2463e6e4b6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 02:32:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@daswaniankit999/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[Port Swigger: Lab: File path traversal, validation of file extension with null byte bypass (Theory…]]></title>
            <link>https://medium.com/@daswaniankit999/port-swigger-lab-file-path-traversal-validation-of-file-extension-with-null-byte-bypass-theory-d57544186cbe?source=rss-4e2463e6e4b6------2</link>
            <guid isPermaLink="false">https://medium.com/p/d57544186cbe</guid>
            <category><![CDATA[beginner]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[portswigger]]></category>
            <category><![CDATA[computer-science]]></category>
            <dc:creator><![CDATA[dasi]]></dc:creator>
            <pubDate>Wed, 20 Mar 2024 03:28:46 GMT</pubDate>
            <atom:updated>2024-03-20T03:28:46.198Z</atom:updated>
            <content:encoded><![CDATA[<h3>Port Swigger: Lab: File path traversal, validation of file extension with null byte bypass (Theory Part 6-Lab 6)</h3><p>Description: This lab contains a path traversal vulnerability in the display of product images. The application validates that the supplied filename ends with the expected file extension. To solve the lab, retrieve the contents of the /etc/passwd file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z52UHqp8o5HLv9cslfup3w.png" /></figure><p>using file extension as</p><pre>../../../etc/passwd%00.png</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0yPdDko8Taj6gGfSXav4eQ.png" /></figure><ul><li>This solves the lab.</li></ul><p>&gt;&gt;&gt;&gt; Do not try on live websites without the owner permission.</p><p>Lab 5: <a href="https://medium.com/@daswaniankit999/port-swigger-file-path-traversal-validation-of-start-of-path-theory-part-5-lab-5-ea115ab62d11">https://medium.com/@daswaniankit999/port-swigger-file-path-traversal-validation-of-start-of-path-theory-part-5-lab-5-ea115ab62d11</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d57544186cbe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Port Swigger: File path traversal, validation of start of path (Theory Part 5-Lab 5)]]></title>
            <link>https://medium.com/@daswaniankit999/port-swigger-file-path-traversal-validation-of-start-of-path-theory-part-5-lab-5-ea115ab62d11?source=rss-4e2463e6e4b6------2</link>
            <guid isPermaLink="false">https://medium.com/p/ea115ab62d11</guid>
            <category><![CDATA[cracking]]></category>
            <category><![CDATA[beginner]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[dasi]]></dc:creator>
            <pubDate>Sat, 16 Mar 2024 03:33:39 GMT</pubDate>
            <atom:updated>2024-03-16T03:33:39.176Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Description: </strong>This lab contains a path traversal vulnerability in the display of product images. The application transmits the full file path via a request parameter and validates that the supplied path starts with the expected folder. To solve the lab, retrieve the contents of the /etc/passwd file.</p><ul><li>Start the common methods to see changes like in previous labs.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TtDUVIWiuC3EOOfWtCM_sw.png" /></figure><ul><li>We observe a different URL this time.</li></ul><pre>www.urlurlurl.com/filename=/var/www/images</pre><ul><li>we use the direct method and the lab get solved.</li></ul><pre>/../../../etc/passwd</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1Kr6xQemNYF1vp_xPTdX2w.png" /></figure><ul><li>Sometimes u need to do hit and trial with given knowledge to solve the problem.</li></ul><p>&gt;&gt;&gt;&gt; Do not try on a live website you may end up in legal issues.</p><p>Lab-4: <a href="https://medium.com/@daswaniankit999/port-swigger-file-path-traversal-traversal-sequences-stripped-with-superfluous-url-decode-theory-0446b2e2d480">https://medium.com/@daswaniankit999/port-swigger-file-path-traversal-traversal-sequences-stripped-with-superfluous-url-decode-theory-0446b2e2d480</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ea115ab62d11" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Port Swigger:
File path traversal, traversal sequences stripped with superfluous URL-decode (Theory…]]></title>
            <link>https://medium.com/@daswaniankit999/port-swigger-file-path-traversal-traversal-sequences-stripped-with-superfluous-url-decode-theory-0446b2e2d480?source=rss-4e2463e6e4b6------2</link>
            <guid isPermaLink="false">https://medium.com/p/0446b2e2d480</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[beginner]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[computer-science]]></category>
            <dc:creator><![CDATA[dasi]]></dc:creator>
            <pubDate>Tue, 12 Mar 2024 03:26:56 GMT</pubDate>
            <atom:updated>2024-03-16T03:34:08.095Z</atom:updated>
            <content:encoded><![CDATA[<h3>Port Swigger:<br>File path traversal, traversal sequences stripped with superfluous URL-decode (Theory Part 4-Lab 4)</h3><p><strong>Description: </strong>This lab contains a path traversal vulnerability in the display of product images. The application blocks input containing path traversal sequences. It then performs a URL decode of the input before using it.</p><p>To solve the lab, retrieve the contents of the /etc/passwd file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X2HzDpzid-imXEM1kmsE_g.png" /></figure><ul><li>Start the common methods.</li></ul><pre>../../../etc/passwd</pre><pre>/etc/passwd</pre><pre>....//....//....//etc/passwd</pre><ul><li>All will give no file found.</li></ul><pre>..%252f..%252f..%252fetc/passwd</pre><ul><li>This is another payload that we can use ( Encoded Path usage only restriction).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OFNO4oL59UUl8Pa1KMOa-w.png" /></figure><p>&gt;&gt;&gt;&gt; Do not try these things on a live website, you may end up in legal problems.</p><p>Lab 3: <a href="https://medium.com/@daswaniankit999/port-swigger-file-path-traversal-traversal-sequences-stripped-non-recursively-theory-part-a856cba1d78e">https://medium.com/@daswaniankit999/port-swigger-file-path-traversal-traversal-sequences-stripped-non-recursively-theory-part-a856cba1d78e</a></p><p>Lab 5: <a href="https://medium.com/@daswaniankit999/port-swigger-file-path-traversal-validation-of-start-of-path-theory-part-5-lab-5-ea115ab62d11">https://medium.com/@daswaniankit999/port-swigger-file-path-traversal-validation-of-start-of-path-theory-part-5-lab-5-ea115ab62d11</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0446b2e2d480" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Port Swigger: 
File path traversal, traversal sequences stripped non-recursively (Theory Part…]]></title>
            <link>https://medium.com/@daswaniankit999/port-swigger-file-path-traversal-traversal-sequences-stripped-non-recursively-theory-part-a856cba1d78e?source=rss-4e2463e6e4b6------2</link>
            <guid isPermaLink="false">https://medium.com/p/a856cba1d78e</guid>
            <category><![CDATA[beginners-guide]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[dasi]]></dc:creator>
            <pubDate>Tue, 12 Mar 2024 03:11:50 GMT</pubDate>
            <atom:updated>2024-03-12T03:27:16.825Z</atom:updated>
            <content:encoded><![CDATA[<h3>Port Swigger: <br><strong>File path traversal, traversal sequences stripped non-recursively</strong> (Theory Part 3-Lab 3)</h3><p><strong>Description: </strong>This lab contains a path traversal vulnerability in the display of product images. The application strips path traversal sequences from the user-supplied filename before using it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S9w2wjLg_lUjC_rIj8HQxw.png" /></figure><p>To solve the lab, retrieve the contents of the /etc/passwd file.</p><ul><li>Start with opening the lab and applying on the image path:</li></ul><pre>../../../etc/passwd</pre><ul><li>The result shows no such file, we can conclude that the person has put some kind of restriction open the path.</li><li>You can try using absolute path too but it too gives no such file.</li><li>We need to research it or you could just look at the answer as we are in initial stage of learning.</li><li>They use a different sequence to bypass the check on the URL.</li></ul><pre>....//....//....//etc/passwd</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GRT2mmHKagTvOglm_MMjAw.png" /></figure><ul><li>The lab is solved.</li></ul><p>&gt;&gt;&gt;&gt; Do not use on live website as it may lead to legal problems.</p><p>Lab 2: <a href="https://medium.com/@daswaniankit999/port-swigger-path-traversal-theory-part-2-lab-2-f04b468ddfe2">https://medium.com/@daswaniankit999/port-swigger-path-traversal-theory-part-2-lab-2-f04b468ddfe2</a></p><p>Lab 4: <a href="https://medium.com/@daswaniankit999/port-swigger-file-path-traversal-traversal-sequences-stripped-with-superfluous-url-decode-theory-0446b2e2d480">https://medium.com/@daswaniankit999/port-swigger-file-path-traversal-traversal-sequences-stripped-with-superfluous-url-decode-theory-0446b2e2d480</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a856cba1d78e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SQLi Port Swigger Lab-9( SQL injection UNION attack, retrieving data from other tables)]]></title>
            <link>https://medium.com/@daswaniankit999/sqli-port-swigger-lab-9-sql-injection-union-attack-retrieving-data-from-other-tables-751f1b27497e?source=rss-4e2463e6e4b6------2</link>
            <guid isPermaLink="false">https://medium.com/p/751f1b27497e</guid>
            <category><![CDATA[cybercrime]]></category>
            <category><![CDATA[sqli]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[dasi]]></dc:creator>
            <pubDate>Mon, 11 Mar 2024 03:19:46 GMT</pubDate>
            <atom:updated>2024-03-11T03:19:46.672Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Description: </strong>This lab contains a SQL injection vulnerability in the product category filter. The results from the query are returned in the application’s response, so you can use a UNION attack to retrieve data from other tables. To construct such an attack, you need to combine some of the techniques you learned in previous labs.</p><p>The database contains a different table called users, with columns called username and password.</p><p>To solve the lab, perform a SQL injection UNION attack that retrieves all usernames and passwords, and use the information to log in as the administrator user.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dF9qWx39uuEXjxAiTW0ZZg.png" /></figure><ul><li>Start with finding the no. of columns. (Remember the vulnerability exists in the category filter), we select the pets category.</li></ul><pre>Pets&#39;+UNION+SELECT+NULL,NULL+from+users--</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m3FGfohTBaBbkl4epl2Z1Q.png" /></figure><p>Now we try what is given in the description of the problem. When you are looking for such vulnerability you need to try at different places and common database names.</p><pre>Pets%27+Union+select+USERNAME,PASSWORD+FROM+USERS--</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l9x1J6E4VsnuoU2s8LHPSw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GQHdm6tLmRs_2xr4KM61ww.png" /></figure><ul><li>Login to administrator account and the lab gets solved.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o8CMLKIrK6RemtPa80UFmQ.png" /></figure><p>&gt;&gt;&gt;&gt; Do not try on live websites, you may end up in legal problems.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=751f1b27497e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SQLi Port Swigger Lab-8( SQL injection UNION attack, finding a column containing text)]]></title>
            <link>https://medium.com/@daswaniankit999/sqli-port-swigger-lab-8-sql-injection-union-attack-finding-a-column-containing-text-a9f2ce2bf096?source=rss-4e2463e6e4b6------2</link>
            <guid isPermaLink="false">https://medium.com/p/a9f2ce2bf096</guid>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[basics]]></category>
            <category><![CDATA[sql-injection]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[dasi]]></dc:creator>
            <pubDate>Mon, 11 Mar 2024 02:28:07 GMT</pubDate>
            <atom:updated>2024-03-11T03:20:07.392Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Description: </strong>This lab contains a SQL injection vulnerability in the product category filter. The results from the query are returned in the application’s response, so you can use a UNION attack to retrieve data from other tables. To construct such an attack, you first need to determine the number of columns returned by the query. The next step is to identify a column that is compatible with string data.</p><ul><li>Open the lab.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZcWPfMnoIMmy01XkNYPMEg.png" /></figure><ul><li>As given the vulnerability exist in the category filter, inject the code in the URL to get no. of columns.</li></ul><pre>Pets&#39;+UNION+SELECT+NULL,NULL,NULL--</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YNV-zD_QcdxTwva9U8Y7bg.png" /></figure><ul><li>We are tasked to retrieve the string: ‘DIu2sx’</li><li>We now look for a column that has string in it.</li></ul><pre>Pets&#39;+UNION+SELECT+&#39;a&#39;,NULL,NULL--</pre><pre>Pets&#39;+UNION+SELECT+NULL,&#39;a&#39;,NULL--</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MOr5GhKvcaCKnilHsI0vcQ.png" /><figcaption>*</figcaption></figure><ul><li>You can test all columns and figure out more.</li><li>Now replace the text ”Dlu2sx” and the lab gets solved.</li></ul><pre>Pets&#39;+UNION+SELECT+NULL,&#39;Dlu2sx&#39;,NULL--</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Mtc8owiszORugGO9mp07UA.png" /></figure><p>&gt;&gt;&gt;&gt; Do not try on a live website without permission, you may end up in legal trouble.</p><p>Lab 7:<a href="https://medium.com/@daswaniankit999/sqli-port-swigger-lab-7-sql-injection-union-attack-determining-the-number-of-columns-returned-by-034da4fc7064">https://medium.com/@daswaniankit999/sqli-port-swigger-lab-7-sql-injection-union-attack-determining-the-number-of-columns-returned-by-034da4fc7064</a></p><p>Lab 9: <a href="https://medium.com/@daswaniankit999/sqli-port-swigger-lab-9-sql-injection-union-attack-retrieving-data-from-other-tables-751f1b27497e">https://medium.com/@daswaniankit999/sqli-port-swigger-lab-9-sql-injection-union-attack-retrieving-data-from-other-tables-751f1b27497e</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a9f2ce2bf096" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SQLi Port Swigger Lab-7( SQL injection UNION attack, determining the number of columns returned by…]]></title>
            <link>https://medium.com/@daswaniankit999/sqli-port-swigger-lab-7-sql-injection-union-attack-determining-the-number-of-columns-returned-by-034da4fc7064?source=rss-4e2463e6e4b6------2</link>
            <guid isPermaLink="false">https://medium.com/p/034da4fc7064</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[portswigger]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[cyberattack]]></category>
            <dc:creator><![CDATA[dasi]]></dc:creator>
            <pubDate>Sun, 10 Mar 2024 07:23:06 GMT</pubDate>
            <atom:updated>2024-03-11T02:28:31.299Z</atom:updated>
            <content:encoded><![CDATA[<h3>SQLi Port Swigger Lab-7( SQL injection UNION attack, determining the number of columns returned by the query)</h3><p><strong>Description:</strong> <em>This lab contains a SQL injection vulnerability in the product category filter. The results from the query are returned in the application’s response, so you can use a UNION attack to retrieve data from other tables. The first step of such an attack is to determine the number of columns that are being returned by the query. You will then use this technique in subsequent labs to construct the full attack.</em></p><p><em>To solve the lab, determine the number of columns returned by the query by performing a SQL injection UNION attack that returns an additional row containing null values.</em></p><ul><li>Open the lab.</li><li>As given in the description the vulnerability exists in the product category filter.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g3SxFnwDf902ZvM5msRA1Q.png" /></figure><ul><li>Study the UNION attack from port-swigger lab.</li><li>Try different numbers and try to see the response</li></ul><pre>UNION+SELECT+NULL - -</pre><pre>UNION+SELECT+NULL,NULL - -</pre><pre>UNION+SELECT+NULL,NULL,NULL - -</pre><p>You get a response and the lab is solved.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wkjFoepVlJZOg4wvrkMzKw.png" /></figure><p>It means there are three columns in the database.</p><p>&gt;&gt;&gt;&gt; Do not try on a live website, you may end up in legal problems.</p><p>Lab 8: <a href="https://medium.com/@daswaniankit999/sqli-port-swigger-lab-8-sql-injection-union-attack-finding-a-column-containing-text-a9f2ce2bf096">https://medium.com/@daswaniankit999/sqli-port-swigger-lab-8-sql-injection-union-attack-finding-a-column-containing-text-a9f2ce2bf096</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=034da4fc7064" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Port Swigger: File path traversal, traversal sequences blocked with absolute path bypass (Theory…]]></title>
            <link>https://medium.com/@daswaniankit999/port-swigger-path-traversal-theory-part-2-lab-2-f04b468ddfe2?source=rss-4e2463e6e4b6------2</link>
            <guid isPermaLink="false">https://medium.com/p/f04b468ddfe2</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[red-team]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[portswigger]]></category>
            <category><![CDATA[burpsuite]]></category>
            <dc:creator><![CDATA[dasi]]></dc:creator>
            <pubDate>Sat, 09 Mar 2024 16:36:35 GMT</pubDate>
            <atom:updated>2024-03-12T03:12:13.301Z</atom:updated>
            <content:encoded><![CDATA[<h3>Port Swigger: <strong>File path traversal, traversal sequences blocked with absolute path bypass</strong> (Theory Part 2-Lab 2)</h3><p>Direct path traversal is seen less and less these days but is still relevant. The developers employ methods against path traversal.</p><p>Another method to exploit the path involves leveraging an absolute path from the filesystem root, such as specifying the filename=“/etc/passwd”, thereby directly referencing a file without resorting to any traversal sequences.</p><h3>Lab 2: Lab: File path traversal, traversal sequences blocked with absolute path bypass</h3><p><strong>Description : </strong>This lab contains a path traversal vulnerability in the display of product images. The application blocks traversal sequences but treats the supplied filename as being relative to a default working directory.</p><p>To solve the lab, retrieve the contents of the /etc/passwd file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wqbXnAaxS4qhi8OqCOncwg.png" /></figure><ul><li>Enough information from the description of the lab helps to find the solution.</li><li>We need to look for a place to check if path traversal is allowed or not.</li><li>If you select a product you can see it shows productid we can try to place /etc/passwd there, but it give us an error.</li></ul><pre>productId=/etc/passwd</pre><ul><li>Another thing that you can do is right-click on the image to get filename=12.jpg</li><li>Replace it with /etc/passwd</li><li>The lab gets solved</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RI_S3SE2UWubN6U4mJCbaQ.png" /></figure><p>&gt;&gt;&gt;&gt; Do not try these methods on live websites, you may end up in legal issues.</p><p>Lab 1: <a href="https://medium.com/@daswaniankit999/port-swigger-path-traversal-theory-part-1-fe6fdda8300a">https://medium.com/@daswaniankit999/port-swigger-path-traversal-theory-part-1-fe6fdda8300a</a></p><p>Lab 3: <a href="https://medium.com/@daswaniankit999/port-swigger-file-path-traversal-traversal-sequences-stripped-non-recursively-theory-part-a856cba1d78e">https://medium.com/@daswaniankit999/port-swigger-file-path-traversal-traversal-sequences-stripped-non-recursively-theory-part-a856cba1d78e</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f04b468ddfe2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SQLi Port Swigger Lab-2(SQL injection vulnerability allowing login bypass)]]></title>
            <link>https://medium.com/@daswaniankit999/sqli-port-swigger-lab-2-sql-injection-vulnerability-allowing-login-bypass-021e001ac2e5?source=rss-4e2463e6e4b6------2</link>
            <guid isPermaLink="false">https://medium.com/p/021e001ac2e5</guid>
            <category><![CDATA[red-team]]></category>
            <category><![CDATA[sqli]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[portswigger]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[dasi]]></dc:creator>
            <pubDate>Sat, 09 Mar 2024 03:44:03 GMT</pubDate>
            <atom:updated>2024-03-09T03:46:37.497Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Lab Description: This lab contains a SQL injection vulnerability in the login function. To solve the lab, perform an SQL injection attack that logs in to the application as the </strong><strong>administrator user.</strong></p><p>Let’s solve it without the need to use Burp-suite.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WUAgWzqoYuiK66V-k7ujNQ.png" /></figure><ul><li>We will start by performing SQLi on the login page.</li><li>‘ (single tick does not work for this case)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eGfXA63d0cmc_ZHvHq5M8A.png" /></figure><ul><li>Administrator’ also does not work.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oVJFlycXr2f2sLSbofSzyg.png" /></figure><p>When typed random password will give internal server error.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/331/1*OJ-VfTO9IXj2NfSrJZ0GDA.png" /></figure><ul><li>Doesn’t work with</li></ul><pre>administrator’+OR+1=1 — </pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dgLkz9tlys8fflM0Cjx4PQ.png" /></figure><ul><li>We did not check for the below:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7PcEBgtDhebDsI9tBlDQBQ.png" /></figure><ul><li>Use administrator’ — — and a random password it will work.</li></ul><p>( — — ) will treat all content after it as comments</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sRGmSxColdCASt4xrlZdmQ.png" /></figure><p>&gt;&gt;&gt;&gt; Do not use SQLi on live website as it may lead you get in legal issues.</p><p><strong>Link for Lab-1 SQLi:</strong></p><p><a href="https://medium.com/@daswaniankit999/sqli-portswigger-lab-1-lab-sql-injection-vulnerability-in-where-clause-allowing-retrieval-of-ee48577457ac">https://medium.com/@daswaniankit999/sqli-portswigger-lab-1-lab-sql-injection-vulnerability-in-where-clause-allowing-retrieval-of-ee48577457ac</a></p><p><a href="https://medium.com/@daswaniankit999/sqli-portswigger-lab-1-lab-sql-injection-vulnerability-in-where-clause-allowing-retrieval-of-f5aff47f2c0d">https://medium.com/@daswaniankit999/sqli-portswigger-lab-1-lab-sql-injection-vulnerability-in-where-clause-allowing-retrieval-of-f5aff47f2c0d</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=021e001ac2e5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SQLi Portswigger Lab-1 (Lab: SQL injection vulnerability in WHERE clause allowing retrieval of…]]></title>
            <link>https://medium.com/@daswaniankit999/sqli-portswigger-lab-1-lab-sql-injection-vulnerability-in-where-clause-allowing-retrieval-of-ee48577457ac?source=rss-4e2463e6e4b6------2</link>
            <guid isPermaLink="false">https://medium.com/p/ee48577457ac</guid>
            <category><![CDATA[portswigger]]></category>
            <category><![CDATA[sqli]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[burpsuite]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[dasi]]></dc:creator>
            <pubDate>Sat, 09 Mar 2024 03:01:32 GMT</pubDate>
            <atom:updated>2024-03-09T03:44:52.824Z</atom:updated>
            <content:encoded><![CDATA[<h3>SQLi Portswigger Lab-1 (Lab: SQL injection vulnerability in WHERE clause allowing retrieval of hidden data)-using Burp Suite</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/730/0*mXOdPV2F2vCPs4f7.png" /></figure><p>Access the lab it will open in a new tab:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jHbTjCnT4R2YBI4H.png" /></figure><p>The goal of the lab is the retrieval of hidden data.</p><p>There also exist other vulnerabilities in the website but we need to focus on the goal to solve the lab.</p><ul><li>Open Burp suite.</li></ul><p>&gt;&gt;&gt;&gt; Do not get overwhelmed by Burp-suite with time you will get to know all the features.</p><ul><li>The window will look something like the image below:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ciR18CqsuHKm9GsFf5AHhw.png" /></figure><ul><li>Burp needs to be set up before using so do that before using it based on how you wish to use it.</li><li>Go to proxy — check intercept is off and then go to HTTP History.</li><li>As we have already been given that vulnerability exists in the category field we directly proceed there, for real cases, you will have to try different places on the webpage and try to get a response.</li><li>Select any category, for this I have chosen gifts category.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aLxifVg6Q16N2qd3zJuI2w.png" /></figure><ul><li>The response of burp suite will look something like this.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qIp4REZnWbrs02C7cA4AJA.png" /></figure><ul><li>Select the /filter?category=gifts request and right click &gt; send to the repeater &gt; Go to repeater.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/733/1*xGfEIw_iRujfTkT5owjGTw.png" /></figure><ul><li>In repeater, you can make changes to the request and see the response.</li><li>Injected ‘+OR+1=1 — — in the request.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Dvl8FB7bE3kr6uYZ6jTKGA.png" /></figure><ul><li>You recieve a 200 OK response.</li><li>Go back to the lab to see it to be solved.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*47ZELnzPSDdmNu67Cm9Ffw.png" /></figure><p>You need to play around burp suite to understand it more. Things will fall in place as you learn.</p><p>&gt;&gt;&gt;&gt; Do not try SQLi on a live website as you may end up in legal issues.</p><p>Link for Lab 2 SQLi: <a href="https://medium.com/@daswaniankit999/sqli-port-swigger-lab-2-sql-injection-vulnerability-allowing-login-bypass-021e001ac2e5">https://medium.com/@daswaniankit999/sqli-port-swigger-lab-2-sql-injection-vulnerability-allowing-login-bypass-021e001ac2e5</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ee48577457ac" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>