A SmartyStreets credential lets a script or service call Smarty’s address verification APIs under your account. Smarty, formerly known as SmartyStreets, checks, standardizes and geocodes postal addresses. The credentials are billed by lookup, so a leaked one lets someone spend your allowance and can make your checkout or sign-up forms fail. Some of Smarty’s credentials are meant for browsers and are designed to be public, while the server-side pair must stay private. Rotate the leaked credential first, then check the lookups that followed.
Check your GitHub account for leaked secrets — free
- Provider
- SmartyStreets
- Severity
- Medium
- Impact
- SaaS account access and billing
- Checked live by LeakWatch
- No
What a SmartyStreets API Key looks like
Server-side Smarty credentials have two parts, an auth ID and an auth token, and the auth token is the secret. The rule in LeakWatch looks for a value of 20 letters and digits, and only reports it when the word smartystreets appears within a short distance before it. A masked form of the layout:
smartystreets … XXXX…XXXX value shape near the vendor name (masked)
Smarty’s documentation says the auth ID is safe to show in some contexts, while the auth token must remain private. Browser-side credentials are a separate pair meant for public pages. Because the value has no prefix, the vendor name is what identifies it, and the surrounding text usually shows whether it is the server-side token or a browser key. Check which one a value is before you decide how urgent the response is.
How SmartyStreets API Keys get leaked
- Server scripts in repositories. A batch job that cleans a customer list and carries the auth token in its code, pushed to a repository.
- Front-end code. A server-side token placed in a page’s script, which exposes it to every visitor. Only the browser credential should appear there.
- Environment files. A
.envfile committed by accident, or copied into a project template. - Query strings in logs. The auth ID and token are sent as query parameters, so they are recorded by web servers, proxies and analytics tools.
- Support requests. A credential pasted into a ticket when a lookup returned an error.
What to do in the first hour
- Rotate the credential. Sign in to your Smarty account and open the account settings where the API credentials are listed. Create or regenerate the server-side credential, then deploy the new value to your services.
- Move lookups to the server. If a browser made calls with the server-side token, move them to your backend. The browser should use only the browser-side credential, which is designed to be public.
- Check lookups. Review the lookup counts for the period since the exposure. Look for spikes, for lookups from unfamiliar sources, and for activity at unusual hours.
- Check the allowance. Confirm how many lookups remain on the plan, and whether overage is billed. Contact Smarty support if the usage cannot be explained.
- Test your forms. Make sure checkout and sign-up flows still verify addresses with the new credential, since a broken integration will be noticed by your customers first.
- Check the rest of the file. Revoke other credentials kept with the token, such as shipping or mailing service keys used by the same pipeline.
- Clean the repository. Remove the value from current files, add the configuration to
.gitignore, and rewrite history if the repository was public. See I accidentally pushed an API key to GitHub for the full order.
Not sure what else leaked from the same repository? Run a free scan.
Revoke it at SmartyStreets
Smarty’s documentation describes server-side and browser-side credentials, and the server-side pair is the one that must be protected. Sources we reviewed said the credentials are listed in the account under a section for API keys, but we did not find a page that explains how to regenerate the auth token. Sign in to your account, look for the credential list, and check whether the server-side token can be regenerated or whether you need to create a new credential set. If you cannot find the option, contact Smarty support and ask them to rotate it. Update every service that uses the old token before you remove it, so that address checks do not fail in the middle of the change.
How LeakWatch detects it
The rule is called “SmartyStreets API Key”. It looks for the word smartystreets, followed within about 40 characters by a value of exactly 20 letters or digits, with word boundaries around the value. The match is not case-sensitive. The severity is medium, with the SaaS impact class, because the credential spends lookups and does not open customer records. This type is not checked live: LeakWatch does not send the value to Smarty, so a finding means a matching value sat near the name, not that the credential still works.
LeakWatch detects this format but does not check it live: it can tell you the key is exposed, not whether it still works. Assume it does until you have revoked it.
FAQ
Is the browser-side credential also a secret?
No. The browser credential is designed to appear in public pages, and it is restricted by the hostnames it is allowed to run from. The server-side token is the one that needs protection.
Can a leaked token expose the addresses I checked?
The token itself does not reveal addresses, but the lookups it runs can include addresses someone else sends. Review the requests if you can, and treat the token as the means to spend your allowance.
How should I store the server-side token?
In your secret store or the environment of the process that performs lookups, and never in front-end code or in a query string that will be logged.