Description
Legcord 1.1.0 through 1.3.0 contains a path traversal vulnerability in theme IPC handlers that allows script in the Discord page to escape the themes directory via unvalidated theme ids. Attackers running script in the Discord origin, such as through XSS, can abuse themes.folder, themes.uninstall, and themes.install to launch local executables, recursively delete directories, and write files outside the themes directory.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Legcord Legcord
Default version status: unaffected
1.1.0 to ≤ 1.3.0affected
References
- https://github.com/Legcord/Legcord/issues/1163 ↗
- https://github.com/Legcord/Legcord ↗
- https://github.com/Legcord/Legcord/blob/v1.3.0/src/discord/ipc.ts#L201-L206 ↗
- https://github.com/Legcord/Legcord/blob/v1.3.0/src/common/themes.ts#L269-L276 ↗
- https://www.vulncheck.com/advisories/legcord-1.1.0-through-1.3.0-path-traversal-via-theme-ipc-handlers ↗