0day.today - Biggest Exploit Database in the World.
Things you should know about 0day.today:
Administration of this site uses the official contacts. Beware of impostors!
- We use one main domain: http://0day.today
- Most of the materials is completely FREE
- If you want to purchase the exploit / get V.I.P. access or pay for any other service,
you need to buy or earn GOLD
Administration of this site uses the official contacts. Beware of impostors!
We DO NOT use Telegram or any messengers / social networks!
Please, beware of scammers!
Please, beware of scammers!
- Read the [ agreement ]
- Read the [ Submit ] rules
- Visit the [ faq ] page
- [ Register ] profile
- Get [ GOLD ]
- If you want to [ sell ]
- If you want to [ buy ]
- If you lost [ Account ]
- Any questions [ admin@0day.today ]
- Authorisation page
- Registration page
- Restore account page
- FAQ page
- Contacts page
- Publishing rules
- Agreement page
Mail:
Facebook:
Twitter:
Telegram:
We DO NOT use Telegram or any messengers / social networks!
You can contact us by:
Mail:
Facebook:
Twitter:
Telegram:
We DO NOT use Telegram or any messengers / social networks!
Seo Panel 2.1.0 - Critical File Disclosure
========================================== Seo Panel 2.1.0 - Critical File Disclosure ========================================== -:: The Advisory ::- Seo Panel is prone to Critical File Disclosure due to download.php does not sanitize user- input properly via the "file" GET-parameter. By using ....// instead of ../ to traverse through directories and by appending a %00 byte in the end of the request it is possible to load virtually any file that the webserver user has read access to. The PHP function which reads & returns the data from the file is: readfile($var); Proof of Concept URL: http://example.tld/seopanel/download.php?filesec=sitemap&filetype=text&file=....//config/sp-config.php%00.txt Note: This attack requires a valid user though it works regardless of any privileges the user might have. (User registrations are enabled by default as well, making this attack possible in most scenarios.) -:: Solution ::- download.ctrl.php: (Line 55-62) 55 function isValidFile($fileName) { 56 $fileName = urldecode($fileName); // This tries to prevent directory traversal 57 $fileName = str_replace('../', '', $fileName); 58 if (preg_match('/\.xml$|\.html$|\.txt$/i', $fileName)) { 59 return $fileName; 60 } 61 return false; 62 } Suggested patch: (Line 55-62) 55 function isValidFile($fileName) { 56 $fileName = urldecode($fileName); // This isn't as easy to bypass anymore 57 $fileName = str_replace('..', '', $fileName); // This is changed. 58 if (preg_match('/\.xml$|\.html$|\.txt$/i', $fileName)) { 59 return $fileName; 60 } 61 return false; 62 } Disclosure Information: - Vulnerabilities found and researched: 31st October 2010 - Full Disclosure ~Early November 2010 # 0day.today [2024-12-25] #