Skip to content

Commit 77eeabe

Browse files
committed
changed to address review
1 parent 3129f0f commit 77eeabe

File tree

12 files changed

+20
-20
lines changed

12 files changed

+20
-20
lines changed

csharp/ql/campaigns/Solorigate/src/ModifiedFnvFunctionDetection.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ where
2727
xor2.getAnOperand() = v.getAnAccess()
2828
)
2929
)
30-
select l, "This literal is used in an $@ after a FNV-like hash calculation with variable $@.",
30+
select l, "This literal is used in an $@ after an FNV-like hash calculation with variable $@.",
3131
additional_xor, "additional xor", v, v.toString()

csharp/ql/campaigns/Solorigate/src/NumberOfKnownMethodNamesAboveThreshold.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ where
2828
isSolorigateSuspiciousMethodName(m) and
2929
total > threshold
3030
select m,
31-
"This method " + m.getName() + " may be related to Solorigate. Total count = " + total +
32-
" is above the threshold " + threshold + "."
31+
"This method may be related to Solorigate. Total count = " + total + " is above the threshold " +
32+
threshold + "."

csharp/ql/src/Security Features/CWE-078/StoredCommandInjection.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ class StoredTaintTrackingConfiguration extends TaintTrackingConfiguration {
2525
from StoredTaintTrackingConfiguration c, DataFlow::PathNode source, DataFlow::PathNode sink
2626
where c.hasFlowPath(source, sink)
2727
select sink.getNode(), source, sink, "Command line depends on a $@.", source.getNode(),
28-
"stored user-provided value"
28+
"stored (potentially user-provided) value"

csharp/ql/src/Security Features/CWE-079/StoredXSS.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ where
3232
then explanation = " (" + sink.getNode().(Sink).explanation() + ")"
3333
else explanation = ""
3434
select sink.getNode(), source, sink, "HTML or JavaScript write" + explanation + " depends on a $@.",
35-
source.getNode(), "stored user-provided value"
35+
source.getNode(), "stored (potentially user-provided) value"

csharp/ql/src/Security Features/CWE-090/StoredLDAPInjection.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ class StoredTaintTrackingConfiguration extends TaintTrackingConfiguration {
2323
from StoredTaintTrackingConfiguration c, DataFlow::PathNode source, DataFlow::PathNode sink
2424
where c.hasFlowPath(source, sink)
2525
select sink.getNode(), source, sink, "This LDAP query depends on a $@.", source.getNode(),
26-
"stored user-provided value"
26+
"stored (potentially user-provided) value"

csharp/ql/src/Security Features/CWE-134/UncontrolledFormatString.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,5 @@ string getSourceType(DataFlow::Node node) {
3939

4040
from FormatStringConfiguration config, DataFlow::PathNode source, DataFlow::PathNode sink
4141
where config.hasFlowPath(source, sink)
42-
select sink.getNode(), source, sink, "Format string depends on a $@.", source.getNode(),
42+
select sink.getNode(), source, sink, "Format string depends on $@.", source.getNode(),
4343
("this" + getSourceType(source.getNode()))

csharp/ql/src/Security Features/CWE-643/StoredXPathInjection.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ class StoredTaintTrackingConfiguration extends XPathInjection::TaintTrackingConf
2323
from StoredTaintTrackingConfiguration c, DataFlow::PathNode source, DataFlow::PathNode sink
2424
where c.hasFlowPath(source, sink)
2525
select sink.getNode(), source, sink, "XPath expression depends on a $@.", source.getNode(),
26-
"stored user-provided value"
26+
"stored (potentially user-provided) value"

csharp/ql/test/query-tests/Security Features/CWE-078/StoredCommandInjection.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ nodes
55
| StoredCommandInjection.cs:22:54:22:80 | call to method GetString : String | semmle.label | call to method GetString : String |
66
subpaths
77
#select
8-
| StoredCommandInjection.cs:22:46:22:80 | ... + ... | StoredCommandInjection.cs:22:54:22:80 | call to method GetString : String | StoredCommandInjection.cs:22:46:22:80 | ... + ... | Command line depends on a $@. | StoredCommandInjection.cs:22:54:22:80 | call to method GetString | stored user-provided value |
8+
| StoredCommandInjection.cs:22:46:22:80 | ... + ... | StoredCommandInjection.cs:22:54:22:80 | call to method GetString : String | StoredCommandInjection.cs:22:46:22:80 | ... + ... | Command line depends on a $@. | StoredCommandInjection.cs:22:54:22:80 | call to method GetString | stored (potentially user-provided) value |

csharp/ql/test/query-tests/Security Features/CWE-079/StoredXSS/StoredXSS.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ nodes
55
| StoredXSS.cs:24:60:24:86 | call to method GetString : String | semmle.label | call to method GetString : String |
66
subpaths
77
#select
8-
| StoredXSS.cs:24:44:24:86 | ... + ... | StoredXSS.cs:24:60:24:86 | call to method GetString : String | StoredXSS.cs:24:44:24:86 | ... + ... | HTML or JavaScript write depends on a $@. | StoredXSS.cs:24:60:24:86 | call to method GetString | stored user-provided value |
8+
| StoredXSS.cs:24:44:24:86 | ... + ... | StoredXSS.cs:24:60:24:86 | call to method GetString : String | StoredXSS.cs:24:44:24:86 | ... + ... | HTML or JavaScript write depends on a $@. | StoredXSS.cs:24:60:24:86 | call to method GetString | stored (potentially user-provided) value |

csharp/ql/test/query-tests/Security Features/CWE-090/StoredLDAPInjection.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ nodes
55
| StoredLDAPInjection.cs:22:83:22:109 | call to method GetString : String | semmle.label | call to method GetString : String |
66
subpaths
77
#select
8-
| StoredLDAPInjection.cs:22:66:22:109 | ... + ... | StoredLDAPInjection.cs:22:83:22:109 | call to method GetString : String | StoredLDAPInjection.cs:22:66:22:109 | ... + ... | This LDAP query depends on a $@. | StoredLDAPInjection.cs:22:83:22:109 | call to method GetString | stored user-provided value |
8+
| StoredLDAPInjection.cs:22:66:22:109 | ... + ... | StoredLDAPInjection.cs:22:83:22:109 | call to method GetString : String | StoredLDAPInjection.cs:22:66:22:109 | ... + ... | This LDAP query depends on a $@. | StoredLDAPInjection.cs:22:83:22:109 | call to method GetString | stored (potentially user-provided) value |

0 commit comments

Comments
 (0)