mirror of
https://github.com/github/codeql.git
synced 2026-04-27 09:45:15 +02:00
Java: Add JMS sink to java/unsafe-deserialization
This commit is contained in:
@@ -224,6 +224,10 @@ predicate unsafeDeserialization(MethodCall ma, Expr sink) {
|
||||
m instanceof GsonDeserializeMethod and
|
||||
sink = ma.getArgument(0) and
|
||||
UnsafeTypeFlow::flowToExpr(ma.getArgument(1))
|
||||
or
|
||||
m.getASourceOverriddenMethod*()
|
||||
.hasQualifiedName(["javax", "jakarta"] + ".jms", "ObjectMessage", "getObject") and
|
||||
sink = ma.getQualifier().getUnderlyingExpr()
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user