File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
javascript/ql/src/semmle/javascript/frameworks Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -263,13 +263,13 @@ module ClientRequest {
263263 /** An expression that is used as a credential in a request. */
264264 private class AuthorizationHeader extends CredentialsExpr {
265265 AuthorizationHeader ( ) {
266- exists ( DataFlow:: PropWrite write | write .getPropertyName ( ) = "Authorization" |
266+ exists ( DataFlow:: PropWrite write | write .getPropertyName ( ) . regexpMatch ( "(?i)authorization" ) |
267267 this = write .getRhs ( ) .asExpr ( )
268268 )
269269 or
270270 exists ( DataFlow:: MethodCallNode call | call .getMethodName ( ) = [ "append" , "set" ] |
271271 call .getNumArgument ( ) = 2 and
272- call .getArgument ( 0 ) .mayHaveStringValue ( "Authorization ") and
272+ call .getArgument ( 0 ) .getStringValue ( ) . regexpMatch ( "(?i)authorization ") and
273273 this = call .getArgument ( 1 ) .asExpr ( )
274274 )
275275 }
You can’t perform that action at this time.
0 commit comments