mirror of
https://github.com/github/codeql.git
synced 2026-04-24 08:15:14 +02:00
Swift: Upgrade SecKeyCopyExternalRepresentation source to be considered a password / key rather than a miscellaneous credential.
This commit is contained in:
@@ -8,6 +8,6 @@ private import codeql.swift.dataflow.ExternalFlow
|
||||
|
||||
private class SensitiveSources extends SourceModelCsv {
|
||||
override predicate row(string row) {
|
||||
row = ";;false;SecKeyCopyExternalRepresentation(_:_:);;;ReturnValue;sensitive-credential"
|
||||
row = ";;false;SecKeyCopyExternalRepresentation(_:_:);;;ReturnValue;sensitive-password"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -175,4 +175,4 @@
|
||||
| testURL.swift:73:52:73:67 | call to get_secret_key() | label:get_secret_key, type:credential |
|
||||
| testURL.swift:75:53:75:69 | call to get_cert_string() | label:get_cert_string, type:credential |
|
||||
| testURL.swift:96:51:96:51 | certificate | label:certificate, type:credential |
|
||||
| testURL.swift:104:16:104:57 | call to SecKeyCopyExternalRepresentation(_:_:) | label:credential, type:credential |
|
||||
| testURL.swift:104:16:104:57 | call to SecKeyCopyExternalRepresentation(_:_:) | label:password, type:password |
|
||||
|
||||
Reference in New Issue
Block a user