Advisory

GHSA-7fjp-g4m7-fx23

Also known as: None

Summary

User (Encrypted) Password Field Being Serialised

Details

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:


    /**
     * 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:

Severity

Low Basis: The source's own band: LOW

Dates

Published
2021-04-13 15:12 UTC
Modified
2024-12-02 05:50 UTC

Affected packages and fixes

pwweb/laravel-core

Packagist · All systems

Affected

  • introduced 0, fixed 0.3.7-beta (ecosystem)

Fixed versions

0.3.7-beta

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences