From b0b73c83994f33118c6a69550da9ec8ec1c07adc Mon Sep 17 00:00:00 2001 From: EliteMasterEric Date: Thu, 3 Oct 2024 16:53:18 -0400 Subject: [PATCH] fix: Add additional classes to Polymod Blacklist --- source/funkin/modding/PolymodHandler.hx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/funkin/modding/PolymodHandler.hx b/source/funkin/modding/PolymodHandler.hx index 125882161b..f3d9273b24 100644 --- a/source/funkin/modding/PolymodHandler.hx +++ b/source/funkin/modding/PolymodHandler.hx @@ -282,6 +282,13 @@ class PolymodHandler // System.load() can load malicious DLLs Polymod.blacklistImport('lime.system.System'); + // `lime.utils.Assets` + // Literally just has a private `resolveClass` function for some reason? + Polymod.blacklistImport('lime.utils.Assets'); + Polymod.blacklistImport('openfl.utils.Assets'); + Polymod.blacklistImport('openfl.Lib'); + Polymod.blacklistImport('openfl.system.ApplicationDomain'); + // `openfl.desktop.NativeProcess` // Can load native processes on the host operating system. Polymod.blacklistImport('openfl.desktop.NativeProcess');