CVE-2022-24739: Rudloff/alltube Server-Side Request Forgery And Open Vulnerability

HIGH
Advisory Identifier: GHSA-75p7-527p-w8wp
CVSS 7.3
CWE-601 CWE-918
Published
Advisory Summary

CVE-2022-24739 is a HIGH (CVSS 7.3) server-side request forgery and open vulnerability (CWE-601: URL Redirection to Untrusted Site ('Open Redirect')) affecting Rudloff/alltube libraries in the Packagist ecosystem. The issue involves server-side request forgery and open redirect in alltube download. Remediation is available by upgrading affected packages to version 3.0.3.

CVE-2022-24739 at a Glance

CVE Identifier CVE-2022-24739
GHSA Identifier GHSA-75p7-527p-w8wp
Severity HIGH
CVSS v3.1 Base Score 7.3
CWE Classification CWE-601: URL Redirection to Untrusted Site ('Open Redirect')
Affected Product Rudloff/alltube
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 7.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability Low (A:L)

How to Fix CVE-2022-24739

To remediate this vulnerability, upgrade all affected Rudloff/alltube dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

rudloff/alltube fixed: 3.0.3
Upgrade rudloff/alltube to 3.0.3
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for rudloff/alltube

How to Check if You Are Affected

To determine whether your application is affected by CVE-2022-24739, inspect your project dependencies for Rudloff/alltube:

inspect dependencies for rudloff/alltube

Analyze the terminal output to locate any version of Rudloff/alltube in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.0.3), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-601: URL Redirection to Untrusted Site ('Open Redirect'), where the web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect. In Rudloff/alltube, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact On releases prior to 3.0.3, an attacker could craft a special HTML page to trigger either an open redirect attack or a Server-Side Request Forgery attack (depending on how AllTube is configured). The impact is mitigated by the fact the SSRF attack is only possible when the `stream` option is enabled in the configuration. (This option is disabled by default.) ### Patches 3.0.3 contains a fix for this vulnerability. (The 1.x and 2.x releases are not maintained anymore.) The fix requires applying [a patch](https://github.com/Rudloff/alltube/blob/3d092891044f2685ed66c73c870a021bee319c37/patches/youtube-dl-disable-generic.diff) to youtube-dl to disable its generic extractor. If you are using the version of youtube-dl bundled with 3.0.3, it is already patched. However, if you are using your own unpatched version of youtube-dl **you might still be vulnerable**. ### References * https://github.com/Rudloff/alltube/commit/8913f27716400dabf4906a5ad690a5238f73496a * https://github.com/ytdl-org/youtube-dl/issues/30691

CVE-2022-24739 Affected Rudloff/alltube Versions

1 component(s)
Fixed Versions:
3.0.3
Product / Package Ecosystem Affected Versions Fixed Version
rudloff/alltube
Packagist
< 3.0.3
3.0.3

References

Frequently Asked Questions

What is CVE-2022-24739?
CVE-2022-24739 is a security vulnerability in Rudloff/alltube involving Server-Side Request Forgery and Open Redirect in AllTube Download under CWE-601: URL Redirection to Untrusted Site ('Open Redirect').
Which Rudloff/alltube versions are affected?
Affected versions include releases prior to 3.0.3 across affected packages: rudloff/alltube.
What version fixes CVE-2022-24739?
Upgrading to 3.0.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is rudloff/alltube affected?
Yes, rudloff/alltube is affected in releases prior to 3.0.3. Upgrade your dependency to 3.0.3 or later.
What is the CVSS score of CVE-2022-24739?
CVE-2022-24739 has a CVSS v3.1 base score of 7.3 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L.
What CWE is associated with CVE-2022-24739?
CVE-2022-24739 is classified under CWE-601: URL Redirection to Untrusted Site ('Open Redirect') (The web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect.).
How can I check Packagist dependencies for CVE-2022-24739?
Run the dependency tree command: 'inspect dependencies for rudloff/alltube'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-75p7-527p-w8wp",
  "modified" : "2022-03-09T20:13:46Z",
  "published" : "2022-03-09T15:17:31Z",
  "aliases" : [ "CVE-2022-24739" ],
  "summary" : "Server-Side Request Forgery and Open Redirect in AllTube Download",
  "details" : "### Impact\n\nOn releases prior to 3.0.3, an attacker could craft a special HTML page to trigger either an open redirect attack or a Server-Side Request Forgery attack (depending on how AllTube is configured).\n\nThe impact is mitigated by the fact the SSRF attack is only possible when the `stream` option is enabled in the configuration. (This option is disabled by default.)\n\n### Patches\n\n3.0.3 contains a fix for this vulnerability.\n(The 1.x and 2.x releases are not maintained anymore.)\n\nThe fix requires applying [a patch](https://github.com/Rudloff/alltube/blob/3d092891044f2685ed66c73c870a021bee319c37/patches/youtube-dl-disable-generic.diff) to youtube-dl to disable its generic extractor. If you are using the version of youtube-dl bundled with 3.0.3, it is already patched.\nHowever, if you are using your own unpatched version of youtube-dl **you might still be vulnerable**.\n\n### References\n\n* https://github.com/Rudloff/alltube/commit/8913f27716400dabf4906a5ad690a5238f73496a\n* https://github.com/ytdl-org/youtube-dl/issues/30691\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "rudloff/alltube"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.0.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/Rudloff/alltube/security/advisories/GHSA-75p7-527p-w8wp"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-24739"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ytdl-org/youtube-dl/issues/30691"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/Rudloff/alltube/commit/3a4f09dda0a466662a4e52cde674749e0c668e8d"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/Rudloff/alltube/commit/8913f27716400dabf4906a5ad690a5238f73496a"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/Rudloff/alltube/commit/bc14b6e45c766c05757fb607ef8d444cbbfba71a"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/rudloff/alltube/CVE-2022-24739.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/Rudloff/alltube"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/Rudloff/alltube/releases/tag/3.0.3"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-601", "CWE-918" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-03-09T15:17:31Z",
    "nvd_published_at" : "2022-03-08T22:15:00Z"
  }
}