默认情况下禁止 Minecraft 日志记录中使用 Message Pattern Lookup#1209
Merged
Conversation
Member
Author
|
Forge 似乎在使用这个功能,需要考虑更保守的策略。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Log4j2 被爆出严重的 RCE 漏洞,至目前为止所有版本都存在该漏洞。对于 Minecraft 服务器来说,任何成员只需要向服务器发送带有特定内容的字符串,即可控制服务器执行攻击者想要的命令。(修复见 apache/logging-log4j2#608)
由于 Minecraft 客户端允许在网络上共享世界,充当服务器的角色,此时也可能遭受类似的攻击。
该攻击是基于 Log4j2 中的 Message Pattern Lookup 功能,Minecraft 中似乎没有使用该功能,默认禁用它可以避免玩家在使用客户端开服时遭受对应攻击。