Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(fix) keychain dumper misses entries with kSecAttrSynchronizable=true #448

Merged
merged 2 commits into from
Mar 30, 2021
Merged

Conversation

jpstotz
Copy link
Contributor

@jpstotz jpstotz commented Mar 29, 2021

In a practical test with an iOS app on iOS 14.4 I discovered that the keychain dumper does not dump all keychain entries.

In detail all keychain entries were missing that had been created using the option query[kSecAttrSynchronizable]=kCFBooleanTrue.

This behavior can be changed by adding query[kSecAttrSynchronizable]=kSecAttrSynchronizableAny to the keychain query. The present pull requests contains these changes so the keychain dumper can return all entries no matter if kSecAttrSynchronizable has been set to true or false (the latter is the default value).

Tested on iOS 14.4

Edit: The function for deleting all keychain entries was also ignoring entries with query[kSecAttrSynchronizable]=kCFBooleanTrue. I have added a commit that changes the empty()` method to also delete such entries.

@leonjza
Copy link
Member

leonjza commented Mar 30, 2021

Thank you! 🙌

@leonjza leonjza merged commit 8560d75 into sensepost:master Mar 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants