diff --git a/advisories/github-reviewed/2025/02/GHSA-fhw6-3mj5-w9gv/GHSA-fhw6-3mj5-w9gv.json b/advisories/github-reviewed/2025/02/GHSA-fhw6-3mj5-w9gv/GHSA-fhw6-3mj5-w9gv.json new file mode 100644 index 00000000000..af91497d941 --- /dev/null +++ b/advisories/github-reviewed/2025/02/GHSA-fhw6-3mj5-w9gv/GHSA-fhw6-3mj5-w9gv.json @@ -0,0 +1,182 @@ +{ + "schema_version": "1.4.0", + "id": "GHSA-fhw6-3mj5-w9gv", + "modified": "2025-02-28T02:35:26Z", + "published": "2025-02-11T18:31:41Z", + "aliases": [ + "CVE-2025-24414" + ], + "summary": "Magento Stored Cross-Site Scripting (XSS) Vulnerability", + "details": "Adobe Commerce versions 2.4.7-beta1, 2.4.7-p3, 2.4.6-p8, 2.4.5-p10, 2.4.4-p11 and earlier are affected by a stored Cross-Site Scripting (XSS) vulnerability that could be abused by a low-privileged attacker to inject malicious scripts into vulnerable form fields. Malicious JavaScript may be executed in a victim’s browser when they browse to the page containing the vulnerable field. A successful attacker can abuse this to achieve session takeover, increasing the confidentiality and integrity impact as high.", + "severity": [ + { + "type": "CVSS_V3", + "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N" + } + ], + "affected": [ + { + "package": { + "ecosystem": "Packagist", + "name": "magento/community-edition" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "2.4.7-beta1" + }, + { + "fixed": "2.4.7-p4" + } + ] + } + ] + }, + { + "package": { + "ecosystem": "Packagist", + "name": "magento/community-edition" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "2.4.6-p1" + }, + { + "fixed": "2.4.6-p9" + } + ] + } + ] + }, + { + "package": { + "ecosystem": "Packagist", + "name": "magento/community-edition" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "2.4.5-p1" + }, + { + "fixed": "2.4.5-p11" + } + ] + } + ] + }, + { + "package": { + "ecosystem": "Packagist", + "name": "magento/community-edition" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "2.4.4-p12" + } + ] + } + ] + }, + { + "package": { + "ecosystem": "Packagist", + "name": "magento/community-edition" + }, + "versions": [ + "2.4.7" + ] + }, + { + "package": { + "ecosystem": "Packagist", + "name": "magento/community-edition" + }, + "versions": [ + "2.4.6" + ] + }, + { + "package": { + "ecosystem": "Packagist", + "name": "magento/community-edition" + }, + "versions": [ + "2.4.5" + ] + }, + { + "package": { + "ecosystem": "Packagist", + "name": "magento/community-edition" + }, + "versions": [ + "2.4.4" + ] + }, + { + "package": { + "ecosystem": "Packagist", + "name": "magento/community-edition" + }, + "versions": [ + "2.4.8-beta1" + ] + }, + { + "package": { + "ecosystem": "Packagist", + "name": "magento/project-community-edition" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "0" + }, + { + "last_affected": "2.0.2" + } + ] + } + ] + } + ], + "references": [ + { + "type": "ADVISORY", + "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-24414" + }, + { + "type": "PACKAGE", + "url": "https://github.com/magento/magento2" + }, + { + "type": "WEB", + "url": "https://helpx.adobe.com/security/products/magento/apsb25-08.html" + } + ], + "database_specific": { + "cwe_ids": [ + "CWE-79" + ], + "severity": "HIGH", + "github_reviewed": true, + "github_reviewed_at": "2025-02-28T02:35:26Z", + "nvd_published_at": "2025-02-11T18:15:42Z" + } +} \ No newline at end of file diff --git a/advisories/github-reviewed/2025/02/GHSA-pwhh-q4h6-w599/GHSA-pwhh-q4h6-w599.json b/advisories/github-reviewed/2025/02/GHSA-pwhh-q4h6-w599/GHSA-pwhh-q4h6-w599.json new file mode 100644 index 00000000000..d5f5d2e455f --- /dev/null +++ b/advisories/github-reviewed/2025/02/GHSA-pwhh-q4h6-w599/GHSA-pwhh-q4h6-w599.json @@ -0,0 +1,73 @@ +{ + "schema_version": "1.4.0", + "id": "GHSA-pwhh-q4h6-w599", + "modified": "2025-02-28T02:34:39Z", + "published": "2025-02-28T02:34:38Z", + "aliases": [ + "CVE-2025-27154" + ], + "summary": "Spotipy's cache file, containing spotify auth token, is created with overly broad permissions", + "details": "### Summary\n\nThe `CacheHandler` class creates a cache file to store the auth token here: https://github.com/spotipy-dev/spotipy/blob/master/spotipy/cache_handler.py#L93-L98\n\nThe file created has `rw-r--r--` (644) permissions by default, when it could be locked down to `rw-------` (600) permissions. I think `600` is a sensible default.\n\n![image](https://github.com/user-attachments/assets/0b7ebbc1-a27a-4528-ab6a-135c7886766a)\n\n### Details\n\nThis leads to overly broad exposure of the spotify auth token. If this token can be read by an attacker (another user on the machine, or a process running as another user), it can be used to perform administrative actions on the Spotify account, depending on the scope granted to the token.\n\n### PoC\n\nRun an application that uses spotipy with client creation like this:\n\n```python\nfrom pathlib import Path\nimport spotipy\nfrom os import getenv\n\ndef create_spotify_client(client_id: str, client_secret: str) -> spotipy.Spotify:\n \"\"\"Create and return an authenticated Spotify client.\n\n Args:\n client_id: Spotify API client ID\n client_secret: Spotify API client secret\n\n Returns:\n An authenticated Spotify client instance\n \"\"\"\n cache_path = Path.home() / \".cache\" / \"spotify-backup/.auth_cache\"\n cache_path.parent.mkdir(parents=True, exist_ok=True)\n cache_handler = spotipy.cache_handler.CacheFileHandler(cache_path=str(cache_path))\n\n client = spotipy.Spotify(\n auth_manager=spotipy.oauth2.SpotifyOAuth(\n client_id=client_id,\n client_secret=client_secret,\n redirect_uri=\"http://localhost:8000/callback\",\n cache_handler=cache_handler,\n scope=[\n \"user-library-read\",\n \"playlist-read-private\",\n \"playlist-read-collaborative\",\n ],\n )\n )\n\n return client\n\ncreate_spotify_client()\n```\n\nAnd then check the file permissions on the cache file that was created with:\n\n```bash\n$ ls -la ~/.cache/spotify-backup/.auth_cache`\n.rw-r--r--. alichtman alichtman 562 B Thu Feb 20 02:12:33 2025  /home/alichtman/.cache/spotify-backup/.auth_cache\n```\n\nIf this issue is combined with another misconfiguration, like having `o+r` permissions set on your home directory, an attacker will be able to read this file and steal this auth token.\n\nGood defense in depth would be to restrict read permissions on this cache file that contains an auth token\n\n### Impact\n\nPotential exposure of Spotify auth token to other users with access to the machine. A worst case scenario is if the token is granted all permissions, and can be used to do any of:\n\n- exfiltrate spotify likes / saved playlists\n- delete your content\n- modify your content w/o your permission\n\nIf someone were to discover an RCE in Spotify that you could trigger on a machine by having a song played (or song metadata parsed or something), this auth token could maybe be used to add a song to a playlist, or control playback (allowing further exploitation).", + "severity": [ + { + "type": "CVSS_V4", + "score": "CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N" + } + ], + "affected": [ + { + "package": { + "ecosystem": "PyPI", + "name": "spotipy" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "2.25.1" + } + ] + } + ] + } + ], + "references": [ + { + "type": "WEB", + "url": "https://github.com/spotipy-dev/spotipy/security/advisories/GHSA-pwhh-q4h6-w599" + }, + { + "type": "ADVISORY", + "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-27154" + }, + { + "type": "WEB", + "url": "https://github.com/spotipy-dev/spotipy/commit/1ca453f6ef87a2a9e9876f52b6cb38d13532ccf2" + }, + { + "type": "PACKAGE", + "url": "https://github.com/spotipy-dev/spotipy" + }, + { + "type": "WEB", + "url": "https://github.com/spotipy-dev/spotipy/blob/master/spotipy/cache_handler.py#L93-L98" + }, + { + "type": "WEB", + "url": "https://github.com/spotipy-dev/spotipy/releases/tag/2.25.1" + } + ], + "database_specific": { + "cwe_ids": [ + "CWE-276" + ], + "severity": "HIGH", + "github_reviewed": true, + "github_reviewed_at": "2025-02-28T02:34:38Z", + "nvd_published_at": "2025-02-27T14:15:36Z" + } +} \ No newline at end of file diff --git a/advisories/unreviewed/2025/02/GHSA-fhw6-3mj5-w9gv/GHSA-fhw6-3mj5-w9gv.json b/advisories/unreviewed/2025/02/GHSA-fhw6-3mj5-w9gv/GHSA-fhw6-3mj5-w9gv.json deleted file mode 100644 index 5d3f6618958..00000000000 --- a/advisories/unreviewed/2025/02/GHSA-fhw6-3mj5-w9gv/GHSA-fhw6-3mj5-w9gv.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "schema_version": "1.4.0", - "id": "GHSA-fhw6-3mj5-w9gv", - "modified": "2025-02-27T21:32:01Z", - "published": "2025-02-11T18:31:41Z", - "aliases": [ - "CVE-2025-24414" - ], - "details": "Adobe Commerce versions 2.4.7-beta1, 2.4.7-p3, 2.4.6-p8, 2.4.5-p10, 2.4.4-p11 and earlier are affected by a stored Cross-Site Scripting (XSS) vulnerability that could be abused by a low-privileged attacker to inject malicious scripts into vulnerable form fields. Malicious JavaScript may be executed in a victim’s browser when they browse to the page containing the vulnerable field. A successful attacker can abuse this to achieve session takeover, increasing the confidentiality and integrity impact as high.", - "severity": [ - { - "type": "CVSS_V3", - "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N" - } - ], - "affected": [], - "references": [ - { - "type": "ADVISORY", - "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-24414" - }, - { - "type": "WEB", - "url": "https://helpx.adobe.com/security/products/magento/apsb25-08.html" - } - ], - "database_specific": { - "cwe_ids": [ - "CWE-79" - ], - "severity": "HIGH", - "github_reviewed": false, - "github_reviewed_at": null, - "nvd_published_at": "2025-02-11T18:15:42Z" - } -} \ No newline at end of file