Description
Hibernate ORM is an object-relational mapping tool for the Java programming language. It provides a framework for mapping an object-oriented domain model to a relational database. Hibernate Query Language (HQL) injection refers to an injection attack wherein an attacker tamper with the HQL query to execute malicious SQL statements that control a web application's database server.
Remediation
Use parameterized queries when dealing with HQL queries that contain user input. Parameterized queries allow the database to understand which parts of the HQL query should be considered as user input, therefore solving HQL injection.
References
Related Vulnerabilities
WordPress Plugin WP-Board SQL Injection (1.1)
WordPress Plugin Unlimited PopUps SQL Injection (4.5.3)
WordPress Plugin bbPress Like Button SQL Injection (1.5)
WordPress Plugin Ajax Gallery 'list.php' SQL Injection (3.0)
WordPress Plugin WP Forum Server Cross-Site Scripting and SQL Injection Vulnerabilities (1.7.3)