gpt4 book ai didi

ms-office - MS Office 文件扩展名

转载 作者:行者123 更新时间:2023-12-03 06:49:39 52 4
gpt4 key购买 nike

不久前我有了一个发现。只需按照以下步骤操作:

在 Office 2003 中创建一个 .doc/.xls/.ppt 文件。在其中保留一些测试数据并关闭该文件。现在重命名该文件以将其文件扩展名更改为随机字符串,注意它是不关联的,例如 test.asdfghjkl 等。双击该文件,它将在父应用程序中无缝打开。

现在,据我所知,Windows 检查文件的文件扩展名并使用它来执行操作,即打开应用程序并将文件传递给它来打开。那么办公套件是如何做到这一点的呢?

编辑:当扩展名更改为与另一个应用程序关联的扩展名时,情况如何?是否有优先级算法来处理该问题?

最佳答案

您是否打开了“查看已知类型的扩展”选项?

编辑:@Comments....是的,这是一个愚蠢/侮辱性的问题,但是在解决问题时,我学会了不做任何假设,并且 0% 信任用户。

但是,我试过了,你是对的。 MS有这种行为是愚蠢的,它只会导致安全漏洞,这导致我寻找你的答案。

摘自 http://seclists.org/fulldisclosure/2007/Jan/0444.html 的帖子

"You have stumbled on an age-old quirky behavior of Windows. Office document formats are based on a standard Windows container format, OLE structured storage files, also known as "docfiles". A docfile's name and extension are irrelevant - the file is, conceptually, a serialization of an OLE object, and like all serialization formats it contains the identifier of the application that produced it, in the form of an OLE class id (in GUID format) in this case. You can easily verify that it doesn't work with the newer Office XML formats"

事实上,它不适用于 2007 *X 文件类型,但 2K3 仍然是一个问题。解决这个问题...升级! =)

here at security focus在目录第 2 点下。

那么,就这样吧。

关于ms-office - MS Office 文件扩展名,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/278481/

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