Web Scan - After automatic scan with OWASP ZAP 2.12.0 I have "Application Error Disclosure" with javascript file (
/_next/static/chunks/main-xxx.js). Site is based on React JS using next js framework. I've found that nextjs script contains string 500:"Internal Server Error", as highlighted in
screenshot. It is inside .next folder generated by next js framework after the build.
Below are the details of the alert: (Also attached a screenshot regarding the same)
Application Error Disclosure
Risk: Medium
Confidence: Medium
Evidence: Internal Server Error
CWE ID: 200
WASC ID: 13
Source: Passive (90022 - Application Error Disclosure)
Solution:Review the source code of this page. Implement custom error pages. Consider implementing a mechanism to provide a unique error reference/identifier to the client (browser) while logging the details on the server side and not exposing them to the user.
So my question is
Is it a false positive because ZAP scanned a JS-URL which has keywords like RuntimeError: '500:Internal Server Error'?