AWS logo
Amazon QDetector LibrarySign in to Amazon Q
AWSbreadcrumb dividerDocumentationbreadcrumb dividerAmazon Qbreadcrumb dividerDetector Librarybreadcrumb dividerC++breadcrumb dividerLog injectionFeedbackFeedback 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

Log injection High

User-provided inputs must be sanitized before they are logged. An attacker can use unsanitized input to break a log's integrity, forge log entries, or bypass log monitors.

Detector ID
cpp/log-injection@v1.0
Category
Security
Common Weakness Enumeration (CWE) external icon
CWE-117
Tags
# injection# owasp-top10