Missing security quoting for SQL statements allows agents and customers to manipulate SQL queries. So it's possible for authenticated users to inject SQL queries via string manipulation of statements. A malicious user may be able to manipulate SQL queries to read or modify records in the database. This way it could also be possible to get access to more permissions (e. g. administrator permissions). To use this vulnerability the malicious user needs to have a valid Agent- or Customer-session. Affected by these vulnerabilities are all releases of OTRS 2.1.x up to and including 2.4.6.
These vulnerabilities are fixed in OTRS 2.1.9, OTRS 2.2.9, OTRS 2.3.5 and OTRS 2.4.7, and it is recommended to upgrade to one of these versions.
As a workaround it's also possible to replace the file Kernel/System/Ticket.pm by a version that has been fixed:
(http://source.otrs.org/viewvc.cgi/otrs/Kernel/System/Ticket.pm?view=log).