Description: Some vulnerabilities have been discovered in jPortal, which can be exploited by malicious people to conduct SQL injection attacks and to compromise a vulnerable system.
1) Input passed to the "word" parameter in download.php isn't properly sanitised before being used in a SQL query. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.
2) Input passed to the "to" parameter in mailer.php isn't properly sanitised before being used in a SQL query. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.
Successful exploitation requires in both cases that "magic_quotes_gpc" is disabled.
3) Input passed to the "topic" parameter in articles.php isn't properly sanitised before being used in an SQL query. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.
Successful exploitation allows e.g. retrieving administrator password hashes, but requires knowledge of the database table prefix.
4) Input passed to the "category" parameter in forum.php is not properly sanitised before being used in an SQL query. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.
Successful exploitation allows execution of arbitrary PHP code due to certain SQL results being used in an "eval()" call.
The vulnerabilities are confirmed in version 2.3.1. Other versions may also be affected.
Solution: Edit the source code to ensure that input is properly sanitised.
If you have new information regarding this Secunia advisory or a product in our database, please send it to us using either our web form or email us at vuln@secunia.com.
Ideas, suggestions, and other feedback are most welcome.