[
  {
    "path": "CONTRIBUTING.md",
    "content": "## Contributor License Agreement\n\nBy contributing to this repository, you agree to abide by the terms and conditions of the [LICENSE](/LICENSE).\n\n## How to Contribute\n\nThank you for considering contributing to our project! We welcome contributions from the community to help improve and grow this project. Please follow the guidelines below to make the process smooth for everyone involved.\n\n### Contribution Workflow\n\n1. **Fork the Repository**: Start by forking this repository to your own GitHub account using the \"Fork\" button at the top-right corner of this page.\n\n2. **Clone the Repository**: Clone your forked repository to your local machine using the following command, replacing `<your-username>` with your GitHub username:\n\n   ```shell\n   git clone https://github.com/<your-username>/all-about-apikey.git\n\n3. **Add Burpsuite Tips**: Add some burpsuite tips that aren't already in this repository\n\n### Tips\n- If you don't know where to start, you can find some tips on Twitter using `match replace burp` or `match replace` keywords\n"
  },
  {
    "path": "LICENSE",
    "content": "MIT License\n\nCopyright (c) 2022 Muhammad Daffa\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
  },
  {
    "path": "README.md",
    "content": "# Match Replace Burp\nUseful Match and Replace BurpSuite Rules\n\n## Finding hidden buttons, forms, and other UI elements\nMany websites contain hidden buttons, forms, and other UI elements like\n```html\n<div aria-hidden=\"true\"></div>\n<div style=\"visibility: hidden;\"></div>\n<div style=\"display: none;\"></div>\n<script>document.getElementbyTagName(\"test\").hidden=true</script>\n<button type=\"button\" disabled>test</button>\n```\n\n* Show Hidden UI (1)\n\n<img src=\"https://user-images.githubusercontent.com/36522826/166728753-b5b04276-fdf0-4102-bfee-7ac8fcd96cd4.png\" width=\"400\" />\n\n* Show Hidden UI (2)\n\n<img src=\"https://user-images.githubusercontent.com/36522826/166728896-5fb0c698-50bb-4213-b227-6389afaf3854.png\" width=\"400\" />\n\n* Change disable to enable\n\n<img src=\"https://user-images.githubusercontent.com/36522826/166729298-56e7272c-86c3-4f08-b712-606568a0367f.png\" width=\"400\" />\n\n## Changing `false` to `true`\nSometimes we can get hidden features by changing from `false` to `true`. The example:\n\n* Changing role from normal user to admin\n\n<img src=\"https://user-images.githubusercontent.com/36522826/166739661-a6e54638-0fa1-464e-b765-4d52b7a223f7.png\" width=\"400\" />\n\n* Make email verified\n\n<img src=\"https://user-images.githubusercontent.com/36522826/166739292-7bf7bd71-3d7b-4ba0-91e2-97b679c41a83.png\" width=\"400\" />\n\n## Bypass WAF\nBypassing WAF by adding some headers\n\n* Adding `X-Forwarded-Host: 127.0.0.1`\n<img src=\"https://user-images.githubusercontent.com/36522826/166742712-f3208448-ec62-424f-98ac-db3aecb1326b.png\" width=\"400\" />\n\n> Create another rule but change the header to:\n```\nX-Forwarded-Port: 127.0.0.1\nX-Forwarded-By: 127.0.0.1\nX-Forwarded-Scheme: 127.0.0.1\nX-Frame-Options: Allow\nX-Forwarded-For: 127.0.0.1\nX-Client-IP: 127.0.0.1\nX-Real-IP: 127.0.0.1\nX-Originating-IP: 127.0.0.1\nX-Remote-IP: 127.0.0.1\nX-Remote-Addr: 127.0.0.1\nX-Cluster-Client-IP: 127.0.0.1\nTrue-Client-IP: 127.0.0.1\nClient-IP: 127.0.0.1\nOrigin: null\nOrigin: Domain.attacker.com\n```\n\n## Finding IDOR\nBy changing original user UUID to another UUID\n\n<img src=\"https://user-images.githubusercontent.com/36522826/166742159-f740ec61-cb94-4ee7-bacf-7ed5b00e26bb.png\" width=\"400\" />\n\n> Create another rule but change the `type` to \"Request First Line\"\n\n## Finding XSS\nBy adding some XSS payload into the request\n\n* Finding XSS on `User-Agent`\n\n<img src=\"https://user-images.githubusercontent.com/36522826/166749425-b9accf44-a606-473d-94c6-8e9562e02c07.png\" width=\"400\" />\n\n* Finding XSS on `Referer`\n\n<img src=\"https://user-images.githubusercontent.com/36522826/166749753-d68eea0a-e290-4658-a2f1-cf66fcd89342.png\" width=\"400\" />\n\n* Auto replace user input with XSS payload\n\n<img src=\"https://user-images.githubusercontent.com/36522826/166752610-9d21d86e-49e5-4e8f-86bc-a9134350d46d.png\" width=\"400\" />\n\n> So by just inputting the words `xss_payload` on the website it will be immediately replaced with `\"><script src=https://attacker.com></script>`\n> Change the XSS payload as you want\n\n## MISC\nSome random match and replace rules\n* Finding [CVE-2021-44228](https://github.com/advisories/GHSA-jfh8-c2jp-5v3q)\n\n<img src=\"https://user-images.githubusercontent.com/36522826/166748175-6782ce51-b10f-4b1d-b8a3-610ef142d567.png\" width=\"400\" />\n\n> Create some another rules to look for them in headers, parameters and more. Because log4j can be found anywhere\n\n* Help companies to identify your traffic and separate them from malicious traffic by adding a custom header\n\n<img src=\"https://user-images.githubusercontent.com/36522826/166796789-e184716f-00a3-428d-9323-bcd985556798.png\" width=\"400\" />\n\nReferences:\n- https://twitter.com/PTestical/status/1413497660133318659\n- https://twitter.com/HolyBugx/status/1355472991061213184\n- https://twitter.com/intigriti/status/1192103070072741894\n- https://twitter.com/payloadartist/status/1469582893772984322\n- https://twitter.com/payloadartist/status/1422247377516122114\n- https://twitter.com/hackerscrolls/status/1247177578269597698\n\n> Soon will be updated again\n"
  },
  {
    "path": "match-replace-burp.json",
    "content": "{\n    \"proxy\":{\n        \"match_replace_rules\":[\n            {\n                \"comment\":\"Emulate IE\",\n                \"enabled\":false,\n                \"is_simple_match\":false,\n                \"rule_type\":\"request_header\",\n                \"string_match\":\"^User-Agent.*$\",\n                \"string_replace\":\"User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)\"\n            },\n            {\n                \"comment\":\"Emulate iOS\",\n                \"enabled\":false,\n                \"is_simple_match\":false,\n                \"rule_type\":\"request_header\",\n                \"string_match\":\"^User-Agent.*$\",\n                \"string_replace\":\"User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 5_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9B176 Safari/7534.48.3\"\n            },\n            {\n                \"comment\":\"Emulate Android\",\n                \"enabled\":false,\n                \"is_simple_match\":false,\n                \"rule_type\":\"request_header\",\n                \"string_match\":\"^User-Agent.*$\",\n                \"string_replace\":\"User-Agent: Mozilla/5.0 (Linux; U; Android 2.2; en-us; Droid Build/FRG22D) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1\"\n            },\n            {\n                \"comment\":\"Require non-cached response\",\n                \"enabled\":false,\n                \"is_simple_match\":false,\n                \"rule_type\":\"request_header\",\n                \"string_match\":\"^If-Modified-Since.*$\"\n            },\n            {\n                \"comment\":\"Require non-cached response\",\n                \"enabled\":false,\n                \"is_simple_match\":false,\n                \"rule_type\":\"request_header\",\n                \"string_match\":\"^If-None-Match.*$\"\n            },\n            {\n                \"comment\":\"Hide Referer header\",\n                \"enabled\":false,\n                \"is_simple_match\":false,\n                \"rule_type\":\"request_header\",\n                \"string_match\":\"^Referer.*$\"\n            },\n            {\n                \"comment\":\"Require non-compressed responses\",\n                \"enabled\":false,\n                \"is_simple_match\":false,\n                \"rule_type\":\"request_header\",\n                \"string_match\":\"^Accept-Encoding.*$\"\n            },\n            {\n                \"comment\":\"Ignore cookies\",\n                \"enabled\":false,\n                \"is_simple_match\":false,\n                \"rule_type\":\"response_header\",\n                \"string_match\":\"^Set-Cookie.*$\"\n            },\n            {\n                \"comment\":\"Rewrite Host header\",\n                \"enabled\":false,\n                \"is_simple_match\":false,\n                \"rule_type\":\"request_header\",\n                \"string_match\":\"^Host: foo.example.org$\",\n                \"string_replace\":\"Host: bar.example.org\"\n            },\n            {\n                \"comment\":\"Add spoofed CORS origin\",\n                \"enabled\":false,\n                \"is_simple_match\":true,\n                \"rule_type\":\"request_header\",\n                \"string_replace\":\"Origin: foo.example.org\"\n            },\n            {\n                \"comment\":\"Remove HSTS headers\",\n                \"enabled\":false,\n                \"is_simple_match\":false,\n                \"rule_type\":\"response_header\",\n                \"string_match\":\"^Strict\\\\-Transport\\\\-Security.*$\"\n            },\n            {\n                \"comment\":\"Disable browser XSS protection\",\n                \"enabled\":false,\n                \"is_simple_match\":true,\n                \"rule_type\":\"response_header\",\n                \"string_replace\":\"X-XSS-Protection: 0\"\n            },\n            {\n                \"comment\":\"Show Hiddden UI\",\n                \"enabled\":true,\n                \"is_simple_match\":true,\n                \"rule_type\":\"response_body\",\n                \"string_match\":\"hidden\",\n                \"string_replace\":\"hizzen\"\n            },\n            {\n                \"comment\":\"Show Hiddden UI\",\n                \"enabled\":true,\n                \"is_simple_match\":true,\n                \"rule_type\":\"response_body\",\n                \"string_match\":\"display: none\",\n                \"string_replace\":\"display: n0ne\"\n            },\n            {\n                \"comment\":\"Change disable to enable\",\n                \"enabled\":true,\n                \"is_simple_match\":true,\n                \"rule_type\":\"response_body\",\n                \"string_match\":\"disable\",\n                \"string_replace\":\"enable\"\n            },\n            {\n                \"comment\":\"Change from false to true\",\n                \"enabled\":true,\n                \"is_simple_match\":true,\n                \"rule_type\":\"response_body\",\n                \"string_match\":\"false\",\n                \"string_replace\":\"true\"\n            },\n            {\n                \"comment\":\"Bypass WAF\",\n                \"enabled\":true,\n                \"is_simple_match\":true,\n                \"rule_type\":\"request_header\",\n                \"string_replace\":\"X-Forwarded-Host:: 127.0.0.1\"\n            },\n            {\n                \"comment\":\"Bypass WAF\",\n                \"enabled\":true,\n                \"is_simple_match\":true,\n                \"rule_type\":\"request_header\",\n                \"string_replace\":\"X-Forwarded-By: 127.0.0.1\"\n            },\n            {\n                \"comment\":\"Bypass WAF\",\n                \"enabled\":true,\n                \"is_simple_match\":true,\n                \"rule_type\":\"request_header\",\n                \"string_replace\":\"X-Forwarded-Scheme: 127.0.0.1\"\n            },\n            {\n                \"comment\":\"Easy replace XSS payload\",\n                \"enabled\":true,\n                \"is_simple_match\":true,\n                \"rule_type\":\"request_header\",\n                \"string_match\":\"xss_payload\",\n                \"string_replace\":\"\\\"><svg/onload=alert(1)>\"\n            }\n        ]\n    }\n}"
  }
]