AWS logo
Amazon QDetector LibrarySign in to Amazon Q
AWSbreadcrumb dividerDocumentationbreadcrumb dividerAmazon Qbreadcrumb dividerDetector Librarybreadcrumb dividerC++breadcrumb dividerHardcoded credentialsFeedbackFeedback icon

Amazon Q

Detector Library

C++ detectors (43/43)

Disabled HTML autoescapeWeak pseudorandom number generationMissing Default in SwitchHardcoded credentialsUnsafe File ExtensionUse Of Incorrect OperatorIncorrect Order Of setuid and setgidOut Of Bounds ReadCode InjectionOut Of Bounds WriteThread safety violationIncorrect Pointer SubtractionMismatched memory management routines.File System AccessInsecure Buffer AccessIncorrect Use of SizeofIncorrect Pointer ScalingLoose File PermissionsSensitive information leakMissing AuthorizationReturn Stack AddressOS Command InjectionUse After FreeIncorrect ComparisonCross-Site Request Forgery (CSRF)off by one errorNumeric Truncation ErrorPath traversalInsecure temporary file or directoryInsecure CryptographyInsecure connection using unencrypted protocolUnchecked Null DereferenceSQL injectionLog injectionMissing check on method outputImproper Restriction on Memory BufferIncorrect Conversion Of Numeric TypesMultiple LocksImproper Input ValidationNull Pointer DereferenceImproper Certificate ValidationCross Site ScriptingImproper Authentication

Hardcoded credentials Critical

Hardcoded credentials can be intercepted by malicious actors. Even after removing them from the code they may still pose a risk because an attacker might have recorded them to use them at a later point in time.

Detector ID
cpp/hardcoded-credentials@v1.0
Category
Security
Common Weakness Enumeration (CWE) external icon
CWE-798
Tags
# secrets# owasp-top10# top25-cwes