Sensitive information in source code
Description
The source code repository contains sensitive information such as usernames, passwords, email addresses and IP addresses, among others. Alternatively, while values may be password=123 o aws.secret_key=test, they reveal the bad practice of storing sensitive information in the repository with no encryption, and sooner or later they can be replaced for real sensitive values.
Impact
Get sensitive information or private secrets.
Recommendation
- Delete all hardcoded sensitive information. - Change all affected access credentials. - Remove sensitive information from git logs. - Load sensitive data from safe sources such as, key vault services, configuration files properly encrypted or administrative environment variables.
Threat
Anonymous attacker with access to the source-code from the Internet.
Expected Remediation Time
⏱️ 30 minutes.
Details
Why
When secret credentials are compromised, we always generate a vulnerability report either the credentials are mocks, or are functional only in specific scenarios such as local environments. The risk of this scenario is usually considered in the severity tab. For local environment credentials the risk is low but not zero.
Hence to solve this vulnerability we recommend to remove the credentials from the source code, change the compromised credentials and ideally remove the credentials from the git log. In some cases the last recommendation cannot be applied to avoid traceability issues. If that's the case, in addition to removing the credentials from the code, we require a customer confirmation that the credentials were changed to close the vulnerability.
Requirements
145 - Protect system cryptographic keys156 - Source code without sensitive information266 - Disable insecure functionalitiesRules
Yaml Env Sensitive Value ExposedTypescript Kony Hardcoded Encryption KeyJava Use Of Hardcoded PasswordProperties Exposed Credentials And TokensJavascript Hardcoded Key Material UsedJson Connection String With Password ExposedSwift Hardcoded Cryptographic KeyPhp Hardcoded Cryptographic KeyJson Exposed Api Key In ValueJava Csrf Handler Hardcoded SecretElixir Hardcoded Cryptographic KeyRust Hardcoded Jwt SecretConfig Files Hardcoded Secrets In ConfigsConfig Files Hardcoded Credentials In ConfigConfig Files Connection String With Password ExposedDocker Wget Password HardcodedTypescript Hardcoded Key Material UsedYaml Hardcoded Weak CredentialsDocker Env Sensitive Value ExposedPython Hardcoded Auth Header ValueJavascript Kony Hardcoded Encryption KeyJson Connection String Client Secret ExposedElixir Hardcoded Jwt SecretJson Exposed Password And Client IdsRuby Rails Master Key ExposedDatabricks TokenCustomer Io App Api KeyMistral Api KeyCloudflare User Api TokenShopify Api TokenGrafana TokenTwilio Api KeyOracle Jdbc PasswordJenkins Api TokenRailway Account Api TokenDeepseek Api KeyResend Api KeyAzure Devops Personal Access TokenAlibaba Access Key IdSsh Private KeyGcp Service Account KeyBrowserstack Access KeyAtlassian Api TokenDynatrace Api TokenDwolla Secret KeyBrowserstack Hub Url Access KeyWeights And Biases Api KeyCircleci Personal Api TokenSquare Access TokenTeamcity Access TokenSalesforce Refresh TokenMailgun Api TokenFastly Api TokenRedshift PasswordMailchimp Api KeyStripe Webhook Secret KeyJson Api KeyRails Master Secret KeyMailjet Secret KeyFlutterwave Secret KeyJina Ai Api KeyCodeclimate Test Reporter TokenCoinbase Api KeyPusher Shared SecretAlgolia Admin KeyElastic Api KeyTencent Access KeyAirtable PatDigitalocean Personal Access TokenJwt TokenSendgrid Api KeyCodeclimate Repo TokenOkta Api TokenAzure Iot Hub Connection StringPostmark Account Api TokenTwilio Api TokenCircleci Project Api TokenDeno Deploy Org Access TokenGroq Api KeyRabbitmq PasswordDiscord Webhook UrlRailway Project Api TokenDjango Secret KeyYandex Access TokenIntercom Api KeyKeycloak Shared SecretPackagecloud TokenCohere Api KeyLaravel Secret KeyPaystack Live Secret KeyCodeclimate Api TokenSlack TokenTelegram Api TokenPypi Upload TokenRingcentral Secret KeyOctopus Deploy Api KeySentry Api TokenLaunchdarkly Api KeyBeamer Api KeyMercado Pago Access TokenHuggingface Access TokenIbm Api KeyGocardless Api TokenLlama Cloud Api KeyK3s TokenPagarme Test Api KeyVercel Api TokenConfluent Secret KeyAws Access KeySlack Webhook UrlPem Private KeyAdafruit Api KeyNuget Api KeyXai Api KeyTwitter Api TokenCrates Io Api TokenGitlab Api TokenMaxmind License KeyInfura Api KeyDeno Deploy Personal Access TokenReplicate Api KeyStripe Secret KeyMariadb PasswordMandrill Api KeyContentful Personal Access TokenShodan Api KeySauce Labs Access KeyAzure Sas TokenBrave Search Api KeyDatadog Api KeyFly Io TokenCustomer Io Track Api KeyPutty Private KeyAws Cognito Secret KeyLangfuse Api KeyMapbox Api TokenFigma Personal Access TokenMailgun Api KeyAzure Communication Services Connection StringLinkedin Oauth2 Secret KeyStripe Test Secret KeyBird Api KeyTencent Secret KeyMysql PasswordPubnub Api KeyCloudflare Private KeyZoho Crm Api KeyPerplexity Api KeyTwitter Access TokenAzure Api KeyTravisci Access TokenPaystack Test Secret KeyPaypal Secret KeyFrameio Api TokenBuildkite Api TokenDroneci Access TokenDuo Auth Proxy Secret KeyLangchain Api KeyMongodb Connection StringCoveralls Personal Api TokenFirecrawl Api KeyPlanetscale Api TokenAiven Api KeyTwitch Secret KeyHashicorp TokenSumologic Access KeyDatabase Connection String Hardcoded PasswordYandex Api KeyComet Api KeyLinode Personal Access TokenAws Session TokenLinear Api TokenHubspot Api TokenNetlify Personal Access TokenSplunk Hec TokenSonar Api TokenAws Secret Access KeyTerraform Cloud TokenMicrosoft Webhook UrlHume Ai Api KeyNpm Access TokenBraintree Api KeyHume Ai Secret KeyDockerhub Access TokenLob Api KeyPagarme Live Api KeyAlibaba Access Key SecretPulumi Access TokenSalesforce Consumer Access KeyFacebook Access TokenAssemblyai Api KeyPinecone Api KeyRubygems Api TokenDuffel Api TokenGrafana Api KeySnyk Api TokenSendinblue Api KeyWebex Access TokenCursor Api KeyCloudinary Api KeyFtp PasswordGrafana Api TokenDify Api KeyDoppler TokenAnthropic Api KeyFireworks Ai Api KeyDeepai Api KeyOpenrouter Api KeyTwitter Secret KeyJfrog Api KeyProxmox Api TokenWise Personal Api TokenOvh Shared SecretGithub PatCloudflare Api KeyDuo Secret KeyAzure Event Hub Connection StringRazorpay Api KeyOpenai Api KeyWechat Secret KeyStability Ai Api KeyDeepgram Api KeyVonage Secret KeyCodecov Personal Access TokenZoom Secret KeyCloudflare Account Api TokenDotnet Hardcoded PasswordHarness Api KeyDropbox Access TokenPlivo Api Token1password Service Account TokenGoogle Oauth2 Secret KeyPubnub Access KeySupabase Api KeyScaleway Secret KeyLdap PasswordNylas Api KeyVirustotal Api KeyCodacy Project TokenSnowflake PasswordVultr Api KeyNotion Api TokenCloudflare Legacy Api TokenPostmark Api TokenHeroku Api KeyNvidia Api KeySsh PasswordCoveralls Config Repo TokenClarifai Api KeySendbird Access TokenPrefect Api KeyPostgresql Connection StringPagerduty Api TokenBrowserstack Yml Config Access KeyConfluent Api KeyNewrelic Api KeyNetlify Access TokenPortainer Api KeyPostman Api TokenElevenlabs Api KeyTwitter Api KeyRails Secret KeyPlaid Access TokenMessagebird Api KeyOracle PasswordLine Channel Access TokenGcp Api KeySegment Api KeyTavily Api KeyCodacy Api TokenTypeform Api TokenRedis PasswordJira Data Center Personal Access TokenTailscale Api KeyJira TokenCodecov Upload TokenSmtp PasswordShopify Shared SecretGitlab Personal Access TokenBitbucket PasswordKlaviyo Api KeyZendesk Api TokenCoveralls Repo Token