mirror of
https://github.com/github/codeql.git
synced 2025-12-20 10:46:30 +01:00
Correct string source
This commit is contained in:
@@ -77,7 +77,7 @@ abstract class JwtTokenSink extends DataFlow::Node { }
|
||||
* A hardcoded string literal as a source for JWT token signing vulnerabilities.
|
||||
*/
|
||||
class HardcodedKeyStringSource extends JwtKeySource {
|
||||
HardcodedKeyStringSource() { this.asExpr() instanceof CompileTimeConstantExpr }
|
||||
HardcodedKeyStringSource() { exists(this.asExpr().(CompileTimeConstantExpr).getStringValue()) }
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user