Comments (9)
https://www.lunasec.io/docs/blog/log4j-zero-day/
from portablemc.
Mojang has made the following changes to logging configurations:
<!-- client-1.7.xml -->
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="WARN">
<Appenders>
<Console name="SysOut" target="SYSTEM_OUT">
<XMLLayout />
</Console>
<RollingRandomAccessFile name="File" fileName="logs/latest.log" filePattern="logs/%d{yyyy-MM-dd}-%i.log.gz">
<PatternLayout pattern="[%d{HH:mm:ss}] [%t/%level]: %msg%n" />
<Policies>
<TimeBasedTriggeringPolicy />
<OnStartupTriggeringPolicy />
</Policies>
</RollingRandomAccessFile>
</Appenders>
<Loggers>
<Root level="info">
<filters>
<MarkerFilter marker="NETWORK_PACKETS" onMatch="DENY" onMismatch="NEUTRAL" />
<!-- ADDED BEGIN -->
<RegexFilter regex=".*\$\{[^}]*\}.*" onMatch="DENY" onMismatch="NEUTRAL"/>
<!-- ADDED END -->
</filters>
<AppenderRef ref="SysOut"/>
<AppenderRef ref="File"/>
</Root>
</Loggers>
</Configuration>
<!-- client-1.12.xml -->
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="WARN">
<Appenders>
<Console name="SysOut" target="SYSTEM_OUT">
<LegacyXMLLayout />
</Console>
<RollingRandomAccessFile name="File" fileName="logs/latest.log" filePattern="logs/%d{yyyy-MM-dd}-%i.log.gz">
<!-- BEFORE: <PatternLayout pattern="[%d{HH:mm:ss}] [%t/%level]: %msg%n" /> -->
<PatternLayout pattern="[%d{HH:mm:ss}] [%t/%level]: %msg{nolookups}%n" />
<Policies>
<TimeBasedTriggeringPolicy />
<OnStartupTriggeringPolicy />
</Policies>
</RollingRandomAccessFile>
</Appenders>
<Loggers>
<Root level="info">
<filters>
<MarkerFilter marker="NETWORK_PACKETS" onMatch="DENY" onMismatch="NEUTRAL" />
</filters>
<AppenderRef ref="SysOut"/>
<AppenderRef ref="File"/>
</Root>
</Loggers>
</Configuration>
from portablemc.
After checking, PMC special log configuration is not update, CLI is critically affected by this exploit, API is not.
from portablemc.
It's quite hard to fix, because the launcher currently ignore update of the "time" from the version manifest.
from portablemc.
I'm a little embarrassed, it takes more work than I expected, as I had never considered the case of a critical change in the existing version metadata. This might introduce an argument --timeout
to control the timeout to request versions manifest, I will also properly handle HTTP cache system only for it.
from portablemc.
Maybe download that data whenever something needs it and you can add someting like --offline later.
from portablemc.
I thought of this --offline
argument, but it can just be the equivalent of --timeout 0
which is an illegal value for a timeout, and so can be used to disable online manifest fetching (only using the local copy, and aborting if there is no local copy).
from portablemc.
Almost ready to release! The last thing to implement is the timeout argument.
This is more an improvement to the API than a particular fix for the exploit, the launcher is now able to install newer official metadata when needed. If Mojang implement another fixes in the future, they should be downloaded automatically.
from portablemc.
This issue is important, but it is referenced in the README, so I'm closing it.
from portablemc.
Related Issues (20)
- LWJGL not found in classpath for early versions HOT 7
- Installing mods with events HOT 1
- Possible to add info to README re: another method of contributing...? HOT 4
- Trouble launching Windows Minecraft from WSL HOT 4
- portablemc start forge:1.20.1-latest does not work HOT 9
- can someone help HOT 1
- Missing minecraft resource HOT 4
- DoesNotOwnMinecraftError within auth_session.refresh() HOT 2
- Support usage over ssh? HOT 6
- I need your opinion on potential rewrite in Rust (long-term decision) HOT 11
- Not launching - the code execution cannot proceed because jli.dll was not found. reinstalling the program may fix this problem. HOT 3
- Issue login with Microsoft auth HOT 33
- [feature] server start HOT 2
- Skin HOT 1
- Version for testing mod client startup? HOT 3
- error: unrecognized arguments: --work-dir fabric:1.20.1 HOT 2
- Unable to login with Microsoft's secondary alias email HOT 3
- unable to access forge versions HOT 5
- PortableMC failing to install forge HOT 2
- XML output stream parsing not properly detected when early errors happens
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from portablemc.