there is vulnerability related to argument injection

This commit is contained in:
mykola2312 2024-02-21 22:38:24 +02:00
parent 8b9a7a0bcc
commit 910245061e

View file

@ -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?;