You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cpp/ql/src/Security/CWE/CWE-311/CleartextTransmission.ql
+61-56Lines changed: 61 additions & 56 deletions
Original file line number
Diff line number
Diff line change
@@ -33,31 +33,71 @@ class SensitiveNode extends DataFlow::Node {
33
33
}
34
34
}
35
35
36
-
/**
37
-
* A function call that sends or receives data over a network.
38
-
*
39
-
* note: functions such as `write` may be writing to a network source or a file. We could attempt to determine which, and sort results into `cpp/cleartext-transmission` and perhaps `cpp/cleartext-storage-file`. In practice it usually isn't very important which query reports a result as long as its reported exactly once. See `checkSocket` to narrow this down somewhat.
40
-
*/
41
-
abstractclassNetworkSendRecvextendsFunctionCall{
36
+
abstractclassSendRecvextendsFunction{
42
37
/**
43
38
* Gets the expression for the socket or similar object used for sending or
44
-
* receiving data (if any).
39
+
* receiving data through the function call `call` (if any).
45
40
*/
46
-
abstractExprgetSocketExpr();
41
+
abstractExprgetSocketExpr(Callcall);
47
42
48
43
/**
49
44
* Gets the expression for the buffer to be sent from / received into.
50
45
*/
51
-
abstractExprgetDataExpr();
46
+
abstractExprgetDataExpr(Callcall);
47
+
}
52
48
53
-
/**
54
-
* Holds if the socket used by this call could be a true network socket (or
55
-
* if no socket is specified). A constant value is likely to indicate standard
56
-
* input, standard output or a similar non-network socket.
* A function call that sends or receives data over a network.
91
+
*
92
+
* note: functions such as `write` may be writing to a network source or a file. We could attempt to determine which, and sort results into `cpp/cleartext-transmission` and perhaps `cpp/cleartext-storage-file`. In practice it usually isn't very important which query reports a result as long as its reported exactly once. See `checkSocket` to narrow this down somewhat.
0 commit comments