Risk 3/5 · Elevated
sanitize.patch
Result #749
Comment
The patch is a cleanup of Ventoy upstream shell scripts, but it also removes several safety/validation checks and changes logging behavior. In Ventoy2Disk.sh it drops the guard that ensured the script is run from the released install package, the decompression/setup steps for bundled tools, and the explicit bash/ash invocation plus directory restoration, replacing them with a direct call to ./tool/VentoyWorker.sh. That makes execution more dependent on the caller’s current environment and working directory, which is a packaging/integrity regression, though not an obvious backdoor. In VentoyWeb.sh it removes the root check and redirects logs to /var/log/ventoy.log, which is a broader system write target and could affect system state outside the package directory. The patch also removes a mips64 path in VentoyPlugson.sh and a tool self-test in ventoy_lib.sh, but those are lower risk. Overall I see moderate risk from weakened safety checks and external log writes, but no clear malicious payload.
@@ -6,8 +6,8 @@ Let me do some optimisations.
If you are interested to improve this patch, welcome to mail me.
diff -Npur a/tool/ventoy_lib.sh b/tool/ventoy_lib.sh
---- a/tool/ventoy_lib.sh 2026-04-05 09:27:04.000000000 -0600
-+++ b/tool/ventoy_lib.sh 2026-04-06 10:03:00.691008472 -0600
+--- a/tool/ventoy_lib.sh 2026-07-24 06:59:22.000000000 -0600
++++ b/tool/ventoy_lib.sh 2026-07-24 09:00:04.344697720 -0600
@@ -51,31 +51,6 @@ vtoy_gen_uuid() {
}