Secunia Research has discovered a vulnerability in TomatoCMS, which can be exploited by malicious people to conduct SQL injection attacks. Input passed via the “q” parameter to index.php/news/search is not properly sanitised before being used in SQL queries. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code. Version 2.0.4 is affected.
You can download this advisory from the following link: https://packetstormsecurity.com/files/download/89498/secunia-tomatocmssql.txt
Source: https://packetstormsecurity.com/files/89498/TomatoCMS-q-SQL-Injection-Vulnerability.html

