<?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 Ayan Mukherjee on Medium]]></title>
        <description><![CDATA[Stories by Ayan Mukherjee on Medium]]></description>
        <link>https://medium.com/@ayan-mukherjee?source=rss-a512220778e7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by Ayan Mukherjee on Medium</title>
            <link>https://medium.com/@ayan-mukherjee?source=rss-a512220778e7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 20:23:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ayan-mukherjee/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[TryHackMe: Burp Suite: Intruder]]></title>
            <link>https://ayan-mukherjee.medium.com/tryhackme-burp-suite-intruder-04d936b6c1ea?source=rss-a512220778e7------2</link>
            <guid isPermaLink="false">https://medium.com/p/04d936b6c1ea</guid>
            <category><![CDATA[tryhackme-writeup]]></category>
            <category><![CDATA[burpsuite-extension]]></category>
            <category><![CDATA[burpsuite]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[tryhackme]]></category>
            <dc:creator><![CDATA[Ayan Mukherjee]]></dc:creator>
            <pubDate>Mon, 06 Nov 2023 05:11:56 GMT</pubDate>
            <atom:updated>2023-11-06T05:11:56.114Z</atom:updated>
            <content:encoded><![CDATA[<p>Intruder is an important part of Burp Suite. But in general, except just to do a simple recursive requests, Intruder can be made much refined to perform more complex tasks. The room link is <a href="https://tryhackme.com/room/burpsuiteintruder">https://tryhackme.com/room/burpsuiteintruder</a></p><h3>INTRODUCTION</h3><p>Burp Suite’s Intruder module is a powerful tool that allows for automated and customisable attacks. It provides the ability to modify specific parts of a request and perform repetitive tests with variations of input data. Intruder is particularly useful for tasks like fuzzing and brute-forcing, where different values need to be tested against a target.</p><p>No Answer required for this section</p><h3>WHAT IS INTRUDER</h3><p>Intruder is Burp Suite’s built-in fuzzing tool that allows for automated request modification and repetitive testing with variations in input values. By using a captured request (often from the Proxy module), Intruder can send multiple requests with slightly altered values based on user-defined configurations. It serves various purposes, such as brute-forcing login forms by substituting username and password fields with values from a wordlist or performing fuzzing attacks using wordlists to test subdirectories, endpoints, or virtual hosts. Intruder’s functionality is comparable to command-line tools like <strong>Wfuzz</strong> or <strong>ffuf</strong>.</p><p>However, it’s important to note that while Intruder can be used with Burp Community Edition, it is rate-limited, significantly reducing its speed compared to Burp Professional. This limitation often leads security practitioners to rely on other tools for fuzzing and brute-forcing. Nonetheless, Intruder remains a valuable tool and is worth learning how to use it effectively.</p><p>There are 4 major tabs in Intruder namely : Positions, Payloads, Resource Pool, Settings. We will learn Positions and Payload in details in below sections.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ih_5iAKdIgpeacp7_7Qnug.png" /></figure><h3>POSITIONS</h3><p>This tab allows us to select an attack type (which we will cover in a future task) and configure where we want to insert our payloads in the request template. When using Burp Suite Intruder to perform an attack, the first step is to examine the positions within the request where we want to insert our payloads. These positions inform Intruder about the locations where our payloads will be introduced</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*UiilcC4txvGFc9Ue.png" /></figure><p>On the right-hand side of the interface, we find the following buttons: Add §, Clear §, and Auto §:</p><ul><li>The Add § button allows us to define new positions manually by highlighting them within the request editor and then clicking the button.</li><li>The Clear § button removes all defined positions, providing a blank canvas where we can define our own positions.</li><li>The Auto § button automatically attempts to identify the most likely positions based on the request. This feature is helpful if we previously cleared the default positions and want them back.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7BkEkFfUobbJ5Qnb-LpC5A.png" /></figure><h3>PAYLOADS</h3><p>Here we can select values to insert into the positions defined in the <strong>Positions</strong> tab. We have various payload options, such as loading items from a wordlist. The way these payloads are inserted into the template depends on the attack type chosen in the <strong>Positions</strong> tab. The <strong>Payloads</strong> tab also enables us to modify Intruder’s behavior regarding payloads, such as defining pre-processing rules for each payload (e.g., adding a prefix or suffix, performing match and replace, or skipping payloads based on a defined regex).</p><p><strong>Payload Sets</strong>: This section allows us to choose the position for which we want to configure a payload set and select the type of payload we want to use.</p><p><strong>Payload settings</strong>: This section provides options specific to the selected payload type for the current payload set.</p><p><strong>Payload Processing</strong>: In this section, we can define rules to be applied to each payload in the set before it is sent to the target.</p><p><strong>Payload Encoding</strong>: The section allows us to customize the encoding options for our payloads.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b7UjhVDl_QQpT0pTy7aIqA.png" /></figure><h3>SNIPER</h3><p>The <strong>Sniper</strong> attack type is the default and most commonly used attack type in Burp Suite Intruder. It is particularly effective for single-position attacks, such as password brute-force or fuzzing for API endpoints. In a Sniper attack, we provide a set of payloads, which can be a wordlist or a range of numbers, and Intruder inserts each payload into each defined position in the request. The total number of requests made by Intruder Sniper can be calculated as requests = numberOfWords * numberOfPositions.</p><p>The Sniper attack type is beneficial when we want to perform tests with single-position attacks, utilizing different payloads for each position. It allows for precise testing and analysis of different payload variations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NY0xg2I0bNduofKWWaBBwA.png" /></figure><h3>BATTERING RAM</h3><p>The <strong>Battering ram</strong> attack type in Burp Suite Intruder differs from Sniper in that it places the same payload in every position simultaneously, rather than substituting each payload into each position in turn. In a Battering Ram attack, the same payload is thrown at every defined position simultaneously, providing a brute-force-like approach to testing.</p><p>The Battering Ram attack type is useful when we want to test the same payload against multiple positions at once without the need for sequential substitution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*30gbSquTprQitc9HFx1fpA.png" /></figure><h3>PITCHFORK</h3><p>The <strong>Pitchfork</strong> attack type in Burp Suite Intruder is similar to having multiple Sniper attacks running simultaneously. While Sniper uses one payload set to test all positions simultaneously, Pitchfork utilises one payload set per position (up to a maximum of 20) and iterates through them all simultaneously. Pitchfork takes the first item from each list and substitutes them into the request, one per position. It then repeats this process for the next request by taking the second item from each list and substituting it into the template. Intruder continues this iteration until one or all of the lists run out of items. It’s important to note that Intruder stops testing as soon as one of the lists is complete. Therefore, in Pitchfork attacks, it is ideal for the payload sets to have the same length. If the lengths of the payload sets differ, Intruder will only make requests until the shorter list is exhausted, and the remaining items in the longer list will not be tested.</p><p>The Pitchfork attack type is especially useful when conducting credential-stuffing attacks or when multiple positions require separate payload sets. It allows for simultaneous testing of multiple positions with different payloads.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k-qih2gBEyL2MgZyQLNwGA.png" /></figure><h3>CLUSTER BOMB</h3><p>The <strong>Cluster bomb</strong> attack type in Burp Suite Intruder allows us to choose multiple payload sets, one per position (up to a maximum of 20). Unlike Pitchfork, where all payload sets are tested simultaneously, Cluster bomb iterates through each payload set individually, ensuring that every possible combination of payloads is tested.</p><p>the Cluster bomb attack type iterates through every combination of the provided payload sets. It tests every possibility by substituting each value from each payload set into the corresponding position in the request.</p><p>Cluster bomb attacks can generate a significant amount of traffic as it tests every combination. The number of requests made by a Cluster bomb attack can be calculated by multiplying the number of lines in each payload set together. It’s important to be cautious when using this attack type, especially when dealing with large payload sets. Additionally, when using Burp Community and its Intruder rate-limiting, the execution of a Cluster bomb attack with a moderately sized payload set can take a significantly longer time.</p><p>The Cluster bomb attack type is particularly useful for credential brute-forcing scenarios where the mapping between usernames and passwords is unknown.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zJ67mJL0fpwmQu4jjPTHsw.png" /></figure><h3>INTRODUCTION TO ATTACK TYPES</h3><p>Just as a brief summary.</p><ol><li><strong>Sniper</strong>: The Sniper attack type is the default and most commonly used option. It cycles through the payloads, inserting one payload at a time into each position defined in the request. Sniper attacks iterate through all the payloads in a linear fashion, allowing for precise and focused testing.</li><li><strong>Battering ram</strong>: The Battering ram attack type differs from Sniper in that it sends all payloads simultaneously, each payload inserted into its respective position. This attack type is useful when testing for race conditions or when payloads need to be sent concurrently.</li><li><strong>Pitchfork</strong>: The Pitchfork attack type enables the simultaneous testing of multiple positions with different payloads. It allows the tester to define multiple payload sets, each associated with a specific position in the request. Pitchfork attacks are effective when there are distinct parameters that need separate testing.</li><li><strong>Cluster bomb</strong>: The Cluster bomb attack type combines the Sniper and Pitchfork approaches. It performs a Sniper-like attack on each position but simultaneously tests all payloads from each set. This attack type is useful when multiple positions have different payloads, and we want to test them all together.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Yn4ZI4XMOwp92QnxdL-Qww.png" /></figure><h3>PRACTICAL EXAMPLE</h3><p>This example shows how to perform basics Intruder Tasks. It helps to learn in a step by step method, how to load worklist for various position. Its highly recommended to do a Hand-on practice on all the rest of the practical examples.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*behPMRtratXKql2oJ_o43Q.png" /></figure><h3>PRACTICAL CHALLENGE</h3><p>It tells about what kind of vulnerabilities which can happen vulnerabilities which can happen when you open support tickets like IDOR.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8hPyAW226bMHOda4YYMZfQ.png" /></figure><h3>EXTRA MILE CHALLENGE</h3><p>This Tasks helps the user to learn how to configure Macro for a Burp Suite Intruder. This is an helpful functionality when considering ever changing Cookies and Tokens in the requests.</p><p>ITS HIGHLY RECOMMENDED TO GO THROUGH THE SECTION AND PRACTICE THE CHALLENGE. THE ANSWER PASTED HERE IS JUST TO HELP IN CASE NOTHING WORKS OUT.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0ZKPb_JtTmgvZOEoGIOQ8Q.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=04d936b6c1ea" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TryHackMe: Burp Suite The Basic]]></title>
            <link>https://ayan-mukherjee.medium.com/tryhackme-burp-suite-the-basic-33724e736765?source=rss-a512220778e7------2</link>
            <guid isPermaLink="false">https://medium.com/p/33724e736765</guid>
            <category><![CDATA[burpsuite]]></category>
            <category><![CDATA[tryhackme-writeup]]></category>
            <category><![CDATA[burp-suit]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[tryhackme]]></category>
            <dc:creator><![CDATA[Ayan Mukherjee]]></dc:creator>
            <pubDate>Mon, 30 Oct 2023 05:21:45 GMT</pubDate>
            <atom:updated>2023-10-30T05:22:43.518Z</atom:updated>
            <content:encoded><![CDATA[<p>This particular room in TryHackme (<a href="https://tryhackme.com/room/burpsuitebasics">https://tryhackme.com/room/burpsuitebasics</a>) aims to understand the basics of the Burp Suite web application security testing framework. Our focus will revolve around the following key aspects:</p><ol><li>A thorough introduction to Burp Suite.</li><li>A comprehensive overview of the various tools available within the framework.</li><li>Detailed guidance on the process of installing Burp Suite on your system.</li><li>Navigating and configuring Burp Suite.</li></ol><p>Question 1&gt; No Answer needed</p><h3><strong>What is Burp Suite</strong></h3><p>Burp Suite is a Java-based framework designed to serve as a comprehensive solution for conducting web application penetration testing. It has become the industry standard tool for hands-on security assessments of web and mobile applications, including those that rely on <strong>a</strong>pplication <strong>p</strong>rogramming <strong>i</strong>nterface<strong>s</strong> (APIs).</p><p>Burp Suite captures and enables manipulation of all the HTTP/HTTPS traffic between a browser and a web server. This fundamental capability forms the backbone of the framework. By intercepting requests, users have the flexibility to route them to various components within the Burp Suite framework, which we will explore in upcoming sections. The ability to intercept, view, and modify web requests before they reach the target server or even manipulate responses before they are received by our browser makes Burp Suite an invaluable tool for manual web application testing</p><p>Edition of Burp Suite: Community Edition(Free), Professional (Manual Pen Testing), Enterprise (Continuous scanning)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u13XFNsoyKny65dWfQtDzg.png" /></figure><h3><strong>Features of Burp Suite</strong></h3><p>Some of the features of Community edition are</p><ul><li><strong>Proxy</strong>: The Burp Proxy is the most renowned aspect of Burp Suite. It enables interception and modification of requests and responses while interacting with web applications.</li><li><strong>Repeater</strong>: Another well-known feature. <a href="https://tryhackme.com/room/burpsuiterepeater">Repeater</a> allows for capturing, modifying, and resending the same request multiple times. This functionality is particularly useful when crafting payloads through trial and error (e.g., in SQLi — Structured Query Language Injection) or testing the functionality of an endpoint for vulnerabilities.</li><li><strong>Intruder</strong>: Despite rate limitations in Burp Suite Community, <a href="https://tryhackme.com/room/burpsuiteintruder">Intruder</a> allows for spraying endpoints with requests. It is commonly utilized for brute-force attacks or fuzzing endpoints.</li><li><strong>Decoder</strong>: <a href="https://tryhackme.com/room/burpsuiteom">Decoder</a> offers a valuable service for data transformation. It can decode captured information or encode payloads before sending them to the target. While alternative services exist for this purpose, leveraging Decoder within Burp Suite can be highly efficient.</li><li><strong>Comparer</strong>: As the name suggests, <a href="https://tryhackme.com/room/burpsuiteom">Comparer</a> enables the comparison of two pieces of data at either the word or byte level. While not exclusive to Burp Suite, the ability to send potentially large data segments directly to a comparison tool with a single keyboard shortcut significantly accelerates the process.</li><li><strong>Sequencer</strong>: <a href="https://tryhackme.com/room/burpsuiteom">Sequencer</a> is typically employed when assessing the randomness of tokens, such as session cookie values or other supposedly randomly generated data. If the algorithm used for generating these values lacks secure randomness, it can expose avenues for devastating attacks.</li></ul><p>Beyond the built-in features, the Java codebase of Burp Suite facilitates the development of extensions to enhance the framework’s functionality. These extensions can be written in Java, Python (using the Java Jython interpreter), or Ruby (using the Java JRuby interpreter). The <strong>Burp Suite Extender</strong> module allows for quick and easy loading of extensions into the framework, while the marketplace, known as the <strong>BApp Store</strong>, enables downloading of third-party modules.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*am6VLij9njKocmohJOYCDw.png" /></figure><h3><strong>Installation</strong></h3><p>Please go through the room for links on the same</p><p>No Answers required</p><h3><strong>The Dashboard</strong></h3><p>When the dashboard is opened generally 4 widgets are displayed named as below</p><ol><li><strong>Tasks</strong>: The Tasks menu allows you to define background tasks that Burp Suite will perform while you use the application. In Burp Suite Community, the default “Live Passive Crawl” task, which automatically logs the pages visited, is sufficient for our purposes in this module. Burp Suite Professional offers additional features like on-demand scans.</li><li><strong>Event log</strong>: The Event log provides information about the actions performed by Burp Suite, such as starting the proxy, as well as details about connections made through Burp.</li><li><strong>Issue Activity</strong>: This section is specific to Burp Suite Professional. It displays the vulnerabilities identified by the automated scanner, ranked by severity and filterable based on the certainty of the vulnerability.</li><li><strong>Advisory</strong>: The Advisory section provides more detailed information about the identified vulnerabilities, including references and suggested remediations. This information can be exported into a report. In Burp Suite Community, this section may not show any vulnerabilities.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xLT2Y1Y77kWXo60oTVMuKQ.png" /></figure><h3><strong>Navigation</strong></h3><p>In Burp Suite, Navigation can easily be performed within 3 major sections</p><p>1&gt; Module Sections: The top row of the menu bar displays the available modules in Burp Suite. You can click on each module to switch between them. For example, the Burp Proxy module is selected in the image below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rGHEuG2v0ww58lRn.png" /></figure><p>2&gt; Sub Tabs: If a selected module has multiple sub-tabs, they can be accessed through the second menu bar that appears directly below the main menu bar.</p><p>3&gt; Detaching Tabs: If you prefer a custom look with seperate tabs, you can detach the tabs. Windows -&gt; Select preferable Detach option</p><p>There are several shortcut in Burp Suite as well.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nc5VRJbOs-8rsBdM-OIbAw.png" /></figure><h3><strong>Options</strong></h3><p>This section basically tells you about the settings present in Burp Suite. There are generally two type of settings: Global and Project Specific.</p><p>In the settings window,</p><p>1&gt; you can search any specific setting,</p><p>2&gt;use pre-defined type filter i.e. User or Project,</p><p>3&gt; Check for a setting using Category type.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UNnLQXXlmVngfjH5DjSmyQ.png" /></figure><p>(<em>We highly recommend you try to find answers to these questions at your own first to get an experience</em>)</p><h3><strong>Introduction to Burp Proxy</strong></h3><p>The Burp Proxy is a fundamental and crucial tool within Burp Suite. It enables the capture of requests and responses between the user and the target web server. This intercepted traffic can be manipulated, sent to other tools for further processing, or explicitly allowed to continue to its destination.</p><p>Key Points to understand: <strong>Intercepting Requests, Taking Control, Capture and Logging, WebSocket Support, Logs and History,</strong></p><p>No Answer is required for this section</p><h3><strong>Connecting through the Proxy(FoxyProxy)</strong></h3><p>The room gives elaborated and step by step guide to set up Foxy Proxy. Please follow the same.</p><p>No Answer is required for this section</p><h3><strong>Site Map and Issue Definitions</strong></h3><p>The Target Tab in Burp Suite gives wide range to actions which can be utilized for reconning before final attack.</p><p><em>SiteMap</em>: Helps drawing the full picture of the application. Can be utilised to identify hidden webpages, APIs connecting to Web page etc.</p><p><em>Issue Definition</em>: This contains extensive list of web vulnerabilities with description and references.</p><p><em>Scope Setting: </em>This helps us to control the scope of our target in Burp Suite</p><p>Take the challenge, its easy and interesting for learning.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ShZkR6P19frBc0v3_dhmjA.png" /></figure><h3><strong>Burp Suite Browser</strong></h3><p>Burp Suite has an inbuilt browser with Chrome base. You can use that from Proxy -&gt; Intercept -&gt; Open Browser</p><p>No Answer required for this section.</p><h3><strong>Scoping and Targeting</strong></h3><p>By setting a scope for the project, we can define what gets proxied and logged in Burp Suite. We can restrict Burp Suite to target only the specific web application(s) we want to test. The easiest way to do this is by switching to the Target tab, right-clicking on our target from the list on the left, and selecting Add To Scope. Burp will then prompt us to choose whether we want to stop logging anything that is not in scope, and in most cases, we want to select yes.</p><p>No Answer required for this section</p><h3><strong>Proxying HTTPS</strong></h3><p>When you configure a proxy, sometimes there is an issue with certificate. This issue is more prominent while using Firefox. This section shows how to configure</p><p>Please go through this section if you use Firefox</p><p>No Answer required for this section</p><h3><strong>Example Attack</strong></h3><p>This section gives an example of XSS attack being performed on the Webpage’s contact section. The XSS is performed by Payload tampering wherein Client filters are bypassed by capturing the request and editing the email payload data.</p><p>Please try it in burp suite to have a better understanding.</p><p>No Answer required for this section</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=33724e736765" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DAST in TryHackMe]]></title>
            <link>https://ayan-mukherjee.medium.com/dast-in-tryhackme-9e21aeb0b4f6?source=rss-a512220778e7------2</link>
            <guid isPermaLink="false">https://medium.com/p/9e21aeb0b4f6</guid>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[dast]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[tryhackme-writeup]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[Ayan Mukherjee]]></dc:creator>
            <pubDate>Sun, 14 May 2023 12:43:44 GMT</pubDate>
            <atom:updated>2023-05-14T12:43:44.954Z</atom:updated>
            <content:encoded><![CDATA[<p>This is a writeup for the room <a href="https://tryhackme.com/room/dastzap">DAST</a> on <a href="https://tryhackme.com/">Tryhackme</a></p><p>Room Objectives using OWASP ZAP</p><ul><li>Learn how DAST can be applied to find weaknesses in real-world applications.</li><li>Understand the pros and cons of using DAST instead of other techniques.</li><li>Familiarize yourself with some of the tools used for DAST.</li></ul><p><strong><em>Task 1 [Introduction]</em></strong></p><p>This Task just gives a brief walkthrough about what you are going to learn in this Room. Its better to complete at least OWASP Top 10 room before learning with this Room.</p><p>Question &gt; No Answer Needed.</p><p><strong><em>Task 2 [Dynamic Application Security Testing (DAST)]</em></strong></p><p>Dynamic Application Security Testing (DAST) is the process of testing a running instance of a web application for weaknesses and vulnerabilities. It focuses on a black-box testing approach where vulnerabilities are found just like a regular attacker would find them. Simply put, DAST identifies vulnerabilities by trying to exploit them, either manually or through automated tools.</p><p>There are two ways in which DAST can be performed:</p><ul><li>Manual DAST: A security engineer will manually perform tests against an application to check for vulnerabilities.</li><li>Automatic DAST: An automated tool will scan the web application for vulnerabilities.</li></ul><p>SSDLC:-</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/918/0*aeHowc9FekH7Mm4A.png" /></figure><p>This room also tells you about the Pros and Cons of DAST which you can find on the room itself</p><p>Most of the time, you will find DAST contextualised as a series of automated tests. In general terms, a DAST tool will perform at least the two following tasks against the target website:</p><ul><li>Spidering/Crawling: The tool will navigate through the web app, trying to map the application and identify a list of pages and parameters that can be attacked.</li><li>Vulnerability Scanning: The tool will try to launch attack payloads against the identified pages and parameters. The user can typically customise the type of attacks to include only the ones relevant to the target application.</li></ul><p>Questions/ Answers</p><p>Question &gt; Is DAST a replacement for SAST or SCA? (Yea/Nay)</p><p>Answer :- Nay</p><p>Question &gt; What is the process of mapping an application’s surface and parameters usually called?</p><p>Answer:- Spidering/Crawling</p><p>Question &gt; Does DAST check the code of an application for vulnerabilities? (Yea/Nay)</p><p>Answer:- Nay</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cJA6OK4EpZGJI89pzEopQw.png" /></figure><p><strong><em>Task 3 [Spiders and Crawlers]</em></strong></p><p>A Spider will navigate to a starting page you provide and fundamentally explore the website by following all the links it can detect.</p><p>To spider a website using OWASP ZAP, we can go to <strong><em>Tools -&gt; Ajax Spider.</em></strong></p><p>(<em>Note:- While you first start the machine and then start OWASP ZAP, it will uninstall few plugins and then if you check you wont get the Ajax Sprider in Tools Menu. Close the OWASP ZAP session and restart a new session of OWASP ZAP to get the option in Tools Menu</em>)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wsG2DpAnOgdTqCwVSFC_qg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Rg20EI2iLOPAoxtFObfrYg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y9TyeYO8A2u2UVoJXvi9XA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*73w0VEa2cqC7lvG-JuiWoA.png" /></figure><p>This will show us the Spider dialogue, where we only need to specify a website as our starting point. For now, we’ll leave the Context and User boxes empty. You can check the following additional options if needed:</p><ul><li>Recurse: Spider the website for links recursively.</li><li>Spider Subtree Only: Limit the spidering to subfolders of the Starting Point URL.</li><li>Show Advanced Options: Enable the Advanced tab, where you can specify additional parameters to tune your spidering.</li></ul><p>Select the AJAX Spider from Tools menu and enter as per below format and click on “Start Scan”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/707/0*35ibs5ynajIqZQpX.png" /></figure><p>After the scan, you should see all the URLs that the spider found on the Sites tab</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/515/0*IYYLpW6ttABEAGug.png" /></figure><p>Question/ Answers</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xUFY_4-HbZANbU5kXnzNXw.png" /></figure><p>Question &gt; ZAP can run an AJAX spider by using browsers without a Graphical User Interface(GUI). What are these browsers called?</p><p>Answer:- Headless</p><p>Question &gt; Analysing the <strong>Sites</strong> tab, what HTTP parameters can be passed to login.php using the POST method? (In alphabetical order and separated by commas)</p><p>Answer:- pass, user</p><p>Question &gt; What other .php resource, besides nospiders-gallery.php was found by the AJAX spider but not by the regular spider?</p><p>Answer:- /view.php</p><p><strong><em>Task 4 [Scanning for Vulnerabilities]</em></strong></p><p>When running DAST tools, it is crucial to customise what types of tests will be run against the application. The more you fit your scanning profile to your web application, the less time the scanner will spend sending payloads that aren’t relevant to your specific scenario. Since DAST tools will mainly be used in a white box setup, all the details of the underlying technologies used to support your application are known.</p><p>To create or modify scanning policies in ZAP, go to <em>Analyse -&gt; Scan Policy Manager. </em>The room shows step by step process on how to set up the policies which can be utilized to streamline the DAST scan as per the specific application</p><p>After configuring the Policy and running a new scan you will come up with multiple vulnerabilities like below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*vfqqn2uNPSMubFmx.png" /></figure><p>Question/ Answers :-</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Eh9qpY_KnCiJvESPV7n3ww.png" /></figure><p>Question &gt; Will disabling some test categories help speed up the scanning phase? (Yea/Nay)</p><p>Answer:- Yea</p><p>Question &gt; There should be two high-risk alerts in your scan results. One is Path Traversal. What’s the name of the other one?</p><p>Answer:- Cross Site Scripting (Reflected)</p><p>Note:- The Policy created in this block will be utilised in the below blocks as well.</p><p><strong><em>Task 5 [Authenticated Scans]</em></strong></p><p>An important part of Automated Scans which can be configured into Pipelines are Automated scripts which can be utilized to perform the manual actions needed like Authentication which running a deep scan.</p><p>The room explains in details how to</p><ul><li>Record Authentication</li><li>Create context</li><li>Configuring the context specific to the requirement</li><li>Rescanning the application with the above configurations</li></ul><p>The Configuration needs Policy created in Task 4, Authentication script in Task 5, Context created in Task 5 and User created in Task 5.</p><p>After the Active scan is completed. In Alert section, below issues will be displayed</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/921/1*Qx3OGWCGRdcQzdRiQrPMxA.png" /></figure><p>Questions/ Answers</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2HkRIVWOfMgl2yrNNPFLtA.png" /></figure><p>Question &gt; Which type of script was used to record the authentication process to our site in ZAP?</p><p>Answer:- ZEST Scripts</p><p>Question &gt; What additional high-risk vulnerability was found on the site after running the authenticated scan?</p><p>Answer:- remote OS command injection</p><p><strong><em>Task 6 [Checking APIs with ZAP]</em></strong></p><p>In this task, we will focus on APIs which are the current backbone of any applications.</p><p>In this task, Instead of spidering APIs, we will rely on the development team to give us a precise specification of the available endpoints in an API and all of the parameters we can send to them. This way, we don’t need to spend time on the discovery process but can focus on testing its security directly.</p><p>ZAP can import APIs defined by OpenAPI (formerly Swagger), SOAP or GraphQL.</p><p><em>Import OpenAPI defination in ZAP</em></p><p>ZAP supports two methods to import API definitions: you can provide an offline file or a URL from where to download them. Since the API exposes its definition file in machine_Ip/swagger.json, let’s use the URL option. Go to Import -&gt; Import an OpenAPI definition from a URL. Specify the corresponding URL and hit the Import button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RznI2qH_87zeVsHMeD47HQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uWsdMOzl-0Mv6KquVT2gBQ.png" /></figure><p>You will be able to see the available links in Site option:</p><p>Do an active scan on the Sites as per below screenshot</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*w8A6ACIrCvpdDf7Q.png" /></figure><p>The results will be displayed in Alert section again as per below screenshot</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gOpdvo3aYTj3LamuGq5xqw.png" /></figure><p>Question/ Answers</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Cnkey1fEsYEh-altL5WbFQ.png" /></figure><p>Question &gt; What high-risk vulnerability was found on the /asciiart/generate endpoint?</p><p>Answer:- Remote OS Command Injection</p><p>Question &gt; Read the details on the Path Traversal vulnerability detected. Based solely on the information presented by the scanner, would you categorise this finding as a false positive? (yea/nay)</p><p>Answer:- Yea</p><p>Note:- The reason the Path Traversal Vulnerability is False Positive is the because when you go to More Info after you double click on the Alert, it does not have any info</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/1*f6UDgsPJio-xgxNLzSS0RQ.png" /></figure><p>Now, when you copy the URL used for attack and open it in browser, it just gives a bank JSON as below and does not allow any traversal</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BSW36irWe_P8t5bvNEstag.png" /></figure><p>Instead the resultant page seems similar if we change the Art_ID to random value as 1 or 2. Hence it can be considered as False Positive</p><p><strong><em>Task 7 [Integrating DAST into the development pipeline]</em></strong></p><p>One of the major part of Automated DAST is configuring the pipeline to run the same.</p><p>Having DAST added to your development process may sound pretty straightforward, but there are some caveats to it:</p><ul><li>We must decide at which stages of the development process we will run scans.</li><li>We must decide what will trigger a scan. We can run scans on each commit made to code or on a scheduled basis.</li><li>We must determine the intensity of each scan. Doing a full vulnerability scan on a medium-sized application will require significant time, and we don’t want to slow down the development team.</li></ul><p>Steps to follow for the Room</p><p>1&gt; Go the the given URLs for Gitea and Jenkins with thm/thm credentials</p><p>2&gt; In Jenkins, go to thm -&gt; simple-webapp -&gt; main and click on main to see the stages</p><p>3&gt; Go to Gitea, click on thm/simple-webapp in the repository section and open Jenkins file (Note: Click on Filename to have the edit option enabled)</p><p>4&gt; Edit and remove the comment in the body</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fbnqK_u8MNQtL99enJ6EMA.png" /></figure><p>5&gt; Commit changes on the main branch</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sa-dWi5Xn1w2Hem8uDlEGw.png" /></figure><p>6&gt; Go to Jenkins, thm -&gt; simple-webapp -&gt; main and click on main to see a new stage getting added</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kuj1B-WayHfnTXfOwUiysw.png" /></figure><p>7&gt; The script will fail as per below screenshot</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KXKmSvmtpKZtteD1u4yMJA.png" /></figure><p>8&gt; Click the build from left screen (cursor as per below screenshot)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3P6Evto7tv1r-Fl3eR4ZeQ.png" /></figure><p>9&gt; Click on Workspace and follow the path to below sturcture</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y_RamvgMu-2Uyc0TKIhaMg.png" /></figure><p>10&gt; Open the first report in New Tab</p><p>Follow the same above mentioned steps for Simple-api.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*in7RVhjddyL6f_VAxFF4Eg.png" /></figure><p>Questions/ Answers</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VCOZqByC5v1_FVFrhPG2EQ.png" /></figure><p>Question&gt; Download the ZAP report for the simple-webapp repository. How many medium-risk vulnerabilities were found?</p><p>Answer&gt; 3</p><p>Question&gt; Check the main branch of the simple-api repository on <strong>Jenkins</strong>. One of the builds failed during the <strong>Build the Docker image</strong> step. What is the number of the pre-existing failed build?</p><p>Answer&gt; 4</p><p>Reason:- You can see in above screenshot that 4th build has failed</p><p>Question&gt; Download the ZAP report for the simple-api repository. What high-risk vulnerability was found?</p><p>Answer&gt; Remote OS Command Injection</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h-elqXEJpe6G0UhxxDUBmw.png" /></figure><p><strong><em>Task 8 [Conclusion]</em></strong></p><p>Question&gt; No Answers needed</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9e21aeb0b4f6" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>