CVE-2024-37893: Grumpydictator/firefly iii Firefly III Has A MFA Vulnerability

MODERATE
Advisory Identifier: GHSA-4gm4-c4mh-4p7w
CVSS 5.9
CWE-287 CWE-288
Published
Advisory Summary

CVE-2024-37893 is a MODERATE (CVSS 5.9) firefly iii has a mfa vulnerability (CWE-287: Improper Authentication) affecting Grumpydictator/firefly iii libraries in the Packagist ecosystem. The issue involves firefly iii has a mfa bypass in oauth flow. Remediation is available by upgrading affected packages to version 6.1.17.

CVE-2024-37893 at a Glance

CVE Identifier CVE-2024-37893
GHSA Identifier GHSA-4gm4-c4mh-4p7w
Severity MODERATE
CVSS v3.1 Base Score 5.9
CWE Classification CWE-287: Improper Authentication
Affected Product Grumpydictator/firefly iii
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 5.9

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

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

How to Fix CVE-2024-37893

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.17
Upgrade grumpydictator/firefly-iii to 6.1.17
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 CVE-2024-37893, 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.17), 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-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. 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

### Impact A MFA bypass in the Firefly III OAuth flow may allow malicious users to bypass the MFA-check. This allows malicious users to use password spraying to gain access to your Firefly III data using passwords stolen from other sources. As OAuth applications are easily enumerable using an incrementing id, an attacker could try sign an OAuth application up to a users profile quite easily if they have created one. The attacker would also need to know the victims username and password. ### Patches Problem has been patched in Firefly III v6.1.17 and up. ### Workarounds - Use a unique password for your Firefly III instance, - Store your password securely, i.e. in a password manager or in your head. ### References - https://owasp.org/www-community/attacks/Password_Spraying_Attack - https://www.menlosecurity.com/what-is/highly-evasive-adaptive-threats-heat/mfa-bypass

CVE-2024-37893 Affected Grumpydictator/firefly iii Versions

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

References

Frequently Asked Questions

What is CVE-2024-37893?
CVE-2024-37893 is a security vulnerability in Grumpydictator/firefly iii involving Firefly III has a MFA bypass in oauth flow under CWE-287: Improper Authentication.
Which Grumpydictator/firefly iii versions are affected?
Affected versions include releases prior to 6.1.17 across affected packages: grumpydictator/firefly-iii.
What version fixes CVE-2024-37893?
Upgrading to 6.1.17 (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.17. Upgrade your dependency to 6.1.17 or later.
What is the CVSS score of CVE-2024-37893?
CVE-2024-37893 has a CVSS v3.1 base score of 5.9 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2024-37893?
CVE-2024-37893 is classified under CWE-287: Improper Authentication (When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct.).
How can I check Packagist dependencies for CVE-2024-37893?
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-4gm4-c4mh-4p7w",
  "modified" : "2024-06-17T22:28:28Z",
  "published" : "2024-06-17T22:28:28Z",
  "aliases" : [ "CVE-2024-37893" ],
  "summary" : "Firefly III has a MFA bypass in oauth flow",
  "details" : "### Impact\n\nA MFA bypass in the Firefly III OAuth flow may allow malicious users to bypass the MFA-check. This allows malicious users to use password spraying to gain access to your Firefly III data using passwords stolen from other sources. As OAuth applications are easily enumerable using an incrementing id, an attacker could try sign an OAuth application up to a users profile quite easily if they have created one. The attacker would also need to know the victims username and password.\n\n### Patches\n\nProblem has been patched in Firefly III v6.1.17 and up.\n\n### Workarounds\n\n- Use a unique password for your Firefly III instance,\n- Store your password securely, i.e. in a password manager or in your head.\n\n### References\n\n- https://owasp.org/www-community/attacks/Password_Spraying_Attack\n- https://www.menlosecurity.com/what-is/highly-evasive-adaptive-threats-heat/mfa-bypass\n\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "grumpydictator/firefly-iii"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "6.1.17"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/firefly-iii/firefly-iii/security/advisories/GHSA-4gm4-c4mh-4p7w"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-37893"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/firefly-iii/firefly-iii"
  }, {
    "type" : "WEB",
    "url" : "https://owasp.org/www-community/attacks/Password_Spraying_Attack"
  }, {
    "type" : "WEB",
    "url" : "https://www.menlosecurity.com/what-is/highly-evasive-adaptive-threats-heat/mfa-bypass"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-287", "CWE-288" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-06-17T22:28:28Z",
    "nvd_published_at" : "2024-06-17T20:15:13Z"
  }
}