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

Amazon Q

Detector Library

C++ detectors (35/35)

Disabled HTML autoescapeWeak pseudorandom number generationMissing Default in SwitchUnsafe File ExtensionIncorrect Order Of setuid and setgidOut Of Bounds ReadOut Of Bounds WriteThread safety violationIncorrect Pointer SubtractionFile System AccessInsecure Buffer AccessIncorrect Use of SizeofIncorrect Pointer ScalingLoose File PermissionsSensitive information leakMissing AuthorizationReturn Stack AddressOS Command InjectionUse After FreeIncorrect Comparisonoff by one errorPath traversalInsecure temporary file or directoryInsecure CryptographyInsecure connection using unencrypted protocolUnchecked Null DereferenceSQL injectionMissing check on method outputImproper Restriction on Memory BufferMultiple LocksImproper Input ValidationNull Pointer DereferenceUse Of Redundant CodeImproper Certificate ValidationImproper Authentication

Insecure Cryptography High

Using insecure cryptographic algorithms or configurations introduces vulnerabilities in applications. This includes weak ciphers like RC4 or DES, ECB mode, no integrity checking, insufficient key sizes, and other known cryptographic weaknesses. Modern secure ciphers like AES-GCM and recommended key sizes should be used instead. Following cryptography best practices is essential to prevent confidentiality and integrity loss.

Detector ID
cpp/insecure-cryptography@v1.0
Category
Security
Common Weakness Enumeration (CWE) external icon
CWE-310CWE-326CWE-327
Tags
# cryptography# owasp-top10