taoteh1221 / Open_Crypto_Tracker

Bitcoin / Alts private portfolio tracker, with email / text / alexa / telegram price alerts, charts, leverage support and much more.
https://taoteh1221.github.io
GNU General Public License v3.0
97 stars 23 forks source link

CVE-2021-32708 (High) detected in league/flysystem-1.0.55 - autoclosed #24

Closed mend-bolt-for-github[bot] closed 3 years ago

mend-bolt-for-github[bot] commented 3 years ago

CVE-2021-32708 - High Severity Vulnerability

Vulnerable Library - league/flysystem-1.0.55

Abstraction for local and remote filesystems

Dependency Hierarchy: - cache/filesystem-adapter-0.3.3 (Root Library) - :x: **league/flysystem-1.0.55** (Vulnerable Library)

Found in base branch: main

Vulnerability Details

Flysystem is an open source file storage library for PHP. The whitespace normalisation using in 1.x and 2.x removes any unicode whitespace. Under certain specific conditions this could potentially allow a malicious user to execute code remotely. The conditions are: A user is allowed to supply the path or filename of an uploaded file, the supplied path or filename is not checked against unicode chars, the supplied pathname checked against an extension deny-list, not an allow-list, the supplied path or filename contains a unicode whitespace char in the extension, the uploaded file is stored in a directory that allows PHP code to be executed. Given these conditions are met a user can upload and execute arbitrary code on the system under attack. The unicode whitespace removal has been replaced with a rejection (exception). For 1.x users, upgrade to 1.1.4. For 2.x users, upgrade to 2.1.1.

Publish Date: 2021-06-24

URL: CVE-2021-32708

CVSS 3 Score Details (8.1)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: High - Privileges Required: None - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: High - Integrity Impact: High - Availability Impact: High

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://github.com/thephpleague/flysystem/security/advisories/GHSA-9f46-5r25-5wfm

Release Date: 2021-06-24

Fix Resolution: 1.1.4,2.1.1


Step up your Open Source Security Game with WhiteSource here

taoteh1221 commented 3 years ago

Vulnerable library is located in /3rd-party/google-api/. We're not hooked into Google API in any live features yet (will use later for Google home alerts / Google translate), so it causes no attack vector yet in Open Crypto Tracker. Patch it for next release.

taoteh1221 commented 3 years ago

Patched https://github.com/taoteh1221/Open_Crypto_Tracker/commit/3e2ad735aa3953c32ce3836b20506bd976935c0c

mend-bolt-for-github[bot] commented 3 years ago

:heavy_check_mark: This issue was automatically closed by WhiteSource because the vulnerable library in the specific branch(es) was either marked as ignored or it is no longer part of the WhiteSource inventory.