AWS logo
Amazon QDetector LibrarySign in to Amazon Q
AWSbreadcrumb dividerDocumentationbreadcrumb dividerAmazon Qbreadcrumb dividerDetector Librarybreadcrumb dividerC++breadcrumb dividerSeveritybreadcrumb dividerSeverity CriticalFeedbackFeedback icon

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

Critical

Showing all detectors for the C++ language with critical severity.

Unsafe File Extension

Unsafe file extensions like .exe or .vbs can execute code without consent.

Incorrect Order Of setuid and setgid

if set(e)gid() is called after set(e)uid(), it can regain elevated group privileges.

Incorrect Pointer Subtraction

Pointer subtraction allows unintended behavior.

Incorrect Use of Sizeof

Use of sizeof on a malloced pointer type is incorrect.

Use After Free

Using memory after it has been freed can lead to unexpected behavior or exploitation.