PUMA 1.0 RC 2 (config.php) Remote File Inclusion

2006.09.18
Risk: High
Local: No
Remote: Yes
CWE: CWE-Other


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

+-------------------------------------------------------------------- + + PUMA 1.0 RC 2 (config.php) Remote File Inclusion + + Original advisory: + http://www.bb-pcsecurity.de/Websecurity/415/org/PUMA_1.0_RC_2_(config.ph p)_RFI.htm + +-------------------------------------------------------------------- + + Affected Software .: PUMA 1.0 RC 2 + Venedor ...........: http://php.psywerx.net/ + Class .............: Remote File Inclusion + Risk ..............: high (Remote File Execution) + Found by ..........: Philipp Niedziela + Contact ...........: webmaster[at]bb-pcsecurity[.]de + +-------------------------------------------------------------------- + + Affected File: + /config.php + + Code: + ..... + // Select language + $lang = "lang_english.php"; + include($fpath."./language/$lang"); + ..... + +-------------------------------------------------------------------- + + $fpath is not properly sanitized before being used + +-------------------------------------------------------------------- + + Solution: + -> Declare $fpath! + -> Deny direct access to config.php + -> or modify code: + + if(!isset($_REQUEST['fpath']) && !isset($_GET['fpath']) && !isset($_POST['fpath'])){ + //code of org. config.php + } + else { + echo "You cannot access this file directly."; + die(); + } + +-------------------------------------------------------------------- + + PoC: + + http://[target]/config.php?fpath=[script] + +-------------------------------------------------------------------- + + Greets and Thanks: /str0ke + +-------------------------[ E O F ]----------------------------------


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 2022, cxsecurity.com

 

Back to Top