Stefan Schurtz has discovered two vulnerabilities in X3 CMS, which can be exploited by malicious people to conduct cross-site scripting attacks.
1) Input passed via the URL to admin/login is not properly sanitised before being returned to the user. This can be exploited to execute arbitrary HTML and script code in a user's browser session in context of an affected site.
Successful exploitation requires that the victim uses a browser that does not URL-encode the request (e.g. Internet Explorer 6).
2) Input passed via the "username" and "password" POST parameters to admin/login (when e.g. other POST parameters are not set) is not properly sanitised before being returned to the user. This can be exploited to execute arbitrary HTML and script code in a user's browser session in context of an affected site.
The vulnerabilities are confirmed in version 0.4.3.1-STABLE. Other versions may also be affected.