BOOK THIS SPACE FOR AD
ARTICLE ADإِنَّ اللَّهَ وَمَلائِكَتَهُ يُصَلُّونَ عَلَى النَّبِيِّ يَا أَيُّهَا الَّذِينَ آمَنُوا صَلُّوا عَلَيْهِ وَسَلِّمُوا تَسْلِيمًا
Salam Alikom, everyone! 🌟 First off, I want to thank all my new followers your support truly motivates me to share more write-ups and insights with the community. Today, I’m excited to share an amazing tip that was a game-changer for me as a beginner…
Let’s dive in
Match and Replace is a tool in Burp Suite. It works like a simple robot: you tell it what to find (the “match”) and what to change it to (the “replace”). For example, you can set it to change every “No” to “Yes” automatically. This saves time and makes testing easier
A lot of hunters use Match and Replace for different types of bugs, but for me, the best point is that Match and Replace is a very crazy tool in API testing.
Why?
The structure of JSON or JavaScript, especially in RESTful APIs, often includes parameters like:
But How Can This Information Help Me Get My First Bug?
Sometimes, you can find critical bugs just by understanding the API’s response and using Match and Replace. Trust me, many hunters have done this (including me! 😘). Let me give you a scenario to help you understand better:
Imagine you open a page with different privilege types of users. Let’s say your current role is a “guest.” You open Burp Suite and capture the following JSON payload in the response:
{"company": "HackMe",
"isAdmin": "false",
"isModerator": "false",
"isGuest": "true"
In the user interface, as a guest, you only see limited features, like the ability to comment. You cannot delete or edit other members’
1.by this change the UI change From Guest To admin UI (Unlocks Edit Post and ever thing related To Admin UI )
2. now try those API call and see what is the valid one and Get your bounty 🤑
Every time I test a new target, I always try this:
MATCH: False → True
Sometimes, I get surprised by the results!
Easy Cases: Sometimes, it’s easy to make API calls.Hard Cases: Other times, it’s harder, but Match and Replace helps a lot to find these API calls.Remember:
You can try this on any JSON payload. The best results happen when changing values also changes the UI. Why? Because this type of bug usually comes from the backend not checking things properly.