GHSA-29w6-c52g-m8jc

Suggest an improvement
Source
https://github.com/advisories/GHSA-29w6-c52g-m8jc
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/01/GHSA-29w6-c52g-m8jc/GHSA-29w6-c52g-m8jc.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-29w6-c52g-m8jc
Published
2024-01-31T18:05:46Z
Modified
2024-12-06T05:33:33.243312Z
Severity
  • 4.0 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:L/I:L/A:L CVSS Calculator
Summary
C5 Firefly III CSV Injection.
Details

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.

Database specific
{
    "nvd_published_at": null,
    "cwe_ids": [],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2024-01-31T18:05:46Z"
}
References

Affected packages

Packagist / grumpydictator/firefly-iii

Package

Name
grumpydictator/firefly-iii
Purl
pkg:composer/grumpydictator/firefly-iii

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.1.7

Affected versions

3.*

3.0.0
3.0.1
3.0.2
3.0.3
3.1
3.1.1
3.1.2
3.1.3
3.1.4
3.1.5
3.1.6
3.2.0
3.2.1
3.2.2
3.2.3
3.2.4
3.2.5
3.3
3.3.1
3.3.2
3.3.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8
4.8.2-alpha.1
4.8.2-alpha.2
4.8.2-alpha.3
4.8.2-alpha.4
4.8.2-alpha.5
4.8.2-alpha.6
4.8.2-beta.1
4.8.2-beta.2
4.8.2
4.8.3-alpha.1

5.*

5.0.0-alpha.1
5.0.0-alpha.2
5.0.0-beta.1
5.0.0
5.0.1
5.0.2
5.0.3
5.0.4
5.0.5
5.1.0-alpha.1
5.1.0-beta.1
5.1.0
5.1.1
5.2.0-alpha.1
5.2.0-beta.1
5.2.0
5.2.1
5.2.2
5.2.3
5.2.4
5.2.5
5.2.6
5.2.7
5.2.8
5.3.0-alpha.1
5.3.0-beta.1
5.3.0-beta.2
5.3.0
5.3.1
5.3.2
5.3.3
5.4.0-alpha.1
5.4.0-alpha.2
5.4.0-alpha.3
5.4.0-beta.1
5.4.0
5.4.1
5.4.2
5.4.3
5.4.4
5.4.5
5.4.6
5.5.0-beta.1
5.5.0-beta.2
5.5.0-beta.3
5.5.0
5.5.1
5.5.2
5.5.3
5.5.4
5.5.5
5.5.6
5.5.7
5.5.8
5.5.9
5.5.10
5.5.11
5.5.12
5.5.13
5.6.0-alpha.1
5.6.0-alpha.2
5.6.0
5.6.1
5.6.2
5.6.3
5.6.4
5.6.5
5.6.6
5.6.7
5.6.8
5.6.9
5.6.10
5.6.11
5.6.12
5.6.13
5.6.14
5.6.15
5.6.16
5.7.0
5.7.1
5.7.2
5.7.3
5.7.4
5.7.5
5.7.6
5.7.7
5.7.8
5.7.9
5.7.10
5.7.11
5.7.12
5.7.13
5.7.14
5.7.15
5.7.16
5.7.17
5.7.18
5.8.0-alpha.1

6.*

6.0.0-alpha.1
6.0.0-alpha.2
6.0.0-beta.1
6.0.9

v6.*

v6.0.0-beta.2
v6.0.0
v6.0.1
v6.0.2
v6.0.3
v6.0.4
v6.0.5
v6.0.6
v6.0.7
v6.0.8
v6.0.10
v6.0.11
v6.0.12
v6.0.13
v6.0.14
v6.0.15
v6.0.16
v6.0.17
v6.0.18
v6.0.19
v6.0.20
v6.0.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