PunBB Reputation Plugin SQL Injection and Local File Inclusion
Description
Dante90 has discovered two vulnerabilities in the Reputation plugin for PunBB, which can be exploited by malicious users to conduct SQL injection attacks and by malicious people to disclose sensitive information.
1) Input passed to the "poster" parameter in reputation.php is not properly sanitised before being used in SQL queries. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.
2) Input passed via the "pun_user[language]" parameter to include/reputation/rep_profile.php is not properly verified before being used to include files. This can be exploited to include arbitrary files from local resources via directory traversal attacks and URL-encoded NULL bytes.
Successful exploitation requires that "register_globals" is enabled and "magic_quotes_gpc" is disabled.
The vulnerabilities are confirmed in version 2.2.3 and 2.2.4. Other versions may also be affected.
Vulnerable Products
Vulnerable Software: Reputation (plugin for PunBB) 2.x