Skip to content
OpenAdvisories
Low GHSA-g636-q5fc-4pr7

accounts: Hash account number using Salt

Published May 24, 2021 · Updated May 21, 2021 · Assigned by GHSA

Description

@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

EcosystemPackageAffectedFixedRecord
Go github.com/moov-io/customers < 0.5.0 0.5.0 GHSA-g636-q5fc-4pr7

References