AWS logo
Amazon QDetector LibrarySign in to Amazon Q
AWSbreadcrumb dividerDocumentationbreadcrumb dividerAmazon Qbreadcrumb dividerDetector Librarybreadcrumb dividerJavabreadcrumb dividerTagsFeedbackFeedback icon

Amazon Q

Detector Library

Java detectors (186/186)

Reflected cross site scriptingMandatory method not called after object creationProcess empty record list in Amazon KCLAmazon STS regional instead of global endpointAWS object presence checkPoor error handling java ruleIncorrect type conversion or castMissing AuthenticationMissing timeout check on CountDownLatch.awaitUnspecified default valueDevice Permission Usage.Check eagle handler and authn handler orderingDeserialization of untrusted objectPreserve thread interruption status ruleMissing check on the value returned by moveToFirst APIMissing timeout check on ExecutorService.awaitTerminationOverflow when deserializing relational database objectsCustom manual retries of AWS SDK callsMissing null check for cache response metadataInefficient usage of Transaction library from AWS LabsInefficient exception handlingInsecure connection using unencrypted protocolInsecure Usage Of CacheInsecure Cryptographic CipherUse of a deprecated methodError-prone AWS IAM policy creationUse of externally-controlled input to build connection stringInefficient Amazon S3 manual paginationMutually exclusive callBit shift checkingAWS Lambda client not reusedMissing check on the result of createNewFileSensitive data stored unencrypted due to partial encryptionApplication logging of sensitive object dataMissing AWS_SECURITY_TOKENMissing statement to record cause of InvocationTargetExceptionMisconfigured ConcurrencyInefficient polling of AWS resourceImproper InitializationUnexpected re-assignment of synchronized objectsXPath injectionTransitive auth ruleAWS client not reused in a Lambda functionDenial of service ruleHTTP Connection Not ClosedLong polling is not enabled in Amazon SQSXML ValidationInsecure temporary file or directoryUse of low-Level functionalityHTTP response splittingInput and output values become out of syncUse String To Store Aws Account IdServer-side request forgeryMissing Authorization for address idDo not catch and throw exceptionConcurrency deadlockCheck mutable property in handler classNot recommended aws credentials classesPath traversalOverride of reserved variable names in a Lambda functionMissing byte array length of JSON parserInsecure Trust ManagerUsage of an API that is not recommendedHardcoded credentialsWeak Initialization Vector (IV)Insecure JSON web token (JWT) parsingNot calling finalize causes skipped cleanup stepsUnchecked S3 object metadata content lengthFortify Process ControlUntrusted data in security decisionPermissive cors configuration ruleInsecure cookieResource leakXML External EntityAWS client credentialsAWS Region Handling in Java.Allow-listing pre-production service principals to productionWrapping Caught Invocation Target ExceptionBad parameters used with AWS API methodsMissing position check before getting substringLDAP injectionAvoid reset exception in Amazon S3Insecure hashingBackward compatibility breaks with error message parsingInefficient map entry iterationMissing S3 bucket owner conditionAWS DynamoDB getItem output is not null checkedInvalid public method parametersLog injectionSensitive information leakUsage of multiple date time pattern formatterZip StreamingSynchronous publication of AWS Lambda metricsXML External Entity Document Builder FactoryImproper use of classes that aren't thread-safeIncorrect null check before setting a valueAuthorization Bypass Through User-Controlled KeyCheck uncaught exceptionsInsufficient use of name in Amazon SQS queueMissing check on the value returned by ResultSet.nextInsecure TLS versionUnsanitized input is run as codeLogging of sensitive informationUse an enum to specify an AWS RegionImproperly formatted string argumentsImproper Neutralization of Input Used in a Command (Command Injection)throw inside finallyProper usage of Pattern matches.Untrusted AMI imagesInsecure SAML parser configurationCross-site request forgeryCase sensitive keys in S3 object user metadataMissing null check when retrieving the owner of an Amazon S3 objectTLS certificate verificationStack trace not included in re-thrown exceptionThread safety violationRegion specification missing from AWS client initializationInsufficient number of PBEKeySpec iterationsURL redirection to untrusted siteUse of externally-controlled input to select classes or codeMissing encryption of sensitive data in storageIgnored output of DynamoDBMapper operationsInvoking String comparison method with null StringNull pointer dereferenceCross-site scriptingUnauthenticated LDAP requestsUse of inefficient APIsLow maintainability with old Android featuresInefficient retrieval of first page of DynamoDB resultsAtomicity violationMissing handling of specifically-thrown exceptionsWeak obfuscation of web requestDynamo mapper has items ruleVarargs position errorClear text credentialsHttp handler orderingSession fixationComplicated DynamoDB query with expression attribute valuesPoor logging practice ruleSyntax error in fileCatching and not re-throwing or logging exceptionsMissing check when launching an Android activity with an implicit intentClient constructor deprecationInefficient use of stream sortingIncorrect File PermissionsArithmetic overflow or underflowSimplifiable codeLoose file permissionsPreferred DynamoDB GetKeys API not usedManual paginationIncorrect string equality operatorInefficient chain of AWS API callsOS command injectionInternationalizationCode cloneSQL injectionMissing check on method outputMissing paginationCoral server side request forgeryUntrusted data in http sessionGet records with limit ruleResources used by an Amazon S3 TransferManager are not releasedInsecure cryptographyMissing timezone of SimpleDateFormatHardcoded Active JDBC Credentials in JavaLow maintainability with low class cohesionJson object refactoring ruleOversynchronizationMissing release of resources ruleMissing authorizationInfinite loopBatch operations preferred over loopingInconsistent null checkApplication logging of sensitive dataObject Input Stream Insecure DeserializationWeak pseudorandom number generationInsecure CORS policyMissing handling of file deletion resultAmazon SQS message visibility changed without a status checkState machine execution ARN is not loggedClient-side KMS reencryptionUnlogged exceptions in a stack traceUse Stream::anyMatch instead of Stream::findFirst or Stream::findAnyUnterminated switch case blocksBatch request with unchecked failuresBuffer underflow prevention

Tags

a
# access-control# amazon-dynamodb# amazon-ec2# amazon-kinesis# amazon-s3# amazon-sqs# android# apigateway# authorization# availability# aws# aws-iam# aws-java-sdk# aws-kms# aws-lambda# aws-region# aws-sts
b
# batch-operations
c
# concurrency# configuration# consistency# cookies# cryptography
d
# data-integrity# data-protection
e
# efficiency# exception
i
# information-leak# injection# internationalization
l
# ldap# logging
m
# maintainability# matcher# matches
n
# networking# null-check
o
# owasp-top10
r
# race-condition# resource-leak
s
# secrets# security-context# sql# subprocess
t
# top25-cwes
u
# utlities
x
# xml