@@ -61,13 +61,13 @@ private module HandlebarsTaintSteps {
6161 * the `FunctionNode` representing `function loudHelper`, and return its parameter `text`.
6262 */
6363 private DataFlow:: ParameterNode getRegisteredHelperParam (
64- string helperName , DataFlow:: FunctionNode helperFunction , int paramIndex
64+ string helperName , DataFlow:: FunctionNode func , int paramIndex
6565 ) {
6666 exists ( DataFlow:: CallNode registerHelperCall |
6767 registerHelperCall = any ( Handlebars:: Handlebars hb ) .getAMemberCall ( "registerHelper" ) and
6868 registerHelperCall .getArgument ( 0 ) .mayHaveStringValue ( helperName ) and
69- helperFunction = registerHelperCall .getArgument ( 1 ) .getAFunctionValue ( ) and
70- result = helperFunction .getParameter ( paramIndex )
69+ func = registerHelperCall .getArgument ( 1 ) .getAFunctionValue ( ) and
70+ result = func .getParameter ( paramIndex )
7171 )
7272 }
7373
@@ -132,15 +132,15 @@ private module HandlebarsTaintSteps {
132132 private predicate isHandlebarsArgStep ( DataFlow:: Node pred , DataFlow:: Node succ ) {
133133 exists (
134134 string helperName , DataFlow:: CallNode templatingCall , DataFlow:: CallNode compileCall ,
135- DataFlow:: FunctionNode helperFunction
135+ DataFlow:: FunctionNode func
136136 |
137137 templatingCall = compiledTemplate ( compileCall ) .getACall ( ) and
138138 exists ( string templateText , string paramName , int argIdx |
139139 compileCall .getArgument ( 0 ) .mayHaveStringValue ( templateText )
140140 |
141141 pred = templatingCall .getArgument ( 0 ) .getALocalSource ( ) .getAPropertyWrite ( paramName ) .getRhs ( ) and
142142 isTemplateHelperCallArg ( templateText , helperName , argIdx , paramName ) and
143- succ = getRegisteredHelperParam ( helperName , helperFunction , argIdx )
143+ succ = getRegisteredHelperParam ( helperName , func , argIdx )
144144 )
145145 )
146146 }
0 commit comments