Zed Attack Proxy automated scanning of WebApi with OAuth

放肆的年华 提交于 2020-01-07 04:42:19

问题


I have configured ZAP 2.6 so that it is acting as a proxy for requests from an Android app to a web service over HTTPS. The authentication mechanism is OAuth 2, and so in my login response I get an access token which is then sent in all subsequent request headers as follows

Authorization: Bearer my_long_and_encoded_access_token

Is it possible to get ZAP to recognise this token and use it in tests initiated from the ZAP UI?

I have looked at Automate OAuth access token for Zed Attack Proxy Scans but don't believe this covers my situation.

Thanks.


回答1:


Yes, you can create a script which extracts this token and then uses it in future requests. If you need help with such a script then asking on the ZAP User Group might be a better option than asking here ;)



来源:https://stackoverflow.com/questions/44930565/zed-attack-proxy-automated-scanning-of-webapi-with-oauth

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!