Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CVE-2021-44228]: Update Log4J to resolve security issues #34

Closed
wants to merge 2 commits into from

Conversation

Gamebuster19901
Copy link

@Gamebuster19901 Gamebuster19901 commented Dec 10, 2021

Some downstream projects may be vulnerable if they don't explicitly define what log4j version to use themselves, best to update log4j for any downstream projects that may still use LegacyLauncher.

@craftycodie
Copy link

Well spotted

@Pokechu22
Copy link

Updating log4j2 across several major versions like this is likely to cause issues (Mojang has actually not updated log4j when they mitigated the issue). Projects probably also won't automatically update to the new version of LegacyLauncher either.

I think it would be better to update the project's log4j2.xml to the new version provided here, though that also won't automatically be deployed.

@craftycodie
Copy link

@Pokechu22 given this project's minimal use of log4j I kinda doubt it

@Pokechu22
Copy link

For this project, sure, but if the goal is to update log4j so that dependencies on this project get a newer log4j version, that could cause issues.

@craftycodie
Copy link

Perhaps, there's not many downstream dependencies here, and my concern would be game interaction, but I'll compile & test

@Gamebuster19901
Copy link
Author

If there are unforseen issues with this PR, let me know and I'll close it.

@craftycodie
Copy link

I setup beta 1.7.3 with this and it was fine
image

That said I don't think a launchwrapper update is actually necessary, I think you can just bump the dependencies in the launch manifest json files.
Additionally, slf4j18-impl is unnecessary, doesn't need to be added.

@Pokechu22
Copy link

Note that beta 1.7.3 (and in fact 1.5.2, the latest vanilla version to use launchwrapper) use version 1.5, which predates the version that added log4j (launchwrapper 1.9, I think), so they shouldn't be affected. It's mods that use newer versions, to my understanding.

@Gamebuster19901 Gamebuster19901 marked this pull request as draft December 10, 2021 20:39
@craftycodie
Copy link

Yes but this PR would bump to 1.12 which includes log4j

@Marcono1234
Copy link

Would probably be good to update the Log4j version either way (for future users of this library). But as mentioned by Pokechu an additional fix might be needed for those who cannot easily update the Log4j version?

@MisterSheeple
Copy link

Why is this closed? This is still an issue that should be addressed. It's a zero-day, for crying out loud.

@Gamebuster19901
Copy link
Author

Gamebuster19901 commented Dec 18, 2021

Why is this closed? This is still an issue that should be addressed. It's a zero-day, for crying out loud.

Well, as stated in Mojang/DataFixerUpper#60, it seems that mojang is switching to slf4j. But I guess I'll reopen until a fix is pushed here.

@Gamebuster19901 Gamebuster19901 marked this pull request as ready for review December 18, 2021 03:02
@Gamebuster19901
Copy link
Author

Gamebuster19901 commented Dec 18, 2021

Note: This still needs testing on game versions which contain log4j. Additionally, only updating to log4j 2.16+ will fully resolve all known vulnerabilities. See https://www.lunasec.io/docs/blog/log4j-zero-day/

@MisterSheeple
Copy link

MisterSheeple commented Dec 18, 2021 via email

@Pokechu22
Copy link

Quoting myself here:

Note that beta 1.7.3 (and in fact 1.5.2, the latest vanilla version to use launchwrapper) use version 1.5, which predates the version that added log4j (launchwrapper 1.9, I think), so they shouldn't be affected. It's mods that use newer versions, to my understanding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants