{"id":20012767,"url":"https://github.com/m3ssap0/struts2_cve-2017-5638","last_synced_at":"2026-06-10T00:30:56.886Z","repository":{"id":178595591,"uuid":"123348547","full_name":"m3ssap0/struts2_cve-2017-5638","owner":"m3ssap0","description":"This is a sort of Java porting of the Python exploit at: https://www.exploit-db.com/exploits/41570/.","archived":false,"fork":false,"pushed_at":"2018-03-10T11:56:50.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-29T17:55:29.018Z","etag":null,"topics":["cve-2017-5638","exploit","security","security-tools","struts2","vulnerability","vulnerability-scanners"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/m3ssap0.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2018-02-28T22:11:50.000Z","updated_at":"2018-03-17T10:17:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"aee5595c-a842-4645-9111-22a98eea8240","html_url":"https://github.com/m3ssap0/struts2_cve-2017-5638","commit_stats":null,"previous_names":["m3ssap0/struts2_cve-2017-5638"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/m3ssap0/struts2_cve-2017-5638","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m3ssap0%2Fstruts2_cve-2017-5638","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m3ssap0%2Fstruts2_cve-2017-5638/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m3ssap0%2Fstruts2_cve-2017-5638/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m3ssap0%2Fstruts2_cve-2017-5638/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/m3ssap0","download_url":"https://codeload.github.com/m3ssap0/struts2_cve-2017-5638/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m3ssap0%2Fstruts2_cve-2017-5638/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34132030,"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-09T02:00:06.510Z","response_time":63,"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":["cve-2017-5638","exploit","security","security-tools","struts2","vulnerability","vulnerability-scanners"],"created_at":"2024-11-13T07:33:09.738Z","updated_at":"2026-06-10T00:30:56.862Z","avatar_url":"https://github.com/m3ssap0.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# struts2_cve-2017-5638\n\nThis is a sort of Java porting of the Python exploit at: [https://www.exploit-db.com/exploits/41570/](https://www.exploit-db.com/exploits/41570/).\n\nThis software is written to have no external dependencies.\n\n## DISCLAIMER\n\n**This tool is intended for security engineers and appsec guys for security assessments. Please use this tool responsibly. I do not take responsibility for the way in which any one uses this application. I am NOT responsible for any damages caused or any crimes committed by using this tool.**\n\n## Vulnerability info\n\n* **CVE-ID**: CVE-2017-5638\n* **Link**: [https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-5638](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-5638)\n* **Description**: The Jakarta Multipart parser in **Apache Struts 2** 2.3.x before 2.3.32 and 2.5.x before 2.5.10.1 has incorrect exception handling and error-message generation during file-upload attempts, which allows remote attackers to execute arbitrary commands via a crafted *Content-Type*, *Content-Disposition*, or *Content-Length* HTTP header, as exploited in the wild in March 2017 with a *Content-Type* header containing a *#cmd=* string.\n\n## Help\n\n```\nUsage:\n   java -jar struts2_cve-2017-5638.jar [options]\nDescription:\n   Exploiting Apache Struts2 Remote Code Execution (CVE-2017-5638).\nOptions:\n   -h, --help\n      Prints this help and exits.\n   -u, --url [target_URL]\n      The target URL where the exploit will be performed.\n   -cmd, --command [command_to_execute]\n      The command that will be executed on the remote machine.\n   --cookies [cookies]\n      Optional. Cookies passed into the request, i.e. authentication cookies.\n   -v, --verbose\n      Optional. Increase verbosity.\n```\n\n## Examples\n\n```\njava -jar struts2_cve-2017-5638.jar --url \"https://vuln1.foo.com/asd\" --command ipconfig\n```\n\n```\njava -jar struts2_cve-2017-5638.jar --url \"https://vuln2.foo.com/asd\" --command ipconfig --cookies \"JSESSIONID=qwerty0123456789\"\n```\n\n```\njava -jar struts2_cve-2017-5638.jar --url \"https://vuln3.foo.com/asd\" --command dir --cookies \"JSESSIONID=qwerty0123456789;foo=bar\"\n```\n\n## Authors\n\n* **Antonio Francesco Sardella** - *Java porting* - [m3ssap0](https://github.com/m3ssap0)\n\n## License\n\nThis project is licensed under the MIT License - see the **LICENSE.txt** file for details.\n\n\n## Acknowledgments\n\n* [Vex Woo](https://www.exploit-db.com/author/?a=8906) for the original Python exploit.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm3ssap0%2Fstruts2_cve-2017-5638","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fm3ssap0%2Fstruts2_cve-2017-5638","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm3ssap0%2Fstruts2_cve-2017-5638/lists"}