JFR report contains access token
The bug
The JFR report for a client contains the access token of the user. A user might therefore unknowingly leak their access token when sharing the JFR report.
The underlying issue is probably the way the access token is passed to the client, see also related issue MCL-9207 (and follow-up issue MCL-21180).
In previous Minecraft versions this problem existed as well, was then allegedly fixed, but apparently reappeared again.
Reproduction steps
- Open a singleplayer world
- Run
/jfr start
- Run
/jfr stop
- Copy the report path from chat
- Open the file with a text editor, e.g. Notepad++ (the file is not a text file, but the access token can be found like this nonetheless)
- Search for "accessToken"
The JFR file contains the access token
2022-06-14, 08:54 PM
2022-07-06, 12:07 PM
2022-07-06, 12:07 PM
0
2