SmartCloud783 / iphone-dataprotection

Automatically exported from code.google.com/p/iphone-dataprotection
0 stars 0 forks source link

keychainviewer broken with iOS 5 #46

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. install keychainviewer
2. start it
3. enter one of the categories like "Generic Passwords"

What is the expected output? What do you see instead?

expected: keychain entries
actually: empty rows

What version of the product are you using? On what operating system?

keychainviewer0.2.deb, Oct. 14th
iOS 5.0.1 on iphone 4

Please provide any additional information below.

Note: Everything worked ok on iOS 4
Reinstalled after upgrade and Jailbreak

Original issue reported on code.google.com by jueschm...@gmail.com on 24 Jan 2012 at 4:50

GoogleCodeExporter commented 8 years ago
can you watch the syslog output when running the app and look for messages from 
keychain viewer ?
you can use the -w option of the cinject tool to read the syslog 
(https://sites.google.com/a/iphone-dev.com/files/home/cinject_0.4.3.zip?attredir
ects=0&d=1)
thanks

Original comment by jean.sig...@gmail.com on 24 Jan 2012 at 9:49

GoogleCodeExporter commented 8 years ago
Used "socat - UNIX-CONNECT:/var/run/lockdown/syslog.sock" with watch and got:

--- open "Generic Passwords" ---

Jan 25 11:26:49 jus-iPhone4 
UIKitApplication:com.yourcompany.KeychainViewer[0x5a98][2215] <Notice>: (null)

Jan 25 11:26:49 jus-iPhone4 
UIKitApplication:com.yourcompany.KeychainViewer[0x5a98][2215] <Notice>: (null)

Jan 25 11:26:49 jus-iPhone4 
UIKitApplication:com.yourcompany.KeychainViewer[0x5a98][2215] <Notice>: (null)
...

--- entering first empty entry ---

Jan 25 11:27:52 jus-iPhone4 
UIKitApplication:com.yourcompany.KeychainViewer[0x5a98][2215] <Notice>: 
IOConnectCallMethod returned e00002bc

Jan 25 11:27:52 jus-iPhone4 
UIKitApplication:com.yourcompany.KeychainViewer[0x5a98][2215] <Notice>: 
AppleKeyStore_keyUnwrap = e00002bc
-----

--- open Internet Passwords ---

Jan 25 11:28:25 jus-iPhone4 
UIKitApplication:com.yourcompany.KeychainViewer[0x5a98][2215] <Notice>: 
<53cXXX97 cYYYYYd 06YYY01 55XXXX2b 2ca6dd7e>

Jan 25 11:28:25 jus-iPhone4 
UIKitApplication:com.yourcompany.KeychainViewer[0x5a98][2215] <Notice>: 
<53XXXXX7 c2XXXXXd 06XXXX01 5XXa2b 2cXXXXXe>

---- entering empty entry (Password: Error! decrypt. failed))---
Jan 25 11:30:31 jus-iPhone4 
UIKitApplication:com.yourcompany.KeychainViewer[0x5a98][2215] <Notice>: 
IOConnectCallMethod returned e00002bc

Jan 25 11:30:31 jus-iPhone4 
UIKitApplication:com.yourcompany.KeychainViewer[0x5a98][2215] <Notice>: 
AppleKeyStore_keyUnwrap = e00002bc
----- 

--- entering certificates ---
Jan 25 11:33:28 jus-iPhone4 
UIKitApplication:com.yourcompany.KeychainViewer[0x5a98][2215] <Notice>: 
IOConnectCallMethod returned e00002bc

Jan 25 11:33:28 jus-iPhone4 
UIKitApplication:com.yourcompany.KeychainViewer[0x5a98][2215] <Notice>: 
AppleKeyStore_keyUnwrap = e00002bc

Jan 25 11:33:28 jus-iPhone4 
UIKitApplication:com.yourcompany.KeychainViewer[0x5a98][2215] <Notice>: 
<13xxxxa e0fxxxx5 4xxx468 c1xxx37 91xxxf2c>
----

Hope this helps...

