AWS logo
Amazon QDetector LibrarySign in to Amazon Q
AWSbreadcrumb dividerDocumentationbreadcrumb dividerAmazon Qbreadcrumb dividerDetector Librarybreadcrumb dividerCbreadcrumb dividerIncorrect Format SpecifierFeedbackFeedback icon

Q

Detector Library

C detectors (34/34)

Logging of sensitive informationInsecure Use Of ChrootDeadlock And Lock InconsistencyUnsafe File ExtensionOS command injectionIncorrect Use Of FreeUse Of Uninitialized VariableInsecure Use strcat fnSQL injectionBitwise Operator On Signed OperandInsecure use gets fnRandom fd exhaustionRedundant Free UsageInsecure Use MemsetDivide By Zero.Return Stack AddressUnchecked Return ValueIncorrect Format SpecifierUnhandled Expression ResultPath traversalImproper Input ValidationOut Of Bounds ReadInteger OverflowInsecure use strtok functionImproper size of a memory bufferincomplete-cleanupNull pointer dereferenceInsecure Temporary File Or DirectoryInsecure Buffer AccessIncorrect Use Ato FnLoose File PermissionsExposure of Sensitive InformationOut-of-bounds WriteString Equality

Incorrect Format Specifier High

We observed missing or incorrect format specifier being passed to formatted I/O function. Using incorrect formats or allowing attackers to control the format specifier enables exploitation through formatted I/O functions and can also lead to buffer overflows, denial of service, or data representation problems.

Detector ID
c/incorrect-format-specifier@v1.0
Category
Security
Common Weakness Enumeration (CWE) external icon
CWE-134CWE-787
Tags
-