Burp Suite & Caido Configuration Guide
To find bugs efficiently, your proxy must do more than just intercept requests. You need to automate repetitive checks, simulate authorization context changes on the fly, and ensure your session tokens remain active.
This section covers the configuration steps to turn your proxy into a semi-automated testing engine.
1. Bulletproof CA Certificate Installation
Section titled “1. Bulletproof CA Certificate Installation”Before intercepting HTTPS traffic, you must install your proxy’s Certificate Authority (CA) certificate.
Step-by-Step for Chrome / Firefox / Edge
Section titled “Step-by-Step for Chrome / Firefox / Edge”- Launch your proxy (Burp or Caido) and ensure it is listening on
127.0.0.1:8080. - Configure your browser proxy to use
127.0.0.1:8080(use an extension like FoxyProxy to toggle this quickly). - Download the Certificate:
- For Burp: Navigate to
http://burpsuitein your browser and click CA Certificate. - For Caido: Navigate to
http://caido.localor download the cert directly from Caido’s settings interface.
- For Burp: Navigate to
- Install in browser:
- Firefox: Settings → Privacy & Security → Certificates → View Certificates → Authorities → Import → Select the downloaded file → Check “Trust this CA to identify websites” → OK.
- Chrome / Edge / Brave (Windows/macOS): Settings → Privacy and Security → Security → Manage device certificates → Authorities (or Trusted Root Certification Authorities) → Import → Follow the wizard to place the certificate in the Trusted Root Certification Authorities store.
- Restart the browser and browse to an HTTPS page (e.g.,
https://google.com). Confirm there are no SSL certificate warnings and the traffic is visible in your HTTP history.
2. Automating Authorization Checks (Autorize & Authify)
Section titled “2. Automating Authorization Checks (Autorize & Authify)”Autorize (Burp BApp Store) and Authify (Caido Plugin Store) are the single most important extensions for IDOR/BOLA hunting. They intercept every request you make as Bob (the victim) and replay it in the background using Alice’s session cookies or headers (Alice is the attacker). The test accounts follow the same convention across this guide: Account A or Alice attacks, Account B or Bob is the victim.
Configuring Autorize (Burp Suite)
Section titled “Configuring Autorize (Burp Suite)”- Install Autorize from the BApp Store.
- Open the Autorize tab.
- In the text box labeled “Headers to replace” or “Modify headers”, paste Alice’s authentication tokens.
- Example:
Cookie: session=ALICE_SESSION_TOKENAuthorization: Bearer ALICE_JWT_TOKEN
- Example:
- Check “Autorize is on”.
- Browse the application normally as Bob in your main proxy-configured browser window.
- Observe the Autorize log table:
- Green (200 OK / Same Length): The endpoint returned the same data or success code when called with Alice’s cookies. This is a highly probable IDOR candidate!
- Red (403 Forbidden / 401 Unauthorized): The request was properly blocked.
- Orange (Same response length/status but no auth credentials modified): Useful to compare against unauthenticated queries.
+---------------------------------------------------------------------------------+| AUTORIZE MONITOR |+---------------------------------------------------------------------------------+| Method | URL | Auth Status | Unauth Status | Signal |+--------+----------------------+-------------+---------------+-------------------+| GET | /api/v2/users/3002 | Bypass! | Blocked (403) | IDOR confirmed || POST | /api/profile/update | Blocked | Blocked (401) | Secure |+---------------------------------------------------------------------------------+sequenceDiagram
autonumber
actor Bob as Browser (Bob)
participant Proxy as Proxy (Autorize/Authify)
participant Server as Target Server
Bob->>Proxy: Send request with Bob's cookie/token
Note over Proxy: 1. Clone Bob's request<br/>2. Swap header/cookie with Alice's token
Proxy->>Server: Send original request (Bob)
Proxy->>Server: Send modified request (Alice)
Proxy->>Server: Send unauthenticated request (No token)
Server-->>Proxy: Return Bob's response (e.g. 200 OK, length 1500)
Server-->>Proxy: Return Alice's response (e.g. 200 OK, length 1500)
Server-->>Proxy: Return Unauth response (e.g. 401 Unauthorized, length 120)
Note over Proxy: Compare status & lengths.<br/>Same response = potential IDOR!
Proxy-->>Bob: Return Bob's response
Configuring Authify (Caido)
Section titled “Configuring Authify (Caido)”- Install Authify from the Caido Plugin Store.
- Create a new Authify profile.
- In the profile configuration, specify the replacement values:
- Match:
Cookieheader orAuthorizationheader. - Replace: Enter Alice’s session cookie or token.
- Match:
- Enable the profile.
- As you browse, monitor the Authify dashboard to compare response body lengths and status codes side-by-side.
3. Match & Replace Rules
Section titled “3. Match & Replace Rules”Match & Replace rules alter incoming requests or outgoing responses automatically based on patterns. You can use them to test client-side bypasses and test headers.
Bypassing Location/Origin Constraints (WAF/IP checks)
Section titled “Bypassing Location/Origin Constraints (WAF/IP checks)”Add a rule to inject headers on every outgoing request to make the server think you are accessing it locally or from an internal load balancer:
- Match Type: Request Header
- Match:
^User-Agent:.*(or configure it to append to the end of headers) - Replace: Add these lines:
X-Forwarded-For: 127.0.0.1X-Originating-IP: 127.0.0.1X-Client-IP: 127.0.0.1X-Remote-IP: 127.0.0.1
Client-Side Admin Escalation
Section titled “Client-Side Admin Escalation”If the UI determines whether you see “Admin” buttons by reading responses, write a rule to swap flags:
- Match Type: Response Body
- Match:
"isAdmin": false - Replace:
"isAdmin": true - Note: This will not bypass server-side access controls, but it will expose hidden UI dashboards so you can discover admin-only endpoints to test manually.
4. Session Handling Automation
Section titled “4. Session Handling Automation”If the target’s JWT or session token expires every 15 minutes, your active scans, intruder payloads, and repeater tests will fail. You can automate session renewal.
Setting Up Cookie Renewal in Burp Suite
Section titled “Setting Up Cookie Renewal in Burp Suite”- Go to Settings → Sessions → Session handling rules.
- Click Add.
- Under Rule actions, click Add → Run a macro.
- In the Macro Recorder, select the login request (
POST /api/auth/login) from your history and configure it to parse the response for the new token. - In the session rule, click Scope and check the box for Repeater, Intruder, and Scanner.
- Set the URL Scope to “Include all URLs” or target your program’s specific domain.
- Burp will now check the request, and if the session is detected as invalid/expired (e.g., gets a 401), it will run the macro to log back in, extract the new cookie, and swap it into the active request automatically.
Configuring Session Automation in Caido
Section titled “Configuring Session Automation in Caido”- Go to Caido’s Automation tab.
- Create an On Request script or workflow.
- Write a JavaScript hook to extract the bearer token from a global environment variable and insert it into the outgoing request’s headers.
- Pair this with a background runner that updates the token whenever a login request is made.
Next step: use your proxy for recon in Section 6.
Open local graph around this page
Linked from here
Bug Hunting for BeginnersFor authorized testing only. Read the ethics note before you put a domain in scope.