admin管理员组文章数量:1122792
Here a the request in my bash script that launch openapi scan :
BASE_ZAP_URL="http://localhost:8080/JSON" OPENAPI_URL="${BASE_ZAP_URL}/openapi/action/importFile/" OPENAPI_FILE_PATH="openapi.json" OPENAPI_SCAN_RESPONSE=$(curl "${OPENAPI_URL}?apikey=${ZAP_API_KEY}&target=${TARGET_URL}&file=${OPENAPI_FILE_PATH}")
My script is running. My target is scanning. I received a few requests on my target. Then after a few seconds. I got this error in my DOCKER console:
"2024-11-21 22:46:15 223693 [ZAP-IO-Server-1-1] WARN org.zaproxy.zap.extension.api.API - Bad request to API endpoint [/JSON/openapi/view/results/] from [172.17.0.1]: 2024-11-21 22:46:15 org.zaproxy.zap.extension.api.ApiException: BAD_VIEW (results) [...]"
If I'm not mistaken, as soon as the first problem is raised, zap tries to add it to “/JSON/openapi/view/results” (its own endpoint) but can't find it, so the code stops by itself.
I'm not sure whether the problem is mine (perhaps a missing configuration), or whether it's ZAP's fault.
I am stuck with this
本文标签:
版权声明:本文标题:docker - Zed Attack Proxy (ZAP) - OpenAPI Scan - Bad request to API endpoint [JSONopenapiviewresults] - ApiException: BAD_VIEW ( 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736306710a1933056.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论