Skip to content

Commit 4804a0a

Browse files
committed
Python: Minor refactor addressArg
1 parent 024a586 commit 4804a0a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

python/ql/src/Security/CVE-2018-1281/BindToAllInterfaces.ql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ DataFlow::Node vulnerableAddressTuple(string hostname) {
8585
*/
8686
API::Node socketInstance() { result = API::moduleImport("socket").getMember("socket").getReturn() }
8787

88-
from DataFlow::CallCfgNode bindCall, DataFlow::Node address, string hostname
88+
from DataFlow::CallCfgNode bindCall, DataFlow::Node addressArg, string hostname
8989
where
9090
bindCall = socketInstance().getMember("bind").getACall() and
91-
address = bindCall.getArg(0) and
92-
address = vulnerableAddressTuple(hostname)
91+
addressArg = bindCall.getArg(0) and
92+
addressArg = vulnerableAddressTuple(hostname)
9393
select bindCall.asExpr(), "'" + hostname + "' binds a socket to all interfaces."

0 commit comments

Comments
 (0)