CVE-2024-34077: Mantisbt/mantisbt Mantis Bug Tracker (MantisBT) Allows Vulnerability

HIGH
Advisory Identifier: GHSA-93x3-m7pw-ppqm
CVSS 7.3
CWE-305 CWE-620
Published
Advisory Summary

CVE-2024-34077 is a HIGH (CVSS 7.3) mantis bug tracker (mantisbt) allows vulnerability (CWE-305: Authentication Bypass by Primary Weakness) affecting Mantisbt/mantisbt libraries in the Packagist ecosystem. The issue involves mantis bug tracker (mantisbt) allows user account takeover in the signup/reset password process. Remediation is available by upgrading affected packages to version 2.26.2.

CVE-2024-34077 at a Glance

CVE Identifier CVE-2024-34077
GHSA Identifier GHSA-93x3-m7pw-ppqm
Severity HIGH
CVSS v3.1 Base Score 7.3
CWE Classification CWE-305: Authentication Bypass by Primary Weakness
Affected Product Mantisbt/mantisbt
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 7.3

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

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

How to Fix CVE-2024-34077

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

mantisbt/mantisbt fixed: 2.26.2
Upgrade mantisbt/mantisbt to 2.26.2
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 mantisbt/mantisbt

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-34077, inspect your project dependencies for Mantisbt/mantisbt:

inspect dependencies for mantisbt/mantisbt

Analyze the terminal output to locate any version of Mantisbt/mantisbt in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.26.2), 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-305: Authentication Bypass by Primary Weakness, where the authentication algorithm is sound, but the implemented mechanism can be bypassed as the result of a separate weakness that is primary to the authentication error. In Mantisbt/mantisbt, 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

Insufficient access control in the registration and password reset process allows an attacker to reset another user's password and takeover their account, if the victim has an incomplete request pending. The exploit is only possible while the verification token is valid, i.e for 5 minutes after the confirmation URL sent by e-mail has been opened, and the user did not complete the process by updating their password. A brute-force attack calling account_update.php with increasing user IDs is possible. ### Impact A successful takeover would grant the attacker full access to the compromised account, including sensitive information and functionalities associated with the account, the extent of which depends on its privileges and the data it has access to. ### Patches 92d11a01b195a1b6717a2f205218089158ea6d00 ### Workarounds Mitigate the risk by reducing the verification token's validity (change the value of the `TOKEN_EXPIRY_AUTHENTICATED` constant in *constants_inc.php*). ### References https://mantisbt.org/bugs/view.php?id=34433 ### Credits Alexander Christian, from Vantage Point Security Indonesia

CVE-2024-34077 Affected Mantisbt/mantisbt Versions

1 component(s)
Fixed Versions:
2.26.2
Product / Package Ecosystem Affected Versions Fixed Version
mantisbt/mantisbt
Packagist
< 2.26.2
2.26.2

References

Frequently Asked Questions

What is CVE-2024-34077?
CVE-2024-34077 is a security vulnerability in Mantisbt/mantisbt involving Mantis Bug Tracker (MantisBT) allows user account takeover in the signup/reset password process under CWE-305: Authentication Bypass by Primary Weakness.
Which Mantisbt/mantisbt versions are affected?
Affected versions include releases prior to 2.26.2 across affected packages: mantisbt/mantisbt.
What version fixes CVE-2024-34077?
Upgrading to 2.26.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is mantisbt/mantisbt affected?
Yes, mantisbt/mantisbt is affected in releases prior to 2.26.2. Upgrade your dependency to 2.26.2 or later.
What is the CVSS score of CVE-2024-34077?
CVE-2024-34077 has a CVSS v3.1 base score of 7.3 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L.
What CWE is associated with CVE-2024-34077?
CVE-2024-34077 is classified under CWE-305: Authentication Bypass by Primary Weakness (The authentication algorithm is sound, but the implemented mechanism can be bypassed as the result of a separate weakness that is primary to the authentication error.).
How can I check Packagist dependencies for CVE-2024-34077?
Run the dependency tree command: 'inspect dependencies for mantisbt/mantisbt'. 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-93x3-m7pw-ppqm",
  "modified" : "2024-05-14T20:01:07Z",
  "published" : "2024-05-13T14:57:13Z",
  "aliases" : [ "CVE-2024-34077" ],
  "summary" : "Mantis Bug Tracker (MantisBT) allows user account takeover in the signup/reset password process",
  "details" : "Insufficient access control in the registration and password reset process allows an attacker to reset another user's password and takeover their account, if the victim has an incomplete request pending.\n\nThe exploit is only possible while the verification token is valid, i.e for 5 minutes after the confirmation URL sent by e-mail has been opened, and the user did not complete the process by updating their password.\n\nA brute-force attack calling account_update.php with increasing user IDs is possible. \n \n### Impact\n\nA successful takeover would grant the attacker full access to the compromised account, including sensitive information and functionalities associated with the account, the extent of which depends on its privileges and the data it has access to.\n\n### Patches\n\n92d11a01b195a1b6717a2f205218089158ea6d00\n\n### Workarounds\n\nMitigate the risk by reducing the verification token's validity (change the value of the `TOKEN_EXPIRY_AUTHENTICATED` constant in *constants_inc.php*).\n\n### References\n\nhttps://mantisbt.org/bugs/view.php?id=34433\n\n### Credits\n\nAlexander Christian, from Vantage Point Security Indonesia\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "mantisbt/mantisbt"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.26.2"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 2.26.1"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/mantisbt/mantisbt/security/advisories/GHSA-93x3-m7pw-ppqm"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-34077"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mantisbt/mantisbt/commit/92d11a01b195a1b6717a2f205218089158ea6d00"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/mantisbt/mantisbt"
  }, {
    "type" : "WEB",
    "url" : "https://mantisbt.org/bugs/view.php?id=34433"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-305", "CWE-620" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-05-13T14:57:13Z",
    "nvd_published_at" : "2024-05-14T15:38:28Z"
  }
}