gpt4 book ai didi

security - OWASP ZAP 扫描将 "Application Error Disclosure"返回到 javascript 库。是误报吗?如何证明或修复?

转载 作者:行者123 更新时间:2023-12-04 00:02:18 24 4
gpt4 key购买 nike

在使用 OWASP ZAP 2.8.0 进行自动扫描后,我有 javascript 文件(moxiejs 库)的“应用程序错误披露”。网站基于更新到最新版本的 wordpress。如何修复这个漏洞?还是误报?

Medium (Medium) Application Error Disclosure
Description
This page contains an error/warning message that may disclose sensitive information like the location of the file that produced the unhandled exception. This information can be used to launch further attacks against the web application. The alert could be a false positive if the error message is found inside a documentation page.

URL http://x.x.x.x/wordpress/wp-includes/js/plupload/moxie.min.js?ver=1.3.5
Method GET
Evidence Internal Server Error
Instances 1
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.

Reference
CWE Id 200
WASC Id 13
Source ID 3

enter image description here

我发现 moxiejs 脚本包含字符串“内部服务器错误”,例如 (https://raw.githubusercontent.com/WordPress/WordPress/master/wp-includes/js/plupload/moxie.min.js)。 ZAP 是否通过搜索错误文本进行检查?

最佳答案

是的,这是误报,因为 ZAP 扫描了一个 JS-URL,其中包含 RuntimeError: '500:Internal Server Error' 之类的关键字,这就是您收到此误报消息的原因。

关于security - OWASP ZAP 扫描将 "Application Error Disclosure"返回到 javascript 库。是误报吗?如何证明或修复?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58753046/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com