-
-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
308 Permanent Redirect from http to https not working with HUD enabled #834
Comments
Thats weird - ZAP should not be requesting http://google.de/ |
Thanks, Simon, for the quick reply! |
If you're having problems alwasy do a ZAP check-for-updates and install an new versions of add-ons. |
Hi, sorry, sure. I did both. ZAP and all plugins are fully up-to-date. Fails in both. |
I am hitting the problem too, which makes Zap unsuitable for our use :( |
@dvarrazzo Can you confirm that it behaves as expected with HUD disabled? |
I am new of the tool and not aware of what HUD is. What I have done is: 1: run zap in docker using:
2: configued a Firefox session to use localhost:8090 as HTTP/HTTPS proxy, imported the certificate in point 3, both opening an http and https url results in a loop of http request; no https request is performed opening an http page resulting in a 302 redirect works fine. |
Heads up: upgrading the plug-ins seems to work. |
Well, that is the first recommendation on the first FAQ ;) https://www.zaproxy.org/faq/somethings-not-working-what-should-i-do/ |
Thanks for letting us know. |
You are right. I apologise for the noise. However this issue has been open for almost 2 years: it might be advisable that whatever needs update is updated out of the box. |
Describe the bug
When navigating to an HTTPS website via the preconfigured browser with ZAP HUD enabled zaproxy first issues an HTTP request to the page and follows the redirects to https. When a server redirects to HTTPS via 308 Permanent Redirect, then ZAP fails to follow this redirect, leading to an error displayed in the browser. In firefox this would be:
The page isn’t redirecting properly
An error occurred during a connection to example-redirecting-page.de.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
When you open https://google.de via the addressbar in a preconfigured, HUD-enabled browser launched from zaproxy, then the following happens:
So I assume 301 and 302 redirects work, but I do not really understand, why the first request from zaproxy to google (2.) is GET http, when the preconfigured browser explicitely asks for https. I assume that this is likely somehow coupled with the https upgrade to http hosts when using the HUD.
But if a server responds with a 308 Permanent Redirect, zap fails to follow this redirect, leading to the above described error.
Screenshots
Software versions
Errors from the zap.log file
Additional context
Would you like to help fix this issue?
The text was updated successfully, but these errors were encountered: