phpBB template file code execution

2006.04.23
Risk: Medium
Local: No
Remote: Yes
CWE: CWE-Other


CVSS Base Score: 6.5/10
Impact Subscore: 6.4/10
Exploitability Subscore: 8/10
Exploit range: Remote
Attack complexity: Low
Authentication: Single time
Confidentiality impact: Partial
Integrity impact: Partial
Availability impact: Partial

phpBB HTML template files are parsed and executed as PHP code. This files are not well filtered so a user having access to template files can execute PHP code. You can't trust your designer or template files you found around the web Example: Replace ALL switch_enable_pm_popup in overall_header.tpl By: switch_enable_pm_popup;global $board_config;var_dump($board_config);exit;?> The part after the first ";" will be executed as PHP code. bbcode.tpl is parsed in a different way, and any code you place outter of <!-- --> will be executed as PHP code. Possible solution: Use ([0-9a-z_.-]+) pattern rather than (.*) in includes/template.php to match BEGIN and END statements. For bbcode.tpl, change method to parse the template in includes/bbcode.php, do not eval the template.


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