How to deal with false positive buffer overflow ? (400 and 500 error code)

196 views
Skip to first unread message

Bastien Maurice

unread,
Aug 12, 2021, 11:58:15 AM8/12/21
to OWASP ZAP User Group
Hello guys,

first i would thank you for your amazing tool :)

I use Owasp ZAP in Gitlab pipeline. In ZAP report, i get some buffer overflow. Some of these are real and i fixed them. But like in screenshot, you can see that i have a sort of buffer overflow via the 500 internal error grab by ZAP. But in reality, if i try the same request via openapi Swagger in my browser or by hand with curl with same parameters, i got a different result with 400 bad request. You can see in second screenshot that i did not respect the pattern regex, which is the aimed result.

Any idea to fix my problem ?

Best regards,
Bastien

dast result.pngmanual request.png

kingthorin+owaspzap

unread,
Aug 12, 2021, 1:35:57 PM8/12/21
to OWASP ZAP User Group
Based on the description and details in the screenshots it seems that when ZAP send a ridiculous payload your app responded 500 and closed the connection (vs keep-alive). Which the scan rule interpreted as inability to handle the input.

Bastien Maurice

unread,
Aug 16, 2021, 8:45:31 AM8/16/21
to OWASP ZAP User Group
Hey Kingthorin,

thanks for you quick answer.

I finally found the problem which was at my application code level and not in ZAP tool.

Have a good day,
Bastien

kingthorin+owaspzap

unread,
Aug 16, 2021, 10:50:28 AM8/16/21
to OWASP ZAP User Group
Great, thanks for letting us know.
Reply all
Reply to author
Forward
0 new messages