mirror of
https://github.com/github/codeql.git
synced 2026-04-27 09:45:15 +02:00
C#: Delete inaccessible/dead data flow configuration in JsonWebTokenHandlerLib.
This commit is contained in:
@@ -102,21 +102,6 @@ private class TokenValidationResultIsValidCall extends PropertyRead {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Dataflow from the output of `Microsoft.IdentityModel.JsonWebTokens.JsonWebTokenHandler.ValidateToken` call to access the `IsValid` or `Exception` property
|
||||
*/
|
||||
private class FlowsToTokenValidationResultIsValidCall extends DataFlow::Configuration {
|
||||
FlowsToTokenValidationResultIsValidCall() { this = "FlowsToTokenValidationResultIsValidCall" }
|
||||
|
||||
override predicate isSource(DataFlow::Node source) {
|
||||
source.asExpr() instanceof JsonWebTokenHandlerValidateTokenCall
|
||||
}
|
||||
|
||||
override predicate isSink(DataFlow::Node sink) {
|
||||
exists(TokenValidationResultIsValidCall call | sink.asExpr() = call.getQualifier())
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* A security-sensitive property for `Microsoft.IdentityModel.Tokens.TokenValidationParameters`
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user