GHSA-29w6-c52g-m8jc: Grumpydictator/firefly iii C5 Firefly III CSV Injection. Vulnerability

MODERATE
CVSS 4.0
Published
Advisory Summary

GHSA-29w6-c52g-m8jc is a MODERATE (CVSS 4.0) c5 firefly iii csv injection. vulnerability (General Security Weakness) affecting Grumpydictator/firefly iii libraries in the Packagist ecosystem. The issue involves c5 firefly iii csv injection.. Remediation is available by upgrading affected packages to version 6.1.7.

GHSA-29w6-c52g-m8jc at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-29w6-c52g-m8jc
Severity MODERATE
CVSS v3.1 Base Score 4.0
CWE Classification General Security Weakness
Affected Product Grumpydictator/firefly iii
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 4.0

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

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required High (PR:H)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability Low (A:L)

How to Fix GHSA-29w6-c52g-m8jc

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

grumpydictator/firefly-iii fixed: 6.1.7
Upgrade grumpydictator/firefly-iii to 6.1.7
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 grumpydictator/firefly-iii

How to Check if You Are Affected

To determine whether your application is affected by GHSA-29w6-c52g-m8jc, inspect your project dependencies for Grumpydictator/firefly iii:

inspect dependencies for grumpydictator/firefly-iii

Analyze the terminal output to locate any version of Grumpydictator/firefly iii in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.1.7), 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 General Security Weakness. In Grumpydictator/firefly iii, 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

### Summary CSV injection is a vulnerability where untrusted user input in CSV files can lead to unauthorized access or data manipulation. In my subsequent testing of the application. ### Details I discovered that there is an option to "Export Data" from the web app to your personal computer, which exports a "csv" file that can be opened with Excel software that supports macros. P.S I discovered that the web application's is offering a demo-site that anyone may access to play with the web application. So, there's a chance that someone will export the data (CVS) from the demo site and execute it on their PC, giving the malicious actor a complete control over their machine. (if a user enters a malicious payload to the website). ### PoC You can check out my vulnerability report if you need more details/PoC with screenshots: (removed by JC5) ### Impact An attacker can exploit this by entering a specially crafted payload to one of the fields, and when a user export the csv file using the "Export Data" function, the attacker can potentiality can RCE. ### Addendum by JC5, the developer of Firefly III There is zero impact on normal users, even on vulnerable versions.

GHSA-29w6-c52g-m8jc Affected Grumpydictator/firefly iii Versions

1 component(s)
Fixed Versions:
6.1.7
Product / Package Ecosystem Affected Versions Fixed Version
grumpydictator/firefly-iii
Packagist
< 6.1.7
6.1.7

References

Frequently Asked Questions

What is GHSA-29w6-c52g-m8jc?
GHSA-29w6-c52g-m8jc is a security vulnerability in Grumpydictator/firefly iii involving C5 Firefly III CSV Injection. under General Security Weakness.
Which Grumpydictator/firefly iii versions are affected?
Affected versions include releases prior to 6.1.7 across affected packages: grumpydictator/firefly-iii.
What version fixes GHSA-29w6-c52g-m8jc?
Upgrading to 6.1.7 (or the latest patched release for your respective branch) resolves the vulnerability.
Is grumpydictator/firefly-iii affected?
Yes, grumpydictator/firefly-iii is affected in releases prior to 6.1.7. Upgrade your dependency to 6.1.7 or later.
What is the CVSS score of GHSA-29w6-c52g-m8jc?
GHSA-29w6-c52g-m8jc has a CVSS v3.1 base score of 4.0 (MODERATE) with vector string CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:L/I:L/A:L.
What CWE is associated with GHSA-29w6-c52g-m8jc?
GHSA-29w6-c52g-m8jc is classified under General Security Weakness.
How can I check Packagist dependencies for GHSA-29w6-c52g-m8jc?
Run the dependency tree command: 'inspect dependencies for grumpydictator/firefly-iii'. 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-29w6-c52g-m8jc",
  "modified" : "2024-01-31T18:05:46Z",
  "published" : "2024-01-31T18:05:46Z",
  "aliases" : [ ],
  "summary" : "C5 Firefly III CSV Injection.",
  "details" : "### Summary\nCSV injection is a vulnerability where untrusted user input in CSV files can lead to unauthorized access or data manipulation. \nIn my subsequent testing of the application.\n\n### Details\nI discovered that there is an option to \"Export Data\" from the web app to your personal computer, which exports a \"csv\" file that can be opened with Excel software that supports macros.\n\nP.S \nI discovered that the web application's is offering a demo-site that anyone may access to play with the web application. So, there's a chance that someone will export the data (CVS) from the demo site and execute it on their PC, giving the malicious actor a complete control over their machine. (if a user enters a malicious payload to the website).\n\n### PoC\nYou can check out my vulnerability report if you need more details/PoC with screenshots: (removed by JC5)\n\n### Impact\nAn attacker can exploit this by entering a specially crafted payload to one of the fields, and when a user export the csv file using the \"Export Data\" function, the attacker can potentiality can RCE.\n\n### Addendum by JC5, the developer of Firefly III\nThere is zero impact on normal users, even on vulnerable versions.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:L/I:L/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "grumpydictator/firefly-iii"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "6.1.7"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/firefly-iii/firefly-iii/security/advisories/GHSA-29w6-c52g-m8jc"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/firefly-iii/firefly-iii"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-01-31T18:05:46Z",
    "nvd_published_at" : null
  }
}