Stefan Schurtz has discovered two vulnerabilities in Yet Another CMS, which can be exploited by malicious people to conduct SQL injection attacks.
Input passed via the "page" parameter to index.php and "pattern" POST parameter to search.php is not properly sanitised before being used in a SQL query. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.
Note: The vulnerabilities can further be exploited to conduct cross-site scripting attacks via SQL error messages.
The vulnerabilities are confirmed in version 1.0. Other versions may also be affected.
Vulnerable Products
Vulnerable Software: Yet Another CMS 1.x
Solution
Edit the source code to ensure that input is properly sanitised.