{"id":"GHSA-g636-q5fc-4pr7","aliases":["GHSA-g636-q5fc-4pr7"],"related":[],"kind":"vulnerability","state":"published","title":"accounts: Hash account number using Salt","summary":"@alovak found that currently when we build hash of account number we do not \"salt\" it. Which makes it vulnerable to rainbow table attack.\n\n**What did you expect to see?**\nI 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)\n\nI would generate salt per tenant at least (maybe per organization).","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"@alovak found that currently when we build hash of account number we do not \"salt\" it. Which makes it vulnerable to rainbow table attack.\n\n**What did you expect to see?**\nI 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)\n\nI would generate salt per tenant at least (maybe per organization).","format":"markdown","source":"ghsa"}],"published":"2021-05-24T17:00:27.000Z","modified":"2021-05-21T22:11:53.000Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"LOW"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"LOW"}],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.5.0"}],"ecosystem":"Go","package":"github.com/moov-io/customers","purl":"pkg:golang/github.com/moov-io/customers","source":"ghsa"}],"references":[{"url":"https://github.com/moov-io/customers/security/advisories/GHSA-g636-q5fc-4pr7","tags":["web"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-g636-q5fc-4pr7","url":"https://github.com/advisories/GHSA-g636-q5fc-4pr7","licence":"CC-BY-4.0","modified":"2021-05-21T22:11:53.000Z"}],"updatedAt":"2026-11-25T22:56:21.468Z"}