Intercept requests made to localhost on brave browser

How to capture the request made to local host by the brave browser in the burp suite. It only seems to capture the HTTPs requests, not the HTTP one.

I am using brave browser here, the in-built browser provided by the burp suite community edition works in this scenario but somehow I can’t use that, a lot of my work was done and saved in the brave.

So, let’s suppose a scenario where you open the burp suite, start the intercept, and also added the host/port configuration to the foxy proxy, you route all your requests to this port where the burp suite is listening. Now what’s happening is, if I make a request in the brave browser to my local host then it doesn’t get intercepted by the burp, however doing so curl localhost --proxy 127.0.0.1:8080 allows the burp to capture the request.

At this point, I thought maybe something not good with the localhost, so I tried to capture the request using postman proxy server, again the problem occurred there as well, it also didn’t capture any localhost requests.

Now, I was confident that this could be a browser problem, I checked some posts online, a found an alternative which some people claimrd a fix of this issue i.e., to add an entry in the /etc/hosts file, they mentioned to add the same local host address but with a different host name. For example:

127.0.0.1 arch

Now, if I make a request to http://arch:80, then it’ll be captured by burp, which they said but it didn’t work for me.

Can you guys please help me out, or if anyone has faced this issue on the same browser ?

submitted by /u/RoninPark
[link] [comments]

April 21, 2023
Read More >>