Setting non-localhost "Local Proxy" breaks HUD security model
See original GitHub issueWith regards to the following during installation of HUD:
- Console shows error messages similar to the following:
WARN org.zaproxy.zap.extension.api.API - Request to API URL https://cdns.us1.gigya.com/zapCallBackUrl/-8111380956573237837?zapfile=inject.js from 192.168.1.1 not permitted
Workaround:
Make sure your API options are set to allow requests from the correct IP addresses. In ZAP, open the “Tools” menu > Options > API, and modify the “Addresses permitted to use the API” appropriately
However as @psiinon pointed out, it breaks the HUD security model.
In order to recreate the above errors, set the “Local Proxy” address to a non local IP under Tools > Options > Local Proxies, for example:
This in turn gave rise to the above errors in console when trying to get HUD on a proxied page
Issue Analytics
- State:
- Created 5 years ago
- Comments:12 (11 by maintainers)
Top Results From Across the Web
HUD InformationTechnology Security Policy Handbook Rev 4 ...
The U.S. Department of Housing and Urban Development (HUD) relies extensively on information systems to execute its mission and provide ...
Read more >Scanner Appliance Troubleshooting - Qualys Discussions
This will break scanner functionality and the scanner will permanently lose all of its settings. Communication Failure Message.
Read more >Managing Microsoft 365 endpoints
SD-WAN for local branch egress of vital Microsoft 365 network traffic ... For example, SSL break and Inspect and Proxy Authentication are ...
Read more >What is a Proxy Server? How does it work? - Fortinet
Proxy Servers and Network Security. Proxies provide a valuable layer of security for your computer. They can be set up as web filters...
Read more >Zap proxy not working for a specific site - Stack Overflow
If you're launching the browser from ZAP then there's a small chance it's because of something that the ZAP HUD is doing (in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For info all API requests should go via callback addresses which bypass the permitted addresses. So adding your browsers IP addr wont actually fix this problem. The only reason callbacks fail are if they are no longer valid, ie if they have been already requested. So our (mine and @thc202’s) assumption is that the errors you are seeing are for duplicated calls. That shouldnt really happen either, so if you can find a reliable way of reproducing them then please let us know.
In fact I am now unable to reproduce this, even when I reset the API settings to default. The difference between before and now is that now I put the Dev build ZAP into a virtual container whereas before I had both Dev ZAP and V2.0.7 running at the same time on the same machine. I’ll see if I can dig up anything else, but it very much looks like you’re right and my system must have been in a “bad state”.