GHSA-g636-q5fc-4pr7

    Dashboard / Vulnerabilities / GHSA-g636-q5fc-4pr7

    GHSA-g636-q5fc-4pr7

    Published: 24 May 2021Last Modified: 21 May 2021

    Summary: accounts: Hash account number using Salt

    Details: @alovak found that currently when we build hash of account number we do not "salt" it. Which makes it vulnerable to rainbow table attack. **What did you expect to see?** I expected salt (some random number from configuration) to be used in [hash.AccountNumber](https://github.com/moov-io/customers/blob/master/pkg/secrets/hash/account_number.go#L13) I would generate salt per tenant at least (maybe per organization).

    Affected packages

    Package

    Name: github.com/moov-io/customers

    Purl: pkg:golang/github.com/moov-io/customers

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0
    Fixed -0.5.0

    Affected versions

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GHSA-g636-q5fc-4pr7 | CVE-DB