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

Fixed ios keychain dump command to correctly return keychain data #715

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

David-de-Villiers
Copy link

The ios keychain dump command currently does not return keychain items as expected. This problem arises because the concatenation and filtering operation on the keyChainData array at line 114 in agent/src/ios/keychain.ts generates a new array without updating the keyChainData reference. As a result, the enumerateKeychain function always returns an empty IKeychainData[] object.

This PR addresses the problem by ensuring that the concatenated and filtered data is directly assigned to the keyChainData array. With this change, the function now returns the correct keychain query results.

Special thanks to MWR CyberSec for providing the time and opportunity to investigate and implement this fix.

@IPMegladon
Copy link
Collaborator

IPMegladon commented Jan 16, 2025

Heya thanks for the PR, this one was my mistake when we did the version bumping. I have already added this fix in #698:
https://github.com/sensepost/objection/pull/698/files#diff-20d1a54d3c1f26083bfbfeab80c9adcd8199a39cff88f072d6a48106ed760fe8

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.

2 participants