Repository navigation
fix(security): run makeFBIOformats without a shell; parse rvNuke prefs as data - #175
Merged
Merged
Conversation
17 tasks
mcoliver
force-pushed
the
fix/package-fbio-shell
branch
from
October 26, 2026 19:58
52ed10e to
ee1de14
Compare
…s as data PackageManager ran makeFBIOformats through system() with the install directory appended unquoted. On macOS that directory is under "~/Library/Application Support", so installing a package that ships an image-format plugin split the path at the space and makeFBIOformats never indexed it; a directory containing shell metacharacters would have run them. Run it with QProcess::execute and an argument list instead, and close the plugin file first so the scan sees all of it. rvNuke read ~/.nuke/rvprefs back with eval(). The file is written with str(dict), so ast.literal_eval reads it the same way without executing it, and a damaged file is now logged and ignored rather than raising. Both were flagged by an automated scan (Jules). Signed-off-by: Michael Oliver <mcoliver@gmail.com>
mcoliver
force-pushed
the
fix/package-fbio-shell
branch
from
October 26, 2026 20:09
ee1de14 to
c4f426f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two findings from a Jules scan that held up on review.
PackageManager:
system()with an unquoted pathWhen a package with an image-format plugin is installed,
PackageManagerranmakeFBIOformats <dir>throughsystem(), with the directory appended unquoted.~/Library/Application Support/RV, so the space split the argument and the new plugin was never indexed.It now uses
QProcess::execute(program, {dir}), which involves no shell. The commented-out QProcess version that sat below it has been removed. The plugin'sofstreamis now closed before the scan; before, it was still open and might not have been flushed.rvNuke:
eval()of~/.nuke/rvprefssaveToDiskwritesstr(dict), andupdateFromDiskread it back witheval(). It now usesast.literal_eval, which accepts the same format but won't run code. A damaged file is logged and ignored.The
execinRvCommunicator.evalis left alone. That's the RV→Nuke sync protocol: RV sends Python for Nuke to run.Rest of the scan
miniunz.cstrcpy: the buffer isstrlen(newdir) + 1, so the copy is safe.qt515_to_mu.pyis a code generator andglnames.pyis a FreeType build tool, so neither runs inside UTV.setFilterLiveReviewEvents, and the PaintCommand pixel aspect ratio.