MS Chart ChartImageHandler 存储选项

发布于 2024-12-03 23:46:02 字数 678 浏览 1 评论 0原文

我读过一些关于 ChartImageHandler storage 选项的文章,它似乎有 3 个选项,我对此有疑问;

  1. 如果我们选择文件选项,那么由ms图表创建的图像首先存储在我们指定的位置。我想知道如果我们在C:\TempImageFiles地址中指定了默认位置,是否有安全考虑?我的意思是 MS Chart 在哪个 windows 用户 下访问此文件夹并在其上写入图像?这有黑客风险吗?

  2. 如果我们选择内存图像存储在主内存中,然后如果我们在下载到客户端后指定选项deleteAfterServicing=true则将其删除。我想知道如果我们为图表选择 ImageStorageMode="UseHttpHandler" 选项,黑客是否可以使用 Chart.axd 并多次调用它并导致内存溢出? MS Chart 如何防止这种情况发生?

  3. 如果我们选择session将图像存储在会话中,我想知道任何黑客都可以使用Chart.axd,多次调用它导致内存溢出?如果创建镜像过程中出现异常,是否会删除会话?下载到客户端后,是否也会删除会话?

I've read some articles about ChartImageHandler storage options, and it seems to have 3 options which I have questions about;

  1. If we choose file options then image created by ms chart first stores in location we specified. I want to know if we specified the default location in C:\TempImageFiles address, does it have security considerations? I mean MS Chart under which windows user access this folder and write image on it? Has this a hack risk?

  2. If we choose memory Image stored in main memory, and then if we specify the option deleteAfterServicing=true after downloading to client it deleted. I want to know if we choose ImageStorageMode="UseHttpHandler" option for chart, can any hacker use Chart.axd and call it multiple times and cause memory overflow? What does MS Chart do to prevent this?

  3. If we choose session Image stored in a session, and again I want to know any hacker can use Chart.axd, calling it multiple times to cause a memory overflow? If any exception during creating image, does it delete the session? After downloading to client, does it also delete the session?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

不及他 2024-12-10 23:46:02

有权访问该计算机的其他 Windows 用户将可以在文件系统上创建文件。这些文件将由 ASP 用户创建,因此您可以将文件夹访问权限限制为仅该用户,从而阻止其他普通级别用户的可见性 - 尽管系统管理员很可能拥有完全访问权限。

在 Web 服务器的内存中创建图像会触发内存溢出,从而使服务器容易受到攻击,这并不比 IIS 的任何其他内存消耗部分更不安全。例如,如果恶意用户在您的网络服务器上创建了许多匿名会话,他们可能会触发相同的内存状态。因此我想说,使用方法 2 和 3 的安全风险非常低。

Creating files on the file system will be available to other windows users with access to the machine. The files will be created by the ASP user, and as such you could restrict the folder access to just this user therefore preventing visibility to other normal level users - though system administrators will most likely have full access.

Creating the images in memory of the webserver triggering a memory overflow and therefore leaving your server vulnerable is no more insecure than any other memory consuming part of IIS. For example, if a malicious user created many many anonymous sessions on your webserver they could trigger the same memory state. Therefore I'd state that you are at very low security risk using methods 2 and 3.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文