@@ -55,15 +55,15 @@ class ExternalAPIDataNode extends DataFlow::Node {
5555 not call .getTarget ( ) .fromSource ( ) and
5656 // Not a call to a method which is overridden in source
5757 not exists ( Virtualizable m |
58- m .overridesOrImplementsOrEquals ( call .getTarget ( ) .getSourceDeclaration ( ) ) and
58+ m .overridesOrImplementsOrEquals ( call .getTarget ( ) .getUnboundDeclaration ( ) ) and
5959 m .fromSource ( )
6060 ) and
6161 // Not a call to a known safe external API
62- not call .getTarget ( ) .getSourceDeclaration ( ) instanceof SafeExternalAPICallable
62+ not call .getTarget ( ) .getUnboundDeclaration ( ) instanceof SafeExternalAPICallable
6363 }
6464
6565 /** Gets the called API callable. */
66- Callable getCallable ( ) { result = call .getTarget ( ) .getSourceDeclaration ( ) }
66+ Callable getCallable ( ) { result = call .getTarget ( ) .getUnboundDeclaration ( ) }
6767
6868 /** Gets the index which is passed untrusted data (where -1 indicates the qualifier). */
6969 int getIndex ( ) { result = i }
@@ -94,7 +94,7 @@ class UntrustedExternalAPIDataNode extends ExternalAPIDataNode {
9494private newtype TExternalAPI =
9595 TExternalAPIParameter ( Callable m , int index ) {
9696 exists ( UntrustedExternalAPIDataNode n |
97- m = n .getCallable ( ) .getSourceDeclaration ( ) and
97+ m = n .getCallable ( ) .getUnboundDeclaration ( ) and
9898 index = n .getIndex ( )
9999 )
100100 }
@@ -103,7 +103,7 @@ private newtype TExternalAPI =
103103class ExternalAPIUsedWithUntrustedData extends TExternalAPI {
104104 /** Gets a possibly untrusted use of this external API. */
105105 UntrustedExternalAPIDataNode getUntrustedDataNode ( ) {
106- this = TExternalAPIParameter ( result .getCallable ( ) .getSourceDeclaration ( ) , result .getIndex ( ) )
106+ this = TExternalAPIParameter ( result .getCallable ( ) .getUnboundDeclaration ( ) , result .getIndex ( ) )
107107 }
108108
109109 /** Gets the number of untrusted sources used with this external API. */
0 commit comments