Skip to content

Commit c5178de

Browse files
committed
Swift: Standardize on 'AdditionalFlowStep' as well.
1 parent d92ecbb commit c5178de

40 files changed

+82
-84
lines changed

swift/ql/lib/codeql/swift/security/CleartextLoggingExtensions.qll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ abstract class CleartextLoggingSink extends DataFlow::Node { }
1212
abstract class CleartextLoggingBarrier extends DataFlow::Node { }
1313

1414
/**
15-
* A unit class for adding additional taint steps.
15+
* A unit class for adding additional flow steps.
1616
*
17-
* Extend this class to add additional taint steps that should apply to paths related to
17+
* Extend this class to add additional flow steps that should apply to paths related to
1818
* cleartext logging of sensitive data vulnerabilities.
1919
*/
20-
class CleartextLoggingAdditionalTaintStep extends Unit {
20+
class CleartextLoggingAdditionalFlowStep extends Unit {
2121
/**
22-
* Holds if the step from `n1` to `n2` should be considered a taint
22+
* Holds if the step from `n1` to `n2` should be considered a flow
2323
* step for flows related to cleartext logging of sensitive data vulnerabilities.
2424
*/
2525
abstract predicate step(DataFlow::Node n1, DataFlow::Node n2);

swift/ql/lib/codeql/swift/security/CleartextLoggingQuery.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ module CleartextLoggingConfig implements DataFlow::ConfigSig {
2323
predicate isBarrierIn(DataFlow::Node node) { isSource(node) }
2424

2525
predicate isAdditionalFlowStep(DataFlow::Node n1, DataFlow::Node n2) {
26-
any(CleartextLoggingAdditionalTaintStep s).step(n1, n2)
26+
any(CleartextLoggingAdditionalFlowStep s).step(n1, n2)
2727
}
2828
}
2929

swift/ql/lib/codeql/swift/security/CleartextStorageDatabaseExtensions.qll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ abstract class CleartextStorageDatabaseSink extends DataFlow::Node { }
2020
abstract class CleartextStorageDatabaseBarrier extends DataFlow::Node { }
2121

2222
/**
23-
* A unit class for adding additional taint steps.
23+
* A unit class for adding additional flow steps.
2424
*/
25-
class CleartextStorageDatabaseAdditionalTaintStep extends Unit {
25+
class CleartextStorageDatabaseAdditionalFlowStep extends Unit {
2626
/**
27-
* Holds if the step from `node1` to `node2` should be considered a taint
27+
* Holds if the step from `node1` to `node2` should be considered a flow
2828
* step for paths related to cleartext database storage vulnerabilities.
2929
*/
3030
abstract predicate step(DataFlow::Node nodeFrom, DataFlow::Node nodeTo);
@@ -123,7 +123,7 @@ private class CleartextStorageDatabaseEncryptionBarrier extends CleartextStorage
123123
/**
124124
* An additional taint step for cleartext database storage vulnerabilities.
125125
*/
126-
private class CleartextStorageDatabaseArrayAdditionalTaintStep extends CleartextStorageDatabaseAdditionalTaintStep
126+
private class CleartextStorageDatabaseArrayAdditionalFlowStep extends CleartextStorageDatabaseAdditionalFlowStep
127127
{
128128
override predicate step(DataFlow::Node nodeFrom, DataFlow::Node nodeTo) {
129129
// needed until we have proper content flow through arrays.

swift/ql/lib/codeql/swift/security/CleartextStorageDatabaseQuery.qll

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,10 @@ module CleartextStorageDatabaseConfig implements DataFlow::ConfigSig {
1818

1919
predicate isSink(DataFlow::Node node) { node instanceof CleartextStorageDatabaseSink }
2020

21-
predicate isBarrier(DataFlow::Node barrier) {
22-
barrier instanceof CleartextStorageDatabaseBarrier
23-
}
21+
predicate isBarrier(DataFlow::Node barrier) { barrier instanceof CleartextStorageDatabaseBarrier }
2422

2523
predicate isAdditionalFlowStep(DataFlow::Node nodeFrom, DataFlow::Node nodeTo) {
26-
any(CleartextStorageDatabaseAdditionalTaintStep s).step(nodeFrom, nodeTo)
24+
any(CleartextStorageDatabaseAdditionalFlowStep s).step(nodeFrom, nodeTo)
2725
}
2826

2927
predicate isBarrierIn(DataFlow::Node node) {

swift/ql/lib/codeql/swift/security/CleartextStoragePreferencesExtensions.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ abstract class CleartextStoragePreferencesSink extends DataFlow::Node {
2323
abstract class CleartextStoragePreferencesBarrier extends DataFlow::Node { }
2424

2525
/**
26-
* A unit class for adding additional taint steps.
26+
* A unit class for adding additional flow steps.
2727
*/
28-
class CleartextStoragePreferencesAdditionalTaintStep extends Unit {
28+
class CleartextStoragePreferencesAdditionalFlowStep extends Unit {
2929
/**
30-
* Holds if the step from `node1` to `node2` should be considered a taint
30+
* Holds if the step from `node1` to `node2` should be considered a flow
3131
* step for paths related to cleartext preferences storage vulnerabilities.
3232
*/
3333
abstract predicate step(DataFlow::Node nodeFrom, DataFlow::Node nodeTo);

swift/ql/lib/codeql/swift/security/CleartextStoragePreferencesQuery.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ module CleartextStoragePreferencesConfig implements DataFlow::ConfigSig {
2323
}
2424

2525
predicate isAdditionalFlowStep(DataFlow::Node nodeFrom, DataFlow::Node nodeTo) {
26-
any(CleartextStoragePreferencesAdditionalTaintStep s).step(nodeFrom, nodeTo)
26+
any(CleartextStoragePreferencesAdditionalFlowStep s).step(nodeFrom, nodeTo)
2727
}
2828

2929
predicate isBarrierIn(DataFlow::Node node) {

swift/ql/lib/codeql/swift/security/CleartextTransmissionExtensions.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ abstract class CleartextTransmissionSink extends DataFlow::Node { }
2020
abstract class CleartextTransmissionBarrier extends DataFlow::Node { }
2121

2222
/**
23-
* A unit class for adding additional taint steps.
23+
* A unit class for adding additional flow steps.
2424
*/
25-
class CleartextTransmissionAdditionalTaintStep extends Unit {
25+
class CleartextTransmissionAdditionalFlowStep extends Unit {
2626
/**
27-
* Holds if the step from `node1` to `node2` should be considered a taint
27+
* Holds if the step from `node1` to `node2` should be considered a flow
2828
* step for paths related to cleartext transmission vulnerabilities.
2929
*/
3030
abstract predicate step(DataFlow::Node nodeFrom, DataFlow::Node nodeTo);

swift/ql/lib/codeql/swift/security/CleartextTransmissionQuery.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module CleartextTransmissionConfig implements DataFlow::ConfigSig {
2121
predicate isBarrier(DataFlow::Node barrier) { barrier instanceof CleartextTransmissionBarrier }
2222

2323
predicate isAdditionalFlowStep(DataFlow::Node nodeFrom, DataFlow::Node nodeTo) {
24-
any(CleartextTransmissionAdditionalTaintStep s).step(nodeFrom, nodeTo)
24+
any(CleartextTransmissionAdditionalFlowStep s).step(nodeFrom, nodeTo)
2525
}
2626

2727
predicate isBarrierIn(DataFlow::Node node) {

swift/ql/lib/codeql/swift/security/ConstantPasswordExtensions.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ abstract class ConstantPasswordSink extends DataFlow::Node { }
1919
abstract class ConstantPasswordBarrier extends DataFlow::Node { }
2020

2121
/**
22-
* A unit class for adding additional taint steps.
22+
* A unit class for adding additional flow steps.
2323
*/
24-
class ConstantPasswordAdditionalTaintStep extends Unit {
24+
class ConstantPasswordAdditionalFlowStep extends Unit {
2525
/**
26-
* Holds if the step from `node1` to `node2` should be considered a taint
26+
* Holds if the step from `node1` to `node2` should be considered a flow
2727
* step for paths related to constant password vulnerabilities.
2828
*/
2929
abstract predicate step(DataFlow::Node nodeFrom, DataFlow::Node nodeTo);

swift/ql/lib/codeql/swift/security/ConstantPasswordQuery.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ module ConstantPasswordConfig implements DataFlow::ConfigSig {
3131
predicate isBarrier(DataFlow::Node node) { node instanceof ConstantPasswordBarrier }
3232

3333
predicate isAdditionalFlowStep(DataFlow::Node nodeFrom, DataFlow::Node nodeTo) {
34-
any(ConstantPasswordAdditionalTaintStep s).step(nodeFrom, nodeTo)
34+
any(ConstantPasswordAdditionalFlowStep s).step(nodeFrom, nodeTo)
3535
}
3636
}
3737

0 commit comments

Comments
 (0)