there is vulnerability related to argument injection
This commit is contained in:
parent
c737ecd1ba
commit
cac2a020bc
1 changed files with 1 additions and 0 deletions
|
|
@ -167,6 +167,7 @@ impl fmt::Display for YtDlpError {
|
||||||
|
|
||||||
pub struct YtDlp {}
|
pub struct YtDlp {}
|
||||||
|
|
||||||
|
// BUG: REAL ARGUMENT INJECTION! FIX ASAP
|
||||||
impl YtDlp {
|
impl YtDlp {
|
||||||
pub async fn load_info(url: &str) -> Result<YtDlpInfo, YtDlpError> {
|
pub async fn load_info(url: &str) -> Result<YtDlpInfo, YtDlpError> {
|
||||||
let output = spawn("python", ["-m", "yt_dlp", url, "-j"]).await?;
|
let output = spawn("python", ["-m", "yt_dlp", url, "-j"]).await?;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue