# GHSA-g636-q5fc-4pr7: accounts: Hash account number using Salt

- Severity: Low (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2021-05-24T17:00:27.000Z
- Modified: 2021-05-21T22:11:53.000Z

## 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).

(As written by GitHub Advisory Database.)

## Affected

- github.com/moov-io/customers (Go): before 0.5.0

## References

- <https://github.com/moov-io/customers/security/advisories/GHSA-g636-q5fc-4pr7> (web)

## Sources

- GitHub Advisory Database: [GHSA-g636-q5fc-4pr7](https://github.com/advisories/GHSA-g636-q5fc-4pr7), CC-BY-4.0, modified 2021-05-21

---

Page: https://cve.day/GHSA-g636-q5fc-4pr7 · Whole record: https://cve.day/GHSA-g636-q5fc-4pr7.json · Rebuilt by cve.day 2026-11-25T22:56:21.468Z
