@@ -8,18 +8,15 @@ private import codeql.swift.security.SensitiveExprs
88/** A data flow sink for cleartext logging of sensitive data vulnerabilities. */
99abstract class CleartextLoggingSink extends DataFlow:: Node { }
1010
11- /** A sanitizer for cleartext logging of sensitive data vulnerabilities. */
12- abstract class CleartextLoggingSanitizer extends DataFlow:: Node { }
11+ /** A barrier for cleartext logging of sensitive data vulnerabilities. */
12+ abstract class CleartextLoggingBarrier extends DataFlow:: Node { }
1313
1414/**
15- * A unit class for adding additional taint steps.
16- *
17- * Extend this class to add additional taint steps that should apply to paths related to
18- * cleartext logging of sensitive data vulnerabilities.
15+ * A unit class for adding additional flow steps.
1916 */
20- class CleartextLoggingAdditionalTaintStep extends Unit {
17+ class CleartextLoggingAdditionalFlowStep extends Unit {
2118 /**
22- * Holds if the step from `n1` to `n2` should be considered a taint
19+ * Holds if the step from `n1` to `n2` should be considered a flow
2320 * step for flows related to cleartext logging of sensitive data vulnerabilities.
2421 */
2522 abstract predicate step ( DataFlow:: Node n1 , DataFlow:: Node n2 ) ;
@@ -33,12 +30,12 @@ private class DefaultCleartextLoggingSink extends CleartextLoggingSink {
3330}
3431
3532/**
36- * A sanitizer for `OSLogMessage`s configured with the appropriate privacy option.
33+ * A barrier for `OSLogMessage`s configured with the appropriate privacy option.
3734 * Numeric and boolean arguments aren't redacted unless the `private` or `sensitive` options are used.
3835 * Arguments of other types are always redacted unless the `public` option is used.
3936 */
40- private class OsLogPrivacyCleartextLoggingSanitizer extends CleartextLoggingSanitizer {
41- OsLogPrivacyCleartextLoggingSanitizer ( ) {
37+ private class OsLogPrivacyCleartextLoggingBarrier extends CleartextLoggingBarrier {
38+ OsLogPrivacyCleartextLoggingBarrier ( ) {
4239 exists ( CallExpr c , AutoClosureExpr e |
4340 c .getStaticTarget ( ) .getName ( ) .matches ( "appendInterpolation(_:%privacy:%)" ) and
4441 c .getArgument ( 0 ) .getExpr ( ) = e and
0 commit comments