Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Patch youtube-dl to disable redirects
Browse files Browse the repository at this point in the history
In order to prevent SSRF attacks using redirects
  • Loading branch information
Rudloff committed Feb 27, 2022
1 parent 3a4f09d commit 1b099bb
Show file tree
Hide file tree
Showing 3 changed files with 1,088 additions and 91 deletions.
8 changes: 7 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"aura/session": "^2.1",
"barracudanetworks/archivestream-php": "^1.0",
"consolidation/log": "^2.0",
"cweagans/composer-patches": "^1.7",
"j0k3r/httplug-ssrf-plugin": "^2.0",
"jawira/case-converter": "^3.4",
"jean85/pretty-package-versions": "^1.3",
Expand Down Expand Up @@ -74,7 +75,12 @@
},
"installer-types": [
"library"
]
],
"patches": {
"ytdl-org/youtube-dl": {
"Disable redirects in generic extractor": "patches/youtube-dl-redirect.diff"
}
}
},
"autoload": {
"psr-4": {
Expand Down
Loading

0 comments on commit 1b099bb

Please sign in to comment.