简体   繁体   English

.net 中的应用程序洞察升级

[英]Application insight upgrade in .net

I have a web application developed in MVC.我有一个在 MVC 中开发的 web 应用程序。 It's an existing application.这是一个现有的应用程序。 While doing the SAST testing, we got some security issues under critical status like Insecure Randomness, CRSF (DOM), OPen indirect.在进行 SAST 测试时,我们遇到了一些处于危急状态的安全问题,例如不安全随机性、CRSF (DOM)、OPen 间接。

This issue is happening due to the javascript function ai.0.22.9-build00167.js.此问题是由于 javascript function ai.0.22.9-build00167.js 而发生的。 please someone can explain to me what is the use of this script.请有人可以向我解释这个脚本的用途。 Also, I can find the new version after this.另外,我可以在此之后找到新版本。

Let clarify if I might update to the new version it will help me to fix the issue.澄清一下我是否可以更新到新版本,它将帮助我解决问题。 If yes, please let to know how to update this version.如果是,请告知如何更新此版本。 Because I tried to update from Nuget from visual studio it's not helping me also I tried to download from other sites.因为我试图从 Visual Studio 的 Nuget 进行更新,所以我也尝试从其他站点下载它对我没有帮助。 but the file format is not supported.但不支持文件格式。

If no, please someone can help me to resolve this.如果没有,请有人可以帮我解决这个问题。

The same issue I am facing in the below files also since its inbuild scripts I don't know how to handle.我在以下文件中也面临同样的问题,因为它的内置脚本我不知道如何处理。

jquery-1.10.2-vsdoc.js,
jquery.unobtrusive-ajax,
jquery.unobtrusive-ajax.min.js,
jquery.validate-vsdoc.js,
jquery.validate.js,
jquery.validate.min.js

Thanks谢谢

ai.0.22.9-build00167.js is Microsoft Azure Application Insights JavaScript library. ai.0.22.9-build00167.jsMicrosoft Azure Application Insights JavaScript库。

Not sure why your MVC project is using App Insights JavaScript library, On top, this library is not updated since Aug. 2018 so surely there are latest/new library from Microsoft.不确定为什么您的 MVC 项目使用 App Insights JavaScript库,最重要的是,该库自 2018 年 8 月以来未更新,因此肯定有来自 Microsoft 的最新/新库。

These are few points to help you decide:以下几点可以帮助您做出决定:

1. Remove/Uninstall NuGet package 1. 删除/卸载 NuGet package

If your project is NOT not using any of the JavaScript framework (like Angular, ReactJS, VueJS, etc), you can remove/uninstall App Insights - JavaScript NuGet package. If your project is NOT not using any of the JavaScript framework (like Angular, ReactJS, VueJS, etc), you can remove/uninstall App Insights - JavaScript NuGet package.

This will also stop collecting your application health data in Azure App Insights.这也将停止在 Azure App Insights 中收集您的应用程序运行状况数据。


2. For JavaScript Framework 2. 对于 JavaScript 框架

If your project is using JavaScript framework (like Angular, Vue, etc) - you can install latest version of App Insights - Web library and configured accordingly.如果您的项目使用JavaScript framework (如 Angular、Vue 等) - 您可以安装最新版本的App Insights - Web库并进行相应配置。

It is NOT a NuGet package, instead it is NPM package.它不是 NuGet package,而是 NPM ZEFE90A8E604A7C840E88D03A6B7D8Z。

3. For MVC Application 3.对于MVC应用

If there is a need to collect your MVC application health data in App Insights, you can install Application Insights SDK and configured accordingly.如果需要在 App Insights 中收集 MVC 应用程序运行状况数据,可以安装Application Insights SDK并进行相应配置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM