GHSA-7fjp-g4m7-fx23: Pwweb/laravel core User (Encrypted) Password Field Being Vulnerability

LOW
CWE-200
Published
Advisory Summary

GHSA-7fjp-g4m7-fx23 is a LOW user (encrypted) password field being vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting Pwweb/laravel core libraries in the Packagist ecosystem. The issue involves user (encrypted) password field being serialised. Remediation is available by upgrading affected packages to version 0.3.7-beta.

GHSA-7fjp-g4m7-fx23 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-7fjp-g4m7-fx23
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected Product Pwweb/laravel core
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix GHSA-7fjp-g4m7-fx23

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

pwweb/laravel-core fixed: 0.3.7-beta
Upgrade pwweb/laravel-core to 0.3.7-beta
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 pwweb/laravel-core

How to Check if You Are Affected

To determine whether your application is affected by GHSA-7fjp-g4m7-fx23, inspect your project dependencies for Pwweb/laravel core:

inspect dependencies for pwweb/laravel-core

Analyze the terminal output to locate any version of Pwweb/laravel core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.3.7-beta), 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-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In Pwweb/laravel core, 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 Leaking Password field during serialisation of the User model. Password is in the encrypted form but if User model is requested in json or array form the value is printed. ### Patches Issue has been patched in version 0.3.7-beta and onwards. ### Workarounds Add the 'password' field to the Users model file in the hidden array: ```php /** * The attributes that should be hidden for arrays. * * @var array */ protected $hidden = [ 'remember_token', 'password', ]; ``` ### For more information If you have any questions or comments about this advisory: * Open an issue in [pwweb/laravel-core](https://github.com/pwweb/laravel-core) * Email us at [security@pw-websolutions.com](mailto:security@pw-websolutions.com)

GHSA-7fjp-g4m7-fx23 Affected Pwweb/laravel core Versions

1 component(s)
Fixed Versions:
0.3.7-beta
Product / Package Ecosystem Affected Versions Fixed Version
pwweb/laravel-core
Packagist
< 0.3.7-beta
0.3.7-beta

References

Frequently Asked Questions

What is GHSA-7fjp-g4m7-fx23?
GHSA-7fjp-g4m7-fx23 is a security vulnerability in Pwweb/laravel core involving User (Encrypted) Password Field Being Serialised under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Which Pwweb/laravel core versions are affected?
Affected versions include releases prior to 0.3.7-beta across affected packages: pwweb/laravel-core.
What version fixes GHSA-7fjp-g4m7-fx23?
Upgrading to 0.3.7-beta (or the latest patched release for your respective branch) resolves the vulnerability.
Is pwweb/laravel-core affected?
Yes, pwweb/laravel-core is affected in releases prior to 0.3.7-beta. Upgrade your dependency to 0.3.7-beta or later.
What CWE is associated with GHSA-7fjp-g4m7-fx23?
GHSA-7fjp-g4m7-fx23 is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor (The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.).
How can I check Packagist dependencies for GHSA-7fjp-g4m7-fx23?
Run the dependency tree command: 'inspect dependencies for pwweb/laravel-core'. 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-7fjp-g4m7-fx23",
  "modified" : "2021-04-12T20:05:57Z",
  "published" : "2021-04-13T15:12:26Z",
  "aliases" : [ ],
  "summary" : "User (Encrypted) Password Field Being Serialised",
  "details" : "### Impact\nLeaking Password field during serialisation of the User model. Password is in the encrypted form but if User model is requested in json or array form the value is printed.\n\n### Patches\nIssue has been patched in version 0.3.7-beta and onwards.\n\n### Workarounds\nAdd the 'password' field to the Users model file in the hidden array:\n\n```php\n\n    /**\n     * The attributes that should be hidden for arrays.\n     *\n     * @var array\n     */\n    protected $hidden = [\n        'remember_token',\n        'password',\n    ];\n```\n\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [pwweb/laravel-core](https://github.com/pwweb/laravel-core)\n* Email us at [security@pw-websolutions.com](mailto:security@pw-websolutions.com)",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "pwweb/laravel-core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.3.7-beta"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 0.3.6-beta"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/pwweb/laravel-core/security/advisories/GHSA-7fjp-g4m7-fx23"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-04-12T20:05:57Z",
    "nvd_published_at" : null
  }
}