Burp Suite User Forum

Create new post

How to change User-Agent send by Burp itself when connect via upstream proxy

Hsiang-Jen | Last updated: Oct 28, 2020 11:13AM UTC

When set upstream proxy server, burp will send the following request. (Not send by browser) Version 2020.9.2 ---begin--- CONNECT portswigger.net:443 HTTP/1.1 Host: portswigger.net:443 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36 ---end--- The User-Agent Chrome/85.0.4183.121 will be blocked by our proxy(Current 86 is allowed). This User-Agent send by Burp when connect via upstream proxy won't be replaced by "Match and Replace". (The User-Agent send by user browser will, but we will be blocked by proxy when CONNECT)

Michelle, PortSwigger Agent | Last updated: Oct 28, 2020 05:01PM UTC

Thanks for getting in touch. When you set up your scan, you can configure the User-Agent in the crawl configuration settings under Miscellaneous -> Customize User-Agent. We have also replied to your email so if you have any further questions, please let us know.

Faisal | Last updated: Jan 10, 2024 12:34PM UTC

I have a similar issue I am trying to connect to a website using an upstream proxy. The latest version of the Burp browser is blocked so we are unable to connect. Is there a way to change the User Agent that is sent? I have already checnge it using mathc and replace and updated it in the crawl settings. Version 2023.11.1.3 ---begin--- CONNECT portswigger.net:443 HTTP/1.1 Host: portswigger.net:443 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.6099.71 Safari/537.36 ---end---

Michelle, PortSwigger Agent | Last updated: Jan 10, 2024 01:38PM UTC

Hi Which tool within Burp are you trying to use when you see this issue? Do you have a Target scope set?

Faisal | Last updated: Jan 10, 2024 01:59PM UTC

Hi I am just trying to connect to a website using the Burp Browser and also using FF to proxy to Burp both have the same issue. I have an upstream proxy set to allow internet access. But for some reason the user agent is always set as the embedded burp browser even when using FF.

Michelle, PortSwigger Agent | Last updated: Jan 10, 2024 03:45PM UTC

Can you please email some screenshots of the requests and responses you see in Burp's Proxy History tab, along with the settings you have configured under Settings > Tools > Proxy to support@portswiger.net so we can take a closer look at this with you?

You must be an existing, logged-in customer to reply to a thread. Please email us for additional support.