Bitwarden expects `bwLocation` to point to its CLI.
Instead of executing that path as one argument, it builds a command string and passes it to `cmd /c` on Windows or `bash -c` elsewhere.
remember the last RuneLite code execution? OSRS, here we go again.
you import a Bitwarden preset, which is just a harmless JSON file. Activate the plugin and it executes code as user 🧵:
Plugin Presets applies attacker-chosen config groups, keys and values.
The preset first sets `bitwarden.bwLocation`, then enables Bitwarden and adds `bitwarden-plugin` through `runelite.externalPlugins`.
RuneLingual plants a fake `piper.exe` and 3 model files at that path. Natural Speech then loads the files and starts the EXE as the RuneLite user.
The PoC used production RuneLite 1.13.2 and the exact signed JARs from its manifest.
it is sunday and you are playing OSRS. a friend sends you some cool RuneLite plugin settings. it's just JSON. how bad can it be?
you import and load them, a calculator pops.
here's how 3 signed plugins become code execution 🧵:
RuneLingual downloads `char_norsk.zip` and extracts each entry without checking its final normalized path.
A `../` entry writes outside the RuneLingual resource folder.
The preset also gives Natural Speech an executable path, enables autostart and selects a voice model.