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

本文标签: