<?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 Akshita Gupta on Medium]]></title>
        <description><![CDATA[Stories by Akshita Gupta on Medium]]></description>
        <link>https://medium.com/@akshita-infosec?source=rss-c0c978aebc62------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*LL_schy0rb3IS0KLfBeYfA.jpeg</url>
            <title>Stories by Akshita Gupta on Medium</title>
            <link>https://medium.com/@akshita-infosec?source=rss-c0c978aebc62------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 12:24:56 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@akshita-infosec/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[Burp Macros: What, Why & How?]]></title>
            <link>https://akshita-infosec.medium.com/burp-macros-what-why-how-151df8901641?source=rss-c0c978aebc62------2</link>
            <guid isPermaLink="false">https://medium.com/p/151df8901641</guid>
            <category><![CDATA[bug-bounty]]></category>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[burpsuite]]></category>
            <category><![CDATA[information-security]]></category>
            <dc:creator><![CDATA[Akshita Gupta]]></dc:creator>
            <pubDate>Thu, 27 May 2021 05:03:44 GMT</pubDate>
            <atom:updated>2021-05-27T05:03:44.289Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*osA0CZBg-vZockp7IBUKGQ.png" /></figure><p>While performing manual or automated testing, do you come across problems like:</p><p>i) The application keeps terminating the session and you need to restore the session time and again.</p><p>ii) To prevent request forgery attacks, some functions may use changing tokens that have to be provided with each request.</p><p>iii) In order to test a particular function, you need to perform a series of tasks that need to be repeated in the same order to complete that function multiple times.</p><p>If so, then this blog is for you.</p><p>Obviously, you can automate the process by writing a python code, however, that requires scripting knowledge. It also requires time and effort on your part to write the code. So, let’s try to overcome these challenges using Burp Macros. It will not only automate this process but also make the testing more efficient. On the plus side, it is pretty simple to use.</p><h3><strong>What is Burp Macros?</strong></h3><p>The word <strong>Macro </strong>literally means “a single instruction that a computer automatically reads as a set of instructions necessary to do a particular task”. Macros is plural of Macro and is also used in Microsoft Word. In <strong>Word</strong>, you can automate frequently used tasks by creating and running <strong>macros</strong>. A <strong>Macros </strong>is “a series of commands and instructions that you group together as a single command to accomplish a task automatically.”</p><p>The same feature is available in Burp Suite which will be used to solve the aforementioned problems.</p><p>Macros is a pre-defined sequence of one or more requests which can be used while testing a specific flow. This can be accessed under <strong>Project Options &gt; Sessions &gt;Macros</strong></p><p>Using Burp Macros will make the testing process more effective and can significantly reduce the time to automate complex functionalities within an application.</p><p><strong>How is Burp Macros useful in the aforementioned scenarios?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/854/1*mcGmJHB-wpljm1SJ-CJ-qQ.png" /></figure><h3><strong>Quick Introduction to Burp Macros &amp; its components</strong></h3><p>Before diving into the workings of Burp Macros, let us understand how the system works -</p><p>As you can see in the image below, Burp Macros can be accessed from <strong>Project Options &gt;Sessions tab</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_ZlbC4s9M7969knbJoHtnw.png" /><figcaption>Burp Suite &gt; Project Options &gt; Sessions tab</figcaption></figure><p>Burp Sessions tab has three components that work together to automate your process. The three components are-</p><p>i) <strong>Session handling rules </strong>which help you to define the rules and scope for each session Burp carries out.</p><p>ii) <strong>Cookie Jar</strong> that stores all the cookies issued by the visited website</p><p>iii) <strong>Macros</strong> defines the sequence of steps that are to be followed in each session.</p><p>Once the scope is defined, while it sets a parameter for Burp, it also defines rules that are to be followed like using Burp’s cookie jar. The Cookie jar will provide cookies to maintain valid sessions and Macros will define sequential steps.</p><p>You can refer to the following link to get a detailed account of these three components :</p><p><a href="https://portswigger.net/burp/documentation/desktop/options/sessions#session-handling-rules">Options: sessions</a></p><h3><strong>Demonstrating Burp Macros using Portswigger lab</strong></h3><p>For practically showing the working of Burp Macros, we will use the following lab from Portswigger web security academy :</p><p><a href="https://portswigger.net/web-security/logic-flaws/examples/lab-logic-flaws-infinite-money">Lab: Infinite money logic flaw | Web Security Academy</a></p><p><strong>Overview of the lab :</strong></p><p>A vulnerable shopping website has a logic flaw in its purchasing flow and we need to exploit it to buy a leather jacket from your user account with credentials <strong><em>wiener:peter.</em></strong></p><ul><li>The user account has a $100 store credit and an option to redeem a gift card worth $10 which can be bought from the store and then can be redeemed by entering a code on the “My Account” page, as you can see in the images below :</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Bgrp0mKeIuR_azX6VEU6CA.png" /><figcaption>User account home page after logging in</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/573/1*cQAG0MzkeyJj1BisUE2J1g.png" /><figcaption>My account page: Option to redeem a gift card</figcaption></figure><ul><li>When you explore the home page and move to the end of the page, there is an option to sign up for the newsletter. When you sign up with a random email id, you get a coupon code that can be used to get a discount during checkout.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/882/1*j-v1_JkKYCDoj8xYAXRTJg.png" /><figcaption>Sign up for the newsletter</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/537/1*2j3um3TzBXwz05tWqZhjaA.png" /><figcaption>Coupon code which can be used during checkout</figcaption></figure><ul><li>When we add a gift card to the cart and apply coupon code generated by signing up to the newsletter, we are charged $7 to the store credit and a gift card code is generated which can be redeemed on my account page (image shown earlier).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/421/1*Fl3ojJaEbq7zNkcJnHG4hg.png" /><figcaption>Final transaction from which we obtain the gift card coupon</figcaption></figure><ul><li>Now when we go back and redeem the coupon, our new store balance becomes $103, which is the logic flaw in purchasing flow. This is because if we follow the same process a number of times, we can increase our store credit enough to buy the leather jacket, which is the aim of the lab.</li></ul><p>Before we figure out the way to do that, let’s calculate how many requests we need to make to collect the required store credit :</p><p>Cost of the leather jacket = <strong>$1337</strong></p><p>Store credit= <strong>$103</strong></p><p>The amount required to purchase the jacket = $<strong>1337–$103 = $1234</strong></p><p>Now we collect an extra $3 after redeeming each gift card.</p><p>So, the number of times we need to repeat the same process= <strong>1234/3 = 411.3333</strong></p><p>411.333 can be rounded up as <strong>412.</strong></p><p>This means that we need to repeat the same requests more than 400 times in order to increase our store credit to the required amount. In the next section, I will demonstrate how can we achieve that using Burp Macros</p><h3><strong>How to use Burp Macros?</strong></h3><p>As I have already discussed why Burp Macros is useful in this scenario, let me now demonstrate how to use it.</p><p>In order to do these iterations, our macro will need session handling information. Hence, we need to configure the same in the Session Handling Rules Editor. To open this, click on “add” under the session handling rules (in Project Options). Define the scope of the attack by clicking on “Add” and from the pop-up under the <strong>Scope</strong> tab, select “Include all URLs”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TIimN1Y9Ylwc6_ppnX00ag.png" /><figcaption>The cookie jar component of session handling is linked to the attack</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/634/1*IeMHoCz6S3h2qE2bltfhtg.png" /><figcaption>Session handling rules editor to define the scope for session handling</figcaption></figure><p>Go back to the “Details” tab in the session handling rules editor and click on <strong><em>add &gt; Run a Macro</em></strong> which will define the sequence of steps.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/746/1*J2LKZsp2aKbdcMeiVcqdvA.png" /><figcaption>Macros component is also linked to the attack</figcaption></figure><p>Click on ‘add’ again to define the sequence of steps.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ePYgDQ5DMyf7HxGxG6CQzQ.png" /><figcaption>To define the sequence of steps for a single request</figcaption></figure><p>Macros recorder allows picking requests from your proxy history. For this case, you can include the following sequential requests from your proxy history by using control and left-click :</p><p><strong><em>i)</em></strong> <strong><em>POST/ cart</em></strong></p><p><strong><em>ii)</em></strong> <strong><em>POST / cart/coupon</em></strong></p><p><strong><em>iii)</em></strong> <strong><em>POST/cart/checkout</em></strong></p><p><strong><em>iv)</em></strong> <strong><em>GET/cart/order-confirmation?order-confirmed=true</em></strong></p><p><strong><em>v)</em></strong> <strong><em>POST/gift-card</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rBNVIUdGZFjAHPasPbCgOQ.png" /><figcaption>An example of how we select the sequential requests from proxy history</figcaption></figure><p>Click OK, the Macro editor will appear where you can configure items. Verify if the sequence of items is correct or you can select the request and move up or down.</p><p>In few scenarios like ours, two requests might be inter-dependent and we need to specify the relation to Macros so that the same can be repeated in all the requests.</p><p>Select the fourth request in Macro editor and click on configure item.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VCDbv7Wwsiy8VxwePWfnSQ.png" /><figcaption>Macro editor with sequential requests</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*XtWtkrr9phD-v-0iripSgg.png" /><figcaption>Specify inter-dependencies between the requests</figcaption></figure><p>A new dialogue box appears. Under define “custom parameter”, type <strong>gift-card</strong> and move down on the request to find the gift coupon code and select it to highlight it. Now click OK.</p><p>We perform this step because this request generates a gift-card coupon code which is redeemed in the next step. Highlight the coupon code to define the parameter value of this particular request.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1014/1*kxIA7s2lpq8hWQROGcgVJg.png" /><figcaption>Highlight gift-card code so that Macros can pick it up for all requests</figcaption></figure><p>Under parameter handling, we can see the “gift-card” parameter which we set in the previous response.</p><p>Burp Macros now needs to pick up this code from request 4 and redeem it in request 5. To define this, Click on the drop-down menu and select “<strong><em>Derive from prior response”</em></strong> which makes these two responses interdependent.</p><p>This means that now the fifth request in which we enter the gift-card coupon to redeem the coupon, we define the rule for succeeding requests to use the code derived in the previous step.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Rs1zcsunF4q629LRKFxHkg.png" /><figcaption>custom parameter appears which we defined</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/899/1*eHPUcAcdD-76DuZIyOC8AQ.png" /><figcaption>Inter-dependencies defined</figcaption></figure><p>This will keep adding credit to our account. The next step is to test if our Macro runs correctly and performs the intended attack. This is a cool feature because it gives a demo on whether the request is working correctly and all rules are correctly defined. On Macro editor screen, click on <strong><em>Test Macro</em></strong> to check the same.</p><p>When the Macro test finishes, we can see the result. We have to check if the fifth request has a generated a coupon code. (<strong><em>derived parameter: gift-card</em></strong>). The status code should also be a success.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sYaMMqR_EUFfRwUkP9bTOg.png" /><figcaption>Macro demo test results</figcaption></figure><h4><strong>What if the coupon code is not generated?</strong></h4><p>You need to recheck your steps if the coupon code is not generated because the purpose of the requests will not be fulfilled.</p><p>Some reasons why your coupon code is not generating could be :</p><ul><li>4th and 5th requests are not configured correctly</li><li>The coupon code in the 4th request is not highlighted and so the value of the custom parameter is not defined.</li></ul><p>Find the error and test again to see if your demo test is successful this time.</p><p>So far, I have discussed Burp Macros and how to configure it so that the demo test is successful which tells us that it is ready to send payloads to the website. However, for this next part, we are required to send <strong>Null Payloads</strong> to the website.</p><blockquote><strong>Null Payloads: </strong>Generates payloads whose value is empty string and is used when an attack requires same request to be made repeatedly without any modification to basic template. Used for harvesting cookies for sequencing analysis, denial of service attacks where database is overloaded or keeping session token alive.</blockquote><p>As we need to perform an intruder attack with <strong>Payload options</strong>, we need <strong>Burp Suite Pro</strong>. In the community edition, we cannot add payloads for the attack. Even if you do not use Burp Pro, but you are still with me, you should definitely see how we set the attack in intruder and complete the lab.</p><p>I have used the dark theme on my Burp Suite Pro to differentiate it from the community addition for your clarity.</p><h4><strong>Using Burp Intruder to send payloads :</strong></h4><p>Go to the <strong><em>Proxy tab &gt;HTTP History</em></strong> and select <strong><em>GET/my-account </em></strong>request. Also, check that it is the correct request by checking if you can see <strong><em>Infinite money logic flow</em></strong> in the response. Right-click on the request and send the request to the intruder.</p><p>Click on the Intruder tab and click the “<strong>Positions</strong>” tab. We have the default attack:<strong> Sniper </strong>which is the one we will use. Clear default payloads.</p><blockquote><strong>Sniper: </strong>Type of attack in Burp intruder. Uses single payload set for all the selections but goes through one selection at a time and till then rest of the selections remain unaffected. It is used for fuzzing a number of request parameters individually for a common vulnerability. E.g. Used for username enumeration</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4LMTOMWLMAuJvltwDsAyRA.png" /><figcaption>Intruder &gt; Positions</figcaption></figure><p>Move to the payloads tab and select payload type as <strong><em>Null Payloads </em></strong>because the value of this payload is an empty string and we will set the payloads to 412 and Macros will do the rest.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/683/1*LMy8e4M-INcnaArDGwNvCQ.png" /><figcaption>Intruder &gt; Payloads: set to 412 as per our calculation</figcaption></figure><p>Select the “Options” tab and select thread count as one because it is a multi-step process. So, one request will be sent at a time. Then click on Start attack.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AxsxOEqcQlZrF-mrtYgZew.png" /><figcaption>Intruder &gt; Options &gt; Thread count set to: 1</figcaption></figure><p>Wait till the attack finishes, then check your store credit. You should be able to buy the jacket with the credit available. You can even add “SIGNUP30&quot; coupon to save some credits.</p><p>Add the jacket to the cart and place the order.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/571/1*1ngwgZhO1Ryg-tAs-SlKdA.png" /><figcaption>Store credit is more than the cost of the jacket</figcaption></figure><p>The lab is solved and we have successfully exploited a logic flaw using Burp Macros.</p><h3>Conclusion</h3><p>We learned how to use Burp Macros in order to automate complex steps while testing web applications. While this could also be done using programming language, that takes a good amount of time and energy.</p><p>I came across Burp Macros while learning “Business Logic Flaws” and it was really helpful for me because I am still learning pentesting and not very comfortable with writing codes yet. So, this is quite useful for someone like me and I decided to write a blog about it.</p><p>Also, this was my very first blog and I hope to learn more skills and share more blogs with the community. Even though I am not from a computer background, I am enjoying developing new skill sets in a brand new career.</p><p>If there is room for improvement, please advise. Hope you enjoyed the blog. Hoping to make good connections.</p><p>Stay safe!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=151df8901641" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hello World!]]></title>
            <link>https://akshita-infosec.medium.com/hey-there-d523cc415745?source=rss-c0c978aebc62------2</link>
            <guid isPermaLink="false">https://medium.com/p/d523cc415745</guid>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[life]]></category>
            <category><![CDATA[first-blog]]></category>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[pentesting]]></category>
            <dc:creator><![CDATA[Akshita Gupta]]></dc:creator>
            <pubDate>Wed, 26 May 2021 05:53:32 GMT</pubDate>
            <atom:updated>2021-05-26T07:36:16.525Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*94TQOVHh6Z0GWtUYGFKw2A.png" /></figure><p>Hi! I am Akshita, a beginner in information security and an aspiring pentester. Thank you for taking out time to read my first blog where you can get to know me and where I come from. It wasn&#39;t easy for me to come this far, but I persevered and managed to come this far.</p><p>So without further adieu,</p><p>Here’s my story….</p><h3>A quick back story</h3><blockquote><strong>Shimla</strong></blockquote><p>I come from the queen of hills- “Shimla” where I completed my education. Although I miss that weather and scenic beauty now, when I was a teenager, all I could dream of was to move to a big city and explore new cultures and people.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/738/1*DFR6W527WzXvHmCYktOrNA.png" /></figure><blockquote><strong>Mumbai</strong></blockquote><p>Fast forward to college days, where I moved from hills to beaches. Ended up in Mumbai to complete my hotel management degree from IHM Mumbai. Oh, man! I had the best years of my life in Mumbai. Those long walks on Marine drive and street food I still miss!!!!</p><p>Anyways, I think I should get back to my story and stop reminiscing so much about Mumbai. (I always tend to do that)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*WRcpPUEt_c-d2XwG3HqkGg.png" /></figure><p>I was selected as an I-Grad (Management Trainee) for IHG (Intercontinental Hotels Group) and worked in Holiday Inn, Mumbai for 2 years where on successful completion of my MT program (Management Trainee), I was promoted as Assistant Training Manager for the hotel. It was a fast-track way to reach a Manager position so quickly as a fresh graduate from college.</p><p>But I wanted more. I decided to explore more and ended up in Delhi to pursue my Post Graduation in Management.</p><blockquote><strong>Delhi</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/721/1*g5k-APNT65rA7zZDM3HSEw.png" /></figure><p>I think you will agree, going back to college from a full-time job is heaven. I felt like I got a second chance and I lived it to the fullest. I completed the course successfully and got a degree from the University of London (my college was affiliated with UOL).</p><p>I asked myself “What’s next?” But before I could answer that, I already got multiple job offers from Linked In for the position of Training Manager. And then I moved all the way to Hyderabad to work in Radisson Blu, Banjara Hills.</p><blockquote><strong>Hyderabad</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/335/1*pQkAGucDO_dXTun_uFUtAQ.png" /></figure><p>Hyderabad was an exciting new experience for me. I applied what I learned in my post-management course as well as practical working experience and it helped me become a better trainer. I was heading training for the hotel and handling employee engagement as well. It was a short one-year tenure because fate had other plans for me.</p><blockquote><strong>Bengaluru</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/685/1*TLrRK7mnGcEejbgXC4MQgQ.png" /></figure><p>I ended up meeting the love of my life and getting married. Bengaluru was never the city I imagined myself in. But life happens. So, I quit my job because I wanted to spend more time with him and enjoy my new life. Plus, my previous job was hectic and I decided to give myself a break and then decide what I want to do in life.</p><h3><strong>Why did I quit and not take a break?</strong></h3><p>Yes, you might be wondering, what made me quit my career at its peak? I was a Training Manager at the age of 24, heading the training department for a 5-star hotel. I was even offered an opportunity to work as a Cluster Training Manager, heading training for two 5-star hotels of a renowned hotel brand. It would have been all uphill post that.</p><p>So why then?</p><p>Well, as you can deduce from my backstory, I love to take on new challenges and I was moving from city to city looking for that missing piece. When I met my husband, I saw how passionate and focused he was in his career. He quit his comfortable job at the age of 28 just to pursue his dream of starting his own company. When I was on a break from my job, I saw his passion and I realized that I did not have that in my previous job. I decided that I should do something that challenges me further and motivates me to do better. What better than infosec?</p><h3><strong>How did I end up choosing Infosec?</strong></h3><p>Due to the epidemic, life turned difficult for everyone including me. Nothing happened as per the plan. Last year just flew by and then this year, it became crystal clear,</p><p>“I should become a pentester”</p><p>I picked up ‘Web Application Hacker’s Handbook’ (Bible of web application security, that&#39;s what all security professionals say and I agree. It helped me lay foundations of Web Application testing), started to read other’s blogs, and started practicing a few attacks. It was fun and gave a boost to my confidence.</p><p><strong>P.S.</strong> I am not from a computer background so it was all new to me. But then again, It actually made me realize that learning truly never stops. It took some time and effort but I am getting there!</p><h3><strong>Why did I choose to start blogging?</strong></h3><p>I chose to use blogging as a way to bring my learning together and write about infosec topics that excite me. It helps me to pick topics that I want to learn while sharing with the community at the same time.</p><p>I am looking forward to the next chapter in my life.</p><p>I hope to connect with infosec professionals and learn &amp; share with the community.</p><p>Stay tuned…</p><h4>Stay connected!</h4><p>Twitter: <a href="https://twitter.com/akshita_infosec">@akshita_infosec</a></p><p>LinkedIn: <a href="https://www.linkedin.com/in/akshita-infosec/">/akshita-infosec</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d523cc415745" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>