[原文]register.php in S8Forum 3.0 allows remote attackers to execute arbitrary PHP commands by creating a user whose name ends in a .php extension and entering the desired commands into the E-mail field, which creates a web-accessible .php file that can be called by the attacker, as demonstrated using a "system($cmd)" E-mail address with a "any_name.php" username.
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:
- in password : any_pasword.
- in E-Mail:
<? system($cmd); ?>
Then request the following page:
S8Forum contains a flaw that will allow a remote attacker to execute arbitrary commands. The problem is that user-supplied input upon submission to the 'register.php' script is not verified properly. It is possible for a remote attacker to pass arbitrary commands to the server in the name, email, or password field to be executed on the system resulting in a loss of integrity.
Currently, there are no known upgrades, patches, or workarounds available to correct this issue.