bye, ju

Original comment by jueschm...@gmail.com on 25 Jan 2012 at 10:36

GoogleCodeExporter commented 8 years ago
this looks like errors from older versions of keychain viewer that did not 
handle ios 5. Are you sure you are using version 0.2 ? The SHA1 for the deb 
package is 8B16E275E33CA972CFF01D0CAE78B1F19D4C489E, and 
/Applications/KeychainViewer.app/KeychainViewer is 
B05A845507981E052AFA935276CA0FB172F85852

Original comment by jean.sig...@gmail.com on 25 Jan 2012 at 11:01

GoogleCodeExporter commented 8 years ago
Oh yes - you are right. I had an old version lying around and confused 
keychainviewer.deb with keychainviewer0.2.deb. Sorry - my fault.

I installed the new version -- and it crashed on entering "Generic Passwords" 
or any other category.:

---

Jan 25 12:16:44 jus-iPhone4 KeychainViewer[349] <Error>: -[__NSCFData 
isEqualToString:]: unrecognized selector sent to instance 0x14c580

Jan 25 12:16:44 jus-iPhone4 KeychainViewer[349] <Error>: *** Terminating app 
due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFData 
isEqualToString:]: unrecognized selector sent to instance 0x14c580'
    *** First throw call stack:
    (0x343b58bf 0x346051e5 0x343b8acb 0x343b7945 0x34312680 0x3776220d 0x429c 0x377be9cb 0x377bdaa9 0x377bd233 0x37761d29 0x3431422b 0x34ea5381 0x34ea4f99 0x34ea911b 0x34ea8e57 0x34ea0d85 0x34389b4b 0x34387d87 0x343880e1 0x3430b4dd 0x3430b3a5 0x30b8ffcd 0x3778c743 0x2858 0x27cc)

Jan 25 12:16:44 jus-iPhone4 
UIKitApplication:com.yourcompany.KeychainViewer[0x91a7][349] <Notice>: 
terminate called throwing an exception

Jan 25 12:16:44 jus-iPhone4 ReportCrash[350] <Notice>: MS:Notice: Installing: 
(null) [ReportCrash] (675.00)

Jan 25 12:16:44 jus-iPhone4 ReportCrash[350] <Notice>: MS:Notice: Loading: 
/Library/MobileSubstrate/DynamicLibraries/rwxlib.dylib

Jan 25 12:16:44 jus-iPhone4 ReportCrash[350] <Notice>: Formulating crash report 
for process KeychainViewer[349]

Jan 25 12:16:44 jus-iPhone4 com.apple.launchd[1] 
(UIKitApplication:com.yourcompany.KeychainViewer[0x91a7][349]) <Warning>: 
(UIKitApplication:com.yourcompany.KeychainViewer[0x91a7]) Job appears to have 
crashed: Abort trap: 6

Jan 25 12:16:44 jus-iPhone4 SpringBoard[27] <Warning>: Application 
'KeychainViewer' exited abnormally with signal 6: Abort trap: 6

Jan 25 12:16:44 jus-iPhone4 ReportCrash[350] <Error>: Saved crashreport to 
/Library/Logs/CrashReporter/KeychainViewer_2012-01-25-121644_jus-iPhone4.plist 
using uid: 0 gid: 0, synthetic_euid: 0 egid: 0
----

I saved the CrashReport and can send it on request.

bye, ju

Original comment by jueschm...@gmail.com on 25 Jan 2012 at 11:22

GoogleCodeExporter commented 8 years ago
ok, can you send me the crash report by email ? thanks

Original comment by jean.sig...@gmail.com on 25 Jan 2012 at 11:47

GoogleCodeExporter commented 8 years ago
This issue was closed by revision 2bd7478929a0.

Original comment by jean.sig...@gmail.com on 28 Jan 2012 at 1:28

GoogleCodeExporter commented 8 years ago
i just added a new package for keychainviewer 0.3 that fixes this bug and 
others. thanks again.

Original comment by jean.sig...@gmail.com on 11 Feb 2012 at 10:44