Skip to content

[bug][iOS] Crash after injecting into a specific system process #628

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

Open
gam3-over opened this issue Aug 4, 2023 · 0 comments
Open

[bug][iOS] Crash after injecting into a specific system process #628

gam3-over opened this issue Aug 4, 2023 · 0 comments
Labels
freshissue Default label for new, untriaged issues.

Comments

@gam3-over
Copy link

gam3-over commented Aug 4, 2023

Hi,

just to clarify, objections seems to work fine on my device, tried to attach to AppStore and disable ssl pinning, works flawlessly.

Now, if I try to connect to the cloudd process it seems the agent gets injected but it crashes here's the debug log

`
user@users-MacBook-Pro-3  ~  objection -d -g 57160 explore

[debug] Agent path is: /opt/homebrew/lib/python3.11/site-packages/objection/agent.js
[debug] Injecting agent...
Using USB device iPad
[debug] Attempting to attach to process: 57160
[debug] Process attached!
Agent injected and responds ok!
Traceback (most recent call last):
File "/opt/homebrew/bin/objection", line 8, in
sys.exit(cli())
^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/click/core.py", line 1157, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/objection/console/cli.py", line 156, in explore
device_info = get_device_info()
^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/objection/commands/device.py", line 27, in get_device_info
package_info = api.env_ios()
^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/frida/core.py", line 179, in method
return script._rpc_request("call", js_name, args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/frida/core.py", line 86, in wrapper
return f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/frida/core.py", line 491, in _rpc_request
raise result.error
frida.core.RPCException: TypeError: cannot read property 'currentDevice' of undefined
at (src/generic/environment.ts:55)
at envIos (src/rpc/environment.ts:8)
at apply (native)
at (frida/runtime/message-dispatcher.js:13)
at c (frida/runtime/message-dispatcher.js:23)
Asking jobs to stop...
Unloading objection agent...
[debug] Calling unload()
`

and here informations about that PID/process:

57160 ?? ?Xs 0:00.00 /System/Library/PrivateFrameworks/CloudKitDaemon.framework/Support/cloudd

Any way on how to solve it ?

@gam3-over gam3-over added the freshissue Default label for new, untriaged issues. label Aug 4, 2023
@gam3-over gam3-over changed the title [bug] Crash after injecting into a specific process [bug] Crash after injecting into a specific system process Aug 4, 2023
@gam3-over gam3-over changed the title [bug] Crash after injecting into a specific system process [bug][iOS] Crash after injecting into a specific system process Aug 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
freshissue Default label for new, untriaged issues.
Projects
None yet
Development

No branches or pull requests

1 participant