@@ -32,7 +32,7 @@ class CleartextStorageDatabaseAdditionalTaintStep extends Unit {
32
32
/**
33
33
* A `DataFlow::Node` that is an expression stored with the Core Data library.
34
34
*/
35
- class CoreDataStore extends CleartextStorageDatabaseSink {
35
+ private class CoreDataStore extends CleartextStorageDatabaseSink {
36
36
CoreDataStore ( ) {
37
37
// values written into Core Data objects through `set*Value` methods are a sink.
38
38
exists ( CallExpr call |
@@ -60,7 +60,7 @@ class CoreDataStore extends CleartextStorageDatabaseSink {
60
60
* A `DataFlow::Node` that is an expression stored with the Realm database
61
61
* library.
62
62
*/
63
- class RealmStore extends CleartextStorageDatabaseSink instanceof DataFlow:: PostUpdateNode {
63
+ private class RealmStore extends CleartextStorageDatabaseSink instanceof DataFlow:: PostUpdateNode {
64
64
RealmStore ( ) {
65
65
// any write into a class derived from `RealmSwiftObject` is a sink. For
66
66
// example in `realmObj.data = sensitive` the post-update node corresponding
@@ -77,7 +77,7 @@ class RealmStore extends CleartextStorageDatabaseSink instanceof DataFlow::PostU
77
77
/**
78
78
* A `DataFlow::Node` that is an expression stored with the GRDB library.
79
79
*/
80
- class GrdbStore extends CleartextStorageDatabaseSink {
80
+ private class GrdbStore extends CleartextStorageDatabaseSink {
81
81
GrdbStore ( ) {
82
82
exists ( CallExpr call , MethodDecl method |
83
83
call .getStaticTarget ( ) = method and
@@ -132,7 +132,7 @@ class GrdbStore extends CleartextStorageDatabaseSink {
132
132
/**
133
133
* An encryption sanitizer for cleartext database storage vulnerabilities.
134
134
*/
135
- class CleartextStorageDatabaseEncryptionSanitizer extends CleartextStorageDatabaseSanitizer {
135
+ private class CleartextStorageDatabaseEncryptionSanitizer extends CleartextStorageDatabaseSanitizer {
136
136
CleartextStorageDatabaseEncryptionSanitizer ( ) {
137
137
this .asExpr ( ) instanceof EncryptedExpr
138
138
}
@@ -142,7 +142,7 @@ class CleartextStorageDatabaseEncryptionSanitizer extends CleartextStorageDataba
142
142
* An additional taint step for cleartext database storage vulnerabilities.
143
143
* Needed until we have proper content flow through arrays.
144
144
*/
145
- class CleartextStorageDatabaseArrayAdditionalTaintStep extends CleartextStorageDatabaseAdditionalTaintStep {
145
+ private class CleartextStorageDatabaseArrayAdditionalTaintStep extends CleartextStorageDatabaseAdditionalTaintStep {
146
146
override predicate step ( DataFlow:: Node nodeFrom , DataFlow:: Node nodeTo ) {
147
147
exists ( ArrayExpr arr |
148
148
nodeFrom .asExpr ( ) = arr .getAnElement ( ) and
0 commit comments