GHSA-g636-q5fc-4pr7:
accounts: Hash account number using Salt
N/A
CVSS Score
Basic Information
CVE ID
-
GHSA ID
EPSS Score
-
CWE
-
Published
5/24/2021
Updated
1/9/2023
KEV Status
No
Technology
Go
Technical Details
CVSS Vector
-
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
github.com/moov-io/customers | go | < 0.5.0 | 0.5.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from unsalted hashing of account numbers. The key evidence is the removal of hash.AccountNumber
function which performed raw SHA-256 hashing, and its replacement with hash.SHA256Hash
that includes salt. The CreateAccountRequest.Disfigure
method's modification to use the new salted hash (visible in router.go
changes) further confirms the vulnerability was in the original hash.AccountNumber
calls.