GHSA-c5vj-f36q-p9vg

Suggest an improvement
Source
https://github.com/advisories/GHSA-c5vj-f36q-p9vg
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/03/GHSA-c5vj-f36q-p9vg/GHSA-c5vj-f36q-p9vg.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-c5vj-f36q-p9vg
Aliases
Published
2023-03-13T20:51:07Z
Modified
2023-11-08T04:12:06.767774Z
Severity
  • 5.9 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
Summary
Password Shucking Vulnerability
Details

Impact

An improper implementation was found in the password storage process.

All hashed passwords stored in Shield v1.0.0-beta.3 or earlier are easier to crack than expected due to the vulnerability. Therefore, they should be removed as soon as possible.

If an attacker gets (1) the user's hashed password by Shield, and (2) the hashed password (SHA-384 hash without salt) from somewhere, the attacker may easily crack the user's password.

Patches

Upgrade to Shield v1.0.0-beta.4 or later.

After upgrading, all users’ hashed passwords should be updated (saved to the database). See https://github.com/codeigniter4/shield/blob/develop/UPGRADING.md for details.

Workarounds

None.

References

  • https://cheatsheetseries.owasp.org/cheatsheets/PasswordStorageCheat_Sheet.html#pre-hashing-passwords
  • https://blog.ircmaxell.com/2015/03/security-issue-combining-bcrypt-with.html
  • https://www.scottbrady91.com/authentication/beware-of-password-shucking

For more information

If you have any questions or comments about this advisory: * Open an issue or discussion in codeigniter4/shield * Email us at security@codeigniter.com

Database specific
{
    "nvd_published_at": "2023-03-13T18:15:00Z",
    "github_reviewed_at": "2023-03-13T20:51:07Z",
    "severity": "MODERATE",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-916"
    ]
}
References

Affected packages

Packagist / codeigniter4/shield

Package

Name
codeigniter4/shield
Purl
pkg:composer/codeigniter4/shield

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.0.0-beta.4

Affected versions

v1.*

v1.0.0-beta
v1.0.0-beta.2
v1.0.0-beta.3