The Burp Suite User Forum was discontinued on the 1st November 2024.

Burp Suite User Forum

For support requests, go to the Support Center. To discuss with other Burp users, head to our Discord page.

SUPPORT CENTER DISCORD

Port being added only to the Host header instead of target URL

John | Last updated: Jul 27, 2021 09:03AM UTC

Hello, I've noticed a new bug, something that didn't happen before. Currently using burpsuite_pro_v2021.6.2, Windows 10, Google Chrome 91.0.4472.164 So when trying to access http://123.124.125.126:1337 I've noticed that port 1337 is added only to the Host header: [...] Host: 123.124.125.126:1337 [...] While the target site remains http:/123.124.125.126, and port 80. In the past, this was not an issue but I've recently tested on two different sites, one hosted in google cloud services and another one on a random hosting company. I was not able to access any web server running on other ports than 80 or 443, because the port is added to the Host header and not to the target URL. This is very annoying, please make sure the target URL gets updated with the correct port number.

Uthman, PortSwigger Agent | Last updated: Jul 27, 2021 10:31AM UTC

Hi John, Can you check if the REST API is running under User options > Misc > REST API? If you access e.g. http://localhost:3000 in a browser, the port number is appended to the Host header and that is expected behavior. Can you clarify what your issue is, please? What are the steps to replicate this? If you access 123.124.125.126:1337 in the embedded browser, do you see http://123.124.125.126:1337 in the Proxy > HTTP History? Does your issue persist with extensions enabled? Can you please share diagnostics (Help > Diagnostics) and a screen recording to support@portswigger.net?

Uthman, PortSwigger Agent | Last updated: Jul 27, 2021 02:24PM UTC