Repository navigation
Wider log filter for password commands, F3 + D reminder after resetpassword - #53
Open
touchfalls wants to merge 1 commit into
Open
touchfalls wants to merge 1 commit into
touchfalls wants to merge 1 commit into
Conversation
The Paper log filter dropped only Paper's own 'issued server command' line, so plugins that log commands in their own format (command spies, chat loggers) could still write passwords to the console. Any line with a password command and an argument at the start of a word is now dropped. After /authadmin resetpassword, a player who ran it is told to clear the chat with F3 + D, since the temporary password stays in the chat history.
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.
issued server commandline, any console line with a password command (/login,/l,/register,/cp, namespaced forms) followed by an argument is dropped, so command-spy and chat-logging plugins cannot leak passwords. The slash must start a word (line start, whitespace or a quote/bracket), so paths like/home/l xand URLs are kept. Trade-off: a chat line such as "type /login to continue" is dropped too, because it cannot be told apart from/login <password>./authadmin resetpassworda player who ran it (not the console) is told the temporary password stays in the chat history. Paper and Fabric, all five languages.Taken from the unmerged local branch
fix/paper-layer-1.2.2(deleted); the rest of that branch was already in main or conflicts with Folia support.Tests:
PaperSensitiveCommandLogFilterTest;./gradlew testpasses locally.