CVE-2017-5594: Pagekit/pagekit Pagekit Weak Password Recovery Mechanism Vulnerability

HIGH
Advisory Identifier: GHSA-rp89-32rp-qpq2
CVSS 7.5
CWE-640
Published
Advisory Summary

CVE-2017-5594 is a HIGH (CVSS 7.5) pagekit weak password recovery mechanism vulnerability (CWE-640: Weak Password Recovery Mechanism for Forgotten Password) affecting Pagekit/pagekit libraries in the Packagist ecosystem. The issue involves pagekit weak password recovery mechanism for forgotten password. Remediation is available by upgrading affected packages to version 1.0.11.

CVE-2017-5594 at a Glance

CVE Identifier CVE-2017-5594
GHSA Identifier GHSA-rp89-32rp-qpq2
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-640: Weak Password Recovery Mechanism for Forgotten Password
Affected Product Pagekit/pagekit
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 7.5

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:R/S:U/C:H/I:H/A:H).

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

How to Fix CVE-2017-5594

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

pagekit/pagekit fixed: 1.0.11
Upgrade pagekit/pagekit to 1.0.11
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 pagekit/pagekit

How to Check if You Are Affected

To determine whether your application is affected by CVE-2017-5594, inspect your project dependencies for Pagekit/pagekit:

inspect dependencies for pagekit/pagekit

Analyze the terminal output to locate any version of Pagekit/pagekit in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.0.11), 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-640: Weak Password Recovery Mechanism for Forgotten Password, where the product contains a mechanism for users to recover or change their passwords without knowing the original password, but the mechanism is weak. In Pagekit/pagekit, 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

An issue was discovered in Pagekit CMS before 1.0.11. In this vulnerability the remote attacker is able to reset the registered user's password, when the debug toolbar is enabled. The password is successfully recovered using this exploit. The SecureLayer7 ID is SL7_PGKT_01.

CVE-2017-5594 Affected Pagekit/pagekit Versions

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

References

Frequently Asked Questions

What is CVE-2017-5594?
CVE-2017-5594 is a security vulnerability in Pagekit/pagekit involving Pagekit Weak Password Recovery Mechanism for Forgotten Password under CWE-640: Weak Password Recovery Mechanism for Forgotten Password.
Which Pagekit/pagekit versions are affected?
Affected versions include releases prior to 1.0.11 across affected packages: pagekit/pagekit.
What version fixes CVE-2017-5594?
Upgrading to 1.0.11 (or the latest patched release for your respective branch) resolves the vulnerability.
Is pagekit/pagekit affected?
Yes, pagekit/pagekit is affected in releases prior to 1.0.11. Upgrade your dependency to 1.0.11 or later.
What is the CVSS score of CVE-2017-5594?
CVE-2017-5594 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2017-5594?
CVE-2017-5594 is classified under CWE-640: Weak Password Recovery Mechanism for Forgotten Password (The product contains a mechanism for users to recover or change their passwords without knowing the original password, but the mechanism is weak.).
How can I check Packagist dependencies for CVE-2017-5594?
Run the dependency tree command: 'inspect dependencies for pagekit/pagekit'. 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-rp89-32rp-qpq2",
  "modified" : "2024-04-24T20:18:58Z",
  "published" : "2022-05-13T01:12:12Z",
  "aliases" : [ "CVE-2017-5594" ],
  "summary" : "Pagekit Weak Password Recovery Mechanism for Forgotten Password",
  "details" : "An issue was discovered in Pagekit CMS before 1.0.11. In this vulnerability the remote attacker is able to reset the registered user's password, when the debug toolbar is enabled. The password is successfully recovered using this exploit. The SecureLayer7 ID is SL7_PGKT_01.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "pagekit/pagekit"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.0.11"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2017-5594"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pagekit/pagekit/commit/e0454f9c037c427a5ff76a57e78dbf8cc00c268b"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/pagekit/pagekit"
  }, {
    "type" : "WEB",
    "url" : "https://securelayer7.net/download/pdf/SecureLayer7-Pentest-report-Pagekit-CMS.pdf"
  }, {
    "type" : "WEB",
    "url" : "https://securelayer7.net/download/poc/password-reset-vulnerability-exploit-ruby-pagekit-cms.rb.txt"
  }, {
    "type" : "WEB",
    "url" : "https://www.exploit-db.com/exploits/41143"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/95806"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-640" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-04-24T20:18:58Z",
    "nvd_published_at" : "2017-01-25T18:59:00Z"
  }
}