{"id":19972783,"url":"https://github.com/mbadanoiu/mal-009","last_synced_at":"2026-06-11T10:31:44.644Z","repository":{"id":252119909,"uuid":"839449561","full_name":"mbadanoiu/MAL-009","owner":"mbadanoiu","description":"MAL-009: Insecure Chaining of Flags T and TT in Zip for Linux","archived":false,"fork":false,"pushed_at":"2025-04-07T19:06:58.000Z","size":308,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-07T20:23:24.479Z","etag":null,"topics":["flag-chaining","remote-code-execution","zip"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mbadanoiu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-07T16:22:26.000Z","updated_at":"2025-04-07T19:07:02.000Z","dependencies_parsed_at":"2024-08-07T21:12:49.288Z","dependency_job_id":"828d75a9-1ef3-42b7-bf49-c34078e5aa17","html_url":"https://github.com/mbadanoiu/MAL-009","commit_stats":null,"previous_names":["mbadanoiu/mal-009"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mbadanoiu/MAL-009","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbadanoiu%2FMAL-009","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbadanoiu%2FMAL-009/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbadanoiu%2FMAL-009/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbadanoiu%2FMAL-009/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mbadanoiu","download_url":"https://codeload.github.com/mbadanoiu/MAL-009/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbadanoiu%2FMAL-009/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34195113,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-11T02:00:06.485Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flag-chaining","remote-code-execution","zip"],"created_at":"2024-11-13T03:09:14.037Z","updated_at":"2026-06-11T10:31:44.638Z","avatar_url":"https://github.com/mbadanoiu.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MAL-009: Insecure Chaining of Flags T and TT in Zip for Linux\n\nIn Zip for Linux, the “-TT” flag can be used to run arbitrary system commands. Due to the dangerous nature of this flag, it must always be used at the same time as the “-T” flag. By using a flag chaining attack, attackers that should only be able to insert just one flag in a zip command can insert both the “-T” and “-TT” flags and potentially execute malicious code.\n\n### Proof Of Concept:\n\nMore details and the exploitation process can be found in this [PDF](https://github.com/mbadanoiu/MAL-009/blob/main/Zip%20-%20MAL-009.pdf).\n\nExample of potentially vulnerable application can be found in this [python code](https://github.com/mbadanoiu/MAL-009/blob/main/exploit_me.py).\n\n### Additional Resources:\n\nThis case study came to mind after exploiting [CVE-2020-8248: Privilege Escalation via Zip Wildcard Exploit in Pulse Secure VPN Linux Client](https://github.com/mbadanoiu/CVE-2020-8248/blob/main/Pulse%20Secure%20VPN%20Linux%20Client%20-%20CVE-2020-8248.pdf) as I was curious if the command execution via Zip could be achived with just 1 file instead of 2.\n\n[Bug ticket](https://bugs.launchpad.net/ubuntu/+source/zip/+bug/1916081) concerning this vulnerability opened on bugs.launchpad.net on 18-Feb-2021\n\nOther examples of Zip for Linux Flag Chaining leading to RCE:\n- https://sonarsource.github.io/argument-injection-vectors/binaries/zip/\n- [Multiple vulnerabilities in Dell Unisphere for PowerMax vApp, VASA Provider vApp and Solutions Enabler vApp CVE-2022-45103 / CVE-2022-45104](https://www.synacktiv.com/sites/default/files/2023-02/Synacktiv-Security_Advisory-Dell_EMC_vApp_Manager-Multiple_Vulnerabilities.pdf)\n- [elFinder - A Case Study of Web File Manager Vulnerabilities](https://www.sonarsource.com/blog/elfinder-case-study-of-web-file-manager-vulnerabilities/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbadanoiu%2Fmal-009","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmbadanoiu%2Fmal-009","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbadanoiu%2Fmal-009/lists"}