-
-
Notifications
You must be signed in to change notification settings - Fork 154
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
The HUD fails to connect to ws endpoints from a domain upgraded to https #525
Comments
@halfluke simple solution - disable the HUD :) |
ah thanks. Actually I was playing with damn vulnerable websockets, docker version you start it with docker run -d -p 80:80 -p 8080:8080 tssoffsec/dvws What happens is that when dvws.local is redirected to https://dvws.local, all requests that use websockets simply do not go through. Not sure if it's relevant, if it's a zap issue or a dvws issue. |
@halfluke thanks - having an example failure case makes this much easier to look into :) |
@JavanXD Thats strange, I've used the HUD against Juice Shop running in Docker many times without any problems. |
After trying a few things, I was able to spot the problem. Example main.js: |
@JavanXD #531will hopefully fix that problem, as long as you dont disable proxying for them :) Are you able to try that out? |
Re the original problem with dvwa this is still a problem - it fails with a security error trying to access |
Changed the title to make it more specific and we'll aim to fix this in the next version |
I never had a problem with ws and as long i don't disable proxying it works well. In my case it was just wrong configuration. |
In the case of dvws it is a bug, but I have a (not too nasty) fix for it. |
hi, so have you figured out if it's a problem with zap (hud) or with the dvws app? I'm following the discussion but I'm not sure I understand. You mentioned that the upgrade from http to https is handled internally by zap, but if a website cannot handle https, it won't be displayed. Do we still have to disable the HUD as you said in your first reply? Sorry about my confusion |
It's a problem with the HUD. Disabling the HUD was just a workaround, once this is fixed dvws will work properly with the HUD enabled. |
ah ok thanks. So are they actually 2 related but different issues? One is the http to https upgrade and one is the ws to wss upgrade? |
There's only one (afaik), the ws to wss upgrade (http to https should be working fine). |
Any website, even one that should be available in plain http, is automatically redirected to https when the Extensionhud extension is enabled.
This did not happen in version 2.7.0 and it causes problem with websockets which work on http
Steps to reproduce the behavior:
Expected behavior
The website should be reachable in http (in my test, the https website is different and someway broken, the original website is intended to be reachable on http and not redirected to https)
Software versions
The text was updated successfully, but these errors were encountered: