Uploaded image for project: 'Commons Compress'
  1. Commons Compress
  2. COMPRESS-488

ZipArchiveInputStream doesn't support .crx files (Chrome Extension)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 1.18
    • None
    • Compressors
    • None
    • MacOS Mojave: 10.14.2 (18C54)

      java version "1.8.0_131"

      Java(TM) SE Runtime Environment (build 1.8.0_131-b11)

      Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)

    Description

      Using this tool you can download chrome extensions to .crx files from the chrome store.  https://www.maketecheasier.com/download-save-chrome-extension/  Attempting to extract these zip files using ZipArchiveInputStream, I receive the following error 

      Unexpected record signature: 0X34327243

      I attached an example .crx zip file

      VirusTotal link to prove its not malicious
      https://www.virustotal.com/#/file/337a648e7cf30e6938a3cfeb6fed5f429b91ccd4559da4016eb72f0656bf5873/detection

      On mac and linux I am able to unzip these files using the basic unzip binaries, for example:

      15:53:37 $ unzip Lighthouse_v5.0.0.crx -d unzipped/
      Archive:  Lighthouse_v5.0.0.crx
      warning [Lighthouse_v5.0.0.crx]:  566 extra bytes at beginning or within zipfile
        (attempting to process anyway)
         creating: unzipped/_locales/
         creating: unzipped/images/
        inflating: unzipped/popup.html     
        inflating: unzipped/manifest.json 
         creating: unzipped/scripts/
         creating: unzipped/styles/
         creating: unzipped/_locales/en/
        inflating: unzipped/images/fail.svg 
        inflating: unzipped/images/lh_logo_bg.png 
        inflating: unzipped/images/lh_logo_bg_no-light.png 
        inflating: unzipped/images/lh_logo_canary_bg.png 
        inflating: unzipped/images/lh_logo_canary_icon.png 
        inflating: unzipped/images/lh_logo_icon.png 
        inflating: unzipped/images/lh_logo_icon_light.png 
        inflating: unzipped/images/pass.svg 
        inflating: unzipped/images/verified.svg 
        inflating: unzipped/scripts/lighthouse-ext-bundle.js 
        inflating: unzipped/scripts/popup.js 
        inflating: unzipped/styles/lighthouse.css 
        inflating: unzipped/styles/lighthouse-loading.css 
        inflating: unzipped/_locales/en/messages.json 
        inflating: unzipped/_locales/en/messages_canary.json 
         creating: unzipped/_metadata/
        inflating: unzipped/_metadata/verified_contents.json 

      Attachments

        1. Lighthouse_v5.0.0.crx
          592 kB
          Kyle Willett

        Activity

          People

            Unassigned Unassigned
            willz713 Kyle Willett
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: